/* ============================================================
   SERFICOP — Hoja de estilos compartida (páginas internas)
   Mismo sistema de diseño del home: tokens, navbar, footer,
   componentes y utilidades reutilizables.
   ============================================================ */

:root {
  --yellow: #F5A623;
  --yellow-light: #FBEFD6;
  --yellow-dark: #B8781A;
  --navy: #1B2A4A;
  --navy-light: #2D4070;
  --white: #FFFFFF;
  --paper: #FCFAF6;
  --gray-light: #F5F2EC;
  --gray-mid: #E7E0D5;
  --gray-text: #6B6560;
  --text-dark: #22201C;
  --shadow-sm: 0 1px 2px rgba(20,22,30,0.04), 0 2px 6px rgba(20,22,30,0.05);
  --shadow-md: 0 8px 28px rgba(20,22,30,0.08);
  --shadow-lg: 0 20px 56px rgba(20,22,30,0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--paper); color: var(--text-dark); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
.deco, .hero-orb, .hero-geo, .hero-line, #heroCanvas { display: none !important; }
img { max-width: 100%; display: block; }
.icon { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== Accesibilidad ===== */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .vf-chip:focus-visible, .tipo-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-gray { background: var(--gray-light); }
.section-dark { background: var(--navy); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.72); }
.section-dark .section-label { color: #FFC861; }
/* Texto legible en secciones oscuras (parrafos, titulos, listas) */
.section-dark p { color: rgba(255,255,255,0.72); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark li { color: rgba(255,255,255,0.75); }
.section-dark .check-list li { color: rgba(255,255,255,0.85); }
.section-dark .split-panel { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section-dark .split-panel h3 { color: #fff; }

h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.015em; color: var(--navy); font-weight: 700; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto; }
.section-label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--yellow-dark); margin-bottom: 14px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.section-sub { font-size: 1.05rem; color: var(--gray-text); line-height: 1.7; }
.section-head .section-sub { max-width: 620px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 30px; border-radius: 6px; font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; transition: var(--transition); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,166,35,0.35); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-lg { font-size: 1rem; padding: 16px 38px; }
/* Outline sobre fondos oscuros */
.on-dark .btn-outline, .btn-outline-light { color: #fff; border: 2px solid rgba(255,255,255,0.45); background: transparent; }
.on-dark .btn-outline:hover, .btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EBF5A; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }

/* ===== SCROLL ANIMATIONS ===== */
.anim-fade { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-fade.visible { opacity: 1; transform: none; }
.anim-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-left.visible { opacity: 1; transform: none; }
.anim-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-right.visible { opacity: 1; transform: none; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #FFFFFF; padding: 0 24px; height: 70px; display: flex; align-items: center; box-shadow: 0 2px 16px rgba(0,0,0,0.10); }
.nav-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; }
.nav-logo-text .y { color: #D4891A; font-weight: 900; }
.nav-logo-text .n { color: #1B2A4A; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; color: #1B2A4A; transition: var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--gray-light); color: var(--yellow-dark); }
/* Dropdown servicios */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: '\25BE'; font-size: 0.65rem; margin-left: 6px; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; min-width: 250px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); border-top: 3px solid var(--yellow); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.nav-dropdown-menu a i { color: var(--yellow-dark); width: 18px; text-align: center; }
.nav-dropdown-menu a:hover { background: var(--yellow-light); color: var(--yellow-dark); }
.nav-cta { background: var(--yellow); color: var(--navy); padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: var(--transition); white-space: nowrap; }
.nav-cta:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,35,0.3); }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; border-radius: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); display: block; }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 16px 24px 24px; box-shadow: var(--shadow-md); z-index: 999; border-top: 3px solid var(--yellow); max-height: calc(100vh - 70px); overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gray-mid); }
.mobile-menu .mob-sub a { padding-left: 16px; font-size: 0.9rem; color: var(--gray-text); }
.mobile-menu .mob-cta { display: block; margin-top: 16px; background: var(--yellow); color: var(--navy); text-align: center; padding: 14px; border-radius: 8px; font-weight: 700; border: none; }

