/* ==========================================================================
   GPC SIGNATURE — capa visual distintiva (diagonales de marca, marquesinas,
   numerales outline y micro-interacciones). Basada en el Manual de Marca.
   ========================================================================== */

/* ===== HERO: diagonales de marca (portada del manual) ===== */
.hero { isolation: isolate; }
.hero-diagonals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-diagonals span { position: absolute; background: var(--gold); transform: rotate(-35deg); }
.hero-diagonals span:nth-child(1) { top: -90px; right: -190px; width: 620px; height: 100px; box-shadow: 0 0 70px rgba(227, 6, 19, 0.35); }
.hero-diagonals span:nth-child(2) { top: -14px; right: -230px; width: 620px; height: 26px; opacity: 0.85; }
.hero-diagonals span:nth-child(3) { bottom: -90px; left: -190px; width: 620px; height: 100px; box-shadow: 0 0 70px rgba(227, 6, 19, 0.35); }
.hero-diagonals span:nth-child(4) { bottom: -14px; left: -230px; width: 620px; height: 26px; opacity: 0.85; }

/* Sigla gigante en trazo rojo detrás del hero */
.hero-watermark {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'Archivo Black', sans-serif; font-size: min(36vw, 520px); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(227, 6, 19, 0.14);
    user-select: none; pointer-events: none; z-index: 0;
    animation: gpcWatermark 7s ease-in-out infinite;
}
@keyframes gpcWatermark { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* Barrido de luz diagonal */
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.045) 50%, transparent 58%);
    background-size: 260% 100%;
    animation: gpcBeam 9s ease-in-out infinite;
}
@keyframes gpcBeam { 0% { background-position: 130% 0; } 55%, 100% { background-position: -130% 0; } }

/* Titular con la voz del manual */
.hero-title { font-family: 'Archivo Black', sans-serif !important; text-transform: uppercase; letter-spacing: 0.015em; }
.hero-line-italic { color: var(--gold); text-shadow: 0 0 34px rgba(227, 6, 19, 0.45); }
.hero-content { position: relative; z-index: 3; }


/* ===== STATEMENT: texto en trazo ===== */
.statement { position: relative; overflow: hidden; }
.statement-text span:not(.statement-accent) {
    color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.82);
}
.statement-accent { color: var(--gold) !important; -webkit-text-stroke: 0 !important; }

/* ===== SERVICIOS: numerales outline + hover ===== */
.services-grid { counter-reset: svc; }
.service-card { counter-increment: svc; position: relative; overflow: hidden; transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.service-card::after {
    content: "0" counter(svc); position: absolute; top: 8px; right: 18px; z-index: 2;
    font-family: 'Archivo Black', sans-serif; font-size: 92px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(227, 6, 19, 0.4);
    pointer-events: none; transition: all 0.45s var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(227, 6, 19, 0.5); }
.service-card:hover::after { -webkit-text-stroke-color: rgba(227, 6, 19, 0.95); transform: translateY(-4px); }
.service-card::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }

/* ===== TECNOLOGÍA ===== */
.tech-feature { transition: transform 0.4s var(--ease-out); }
.tech-feature:hover { transform: translateY(-6px); }
.tech-feature:hover .tech-feature-icon { color: var(--gold); filter: drop-shadow(0 0 16px rgba(227, 6, 19, 0.55)); }
.tech-feature-icon { transition: all 0.4s var(--ease-out); }

/* ===== PROCESO: numerales en trazo rojo ===== */
.process-number { color: transparent !important; -webkit-text-stroke: 1.5px var(--gold); font-family: 'Archivo Black', sans-serif !important; }

/* ===== TESTIMONIOS ===== */
.testimonial { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(227, 6, 19, 0.4); }

/* ===== CTA: diagonales + trama ===== */
.cta { position: relative; overflow: hidden; }
.cta-bg { background: repeating-linear-gradient(-35deg, transparent 0 70px, rgba(227, 6, 19, 0.055) 70px 140px) !important; }
.cta .cta-diagonals span { position: absolute; background: var(--gold); transform: rotate(-35deg); pointer-events: none; }
.cta .cta-diagonals span:nth-child(1) { top: -80px; right: -210px; width: 640px; height: 86px; box-shadow: 0 0 60px rgba(227, 6, 19, 0.4); }
.cta .cta-diagonals span:nth-child(2) { bottom: -80px; left: -210px; width: 640px; height: 86px; box-shadow: 0 0 60px rgba(227, 6, 19, 0.4); }

