/* ==========================================================================
   BuyCarSafe — Design system
   Confianza automotriz: azul noche + verde BuyCarSafe + naranja cálido
   ========================================================================== */

:root {
  --ink-900: #0a1424;
  --ink-800: #0f1e35;
  --ink-700: #16304f;
  --ink-600: #24466d;
  --ink-400: #5b7595;
  --ink-200: #b9c8dc;

  --paper-0: #ffffff;
  --paper-50: #f6f8fb;
  --paper-100: #eef2f7;
  --paper-200: #dde5ee;

  --brand-teal: #1c6b3d;
  --brand-teal-dark: #124a28;
  --brand-teal-light: #e7f2ea;
  --brand-amber: #ff843d;
  --brand-amber-dark: #b95703;
  --brand-amber-light: #fff1e2;
  --brand-grey: #3a3b42;
  --brand-grey-dark: #24252a;
  --brand-grey-light: #eceef0;

  --success: #1fa971;
  --danger: #e5484d;

  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 20, 36, 0.06), 0 1px 1px rgba(10, 20, 36, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 20, 36, 0.18), 0 2px 8px -2px rgba(10, 20, 36, 0.08);
  --shadow-lg: 0 24px 56px -16px rgba(10, 20, 36, 0.28), 0 8px 20px -8px rgba(10, 20, 36, 0.12);
  --shadow-glow: 0 0 0 1px rgba(28, 107, 61, 0.25), 0 8px 30px -6px rgba(28, 107, 61, 0.35);

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --bg: var(--paper-50);
  --surface: var(--paper-0);
  --surface-alt: var(--paper-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-soft: var(--ink-400);
  --border: var(--paper-200);
  --nav-bg: rgba(255, 255, 255, 0.78);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d18;
    --surface: #0e1a2d;
    --surface-alt: #112238;
    --text: #eef3f9;
    --text-muted: #a9bbd1;
    --text-soft: #7a8ea8;
    --border: #1c2e46;
    --nav-bg: rgba(7, 13, 24, 0.72);
    --brand-teal-light: #12271a;
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, 0.6), 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-teal-dark);
  background: var(--brand-teal-light);
  padding: 6px 14px; border-radius: var(--radius-full);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #5fe6d6; } }
