/* ==================================================================
   MI PABELLÓN DE CIRUGÍA MENOR — Hoja de estilos
   Mobile first · Breakpoints: 480 / 768 / 1024 / 1200
   ================================================================== */

/* ------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   ------------------------------------------------------------------ */
:root {
  /* Paleta médica */
  --navy:        #1e3a5f;   /* primario */
  --navy-700:    #17304f;
  --navy-900:    #0f2340;   /* footer */
  --accent:      #4a90e2;   /* CTA / acentos */
  --accent-600:  #3579c9;
  --accent-050:  #eaf2fc;
  --green:       #2d6a4f;   /* sello sanitario / checks */
  --green-050:   #e8f3ed;
  --wa:          #25d366;   /* WhatsApp */
  --wa-600:      #1eb455;

  /* Neutros */
  --text:        #2c3e50;
  --muted:       #667a8c;
  --white:       #ffffff;
  --bg-alt:      #f8f9fa;
  --border:      #e4e9f0;
  --border-soft: #eef2f7;

  /* Tipografía */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radios */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(30,58,95,.06), 0 2px 8px rgba(30,58,95,.05);
  --sh:    0 4px 14px rgba(30,58,95,.07), 0 1px 3px rgba(30,58,95,.05);
  --sh-lg: 0 18px 44px rgba(30,58,95,.13), 0 4px 12px rgba(30,58,95,.06);

  /* Layout */
  --header-h: 68px;
  --ease: cubic-bezier(.4,0,.2,1);
}

@media (min-width: 1024px) {
  :root { --header-h: 78px; }
}


/* ------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}

p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img, iframe { max-width: 100%; display: block; }
a  { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--navy); }

strong { font-weight: 600; color: var(--navy); }

button { font-family: inherit; font-size: inherit; }

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

/* Iconos del sprite SVG */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Texto pendiente de completar por el cliente */
.placeholder {
  background: #fff6da;
  border-bottom: 1px dashed #d9a441;
  padding: 0 .28em;
  border-radius: 3px;
  font-style: normal;
  color: #7a5510;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px)  { .container { padding-inline: 32px; } }
@media (min-width: 1200px) { .container { padding-inline: 24px; } }


/* ------------------------------------------------------------------
   3. BOTONES
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(74,144,226,.32);
}
.btn--primary:hover {
  background: var(--accent-600);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(74,144,226,.4);
}

.btn--wa {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,.32);
}
.btn--wa:hover {
  background: var(--wa-600);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.42);
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Variante "ghost" sobre fondo claro (banner de cookies) */
.cookies .btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: none;
}
.cookies .btn--ghost:hover { background: var(--bg-alt); color: var(--navy); border-color: var(--muted); }

.btn--sm  { padding: 9px 18px;  font-size: .875rem; }
.btn--lg  { padding: 15px 30px; font-size: 1rem; }
.btn--xl  { padding: 18px 40px; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }

/* Botón que parece enlace (modales legales) */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.linklike:hover { color: var(--navy); }
.linklike--light { color: rgba(255,255,255,.85); }
.linklike--light:hover { color: var(--white); }


/* ------------------------------------------------------------------
   4. HEADER + NAVEGACIÓN
   ------------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 14px rgba(30,58,95,.07);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --- Marca --- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--navy);
  border-radius: 10px;
  color: var(--accent);
  flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

/* --- Nav desktop --- */
.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__link:hover { color: var(--navy); background: var(--bg-alt); }
.nav__link.is-active { color: var(--accent-600); background: var(--accent-050); }

.nav__cta { margin-left: 10px; }

/* El menú horizontal necesita ~1150px para no apretarse: ese es el
   punto de corte entre menú hamburguesa y menú desktop. */
@media (min-width: 1150px) {
  .nav { display: flex; align-items: center; }
}