/* ===== FLOTA ===== */
.fleet-tab { transition: all 0.3s var(--ease-apple); }
.fleet-tab.active, .fleet-tab:hover { text-shadow: 0 0 20px rgba(227, 6, 19, 0.5); }

/* ===== WHATSAPP flotante con pulso ===== */
.float-whatsapp { animation: gpcPulse 2.6s ease-out infinite; }
@keyframes gpcPulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.55); }
    70% { box-shadow: 0 0 0 18px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

@media (max-width: 768px) {
    .hero-watermark { font-size: 60vw; -webkit-text-stroke-width: 1px; }
    .hero-diagonals span:nth-child(1), .hero-diagonals span:nth-child(2) { display: none; }
    .cta .cta-diagonals { display: none; }
    .service-card::after { font-size: 64px; }
}

/* Legibilidad del badge sobre las diagonales */
.hero-badge { background: rgba(13, 13, 13, 0.88) !important; backdrop-filter: blur(6px); border: 1px solid rgba(227, 6, 19, 0.5); }

/* ===== SEPARADOR TÁCTICO ===== */
.sec-divider { position: relative; z-index: 6; display: flex; align-items: center; gap: 18px; max-width: var(--container-max); margin: 0 auto; padding: 34px 24px; }
.sec-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.55), transparent); }
.sec-divider-dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 10px rgba(227, 6, 19, 0.8); }
.sec-divider-coords { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.42em; color: var(--silver); white-space: nowrap; }

/* ===== MAPA DE RUTAS (hero) ===== */
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.map-street { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.map-route { fill: none; stroke: rgba(227, 6, 19, 0.35); stroke-width: 1.5; stroke-dasharray: 10 14; animation: gpcRoute 2.4s linear infinite; }
@keyframes gpcRoute { to { stroke-dashoffset: -24; } }
.map-node { fill: none; stroke: rgba(227, 6, 19, 0.6); stroke-width: 1.5; animation: gpcNode 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.map-node-d2 { animation-delay: 1s; }
.map-node-d3 { animation-delay: 2s; }
@keyframes gpcNode { 0% { opacity: 1; transform: scale(0.5); } 80% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; transform: scale(2.4); } }
.map-vehicle { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(227, 6, 19, 0.9)); }

/* ===== RADAR (hero, lado derecho) ===== */
.hero-radar { position: absolute; top: 50%; right: -180px; width: 640px; height: 640px; transform: translateY(-50%); z-index: 0; border-radius: 50%; border: 1px solid rgba(227, 6, 19, 0.14); pointer-events: none; }
.hero-radar::before, .hero-radar::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(227, 6, 19, 0.12); }
.hero-radar::before { inset: 18%; }
.hero-radar::after { inset: 36%; border-color: rgba(227, 6, 19, 0.18); }
.hero-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(227, 6, 19, 0.22), transparent 70deg, transparent 360deg); animation: gpcSweep 6s linear infinite; mix-blend-mode: screen; }
@keyframes gpcSweep { to { transform: rotate(360deg); } }

/* ===== FONDOS TÁCTICOS SUTILES ===== */
.statement::before { content: ""; position: absolute; inset: -20% -10%; background: repeating-radial-gradient(circle at 85% 50%, transparent 0 110px, rgba(227, 6, 19, 0.05) 110px 111px); pointer-events: none; }
.technology { position: relative; overflow: hidden; }
.technology::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.012) 5px 6px); pointer-events: none; }
.hero-watermark { -webkit-text-stroke-color: rgba(227, 6, 19, 0.1); }

@media (max-width: 900px) { .hero-radar { display: none; } .sec-divider-coords { letter-spacing: 0.24em; font-size: 10px; } }

