/* =============================================
   PUNTO VIAL v2 — index.css
   Paleta: fondo oscuro | acento #fbc101 | CTA #25d366
   ============================================= */

/* ---- Variables ---- */
:root {
    --pv-gold:      #fbc101;
    --pv-gold-dark: #d9a800;
    --pv-green:     #25d366;
    --pv-green-dark:#04aa6d;
    --pv-bg:        #1a1a1a;
    --pv-bg-mid:    #252525;
    --pv-bg-card:   #2a2a2a;
    --pv-nav:       #3a3a3a;
    --pv-text:      #eeeeee;
    --pv-text-muted:#aaaaaa;
    --pv-border:    rgba(251,193,1,0.15);
    --ff-heading:   'Fjalla One', sans-serif;
    --ff-body:      'Noto Sans', sans-serif;
    --transition:   0.3s ease;
}

/* ---- Reset base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--pv-text);
    -webkit-font-smoothing: antialiased;
    /* background: 
        url('../img/logo_puntovial_1c_o20_c_botton.png') no-repeat center center / 75vw fixed,
        linear-gradient(-45deg, #111, #181818, #111, #0a0a0a) fixed; */
    position: relative; /* Necesario para posicionar el logo */
    background: linear-gradient(-45deg, #111, #181818, #111, #0a0a0a) fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Configuración de la imagen */
    background-image: url('../img/logo_puntovial_1c_o20_c_botton.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 75vw;
    
    /* Aquí controlas la opacidad */
    opacity: 0.25; 
    
    /* Envía la imagen detrás del contenido del body pero sobre el gradiente */
    z-index: -1; 
}

h1, h2, h3, h4, h5 {
    font-family: var(--ff-heading);
    letter-spacing: 0.04em;
    color: var(--pv-gold);
}

a {
    text-decoration: none;
    color: var(--pv-gold);
    transition: color var(--transition);
}

a:hover {
    color: var(--pv-gold-dark);
}

.icon-svg{
  width: 1.5em;
  height: 1.5em;
  fill: currentColor;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 7px; background: #222; }
::-webkit-scrollbar-thumb { background: var(--pv-gold); border-radius: 5px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-pv {
    background-color: var(--pv-gold);
    color: #111;
    font-family: var(--ff-heading);
    font-size: 1rem;
    letter-spacing: 0.06em;
    padding: 0.6rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--pv-gold);
    transition: all var(--transition);
    font-weight: 700;
}
.btn-pv:hover {
    background-color: transparent;
    color: var(--pv-gold);
}

.btn-whatsapp {
    background-color: var(--pv-green);
    color: #fff !important;
    font-family: var(--ff-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--pv-green);
    transition: all var(--transition);
    font-weight: 700;
}
.btn-whatsapp:hover {
    background-color: var(--pv-green-dark);
    border-color: var(--pv-green-dark);
    color: #fff !important;
}

.btn-cotizar {
    background-color: var(--pv-green);
    color: #fff !important;
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    padding: 0.65rem 1.8rem;
    border-radius: 4px;
    border: 2px solid var(--pv-green);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}
.btn-cotizar:hover {
    background-color: transparent;
    color: var(--pv-green) !important;
}

/* =============================================
   NAVBAR
   ============================================= */
.pv-navbar {
    background-color: var(--pv-nav);
    border-bottom: 2px solid var(--pv-gold);
    min-height: 66px;
    z-index: 1000;
    padding: 0 1rem;
}

.pv-navbar .navbar-brand {
    padding: 0.5rem 0;
}

.pv-navbar .nav-link {
    color: var(--pv-gold) !important;
    font-family: var(--ff-heading);
    font-size: larger;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem !important;
    transition: color var(--transition);
}
.pv-navbar .nav-link:hover {
    color: #fff !important;
}

.pv-navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--pv-gold);
    font-size: 1.3rem;
}
.pv-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile nav */
@media (max-width: 1199px) {
    .pv-navbar .navbar-collapse {
        background-color: var(--pv-nav);
        padding: 0.5rem 1rem 1rem;
        border-top: 1px solid var(--pv-border);
    }
    .pv-navbar .nav-link {
        border-bottom: 1px solid var(--pv-border);
        padding: 0.75rem 0 !important;
    }
    .pv-navbar .nav-link:last-child {
        border-bottom: none;
    }
}

/* =============================================
   SECTION HELPERS
   ============================================= */
section {
    padding: 5rem 0;
}

section:first-of-type {
    padding-top: 0;
}

