/* ============================================================
   Audiocare — Hoja de estilos principal
   Diseño: petróleo/teal sereno + coral cálido (una sola nota audaz)
   Accesibilidad: tipografía amplia, alto contraste, áreas táctiles grandes
   ============================================================ */

/* ---------- Tokens de diseño ---------- */
:root {
  /* Marca */
  --petrol-900: #002218;
  --petrol-800: #20351b;
  --petrol-700: #6e611a;
  --petrol-500: #b6b33f;
  --aqua-100: #e9ecd9;
  --aqua-200: #d6dbbe;

  /* Acento cálido (la única nota audaz: CTAs) */
  --coral-600: #b8440d;
  --coral-500: #da5412;
  --coral-100: #f7e2d0;

  /* Neutros */
  --ink: #243124;
  --ink-soft: #4f5446;
  --muted: #8a8a73;
  --line: #e2dcc6;
  --bg: #ede8d3;
  --surface: #ffffff;

  /* Tipografía */
  --font-head: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Escala fluida (cómoda para lectores mayores) */
  --step--1: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-0: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.65rem, 1.4rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.4rem);

  /* Estructura */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(46, 67, 33, 0.06);
  --shadow-md: 0 14px 40px rgba(46, 67, 33, 0.12);
  --shadow-lg: 0 30px 70px rgba(46, 67, 33, 0.18);
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; font-weight: 600; letter-spacing: -0.015em; color: var(--petrol-900); }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Utilidades ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--petrol-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral-500); border-radius: 2px; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 0.7rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; font-size: var(--step-1); line-height: 1.5; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  min-height: 54px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 10px 24px rgba(218, 84, 18, 0.32); }
.btn-primary:hover { background: var(--coral-600); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(218, 84, 18, 0.4); }
.btn-ghost { background: transparent; color: var(--petrol-800); border-color: var(--aqua-200); }
.btn-ghost:hover { background: var(--aqua-100); transform: translateY(-3px); border-color: var(--petrol-500); }
.btn-white { background: #fff; color: var(--petrol-800); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Barra superior de contacto ---------- */
.topbar {
  background: var(--petrol-900); color: #e3e7d3;
  font-size: 0.85rem; letter-spacing: 0.01em;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: center; justify-content: center; padding-block: 0.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; color: #e3e7d3; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: 0.85; }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--petrol-900); letter-spacing: -0.03em; }
.brand-name span { color: var(--petrol-700); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 0.55rem 0.85rem; border-radius: 10px; color: var(--ink-soft);
  transition: color 0.2s, background 0.2s; position: relative;
}
.nav-links a:hover { color: var(--petrol-800); background: var(--aqua-100); }
.nav-links a.active { color: var(--petrol-800); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; background: var(--coral-500); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle { display: none; width: 48px; height: 48px; border: none; background: transparent; border-radius: 12px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--petrol-900); margin: 5px auto; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: linear-gradient(170deg, #faf7ef 0%, #ede8d3 55%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem; background: #fff;
  border: 1px solid var(--aqua-200); padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: var(--petrol-800); box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 9px; height: 9px; background: var(--coral-500); border-radius: 50%; box-shadow: 0 0 0 4px var(--coral-100); }
.hero h1 { font-size: var(--step-4); margin-top: 1.4rem; }
.hero h1 .accent { color: var(--petrol-700); }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.3rem; max-width: 30ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-trust .stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--petrol-900); line-height: 1; }
.hero-trust .stat span { font-size: 0.86rem; color: var(--muted); }

/* Elemento estrella: tarjeta con onda de sonido animada */
.hero-visual { position: relative; }
.wave-card {
  position: relative; background: var(--petrol-900); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); overflow: hidden;
  color: #f3f0e4;
}
.wave-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 80% 0%, rgba(122, 154, 82, 0.45), transparent 55%);
}
.wave-card-inner { position: relative; }
.wave-card h3 { color: #fff; font-size: var(--step-1); }
.wave-card p { color: #cdd8b8; margin-top: 0.5rem; font-size: 0.95rem; }
.equalizer { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin: 1.8rem 0; }
.equalizer .bar {
  flex: 1; background: linear-gradient(var(--petrol-500), var(--coral-500));
  border-radius: 6px; transform-origin: bottom;
  animation: eq 1.6s var(--ease) infinite alternate;
}
.equalizer .bar:nth-child(1) { animation-delay: -0.1s; } .equalizer .bar:nth-child(2) { animation-delay: -0.5s; }
.equalizer .bar:nth-child(3) { animation-delay: -0.9s; } .equalizer .bar:nth-child(4) { animation-delay: -1.3s; }
.equalizer .bar:nth-child(5) { animation-delay: -0.3s; } .equalizer .bar:nth-child(6) { animation-delay: -0.7s; }
.equalizer .bar:nth-child(7) { animation-delay: -1.1s; } .equalizer .bar:nth-child(8) { animation-delay: -0.2s; }
.equalizer .bar:nth-child(9) { animation-delay: -0.6s; } .equalizer .bar:nth-child(10){ animation-delay: -1.0s; }
.equalizer .bar:nth-child(11){ animation-delay: -0.4s; } .equalizer .bar:nth-child(12){ animation-delay: -0.8s; }
@keyframes eq { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.wave-card-foot { display: flex; align-items: center; gap: 0.7rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }
.wave-card-foot .ping { width: 10px; height: 10px; border-radius: 50%; background: #58e08a; position: relative; }
.wave-card-foot .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #58e08a; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

.hero-float {
  position: absolute; left: -22px; bottom: 32px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.75rem;
  max-width: 230px;
}
.hero-float .ic { width: 40px; height: 40px; flex-shrink: 0; background: var(--aqua-100); border-radius: 12px; display: grid; place-items: center; color: var(--petrol-700); }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float strong { display: block; font-family: var(--font-head); font-size: 0.98rem; color: var(--petrol-900); }
.hero-float span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Banda de marcas / confianza ---------- */
.brandband { background: var(--surface); border-block: 1px solid var(--line); }
.brandband .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; padding-block: 1.6rem; }
.brandband p { font-weight: 700; font-family: var(--font-head); color: var(--muted); font-size: 0.92rem; }
.brandband .pill { font-family: var(--font-head); font-weight: 800; color: var(--petrol-700); font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- Tarjetas (servicios / genéricas) ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--aqua-200); }
.card .ic-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--aqua-100), var(--aqua-200)); color: var(--petrol-700); margin-bottom: 1.2rem;
}
.card .ic-badge svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--ink-soft); margin-top: 0.6rem; font-size: 1rem; line-height: 1.55; }
.card .more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-family: var(--font-head); font-weight: 700; color: var(--coral-600); font-size: 0.95rem; }
.card .more svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Sección dividida (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: var(--step-3); }
.split-body p { color: var(--ink-soft); margin-top: 1rem; font-size: var(--step-0); }
.check-list { margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.check-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--aqua-100); color: var(--petrol-700); display: grid; place-items: center; margin-top: 2px; }
.check-list .tick svg { width: 16px; height: 16px; }