/* --- Botón hamburguesa --- */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--navy);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.nav-toggle:hover { background: var(--accent-050); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open  { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* En desktop manda el menú horizontal: se oculta la hamburguesa.
   Esta regla va DESPUÉS de las anteriores para ganar en cascada. */
@media (min-width: 1150px) {
  .nav-toggle { display: none; }
}

/* --- Panel mobile --- */
@media (max-width: 1149px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    padding: 18px 20px 26px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 14px 14px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav__cta { margin: 18px 0 0; width: 100%; }
}


/* ------------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding: calc(var(--header-h) + 56px) 0 64px;
  color: var(--white);
  overflow: hidden;
  /* Degradado de respaldo por si la imagen no carga */
  background: linear-gradient(135deg, #16304f 0%, #1e3a5f 45%, #2b5183 100%);
}

/*
  IMAGEN PLACEHOLDER — pabellón quirúrgico moderno (Unsplash).
  El cliente enviará fotografías reales del pabellón: reemplazar la URL
  de --hero-img por assets/hero.jpg cuando estén disponibles.
*/
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(15,35,64,.94) 0%, rgba(23,48,79,.86) 45%, rgba(30,58,95,.6) 100%),
    url('https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=1920&q=75');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; max-width: 780px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.hero__eyebrow .icon { width: 1.05em; height: 1.05em; color: var(--accent); }

.hero__title {
  font-size: clamp(2.05rem, 6.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: .5em;
}
.hero__title-accent {
  color: #8fc0f5;
  /* Subrayado sutil de acento */
  background: linear-gradient(transparent 76%, rgba(74,144,226,.35) 76%);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.88);
}
.hero__chips .icon { width: 1.15em; height: 1.15em; color: #7fd6a5; }

@media (min-width: 768px) {
  .hero { min-height: 700px; }
  .hero__actions .btn { min-width: 210px; }
}


/* ------------------------------------------------------------------
   6. SELLO DE CONFIANZA — Resolución Sanitaria
   ------------------------------------------------------------------ */
.trust {
  background: var(--green-050);
  border-bottom: 1px solid #d4e7dc;
}
.trust__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 20px;
}
.trust__icon {
  width: 42px; height: 42px;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust__title {
  font-size: 1.08rem;
  color: var(--green);
  margin-bottom: .25em;
}
.trust__text p {
  margin: 0;
  font-size: .92rem;
  color: #3c5a4b;
}
.trust__text strong { color: var(--green); }

@media (min-width: 768px) {
  .trust__inner { align-items: center; justify-content: center; padding: 30px 32px; text-align: left; }
  .trust__icon  { width: 48px; height: 48px; }
  .trust__title { font-size: 1.2rem; }
}


/* ------------------------------------------------------------------
   7. SECCIONES — estructura común
   ------------------------------------------------------------------ */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

/* Compensa el header fijo al navegar con anclas */
.section, .hero, .cta { scroll-margin-top: var(--header-h); }

.section__head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: var(--accent-050);
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-600);
}

.section__title {
  font-size: clamp(1.6rem, 4.4vw, 2.35rem);
  font-weight: 600;
  margin-bottom: .45em;
}

.section__lead {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0;
}

.section__note {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}

.section__cta { margin-top: 32px; text-align: center; }

@media (min-width: 768px) { .section { padding: 84px 0; } }
@media (min-width: 1024px) { .section { padding: 100px 0; } .section__head { margin-bottom: 56px; } }


/* ------------------------------------------------------------------
   8. GRILLAS Y TARJETAS
   ------------------------------------------------------------------ */
.grid { display: grid; gap: 18px; }

@media (min-width: 600px)  { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #cfe0f5;
  box-shadow: var(--sh-lg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  background: var(--accent-050);
  border-radius: 14px;
  color: var(--accent-600);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--navy); color: var(--white); }

.card__title { font-size: 1.06rem; margin-bottom: .4em; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.68; }

/* Tarjeta de equipamiento que ocupa el ancho completo de la fila */
@media (min-width: 600px)  { .card--wide { grid-column: 1 / -1; } }