.section-title {
    font-size: 2rem;
    text-align: center!important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pv-gold);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--pv-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* =============================================
   HERO
   ============================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 66px; /* altura navbar */
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* =========================================================
   VIDEO
========================================================= */

.hero-video{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;

    opacity: .85;

    /* Blur cinematográfico */
    filter: blur(2px);

    /* Parallax suave */
    transform: scale(1.08);

    /* Mejora performance */
    will-change: transform;

    /* Evita glitches GPU */
    backface-visibility: hidden;
}

/* =========================================================
   OVERLAY
========================================================= */

.hero-overlay{
    position: absolute;
    inset: 0;

    z-index: 2;
    
    backdrop-filter: saturate(1.2);

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.55),
            rgba(0,0,0,.45),
            rgba(0,0,0,.70)
        );
}

/* =========================================================
   CONTENT
========================================================= */

.hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    max-width: 420px;
    width: 80%;
    filter: drop-shadow(0 4px 24px rgba(251,193,1,0.18));
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hero-badge {
    font-family: var(--ff-heading);
    font-size: larger;
    letter-spacing: 0.05em;
    color: var(--pv-gold);
    background: rgba(251,193,1,0.08);
    border: 1px solid rgba(251,193,1,0.3);
    border-radius: 4px;
    padding: 0.45rem 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(251,193,1,0.18);
    border-color: rgba(251,193,1,0.7);
    color: #fff !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.hero-badge:hover svg path{
    fill: #fff !important;
    transition: all 0.3s ease;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-ctas .btn-pv,
.hero-ctas .btn-whatsapp {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}


/* =============================================
   SERVICIOS
   ============================================= */
#servicios {
    /* background-color: var(--pv-bg-mid); */
    background: linear-gradient(180deg, #232323 0%, #1b1b1b 35%, #1b1b1b 75%, #232323 100%);
}

.pv-card {
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pv-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251,193,1,0.5);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.pv-card-icon {
    font-size: 2.8rem;
    color: var(--pv-gold);
    margin-bottom: 1.25rem;
}

.pv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.pv-card p {
    color: var(--pv-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* =============================================
   CATÁLOGOS
   ============================================= */

.catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 8px;
    color: var(--pv-text) !important;
    transition: all var(--transition);
    height: 100%;
}
.catalog-card:hover {
    border-color: rgba(251,193,1,0.5);
    background: #313131;
    transform: translateY(-3px);
    color: var(--pv-gold) !important;
}

.catalog-pdf-icon {
    font-size: 2.2rem;
    color: var(--pv-gold);
}

.catalog-name {
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 1;
}

.catalog-dl {
    font-size: 0.82rem;
    color: var(--pv-text-muted);
    border: 1px solid var(--pv-border);
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    transition: all var(--transition);
}
.catalog-card:hover .catalog-dl {
    color: var(--pv-gold);
    border-color: var(--pv-gold);
}

/* =============================================
   EQUIPOS NUEVOS Y USADOS
   ============================================= */
#equipos {
    /* background-color: var(--pv-bg-mid); */
    background: linear-gradient(180deg, #232323 0%, #1b1b1b 35%, #1b1b1b 75%, #232323 100%);
}

#equipos .section-title {
    margin-bottom: 0.5rem;
}

.equipo-card {
    display: flex;
    gap: 1rem;
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow var(--transition), border-color var(--transition);
    /* max-width: 75%;
    justify-self: center; */
    transition: all 0.3s ease;
}
.equipo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251,193,1,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45); 
    
}
.equipo-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .equipo-card {
        max-width: 100%;
    }
}

/* =============================================
   EQUIPOS — GRID DE TARJETAS VERTICALES
   ============================================= */

/* La tarjeta: vertical, flex column, altura completa */
.equipo-card {
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.equipo-card:hover {
    border-color: rgba(251,193,1,0.45);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

/* ── Encabezado: tipo + badge ── */
.equipo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--pv-border);
}

.equipo-tipo {
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pv-gold);
}

/* Subtítulo Marca - Modelo */
.equipo-titulo {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    color: var(--pv-text);
    align-self: center;
    letter-spacing: 0.03em;
    padding: 0.5rem 1rem 0.25rem;
}