/* ===== SUV 3D — despiece por scroll ===== */
.suv3d { position: relative; height: 520vh; background: #0D0D0D; z-index: 5; }
.suv3d-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#suv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.suv3d-header { position: absolute; top: 12vh; left: max(24px, calc((100vw - var(--container-max)) / 2 + 24px)); z-index: 2; max-width: 420px; }
.suv3d-hint { margin-top: 14px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver); }
.suv3d-labels { position: absolute; right: max(24px, calc((100vw - var(--container-max)) / 2 + 24px)); top: 50%; transform: translateY(-50%); z-index: 2; width: min(360px, 34vw); }
.suv3d-label { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%) translateX(24px); opacity: 0; transition: opacity 0.28s ease, transform 0.28s ease; pointer-events: none; border-left: 2px solid var(--gold); padding: 6px 0 6px 22px; }
.suv3d-label.active { opacity: 1; transform: translateY(-50%) translateX(0); transition: opacity 0.55s var(--ease-out) 0.3s, transform 0.55s var(--ease-out) 0.3s; }
.suv3d-label-num { font-family: 'Archivo Black', sans-serif; font-size: 40px; color: transparent; -webkit-text-stroke: 1px rgba(227, 6, 19, 0.75); line-height: 1; display: block; margin-bottom: 10px; }
.suv3d-label h3 { font-family: 'Archivo Black', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; color: var(--white); }
.suv3d-label p { font-size: 14px; line-height: 1.6; color: var(--silver); }
.suv3d-progress { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); width: 2px; height: 70px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.suv3d-progress i { position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: top; box-shadow: 0 0 12px rgba(227, 6, 19, 0.8); }
@media (max-width: 900px) {
    .suv3d { height: 420vh; }
    .suv3d-header { top: 7vh; max-width: 300px; }
    .suv3d-labels { right: 24px; left: 24px; width: auto; top: auto; bottom: 12vh; transform: none; }
    .suv3d-label { transform: translateX(24px); }
    .suv3d-label.active { transform: translateX(0); }
}

/* ===== Línea de anotación (despiece) ===== */
.suv3d-annot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s ease 0.3s; }
.suv3d-annot.show { opacity: 1; }
.suv3d-annot line { stroke: rgba(227, 6, 19, 0.75); stroke-width: 1.2; stroke-dasharray: 5 5; }
.suv3d-annot circle { fill: none; stroke: var(--gold); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(227, 6, 19, 0.9)); }

/* ===== HERO 3D interactivo (flota) ===== */
.suv-hero { position: relative; height: 72vh; min-height: 480px; background: radial-gradient(ellipse at 50% 80%, #141414, #0D0D0D 70%); overflow: hidden; opacity: 0; transition: opacity 0.8s ease; }
.suv-hero.loaded { opacity: 1; }
#suv-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#suv-hero-canvas:active { cursor: grabbing; }
.suv-hero-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: var(--silver); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.suv-hero-hint svg { width: 20px; height: 20px; color: var(--gold); }
.suv-hotspot { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 3; transition: opacity 0.3s ease; }
.suv-hotspot i { position: absolute; top: -13px; left: -13px; width: 26px; height: 26px; border: 1.5px solid var(--gold); border-radius: 50%; background: rgba(13, 13, 13, 0.6); animation: gpcPulse 2.6s ease-out infinite; }
.suv-hotspot span { position: absolute; top: -7px; left: -7px; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 8px; color: var(--white); }
.suv-hotspot.active i { background: var(--gold); }
.suv-hero-spec { position: absolute; top: 50%; right: max(24px, calc((100vw - var(--container-max)) / 2 + 24px)); transform: translateY(-50%) translateX(20px); width: min(340px, 80vw); background: rgba(13, 13, 13, 0.88); backdrop-filter: blur(8px); border: 1px solid rgba(227, 6, 19, 0.5); border-left: 3px solid var(--gold); padding: 24px 26px; opacity: 0; pointer-events: none; transition: all 0.45s var(--ease-out); z-index: 4; }
.suv-hero-spec.show { opacity: 1; transform: translateY(-50%) translateX(0); }
.suv-hero-spec h3 { font-family: 'Archivo Black', sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; color: var(--white); }
.suv-hero-spec p { font-size: 13.5px; line-height: 1.6; color: var(--platinum); }
@media (max-width: 768px) {
    .suv-hero { height: 58vh; min-height: 400px; }
    .suv-hero-spec { top: auto; bottom: 60px; right: 16px; left: 16px; width: auto; transform: translateY(12px); }
    .suv-hero-spec.show { transform: translateY(0); }
    .suv-hero-hint span { font-size: 10px; letter-spacing: 0.08em; }
}