/* --- Servicios (tarjetas compactas) --- */
.service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  border-color: #cfe0f5;
  box-shadow: var(--sh);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  background: var(--navy);
  border-radius: 12px;
  color: var(--white);
}
.service__icon .icon { width: 23px; height: 23px; }
.service h3 { margin: 0; font-size: .97rem; font-weight: 600; line-height: 1.35; }


/* ------------------------------------------------------------------
   9. HORARIOS Y UBICACIÓN
   ------------------------------------------------------------------ */
.location { display: grid; gap: 22px; }

@media (min-width: 900px) {
  .location { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
}

.location__info { display: grid; gap: 18px; }

.info-block {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.section--alt .info-block { background: var(--white); }

.info-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: .9em;
}
.info-block__title .icon { color: var(--accent-600); }

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span  { color: var(--muted); }
.hours strong { font-family: var(--font-head); color: var(--navy); white-space: nowrap; }

.info-block__note {
  margin: 12px 0 0;
  font-size: .84rem;
  color: var(--muted);
  font-style: italic;
}

.info-block__address { font-size: .97rem; line-height: 1.6; }

.feature-list { display: grid; gap: 11px; margin-top: 18px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
}
.feature-list .icon { color: var(--accent-600); margin-top: 2px; }

.location__map {
  height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--border-soft);
}
.location__map iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) { .location__map { height: 100%; min-height: 460px; } }


/* ------------------------------------------------------------------
   10. PLANES Y TARIFAS  ⭐
   ------------------------------------------------------------------ */
.plans { display: grid; gap: 22px; }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* Plan destacado: fondo azul médico */
.plan--featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 55%, #24456e 100%);
  border-color: var(--navy);
  color: rgba(255,255,255,.9);
  box-shadow: 0 20px 48px rgba(30,58,95,.28);
}
.plan--featured h3,
.plan--featured strong { color: var(--white); }

.plan__badge {
  position: absolute;
  top: -14px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  background: var(--accent);
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(74,144,226,.4);
}
.plan__badge .icon { width: .95em; height: .95em; fill: currentColor; }

.plan__head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.plan--featured .plan__head { border-bottom-color: rgba(255,255,255,.18); }

.plan__name { font-size: 1.3rem; margin-bottom: .3em; }

.plan__desc {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1.1em;
  min-height: 2.6em;
}
.plan--featured .plan__desc { color: rgba(255,255,255,.72); }

.plan__price {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 .18em;
  letter-spacing: -.02em;
}
.plan--featured .plan__price { color: var(--white); }
.plan__currency { font-size: .55em; font-weight: 600; vertical-align: .28em; margin-right: .06em; }

.plan__unit { margin: 0; font-size: .85rem; color: var(--muted); }
.plan--featured .plan__unit { color: rgba(255,255,255,.7); }

.plan__body { flex: 1; padding: 22px 0 24px; }