/* ===== PAGE HERO (interno) ===== */
.page-hero { position: relative; background: linear-gradient(135deg, #0d1b35 0%, #1B2A4A 55%, #0f2040 100%); color: #fff; padding: 130px 0 80px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; }
.page-hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.page-hero-orb.a { width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,166,35,0.16) 0%, transparent 70%); top: -160px; right: -120px; animation: floatY 12s ease-in-out infinite; }
.page-hero-orb.b { width: 360px; height: 360px; background: radial-gradient(circle, rgba(45,64,112,0.55) 0%, transparent 70%); bottom: -140px; left: -100px; animation: floatY 15s ease-in-out infinite reverse; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb i { font-size: 0.6rem; }
.page-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,0.15); color: #FFC861; border: 1px solid rgba(245,166,35,0.3); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 900; color: #fff; line-height: 1.12; margin-bottom: 18px; }
.page-hero h1 .accent { color: var(--yellow); }
.page-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.page-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.88); }
.page-hero-badge i { color: var(--yellow); }
/* Tarjeta destacada del hero */
.hero-panel { background: var(--yellow); border-radius: 24px; padding: 30px 26px; position: relative; overflow: hidden; }
.hero-panel::before { content: ''; position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,0.12); border-radius: 50%; top: -56px; right: -56px; }
.hero-panel-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px 26px; position: relative; z-index: 1; border-top: 4px solid var(--yellow); }
.hero-panel-photo { margin: -24px -26px 18px; height: 180px; overflow: hidden; }
.hero-panel-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: linear-gradient(180deg, #FCFAF6 0%, #E7E0D5 100%); display: block; }
.hero-panel-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--yellow-dark); margin-bottom: 10px; }
.hero-panel-card h3, .hero-panel-card .hero-panel-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.hero-panel-list { display: flex; flex-direction: column; gap: 10px; }
.hero-panel-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.hero-panel-list li i { color: var(--yellow-dark); margin-top: 3px; }

/* ===== FEATURE / BENEFIT GRID ===== */
.why-visual { border-radius: 28px; overflow: hidden; margin: 32px auto 0; max-width: 900px; height: 280px; }
.why-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: linear-gradient(180deg, #FCFAF6 0%, #E7E0D5 100%); display: block; }
@media (max-width: 560px) { .why-visual { height: 190px; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 26px; transition: var(--transition); border-left: 4px solid transparent; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-left-color: var(--yellow); }
.feature-icon { width: 56px; height: 56px; background: var(--yellow-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-icon i { font-size: 1.5rem; color: var(--yellow-dark); }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--gray-text); line-height: 1.65; }
/* En secciones oscuras */
.section-dark .feature-card { background: rgba(255,255,255,0.04); border-left-color: transparent; }
.section-dark .feature-card:hover { background: rgba(255,255,255,0.07); }
.section-dark .feature-card h3 { color: #fff; }
.section-dark .feature-card p { color: rgba(255,255,255,0.65); }
.section-dark .feature-icon { background: rgba(245,166,35,0.16); }
.section-dark .feature-icon i { color: var(--yellow); }

/* ===== SPLIT (texto + visual / lista) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-panel { background: var(--gray-light); border: 1px solid var(--gray-mid); border-radius: var(--radius-lg); padding: 32px; }
.section-dark .split-panel { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* ===== ARTICULO / BLOG (tipografia de lectura larga) ===== */
article .lede { font-size: 1.18rem; line-height: 1.75; color: var(--text-dark); font-weight: 500; margin-bottom: 8px; }
article h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 52px 0 18px; padding-top: 32px; border-top: 1px solid var(--gray-mid); }
article h2:first-of-type { margin-top: 36px; padding-top: 0; border-top: none; }
article h3 { font-size: 1.12rem; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
article h3 .icon { color: var(--yellow-dark); font-size: 1.05rem; flex-shrink: 0; }
article > p { color: var(--gray-text); line-height: 1.75; margin-bottom: 6px; max-width: 68ch; }
article strong { color: var(--navy); }
article ul:not(.check-list) { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 12px; }
article ul:not(.check-list) li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-text); line-height: 1.65; font-size: 0.96rem; }
article ul:not(.check-list) li .icon { color: var(--yellow-dark); flex-shrink: 0; margin-top: 3px; }
article .check-list { margin: 14px 0 22px; }
@media (max-width: 480px) {
  article h2 { margin-top: 40px; padding-top: 24px; }
}

/* ===== CHECK LIST (requisitos / incluye) ===== */
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-dark); line-height: 1.55; }
.check-list li .icon { color: #22C55E; margin-top: 3px; flex-shrink: 0; }
.check-list li i { color: #22C55E; margin-top: 4px; flex-shrink: 0; }
.section-dark .check-list li { color: rgba(255,255,255,0.82); }
/* Variante en dos columnas dentro de tarjeta */
.req-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; border-top: 4px solid var(--yellow); }
.req-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.req-card h3 i { color: var(--yellow-dark); }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }

/* ===== VEHICLE CARDS ===== */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.vehicle-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.vehicle-thumb { height: 180px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.vehicle-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: linear-gradient(180deg, #FCFAF6 0%, #E7E0D5 100%); }
.vehicle-thumb .placeholder { color: var(--gray-mid); font-size: 3.4rem; }
.vehicle-tag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--yellow-dark); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.vehicle-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.vehicle-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.vehicle-body .ref { font-size: 0.82rem; color: var(--gray-text); margin-bottom: 16px; }
.vehicle-body .vehicle-cta { margin-top: auto; }
.vehicle-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 0.88rem; padding: 11px; border-radius: 8px; transition: var(--transition); }
.vehicle-cta:hover { background: var(--yellow-dark); }

/* ===== PROCESS STEPS (horizontal) ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-step { text-align: center; position: relative; }
.process-num { width: 54px; height: 54px; margin: 0 auto 18px; background: transparent; color: var(--yellow-dark); border: 1.5px solid var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; box-shadow: none; }
.process-step h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.process-step p { font-size: 0.86rem; color: var(--gray-text); line-height: 1.6; }
.section-dark .process-num { box-shadow: 0 0 0 8px rgba(245,166,35,0.18); }
.section-dark .process-step h3 { color: #fff; }
.section-dark .process-step p { color: rgba(255,255,255,0.65); }

/* ===== STAT STRIP ===== */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .num { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -0.02em; }
.stat-strip .num .suf { color: var(--yellow); }
.stat-strip .lbl { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 8px; }
/* Variante de 3 columnas (en vez de estilo inline, que bloqueaba el colapso responsive) */
.stat-strip-3 { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 0 auto; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.section-gray .faq-item { background: var(--white); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--navy); user-select: none; gap: 16px; }
.faq-question:hover { background: var(--yellow-light); }
.faq-arrow { width: 28px; height: 28px; min-width: 28px; background: var(--yellow-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--yellow-dark); font-size: 0.85rem; transition: transform 0.3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--yellow); color: var(--navy); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--gray-text); line-height: 1.75; }
.faq-item.open .faq-answer { max-height: 420px; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--yellow) 0%, #ffbf52 100%); border-radius: var(--radius-lg); padding: 48px 44px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 260px; height: 260px; background: rgba(255,255,255,0.14); border-radius: 50%; top: -100px; right: -60px; }
.cta-band::after { content: ''; position: absolute; width: 160px; height: 160px; background: rgba(27,42,74,0.07); border-radius: 50%; bottom: -70px; left: -40px; }
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.cta-band p { font-size: 1.02rem; color: rgba(27,42,74,0.8); max-width: 560px; margin: 0 auto 26px; line-height: 1.6; }
.cta-band .btn-navy { background: var(--navy); color: #fff; }
.cta-band .btn-navy:hover { background: #0f1d36; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,42,74,0.3); }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 28px; position: relative; overflow: hidden; }
footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .f-logo img { height: 48px; }
.footer-brand .f-logo-text { font-family: var(--font-heading); font-size: 1.3rem; }
.footer-brand .f-logo-text .y { color: var(--yellow); font-weight: 900; }
.footer-brand .f-logo-text .n { color: var(--white); font-weight: 900; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,166,35,0.18); border: 1px solid rgba(245,166,35,0.35); border-radius: 20px; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; color: #FFC861; margin-top: 12px; }
footer h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; }
footer ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
footer ul li a:hover { color: var(--yellow); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.875rem; }
.footer-contact-item i { color: var(--yellow); font-size: 0.9rem; width: 16px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.social-row { display: flex; gap: 12px; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); }
.social-btn:hover { background: var(--yellow); color: var(--navy); }
.antifraud { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.2); border-radius: 8px; padding: 12px 16px; margin-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.6); display: flex; align-items: flex-start; gap: 10px; }
.antifraud i { color: var(--yellow); margin-top: 2px; flex-shrink: 0; }