/* Badges USADO / NUEVO */
.equipo-badge {
    display: inline-block;
    background: rgba(251,193,1,0.12);
    color: var(--pv-gold);
    font-family: var(--ff-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 3px;
    border: 1px solid rgba(251,193,1,0.35);
}
.equipo-badge.nuevo {
    background: rgba(37,211,102,0.1);
    color: var(--pv-green);
    border-color: rgba(37,211,102,0.35);
}

/* ── Carrusel: ancho completo, altura fija ── */
.equipo-carousel {
    position: relative;
    width: 100%;
    height: 360px;
    background: #111;
    flex-shrink: 0;
}

.equipo-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.equipo-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}
.equipo-slide.active {
    display: flex;
}

.equipo-video-play {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(251,193,1,0.75);
    background: rgba(0,0,0,0.65);
    color: var(--pv-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all var(--transition);
}
.equipo-video-play:hover {
    background: var(--pv-gold);
    color: #111;
}
.equipo-video-play.hidden {
    display: none;
}
@media (hover: none) and (pointer: coarse) {
    .equipo-video-play {
        display: none;
    }
}

.equipo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipo-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Flechas */
.equipo-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(251,193,1,0.4);
    color: var(--pv-gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    font-size: 0.8rem;
    padding: 0;
}
.equipo-carousel-btn:hover {
    background: var(--pv-gold);
    color: #111;
    border-color: var(--pv-gold);
}
.equipo-carousel-btn.prev { left: 8px; }
.equipo-carousel-btn.next { right: 8px; }
.equipo-carousel-btn.hidden { display: none; }

/* Puntos */
.equipo-carousel-dots {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 10;
}
.equipo-carousel-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(251,193,1,0.4);
    cursor: pointer;
    transition: all var(--transition);
}
.equipo-carousel-dots .dot.active {
    background: var(--pv-gold);
    border-color: var(--pv-gold);
    transform: scale(1.25);
}

/* Contador */
.equipo-carousel-counter {
    position: absolute;
    top: 7px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: var(--pv-gold);
    font-family: var(--ff-heading);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 20px;
    z-index: 10;
}

/* ── Cuerpo: precio + specs + CTA ── */
.equipo-body {
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.equipo-precio {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    color: var(--pv-text);
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Tabla de specs */
.equipo-specs-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pv-border);
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--pv-border);
    font-size: 0.92rem;
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-row:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.spec-label {
    font-family: var(--ff-heading);
    color: var(--pv-text-muted);
    letter-spacing: 0.04em;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.spec-value {
    color: var(--pv-text);
    font-weight: 600;
    text-align: right;
}

/* CTA ocupa todo el ancho */
.equipo-body .btn-cotizar {
    width: 100%;
    justify-content: center;
    font-size: 0.97rem;
    padding: 0.6rem 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .equipo-carousel {
        height: 330px;
    }
}

/* =============================================
   CONTACTO
   ============================================= */

/* Datos de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.05rem;
}

.contact-item i {
    width: 1.6rem;
    text-align: center;
    color: var(--pv-gold);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--pv-text);
    transition: color var(--transition);
}
.contact-item a:hover {
    color: var(--pv-green);
}

/* Formulario */
.pv-form {
    background: var(--pv-bg-card);
    border: 1px solid var(--pv-border);
    border-radius: 10px;
    padding: 2rem;
}

.pv-form .form-label {
    font-family: var(--ff-heading);
    letter-spacing: 0.04em;
    color: var(--pv-gold);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.pv-form .form-control {
    background: #1e1e1e;
    border: 1px solid #444;
    color: var(--pv-text);
    border-radius: 4px;
    font-family: var(--ff-body);
    font-size: 0.97rem;
    padding: 0.65rem 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pv-form .form-control:focus {
    background: #1e1e1e;
    border-color: var(--pv-gold);
    color: var(--pv-text);
    box-shadow: 0 0 0 3px rgba(251,193,1,0.12);
}
.pv-form .form-control::placeholder {
    color: #666;
}
.pv-form .form-control.is-invalid {
    border-color: #dc3545;
}

.pv-form .btn-pv {
    font-size: 1rem;
    padding: 0.65rem 2rem;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--pv-nav);
    border-top: 2px solid var(--pv-gold);
    padding: 1.25rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    color: var(--pv-text-muted);
    font-size: 0.82rem;
    text-align: center;
    flex: 1;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    background: rgba(251,193,1,0.1);
    border: 1px solid var(--pv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pv-gold) !important;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--pv-gold);
    color: #111 !important;
}

@media (max-width: 576px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-btn {
    width: 58px;
    height: 58px;
    background-color: var(--pv-green);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    transition: all var(--transition);
}
.whatsapp-btn:hover {
    background-color: var(--pv-green-dark);
    transform: scale(1.08);
}
.whatsapp-btn i {
    color: #fff !important;
}