.plan__label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.plan__label--in  { color: var(--green); }
.plan__label--out { color: #b45c5c; margin-top: 24px; }
.plan--featured .plan__label--in { color: #7fd6a5; }

.plan__list { display: grid; gap: 10px; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  line-height: 1.55;
}
.plan__list .ck { color: var(--green); margin-top: 3px; stroke-width: 2.4; }
.plan__list .xk { color: #c47b7b; margin-top: 3px; stroke-width: 2.4; }
.plan--featured .plan__list .ck { color: #7fd6a5; }
.plan__list--out li { color: var(--muted); }

.plan__note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Adicionales --- */
.addons {
  margin-top: 44px;
  padding: 30px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.section--alt .addons { background: var(--white); }

.addons__title { font-size: 1.2rem; text-align: center; margin-bottom: .3em; }
.addons__lead {
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.addons__grid { display: grid; gap: 12px; }

@media (min-width: 700px)  { .addons__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .addons__grid { grid-template-columns: repeat(3, 1fr); } .addons { padding: 38px 34px; } }

.addon {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.addon:hover { border-color: #cfe0f5; box-shadow: var(--sh-sm); }
.section--alt .addon { background: var(--bg-alt); }

.addon__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--accent-050);
  border-radius: 11px;
  color: var(--accent-600);
}
.addon__icon .icon { width: 21px; height: 21px; }

.addon__text { flex: 1; min-width: 0; }
.addon__text h4 {
  font-size: .93rem;
  font-weight: 600;
  margin: 0 0 2px;
  line-height: 1.3;
}
.addon__text p { margin: 0; font-size: .8rem; color: var(--muted); }

.addon__price {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.addons__foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: .84rem;
  color: var(--muted);
}


/* ------------------------------------------------------------------
   11. POLÍTICAS DE RESERVA
   ------------------------------------------------------------------ */
.policies { display: grid; gap: 18px; }

@media (min-width: 700px)  { .policies { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .policies { grid-template-columns: repeat(4, 1fr); } }

.policy {
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.policy h3 { font-size: 1rem; margin-bottom: .45em; }
.policy p  { margin: 0; font-size: .89rem; color: var(--muted); line-height: 1.65; }

.policy__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  background: var(--accent-050);
  border-radius: 12px;
  color: var(--accent-600);
}
.policy__icon .icon { width: 22px; height: 22px; }

/* Política crítica: no reembolsable */
.policy--warn { border-top-color: #d9a441; }
.policy--warn .policy__icon { background: #fdf4e3; color: #b8862c; }
.policy--warn strong { color: #9a6d17; }


/* ------------------------------------------------------------------
   12. CTA FINAL
   ------------------------------------------------------------------ */
.cta {
  padding: 68px 0;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 55%, #26476f 100%);
  color: rgba(255,255,255,.9);
  text-align: center;
}

.cta__inner { max-width: 680px; margin-inline: auto; }

.cta__title {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--white);
  margin-bottom: .35em;
}

.cta__lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
}

.cta__legal { margin: 18px 0 0; font-size: .82rem; color: rgba(255,255,255,.62); }

.cta__facts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.cta__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.cta__facts .icon { color: var(--accent); }

@media (min-width: 768px) {
  .cta { padding: 92px 0; }
  .cta__facts { flex-direction: row; justify-content: center; gap: 32px; }
}


/* ------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------ */
.footer {
  /* El padding inferior extra deja libre la zona del botón flotante
     de WhatsApp, que en mobile queda sobre el pie de página. */
  padding: 54px 0 96px;
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: .89rem;
}

@media (min-width: 768px) { .footer { padding-bottom: 34px; } }

.footer__grid { display: grid; gap: 34px; }

@media (min-width: 700px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 38px; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1.2fr .8fr 1fr; gap: 40px; } }

.brand--footer { margin-bottom: 20px; }
.brand--footer .brand__mark { background: rgba(255,255,255,.1); color: var(--accent); }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small  { color: rgba(255,255,255,.55); }

.footer__title {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}

.footer__data { display: grid; gap: 9px; }
.footer__data li { line-height: 1.5; font-size: .86rem; }
.footer__data span {
  display: block;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.footer__data a { color: rgba(255,255,255,.82); }
.footer__data a:hover { color: var(--white); }

.footer__seal {
  display: flex;
  gap: 13px;
  padding: 18px;
  background: rgba(82,183,136,.11);
  border: 1px solid rgba(82,183,136,.3);
  border-radius: var(--r);
}
.footer__seal .icon {
  width: 30px; height: 30px;
  flex: none;
  color: #7fd6a5;
  stroke-width: 1.6;
}
.footer__seal p { margin: 0; font-size: .84rem; line-height: 1.6; }
.footer__seal strong { color: #a8e5c4; }

.footer__links { display: grid; gap: 11px; }
.footer__links a,
.footer__links .linklike {
  font-size: .87rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  text-align: left;
  font-weight: 400;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer__links a:hover,
.footer__links .linklike:hover { color: var(--white); padding-left: 4px; }

.footer__wa { margin-top: 20px; }

.footer__copy {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* En el footer el placeholder debe seguir siendo legible sobre fondo oscuro */
.footer .placeholder { background: rgba(255,246,218,.16); color: #ffdf9e; border-bottom-color: rgba(217,164,65,.6); }


/* ------------------------------------------------------------------
   14. BOTÓN FLOTANTE DE WHATSAPP
   ------------------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  background: var(--wa);
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37,211,102,.42);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.wa-float__btn:hover {
  background: var(--wa-600);
  color: var(--white);
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
}
.wa-float__btn .icon { width: 30px; height: 30px; }

/* Pulso sutil para atraer la atención (se dibuja detrás del botón) */
.wa-float__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  animation: waPulse 2.6s var(--ease) infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .45; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Burbuja de mensaje */
.wa-float__bubble {
  position: relative;
  max-width: 232px;
  padding: 14px 32px 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--sh-lg);
  font-size: .84rem;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.94);
  transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.wa-float__bubble.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-float__bubble strong { display: block; color: var(--navy); margin-bottom: 2px; }
.wa-float__bubble span   { color: var(--muted); }

.wa-float__bubble-close {
  position: absolute;
  top: 7px; right: 7px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--bg-alt);
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.wa-float__bubble-close:hover { background: var(--border); color: var(--navy); }
.wa-float__bubble-close .icon { width: 13px; height: 13px; stroke-width: 2.5; }

@media (min-width: 768px) {
  .wa-float { right: 26px; bottom: 26px; }
  .wa-float__btn { width: 62px; height: 62px; }
}


/* ------------------------------------------------------------------
   15. MODALES LEGALES
   ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,35,64,.62);
  backdrop-filter: blur(3px);
  animation: fadeIn .25s var(--ease);
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(15,35,64,.35);
  overflow: hidden;
  animation: modalIn .3s var(--ease);
}
.modal__panel--sm { max-width: 580px; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.modal__head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin: 0;
}
.modal__head .icon { color: var(--accent-600); }

.modal__close {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.modal__close:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.modal__close .icon { width: 17px; height: 17px; }

.modal__body {
  padding: 24px 22px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .modal__head { padding: 22px 30px; }
  .modal__body { padding: 28px 30px 34px; }
}

/* --- Tipografía de textos legales (deliberadamente discreta) --- */
.legal { font-size: .89rem; line-height: 1.72; color: #4a5b6b; }
.legal h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.7em 0 .5em;
}
.legal h3:first-child { margin-top: 0; }
.legal ul { display: grid; gap: 9px; margin: 0 0 1em; padding-left: 1.1em; list-style: disc; }
.legal li { padding-left: .2em; }
.legal__disclaimer {
  margin-top: 1.8em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }


/* ------------------------------------------------------------------
   16. BANNER DE COOKIES
   ------------------------------------------------------------------ */
.cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  padding: 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 26px rgba(30,58,95,.12);
  animation: slideUp .4s var(--ease);
}
.cookies[hidden] { display: none; }

.cookies__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1180px;
  margin-inline: auto;
}
.cookies p { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--muted); }

.cookies__actions { display: flex; gap: 10px; }
.cookies__actions .btn { flex: 1; }

@media (min-width: 768px) {
  .cookies { padding: 18px 32px; }
  .cookies__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
  .cookies p { max-width: 720px; }
  .cookies__actions { flex: none; }
  .cookies__actions .btn { flex: none; }
  /* Deja espacio al botón flotante de WhatsApp */
  .cookies { padding-right: 110px; }
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }


/* ------------------------------------------------------------------
   17. ANIMACIÓN DE APARICIÓN AL HACER SCROLL
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ------------------------------------------------------------------
   18. ACCESIBILIDAD — movimiento reducido
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ------------------------------------------------------------------
   19. IMPRESIÓN
   ------------------------------------------------------------------ */
@media print {
  .header, .wa-float, .cookies, .nav-toggle, .location__map { display: none !important; }
  .hero { min-height: auto; padding: 30px 0; color: var(--text); background: none; }
  .hero__bg { display: none; }
  .hero__title, .hero__subtitle, .hero__chips li { color: var(--text); }
  .reveal { opacity: 1; transform: none; }
  .plan, .card, .service { break-inside: avoid; box-shadow: none; }
}
