/* ==========================================================================
   Agente: dev-code — modelo DeepSeek V4.1 Flash
   Proyecto: DS. Derecho Sanitario — Abogados de la Salud
   Archivo: css/styles.css
   Enfoque: mobile-first, sin frameworks. Paleta fija:
   #0D1B2A (navy) · #0F766E (teal) · #C5A059 (gold) · #F8FAFC (surface) · #E2E8F0 (line)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta */
  --navy: #0D1B2A;
  --navy-700: #16283b;
  --navy-900: #08121d;
  --teal: #0F766E;
  --teal-600: #0d6a63;
  --teal-soft: #e2f2f0;
  --gold: #C5A059;
  --gold-soft: #f6eddc;
  --surface: #F8FAFC;
  --line: #E2E8F0;

  --white: #ffffff;
  --ink: #0D1B2A;
  --muted: #4b5a6b;
  --muted-2: #64748b;

  /* Tipografía */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espaciado / layout */
  --container: 1280px;
  --gutter: 1.25rem;
  --radius: 6px;
  --radius-lg: 10px;
  --section-y: 4rem;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow-md: 0 8px 24px -12px rgba(13, 27, 42, .22);
  --shadow-lg: 0 22px 48px -24px rgba(13, 27, 42, .38);

  /* Movimiento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 4.5rem;
}

@media (min-width: 640px) { :root { --gutter: 1.75rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --section-y: 5.5rem; } }

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

* { margin: 0; }

html {
  -webkit-tap-highlight-color: transparent;   /* sin destello gris al tocar */
  -webkit-text-size-adjust: 100%;             /* sin inflado de fuente en landscape */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Campos a 16px: evita el zoom automático de iOS al enfocar */
input, textarea, select { font-size: 1rem; }

/* Respuesta a la presión (no al click) y sin selección de texto en controles */
button, a, [role="button"], .btn, .fab-wa, .menu-toggle, summary {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.3rem); }

p { max-width: 68ch; }

::selection { background: var(--teal); color: var(--white); }

/* --------------------------------------------------------------------------
   3. Utilidades
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 62rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--solid { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }

.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--line);
  color: var(--muted);
}
.badge--gold { background: var(--gold-soft); color: #7a5a1c; }

.text-accent { color: var(--teal); font-weight: 600; }

/* Animación de aparición. Solo se activa si hay JS (html.js), para no ocultar
   contenido cuando el script no carga. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out),
              border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary .icon { color: var(--gold); }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline-light { background: rgba(248, 250, 252, .1); color: var(--gold); border-color: rgba(248, 250, 252, .25); }

.btn:active { transform: scale(.98); }

/* Hover solo donde existe un puntero real (evita el hover pegado en táctil) */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-700); }
  .btn--teal:hover { background: var(--teal-600); }
  .btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
  .btn--outline-light:hover { background: rgba(248, 250, 252, .18); }
}