/* Marcador de imagen (placeholder hasta cargar fotos reales) */
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--petrol-800), var(--petrol-700)); color: #e6ecd6; padding: 2rem; }
.img-ph svg { width: 64px; height: 64px; opacity: 0.6; margin-bottom: 0.8rem; }
.img-ph small { display: block; font-size: 0.78rem; opacity: 0.65; margin-top: 0.4rem; }

/* ---------- Pasos (proceso) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); counter-reset: s; }
.step { position: relative; padding: 1.8rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num {
  counter-increment: s; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%; background: var(--petrol-800); color: #fff;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.step .num::before { content: counter(s); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Tipos de audífono (RIC/ITE/BTE) ---------- */
.device-card { display: flex; flex-direction: column; }
.device-card .tag { align-self: flex-start; font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--petrol-700); background: var(--aqua-100); padding: 0.35rem 0.7rem; border-radius: 8px; margin-bottom: 1rem; }
.device-card h3 { font-size: var(--step-1); }
.pros-cons { margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.pros-cons li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.pros-cons .p { color: var(--petrol-700); } .pros-cons .c { color: var(--coral-600); }
.pros-cons svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.models { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.models span { font-size: 0.82rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft); padding: 0.3rem 0.7rem; border-radius: 999px; }

/* ---------- CTA grande ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--petrol-900); color: #f3f0e4; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 140% at 100% 0%, rgba(122, 154, 82,0.5), transparent 50%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--step-3); max-width: 18ch; }
.cta-band p { color: #cdd8b8; margin-top: 0.9rem; font-size: var(--step-1); max-width: 42ch; }
.cta-band .hero-actions { margin-top: 2rem; }

/* ---------- Página interior: cabecera ---------- */
.page-hero { background: linear-gradient(170deg, #faf7ef, #ede8d3); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.breadcrumb a:hover { color: var(--petrol-700); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { color: var(--ink-soft); font-size: var(--step-1); margin-top: 1rem; max-width: 52ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.loc-card { display: flex; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.loc-card + .loc-card { margin-top: 1.2rem; }
.loc-card .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--aqua-100); color: var(--petrol-700); display: grid; place-items: center; }
.loc-card h3 { font-size: 1.2rem; } .loc-card p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.3rem; }
.contact-channels { display: grid; gap: 1rem; margin-top: 1.5rem; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.channel .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.channel.wa .ic { background: #25d366; } .channel.tel .ic { background: var(--petrol-700); } .channel.mail .ic { background: var(--coral-500); }
.channel strong { display: block; font-family: var(--font-head); color: var(--petrol-900); }
.channel span { font-size: 0.85rem; color: var(--muted); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; color: var(--petrol-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol-500); box-shadow: 0 0 0 4px var(--aqua-100); }
.form .btn { width: 100%; margin-top: 0.5rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); color: var(--petrol-900); }
.faq-q .chev { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; color: var(--petrol-700); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding-bottom: 1.4rem; color: var(--ink-soft); max-width: 70ch; }
details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-900); color: #ccd4bb; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--petrol-500); }
.footer-about { margin-top: 1rem; font-size: 0.95rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a, .footer-col li { color: #ccd4bb; font-size: 0.95rem; padding-block: 0.3rem; display: block; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; color: #ccd4bb; }
.footer-col .row svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; opacity: 0.8; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: 0.85rem; color: #9aa384; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2s ease-out infinite; }

/* ---------- Animaciones de aparición ----------
   El contenido es visible por defecto. Solo se oculta para animar
   cuando JavaScript está disponible (clase .js en <html>), de modo
   que el sitio se vea completo aunque el JS no se ejecute. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--line);
  }
  .site-header.open .nav-links a { padding: 0.85rem 1rem; font-size: 1.1rem; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: space-between; }
}
@media (max-width: 540px) {
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.2rem; }
  .topbar { display: none; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@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; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Logo de marca oficial ---------- */
.brand { gap: 0; }
.brand-mark { display: none; }              /* oculta la marca SVG provisional */
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo--footer { height: 30px; }
@media (max-width: 760px) { .brand-logo { height: 32px; } }

/* ---------- Acentos elegantes en serif itálica (Instrument Serif) ---------- */
.hero h1 .accent,
.cta-band h2 .accent,
.page-hero h1 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--petrol-700);
}
/* Instrument Serif es alta y estrecha: leve ajuste óptico junto al sans */
.hero h1 .accent { font-size: 1.06em; }