/* ===== DECORACIONES ===== */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-ring { border-radius: 50%; border: 2px solid var(--yellow); opacity: 0.08; animation: spinSlow 20s linear infinite; }
.deco-dot { border-radius: 50%; background: var(--yellow); opacity: 0.12; animation: floatY 6s ease-in-out infinite; }
.deco-square { border: 2px solid var(--yellow); border-radius: 6px; opacity: 0.07; animation: floatY 8s ease-in-out infinite; }
.deco-ring.light { border-color: #fff; opacity: 0.05; }
.deco-dot.light { background: #fff; opacity: 0.07; }
.deco-square.light { border-color: #fff; opacity: 0.05; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(6deg); } }

/* ===== FLOATING WHATSAPP ===== */
.fab-wa { position: fixed; bottom: 28px; right: 28px; z-index: 990; background: #25D366; color: var(--white); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,0.45); animation: pulse-wa 2.5s infinite; transition: transform 0.3s; }
.fab-wa:hover { transform: scale(1.1); }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.1); } }

/* ===== BARRA FIJA DE CONTACTO (movil) ===== */
.contact-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--white); border-top: 1px solid var(--gray-mid); box-shadow: 0 -6px 24px rgba(20,22,30,0.10); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
.contact-bar-inner { display: flex; gap: 10px; }
.contact-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.contact-bar .cb-wa { background: #25D366; color: var(--white); }
.contact-bar .cb-quote { background: var(--yellow); color: var(--navy); }
.mobile-menu.open ~ .contact-bar { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 110px 0 60px; }
  .page-hero-btns { flex-direction: column; }
  .page-hero-btns .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 40px 24px; }
  .social-btn { width: 44px; height: 44px; }
  .deco-ring { display: none; }
  /* Barra fija de contacto: reemplaza al boton flotante en movil */
  body { padding-bottom: 68px; }
  .fab-wa { display: none; }
  .contact-bar { display: flex; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2rem); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ===== RENDIMIENTO: menos animacion continua en celulares ===== */
@media (max-width: 768px) {
  .page-hero-orb.a, .page-hero-orb.b { animation: none; }
  .deco-dot, .deco-square { animation: none; }
}
/* ===== Accesibilidad: respeta "reducir movimiento" ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .page-hero-orb, .deco, .fab-wa { animation: none !important; }
  .anim-fade, .anim-left, .anim-right { opacity: 1 !important; transform: none !important; }
}

/* ===== Tabla comparativa (recursos / blog) ===== */
.comparison-table { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 1px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin: 24px 0; background: #fff; }
.comp-header { display: contents; }
.comp-header > div { background: var(--navy); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 0.92rem; padding: 15px 16px; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.comp-header > div:first-child { background: #0f1d36; }
.comp-header .icon { color: var(--yellow); }
.comp-row { display: contents; }
.comp-row > div { padding: 14px 16px; font-size: 0.9rem; color: var(--gray-text); line-height: 1.55; border-top: 1px solid var(--gray-mid); background: #fff; }
.comp-row > div:first-child { font-weight: 700; color: var(--navy); background: var(--gray-light); }
.comp-row .icon { color: var(--yellow-dark); margin-right: 6px; }
.comp-row .comp-na { color: #B0451A; }
@media (max-width: 600px) {
  .comparison-table { grid-template-columns: 1fr; }
  .comp-header { display: none; }
  .comp-row > div { border-top: none; }
  .comp-row > div:first-child { border-top: 3px solid var(--yellow); font-size: 0.95rem; padding-bottom: 6px; }
  .comp-row > div:not(:first-child)::before { content: attr(data-label); display: block; font-weight: 800; color: var(--navy); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
  .comp-row > div:nth-child(3) { padding-bottom: 16px; }
}