.eyebrow--amber { color: var(--brand-amber-dark); background: var(--brand-amber-light); }
@media (prefers-color-scheme: dark) { .eyebrow--amber { color: #ffb787; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; }

section { padding-block: clamp(56px, 8vw, 108px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.98rem; font-family: var(--font-display);
  padding: 14px 26px; border-radius: var(--radius-full); border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--brand-teal); color: #05221e; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-teal-dark); color: #fff; }
.btn-ghost { background: rgba(255,132,61,0.14); color: #ffb787; border-color: rgba(255,132,61,0.45); }
.btn-ghost:hover { background: var(--brand-amber); color: #3a1400; border-color: var(--brand-amber); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand-teal); color: var(--brand-teal-dark); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.brand-logo { height: 42px; width: auto; display: block; flex-shrink: 0; }
.footer-logo { height: 34px; width: auto; display: block; flex-shrink: 0; }
.footer-seal { height: 28px; width: auto; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.95rem;
  color: var(--text-muted); transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-alt); color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; z-index: 20; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; pointer-events: none; }

.nav-mobile-cta { display: none; }
@media (max-width: 900px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 76px); height: calc(100dvh - 76px);
    z-index: 5; background: var(--surface); flex-direction: column;
    align-items: stretch; padding: 20px; gap: 6px; transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  body.nav-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-mobile-cta .btn { padding: 14px 26px; font-size: 0.98rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(15,184,166,0.35), transparent 60%),
              linear-gradient(180deg, rgba(10,20,36,0.92) 0%, rgba(15,30,53,0.88) 55%, rgba(22,48,79,0.85) 100%),
              url('/assets/img/hero-atardecer.jpg');
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center 35%;
  background-repeat: no-repeat;
  background-attachment: scroll, scroll, fixed;
  color: #fff;
  padding-top: clamp(44px, 6.5vw, 92px);
  padding-bottom: clamp(72px, 11vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 0%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { background: rgba(15,184,166,0.16); color: #6dead9; }
.hero h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem); margin-top: 18px; color: #fff; }
.hero h1 .accent { color: var(--brand-amber); font-weight: 800; font-size: 1.2em; }
.hero h1 .lead-word { font-size: 0.86em; font-weight: 600; }
.hero p.lead { margin-top: 20px; font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.hero-badge svg { width: 20px; height: 20px; color: var(--brand-amber); }

.hero-visual { position: relative; }
.hero-card {
  position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(255,132,61,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card-icon svg { width: 22px; height: 22px; color: var(--brand-amber); }
.hero-card-row strong { display: block; font-size: 0.95rem; color: #fff; }
.hero-card-row span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-float {
  position: absolute; right: -18px; bottom: -22px; background: var(--brand-amber); color: #3a1400;
  border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-lg); font-family: var(--font-display);
  display: flex; align-items: center; gap: 12px;
}
.hero-float svg { width: 26px; height: 26px; }
.hero-float strong { font-size: 1.18rem; display: block; }
.hero-float span { font-size: 0.88rem; opacity: 0.75; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero { background-attachment: scroll, scroll, scroll; }
  .hero-float { position: static; margin-top: 18px; right: auto; bottom: auto; }
}

/* ---------- Marquee / marcas ---------- */
.marcas { padding-block: 40px; border-bottom: 1px solid var(--border); }
.marcas p { text-align: center; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--text-soft); margin-bottom: 22px; }
.marcas-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.marcas-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-soft); opacity: 0.75; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-teal); }
.card--photo { padding: 0; overflow: hidden; }
.card-photo { display: block; width: 100%; height: 200px; object-fit: cover; object-position: center 30%; }
.card-body { padding: 32px; }
img[src*="equipo-analisis"] { object-position: center top; }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--brand-amber-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; color: var(--brand-amber-dark); }
.card-icon--grey { background: var(--brand-grey-light); }
.card-icon--grey svg { color: var(--brand-grey-dark); }
.card-icon--amber { background: var(--brand-amber-light); }
.card-icon--amber svg { color: var(--brand-amber-dark); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card p + p { margin-top: 10px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--brand-teal-dark); font-size: 0.92rem; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.step-number {
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: var(--brand-teal-dark); background: var(--brand-teal-light);
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Diferenciadores (light bg alt) ---------- */
.section-alt { background: var(--surface-alt); }

.feature-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--brand-amber-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; color: var(--brand-amber-dark); }
.feature-row h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-row p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Testimonios ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.testimonial-quote { color: var(--text); font-size: 1.02rem; line-height: 1.65; flex-grow: 1; }
.testimonial-quote::before { content: "\201C"; color: var(--brand-amber); font-family: var(--font-display); font-size: 2rem; line-height: 0; display: inline-block; transform: translateY(10px); margin-right: 2px; }
.testimonial-quote::after { content: "\201D"; color: var(--brand-amber); font-family: var(--font-display); font-size: 2rem; line-height: 0; display: inline-block; transform: translateY(10px); margin-left: 2px; }
.testimonial-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-800); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.testimonial-foot strong { display: block; font-size: 0.95rem; }
.testimonial-foot span { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- CTA banda ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink-900), var(--ink-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px 240px at 90% 10%, rgba(15,184,166,0.35), transparent 70%),
              radial-gradient(420px 220px at 8% 100%, rgba(255,132,61,0.28), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); max-width: 34ch; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 10px; max-width: 50ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Precios (placeholder) ---------- */
.placeholder-note {
  display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border: 1px dashed var(--brand-amber);
  border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 32px; color: #7a5410;
}
@media (prefers-color-scheme: dark) { .placeholder-note { background: #2a2110; color: #f2cd8a; } }
.placeholder-note svg { width: 22px; height: 22px; color: var(--brand-amber-dark); flex-shrink: 0; margin-top: 2px; }
.placeholder-note strong { display: block; margin-bottom: 4px; font-family: var(--font-display); }

.price-card { position: relative; text-align: center; }
.price-card.featured { border-color: var(--brand-teal); box-shadow: var(--shadow-glow); }
.price-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand-teal); color: #04231f; font-size: 0.75rem; font-weight: 800; padding: 5px 14px; border-radius: var(--radius-full); letter-spacing: 0.04em; }
.price-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin: 14px 0 4px; }
.price-value sup { font-size: 1rem; font-weight: 700; margin-right: 2px; }
.price-value small { font-size: 0.95rem; font-weight: 600; color: var(--text-soft); }
.price-list { text-align: left; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-muted); }
.price-list svg { width: 18px; height: 18px; color: var(--brand-teal-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- Formulario contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: flex-start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brand-amber-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon svg { width: 21px; height: 21px; color: var(--brand-amber-dark); }
.contact-info-item .icon--amber { background: var(--brand-amber-light); }
.contact-info-item .icon--amber svg { color: var(--brand-amber-dark); }
.contact-info-item .icon--grey { background: var(--brand-grey-light); }
.contact-info-item .icon--grey svg { color: var(--brand-grey-dark); }
.contact-info-item .icon--success { background: #e5f7ee; }
.contact-info-item .icon--success svg { color: var(--success); }
@media (prefers-color-scheme: dark) { .contact-info-item .icon--success { background: #0e2a1f; } }
.contact-info-item strong { display: block; font-size: 0.92rem; color: var(--text-soft); font-weight: 600; }
.contact-info-item a, .contact-info-item p { font-size: 1.02rem; font-weight: 600; color: var(--text); }
.hours-table { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.hours-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.94rem; }
.hours-row span:first-child { color: var(--text-muted); }
.hours-row span:last-child { font-weight: 700; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field .req { color: var(--brand-teal-dark); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-teal); box-shadow: 0 0 0 4px rgba(28,107,61,0.15); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 22px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand-teal); flex-shrink: 0; }
.form-status { margin-top: 16px; font-size: 0.92rem; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f8ef; color: #10704a; display: block; }
.form-status.error { background: #fdeceb; color: #b23a3d; display: block; }
@media (prefers-color-scheme: dark) {
  .form-status.ok { background: #0e2a1f; color: #6fdba3; }
  .form-status.error { background: #2c1414; color: #f3a2a4; }
}

/* ---------- Página interior genérica (hero secundario) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff; padding-block: clamp(56px, 8vw, 96px);
}
.page-hero .eyebrow { background: rgba(15,184,166,0.16); color: #6dead9; }
.page-hero h1 { color: #fff; margin-top: 16px; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); }
.page-hero p { margin-top: 16px; color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 62ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Servicio detalle ---------- */
.service-detail { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-block: 44px; border-bottom: 1px solid var(--border); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail .icon-lg { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--brand-amber-light); display: flex; align-items: center; justify-content: center; }
.service-detail .icon-lg svg { width: 34px; height: 34px; color: var(--brand-amber-dark); }
.service-detail .icon-lg--amber { background: var(--brand-amber-light); }
.service-detail .icon-lg--amber svg { color: var(--brand-amber-dark); }
.service-detail .icon-lg--grey { background: var(--brand-grey-light); }
.service-detail .icon-lg--grey svg { color: var(--brand-grey-dark); }
.service-detail h2 { font-size: 1.5rem; margin-bottom: 14px; }
.service-detail p { color: var(--text-muted); margin-bottom: 12px; }
.service-detail ul { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 640px) { .service-detail { grid-template-columns: 1fr; } .service-detail ul { grid-template-columns: 1fr; } }
.service-detail li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.service-detail li svg { width: 18px; height: 18px; color: var(--brand-teal-dark); flex-shrink: 0; margin-top: 2px; }
.service-detail li strong { color: var(--text); }
.service-photos { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 14px; margin-top: 24px; }
.service-photos.two-up { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .service-photos.two-up { grid-template-columns: 1fr; } }
.service-photos img { display: block; width: 100%; max-width: 640px; height: 260px; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.service-photos.two-up img { max-width: none; }
.service-photos img[src*="equipo-analisis"] { object-position: center top; }
.service-photos img[src*="servicios-diag-b"] { object-position: center 60%; }

/* ---------- Quiénes somos ---------- */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
@media (max-width: 780px) { .founder { grid-template-columns: 1fr; } }
.founder-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--ink-800), var(--ink-600));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.founder-photo svg { width: 46%; height: 46%; color: rgba(255,255,255,0.85); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-badge { position: absolute; bottom: 14px; left: 14px; right: 14px; background: rgba(10,20,36,0.55); backdrop-filter: blur(4px); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; }
.pull-quote { border-left: 4px solid var(--brand-amber); padding-left: 24px; margin-block: 40px; }
.pull-quote p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.pull-quote span { display: block; margin-top: 14px; font-size: 0.92rem; color: var(--text-soft); font-weight: 600; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.timeline-item { display: flex; gap: 20px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-teal); flex-shrink: 0; margin-top: 6px; }
.timeline-line { width: 2px; flex-grow: 1; background: var(--border); margin: 4px 0; }
.timeline-item:last-child .timeline-line { display: none; }
.timeline-content { padding-bottom: 34px; }
.timeline-content strong { display: block; font-family: var(--font-display); color: var(--brand-teal-dark); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.timeline-item:last-child .timeline-dot { background: var(--brand-amber); }
.timeline-item:last-child .timeline-content strong { color: var(--brand-amber-dark); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.25rem; margin-top: 40px; margin-bottom: 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); margin-bottom: 14px; }
.legal-content ul { margin: 14px 0 14px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { color: var(--text-muted); padding-left: 22px; position: relative; }
.legal-content li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); }
.legal-fact-box { background: var(--surface-alt); border-radius: var(--radius-md); padding: 22px 24px; margin-bottom: 24px; }
.legal-fact-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.legal-fact-box dt { color: var(--text-soft); font-weight: 600; font-size: 0.92rem; }
.legal-fact-box dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.legal-fact-box .pending { color: var(--brand-amber-dark); font-style: italic; font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: var(--ink-900); color: rgba(255,255,255,0.65); padding-block: 64px 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
footer p.tagline { font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.84rem; }
.footer-bottom-left { display: flex; align-items: center; gap: 10px; }
.footer-bottom-right { display: flex; align-items: center; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #1fa971; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