/* --------------------------------------------------------------------------
   5. Barra superior + header
   -------------------------------------------------------------------------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 60;
}

.notice { background: var(--navy); color: var(--surface); font-size: .8rem; }
.notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: .5rem;
}
.notice__left, .notice__right { display: flex; align-items: center; gap: .6rem; max-width: none; }
.notice__tag { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.notice__detail { display: none; color: rgba(248, 250, 252, .85); }
.notice__sep { display: none; color: rgba(248, 250, 252, .35); }
.notice__phone { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); font-weight: 500; }
.notice__cta {
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .notice__phone:hover { color: var(--white); }
  .notice__cta:hover { background: var(--teal-600); }
}
@media (min-width: 640px) { .notice__cta { display: inline-flex; } .notice__sep { display: inline; } }
@media (min-width: 768px) { .notice__detail { display: inline; } }

/* Pulso de "guardia activa" */
.pulse { position: relative; display: inline-flex; width: .55rem; height: .55rem; flex: none; }
.pulse__ring, .pulse__dot {
  position: absolute; inset: 0; border-radius: 50%; background: var(--teal);
}
.pulse__ring { animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

.site-header {
  position: relative;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Marca */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  border: 1px solid rgba(197, 160, 89, .5);
  flex: none;
}
.brand__initials {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.brand__tag { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }

/* Toggle móvil */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle__close { display: none; }
body.nav-open .menu-toggle__open { display: none; }
body.nav-open .menu-toggle__close { display: block; }

/* Navegación (móvil = panel desplegable) */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem var(--gutter) 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav.is-open { display: block; }
.nav__list { list-style: none; padding: 0; display: grid; gap: .25rem; }
.nav__list a {
  display: block;
  padding: .75rem .5rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav__list a.is-active { color: var(--teal); font-weight: 600; }
.nav__cta { margin-top: 1rem; width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover { color: var(--teal); }
  .brand:hover .brand__mark { border-color: var(--gold); }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav,
  .nav.is-open {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav__list { display: flex; align-items: center; gap: 1.35rem; }
  .nav__list a { padding: .35rem 0; border: 0; font-size: .92rem; }
  .nav__cta { margin: 0; width: auto; }
}

/* --------------------------------------------------------------------------
   6. Secciones y encabezados de sección
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); background: var(--surface); }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }

.section__intro { margin-bottom: 2.5rem; }
.section__intro--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.section__intro--center p { margin-inline: auto; }
.section__intro h2 { margin-block: .6rem .8rem; }
.section__intro p { color: var(--muted); }
.section__intro--split { display: grid; gap: 1rem; }
.section__note { color: var(--muted); font-size: .95rem; }
@media (min-width: 768px) {
  .section__intro--split {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
  .section__note { max-width: 24rem; text-align: right; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 3rem 3.5rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(15, 118, 110, .08) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid { display: grid; gap: 2.5rem; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--teal); }
.hero .lead { font-size: 1.05rem; color: var(--muted); }

.hero__actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; padding-top: .5rem; }
.hero__actions .btn { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  list-style: none;
  padding: 1.5rem 0 0;
  margin-top: .5rem;
  border-top: 1px solid var(--line);
}
.stats__item { display: flex; flex-direction: column; }
.stats__value { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--teal); }
.stats__label { font-size: .75rem; color: var(--muted-2); }

.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.credential {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  margin-top: -2.5rem;
  margin-inline: .75rem;
  position: relative;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.credential__icon {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
}
.credential__text { display: flex; flex-direction: column; margin-right: auto; }
.credential__text strong { font-size: .85rem; }
.credential__text small { font-size: .72rem; color: var(--muted-2); }
.credential .badge--gold { flex: none; }

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; width: auto; }
  .hero__actions .btn { width: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding-block: 4rem 5rem; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
  .hero .lead { font-size: 1.15rem; }
  .hero__media img { aspect-ratio: 5 / 4; max-height: 34rem; }
  .credential {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1rem;
    margin: 0;
    background: rgba(255, 255, 255, .9);
  }
}

/* --------------------------------------------------------------------------
   8. Sectores
   -------------------------------------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  list-style: none;
  padding: 0;
}
.sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1rem .6rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.sector .icon { width: 1.7rem; height: 1.7rem; color: var(--teal); }
.sector span { font-size: .78rem; font-weight: 500; line-height: 1.35; }
@media (min-width: 768px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(6, 1fr); } }
@media (hover: hover) and (pointer: fine) {
  .sector:hover { border-color: var(--teal); transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   9. Servicios
   -------------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: 1fr; gap: 1.25rem; list-style: none; padding: 0; }

.service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  transition: box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.service__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.service__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
}
.service__icon .icon { width: 1.5rem; height: 1.5rem; }
.service h3 { margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .92rem; }
.service__list {
  list-style: none;
  padding: 1rem 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
}
.service__list li { display: flex; align-items: center; gap: .5rem; }
.service__list .icon { width: 1.1rem; height: 1.1rem; color: var(--teal); }

/* Tarjeta destacada */
.service--featured {
  background: var(--navy);
  border-color: rgba(197, 160, 89, .35);
  border-top-color: var(--gold);
}
.service--featured h3, .service--featured .service__icon { color: var(--white); }
.service--featured .service__icon { background: rgba(197, 160, 89, .16); color: var(--gold); }
.service--featured p { color: rgba(248, 250, 252, .82); }
.service--featured .service__list { border-top-color: rgba(248, 250, 252, .18); color: rgba(248, 250, 252, .88); }
.service--featured .service__list .icon { color: var(--gold); }

/* Tarjeta ancha (servicio 7) */
.service--wide {
  grid-column: 1 / -1;
  border-top-color: var(--gold);
  background: var(--surface);
  flex-direction: column;
  gap: 1.25rem;
}
.eyebrow--inline { margin-bottom: .5rem; }
.service--wide .btn { align-self: flex-start; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
}
@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--wide { flex-direction: row; align-items: center; justify-content: space-between; }
  .service__wide-copy { max-width: 52rem; }
  .service--wide .btn { align-self: center; }
}
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   10. Por qué elegirnos
   -------------------------------------------------------------------------- */
.advantages { display: grid; gap: 2.5rem; }
.advantages__intro h2 { margin-block: .6rem 1rem; }
.advantages__intro p { color: var(--muted); }

.quote {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-style: italic; color: var(--ink); font-size: .95rem; }

.pillars { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.pillar {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pillar__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: .9rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--teal);
}
.pillar__icon .icon { width: 1.4rem; height: 1.4rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.pillar p { font-size: .9rem; color: var(--muted); }

@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .advantages { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
}

/* --------------------------------------------------------------------------
   11. Quiénes somos
   -------------------------------------------------------------------------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.about__card {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--navy);
  color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, .35);
}
.about__card strong { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); }
.about__card p { margin-top: .35rem; font-size: .85rem; color: rgba(248, 250, 252, .82); }

.about__copy h2 { margin-block: .6rem 1rem; }
.about__copy p { color: var(--muted); margin-bottom: 1rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 1.25rem 0 0;
  margin-top: .5rem;
  border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; }
.facts__value { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--teal); }
.facts__label { font-size: .72rem; color: var(--muted-2); }

@media (min-width: 1024px) {
  .about { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .about__card { position: absolute; right: -1rem; bottom: -1.5rem; max-width: 20rem; margin: 0; }
}

/* --------------------------------------------------------------------------
   12. Equipo
   -------------------------------------------------------------------------- */
.team { display: grid; gap: 1.5rem; list-style: none; padding: 0; }
.member {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}
.member__avatar {
  display: grid;
  place-items: center;
  min-height: 9rem;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(15, 118, 110, .22) 0%, transparent 60%),
    var(--navy);
  color: var(--gold);
}
.member__avatar span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid rgba(197, 160, 89, .5);
  border-radius: 50%;
  width: 4.25rem; height: 4.25rem;
  display: grid; place-items: center;
}
.member__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.member__meta { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.member__spec { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.member__lic { font-size: .72rem; color: var(--muted-2); }
.member h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.member__body > p { font-size: .88rem; color: var(--muted); }
.member__foot {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--muted-2);
}
@media (hover: hover) and (pointer: fine) {
  .member:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
}
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   13. Testimonios
   -------------------------------------------------------------------------- */
.testimonials { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: .15rem; color: var(--gold); }
.stars .icon { width: 1.05rem; height: 1.05rem; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-style: italic; font-size: .95rem; color: var(--ink); }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial__author strong { display: block; font-size: .9rem; font-weight: 600; }
.testimonial__author small { font-size: .75rem; color: var(--muted-2); }
.avatar {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-size: .8rem; font-weight: 600;
}
.avatar--navy { background: var(--navy); color: var(--gold); }
.avatar--soft { background: var(--teal-soft); color: var(--teal); }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   14. FAQ (details/summary nativo y accesible)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .9rem; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { transition: transform .25s var(--ease-out); color: var(--teal); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--line); margin-top: -1px; padding-top: 1rem; }
.faq__a p { font-size: .92rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover { color: var(--teal); }
}

/* --------------------------------------------------------------------------
   15. Contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: 2.5rem; }
.contact__info h2 { margin-block: .6rem 1rem; }
.contact__info > p { color: var(--muted); }

.contact__list { list-style: none; padding: 0; display: grid; gap: 1.35rem; margin-block: 2rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal);
}
.contact__list strong { display: block; font-size: .95rem; font-family: var(--font-sans); }
.contact__list span > span, .contact__list span > a { font-size: .9rem; color: var(--muted); }
.contact__list small { display: block; font-size: .75rem; color: var(--muted-2); margin-top: .15rem; }
.contact__phone { font-weight: 600; color: var(--ink) !important; font-size: 1rem !important; }
.contact__inline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  font-size: .8rem !important;
  color: var(--teal) !important;
  font-weight: 600;
}
.contact__inline .icon { width: 1rem; height: 1rem; }

.contact__quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact__quick span { font-size: .88rem; color: var(--muted); }

.contact__form-wrap {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact__form-wrap h3 { margin-bottom: .4rem; }
.contact__form-note { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
  background: var(--white);
}
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--teal); }
.field--check label { font-size: .78rem; font-weight: 400; color: var(--muted); }

.form__error {
  padding: .75rem 1rem;
  background: #fdecec;
  border: 1px solid #f3c2c2;
  border-radius: var(--radius);
  color: #8f1d1d;
  font-size: .85rem;
}

.form__success {
  padding: 1.1rem 1.25rem;
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  color: #094e48;
}
.form__success strong { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.form__success p { font-size: .85rem; margin-top: .4rem; }

@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--surface);
  padding-top: 3.5rem;
}
.site-footer__grid { display: grid; gap: 2.25rem; }
.site-footer__brand p { color: rgba(248, 250, 252, .72); font-size: .88rem; margin-block: 1rem 1.25rem; max-width: 26rem; }
.brand--footer .brand__mark { background: rgba(248, 250, 252, .08); }
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__tag { color: var(--gold); }

.site-footer__col h2 {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal-soft);
  margin-bottom: .85rem;
}
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer__col li a, .site-footer__col li span { font-size: .85rem; color: rgba(248, 250, 252, .7); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__col li a:hover { color: var(--gold); }
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, .15);
  font-size: .75rem;
  color: rgba(248, 250, 252, .55);
}
.site-footer__legal p { max-width: none; }

@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
  .site-footer__legal { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   17. Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */
.fab-wa {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 28px -10px rgba(15, 118, 110, .6);
  transition: transform .18s var(--ease-out), background-color .18s var(--ease-out);
}
.fab-wa .icon { width: 1.75rem; height: 1.75rem; }
.fab-wa:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .fab-wa:hover { background: var(--teal-600); transform: scale(1.05); }
}

/* --------------------------------------------------------------------------
   18. Anclas y movimiento reducido
   -------------------------------------------------------------------------- */
section[id], main[id] { scroll-margin-top: 7.5rem; }
@media (min-width: 768px) { section[id], main[id] { scroll-margin-top: 7rem; } }

body.nav-open { overflow: hidden; }
@media (min-width: 1024px) { body.nav-open { overflow: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