/* ---------- Audiograma (elemento estrella del hero) ---------- */
.audiogram { width: 100%; height: auto; display: block; margin: 1.6rem 0 1.1rem; }
.audiogram .ag-grid line { stroke: rgba(237, 232, 211, 0.13); stroke-width: 1; }
.audiogram .ag-label text { fill: #aebb98; font-family: var(--font-body); font-size: 12px; }
.audiogram .ag-unit { fill: #8fa078; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.05em; }
.audiogram .ag-plot { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.audiogram .ag-plot--r { stroke: #e0dc3c; }
.audiogram .ag-plot--l { stroke: #f0833f; }
.audiogram .ag-mark--r circle { fill: #002218; stroke: #e0dc3c; stroke-width: 2.5; }
.audiogram .ag-mark--l path { stroke: #f0833f; stroke-width: 2.5; stroke-linecap: round; fill: none; }

.audiogram-legend { display: flex; gap: 1.4rem; font-size: 0.82rem; color: #cdd8b8; }
.ag-lg { display: inline-flex; align-items: center; gap: 0.45rem; }
.ag-lg::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.ag-lg--r::before { background: #e0dc3c; }
.ag-lg--l::before { background: #f0833f; }

/* Animación de trazado: la línea se "dibuja" y los puntos aparecen */
.js .audiogram .ag-plot { stroke-dasharray: 620; stroke-dashoffset: 620; }
.js .audiogram .ag-mark { opacity: 0; }
.js .hero-visual.in .audiogram .ag-plot { animation: agDraw 1.5s var(--ease) forwards; }
.js .hero-visual.in .audiogram .ag-plot--l { animation-delay: 0.3s; }
.js .hero-visual.in .audiogram .ag-mark { animation: agFade 0.5s ease forwards; animation-delay: 1.2s; }
.js .hero-visual.in .audiogram .ag-mark--l { animation-delay: 1.45s; }
@keyframes agDraw { to { stroke-dashoffset: 0; } }
@keyframes agFade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .audiogram .ag-plot { stroke-dashoffset: 0 !important; }
  .audiogram .ag-mark { opacity: 1 !important; }
}

/* ---------- Impresión ---------- */
@media print { .wa-float, .site-header, .topbar { display: none; } }

/* ---------- Íconos sociales (footer) ---------- */
.social-row { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.social-ic svg { width: 21px; height: 21px; }
.social-ic:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.28); }
.social-ic.wa { background: #25d366; }
.social-ic.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-ic.fb { background: #1877f2; }
