/* =============================================================
   LOLI POVEDA · Fisioterapia y Osteopatía (Albacete)
   styles.css — Mobile First
   ============================================================= */

/* ---------- 1. TOKENS (Custom Properties) ---------- */
:root {
  /* Marca */
  --teal:        #28c6c6;
  --teal-600:    #1aa6a6;
  --teal-700:    #0f7d7d;
  --teal-tint:   #f0fbfb;
  --teal-tint-2: #e3f7f7;

  --orange:      #f5793b;
  --orange-600:  #e2632a;
  --orange-tint: #fff4ee;

  --purple:      #7c4dbd;   /* acento del logo, uso puntual */

  --ink:         #133b46;   /* titulares */
  --text:        #4f636b;   /* cuerpo */
  --muted:       #82949b;
  --line:        #e4eef0;
  --white:       #ffffff;
  --star:        #ffb400;

  /* Tipografía */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "Nunito Sans", system-ui, sans-serif;

  /* Escala */
  --step-eyebrow: .82rem;
  --step-h1: clamp(2rem, 5.2vw, 3.25rem);
  --step-h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --step-h3: 1.15rem;
  --step-lead: clamp(1.02rem, 1.6vw, 1.18rem);

  /* Forma */
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 8px 24px rgba(19, 59, 70, .06);
  --shadow:    0 18px 50px rgba(19, 59, 70, .10);
  --shadow-teal: 0 14px 30px rgba(40, 198, 198, .35);
  --shadow-orange: 0 14px 30px rgba(245, 121, 59, .35);

  /* Layout */
  --container: 1180px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------- 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: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- 3. HELPERS ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 10px; opacity: .9;
  background-image: repeating-linear-gradient(115deg, var(--orange) 0 2px, transparent 2px 5px);
}
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head.center .eyebrow { justify-content: center; }
.title { font-size: var(--step-h2); font-weight: 800; }
.lead { font-size: var(--step-lead); color: #41555d; }
.hl { color: var(--teal-700); position: relative; white-space: nowrap; }

/* ---------- 4. BOTONES ---------- */
.btn {
  --b: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-600)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(40,198,198,.28); }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-ghost { background: var(--teal-tint); color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-tint-2); }
.btn-accent { background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; box-shadow: var(--shadow-orange); }
.btn-accent:hover { transform: translateY(-2px); }

/* ---------- 5. HEADER (ancho completo) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; min-height: 74px;
  padding-inline: clamp(16px, 3vw, 48px);
  width: 100%;
}
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1.4rem; }
.nav-list > li > a {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink); padding: .4rem 0; position: relative;
}
.nav-list > li > a:hover { color: var(--teal-700); }
.has-sub { position: relative; }
.has-sub > a::after { content: " +"; color: var(--teal); font-weight: 700; }
.subnav {
  position: absolute; top: 130%; left: -14px; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .2s ease;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: .6rem .8rem; border-radius: 9px; font-size: .95rem; font-family: var(--font-display); }
.subnav a:hover { background: var(--teal-tint); color: var(--teal-700); }

.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem;
}
.header-phone .ico { color: var(--teal); }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; border: 0; background: var(--teal-tint); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; margin-inline: auto; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 6. DECORACIÓN ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-cross { top: 14%; left: 4%; width: 38px; height: 38px;
  background:
    linear-gradient(var(--orange),var(--orange)) center/100% 34% no-repeat,
    linear-gradient(var(--orange),var(--orange)) center/34% 100% no-repeat;
  opacity: .25; border-radius: 4px; }
.deco-dots { top: 8%; right: 6%; width: 90px; height: 90px;
  background-image: radial-gradient(var(--teal) 1.6px, transparent 1.6px);
  background-size: 14px 14px; opacity: .25; }
.rounded32 { border-radius: 32px;}
.rounded26 {border-radius: 26px;}

/* ---------- 7. HERO ---------- */
.hero { position: relative; background:
  radial-gradient(1100px 460px at 18% -8%, var(--teal-tint) 0%, transparent 60%),
  linear-gradient(180deg, #fbffff, #fff); padding-block: clamp(40px, 6vw, 84px); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.hero-copy .eyebrow { color: var(--teal-700); }
.hero-copy .eyebrow::before, .hero-copy .eyebrow::after {
  background-image: repeating-linear-gradient(115deg, var(--teal) 0 2px, transparent 2px 5px); }
.hero-claim { font-family: var(--font-display); font-weight: 800; font-size: var(--step-h1); color: var(--ink); line-height: 1.1; margin: 0 0 1rem; }
.hero-h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-h1); color: var(--ink); line-height: 1.1; margin: .4rem 0 1rem; }
.hero-text { font-size: var(--step-lead); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; border: 1px solid var(--line); }
.map-wrap { border-radius: 18px; overflow: hidden; aspect-ratio: 16/11; background: var(--teal-tint); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-address {
  display: flex; gap: .7rem; align-items: flex-start; padding: 14px 10px 6px;
  font-size: .95rem; color: var(--text);
}
.map-address .ico { color: var(--orange); flex: 0 0 auto; margin-top: 2px; }
.map-address strong { color: var(--ink); }
.map-address em { color: var(--teal-700); font-style: normal; font-weight: 700; }
.map-address:hover em { text-decoration: underline; }

/* Hero de páginas de servicio: imagen completa + sección hero */
.service-hero-img {
  width: 100%; height: 450px; overflow: hidden;
}
.service-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

/* ---------- 8. OPINIONES ---------- */
.reviews { background: var(--teal-tint); }
.reviews-head { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; text-align: center; margin-bottom: 2.4rem; }
.reviews-head .title { font-size: var(--step-h2); }
.google-badge { display: inline-grid; place-items: center; background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); }

.carousel { position: relative; display: flex; align-items: center; gap: 8px; }
.car-viewport { overflow: hidden; flex: 1; }
.car-track { display: flex; gap: 22px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.review-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px; flex: 0 0 100%; min-height: 230px; display: flex; flex-direction: column;
}
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--teal-tint-2); flex: 0 0 auto; }
.review-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.review-stars { color: var(--star); font-size: .9rem; letter-spacing: 1px; }
.review-text {
  position: relative; margin: 0; color: var(--text); font-size: .96rem;
  overflow: hidden; max-height: 7.2em;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.car-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--teal-700); font-size: 1.5rem; line-height: 1;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.car-btn:hover { background: var(--teal); color: #fff; }
.reviews-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- 9. AUTORA ---------- */
.author-grid { display: grid; gap: 40px; align-items: center; }
.author-photo { position: relative; }
.author-badge {
  position: absolute; right: 12px; bottom: -14px; background: var(--orange); color: #fff;
  border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-orange);
  display: flex; flex-direction: column; line-height: 1.1; text-align: center;
}
.author-badge strong { font-family: var(--font-display); font-size: 1.6rem; }
.author-badge span { font-size: .72rem; opacity: .95; }
.author-copy .title { font-size: var(--step-h2); margin-bottom: 1rem; }
.author-cta { text-align: right; margin-top: .8rem; }

/* ---------- 10. SERVICIOS ---------- */
.cards-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange)); transform: scaleX(0); transform-origin: left; transition: .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-ico {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: var(--teal-tint); margin-bottom: 18px;
}
.service-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card:hover .service-ico { background: var(--teal); }
.service-card:hover .service-ico svg { stroke: #fff; }
.service-card h3 { font-size: var(--step-h3); font-weight: 700; margin-bottom: .5rem; }
.service-card p { font-size: .96rem; margin-bottom: 1rem; }
.service-link { font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: .95rem; }

/* ---------- 11. CÓMO TRABAJAMOS ---------- */
.how { background: linear-gradient(180deg, #fff, var(--teal-tint)); }
.how-grid { display: grid; gap: 44px; align-items: center; }
.how-visual { position: relative; }
.how-chip {
  position: absolute; left: -8px; bottom: 18px; background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  border-radius: var(--radius-pill); padding: 10px 16px; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: .5rem;
}
.how-chip .ico { color: var(--teal); width: 18px; height: 18px; }
.how-copy .title { margin-bottom: 1rem; }
.feature-list { display: grid; gap: 18px; margin: 1.6rem 0; }
.feature-list li { display: flex; gap: 16px; }
.fnum {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--teal-700); background: var(--teal-tint-2);
}
.feature-list strong { font-family: var(--font-display); color: var(--ink); display: block; margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: .95rem; }

/* ---------- 12. DOLENCIAS ---------- */
/* Wrapper que genera la altura de scroll para el efecto sticky horizontal */
.ailments-sticky-wrap { position: relative; }
.ailments-sticky-wrap > .ailments {
  position: sticky;
  top: 74px; /* altura del header sticky */
}

.ailments-scroll {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 8px var(--gutter) 24px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* ocultar scrollbar, se controla con JS */
}
.ailments-scroll::-webkit-scrollbar { display: none; }
.ailment-card {
  position: relative; flex: 0 0 240px; aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; scroll-snap-align: start; color: #fff; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; box-shadow: var(--shadow-sm);
}
.ailment-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,125,125,.05) 0%, rgba(19,59,70,.82) 100%); transition: .3s; }
.ailment-card:hover::after { background: linear-gradient(180deg, rgba(15,125,125,.15) 0%, rgba(15,125,125,.9) 100%); }
.ailment-inner { position: relative; z-index: 1; padding: 18px; width: 100%; }
.ailment-card h3 { color: #fff; font-size: 1.18rem; font-weight: 700; }
.ailment-btn {
  margin-top: 12px; opacity: 0; transform: translateY(8px); transition: .25s;
  background: var(--orange); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: .55em 1.1em; border-radius: var(--radius-pill);
}
.ailment-card:hover .ailment-btn, .ailment-card:focus-within .ailment-btn { opacity: 1; transform: translateY(0); }
.ailments-hint { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .4rem; }
@media (hover: none) { .ailment-btn { opacity: 1; transform: none; } }

/* ---------- 13. GALERÍA DE CLÍNICA ---------- */
.clinic-gallery { background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%); }
.clinic-slider-wrap { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 2rem; }
.clinic-viewport { overflow: hidden; flex: 1; }
.clinic-track { display: flex; gap: 22px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.clinic-slide {
  flex: 0 0 calc(50% - 11px); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3; flex-shrink: 0;
}
.clinic-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 599px) {
  .clinic-slide { flex: 0 0 100%; }
}

/* ---------- 14. PLACEHOLDERS (sustituir por fotos) ---------- */
.ph { background: repeating-linear-gradient(45deg, var(--teal-tint) 0 16px, var(--teal-tint-2) 16px 32px);
  border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--teal-700);
  font-family: var(--font-display); font-weight: 700; text-align: center; padding: 20px; border: 2px dashed var(--teal); }
.ph-portrait { aspect-ratio: 4/5; }
.ph-square { aspect-ratio: 1/1; }
.ph-eu { aspect-ratio: 6/1; max-width: 420px; margin-inline: auto; font-size: .85rem; }

/* ---------- 15. FOOTER ---------- */
.site-footer { background: linear-gradient(180deg, var(--teal-tint), #eaf8f8); margin-top: var(--section-y); padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .96rem; max-width: 34ch; }
.footer-phone { display: inline-flex; align-items: center; gap: 12px; margin-top: .6rem; }
.footer-phone-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; }
.footer-phone small { color: var(--orange); font-family: var(--font-display); font-weight: 700; font-size: .78rem; display: block; }
.footer-phone strong { font-family: var(--font-display); color: var(--ink); font-size: 1.25rem; }
.footer-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.1rem; position: relative; padding-bottom: .5rem; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 7px, transparent 7px 11px); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .96rem; color: var(--text); transition: .2s; }
.footer-col a:hover { color: var(--teal-700); padding-left: 4px; }
.footer-hours { font-size: .9rem; margin-top: 1.1rem; line-height: 1.7; }
.footer-hours strong { color: var(--ink); font-family: var(--font-display); }
.socials { display: flex; gap: 10px; margin-top: 1.1rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--teal-700); box-shadow: var(--shadow-sm); transition: .2s; }
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--teal); color: #fff; }
.eu-strip { padding-block: 2.4rem 1rem; }
.footer-bottom { border-top: 1px solid rgba(19,59,70,.12); margin-top: 1.4rem; padding-block: 1.4rem; }
.footer-bottom p { margin: 0; text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- 16. FAB (acciones flotantes) ---------- */
.fab { position: fixed; right: 18px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform .2s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }
.fab-wa { bottom: 18px; background: #25d366; }
.fab-wa svg { fill: #fff; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab-call { bottom: 86px; background: var(--orange); display: none; }
.fab-call a { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; }
.fab-call .ico { width: 26px; height: 26px; }

/* ---------- 17. MODAL CHATBOT WHATSAPP ---------- */
.wa-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }
.wa-modal[hidden] { display: none; }
.wa-backdrop { position: absolute; inset: 0; background: rgba(19,59,70,.45); backdrop-filter: blur(2px); animation: fade .2s ease; }
.wa-dialog { position: relative; width: min(420px, 94vw); margin: 0 0 84px; background: #fff;
  border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.3); overflow: hidden; animation: rise .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.wa-head { display: flex; align-items: center; gap: 12px; background: #075e54; color: #fff; padding: 16px 18px; }
.wa-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #128c7e; }
.wa-avatar svg { width: 26px; height: 26px; fill: #fff; }
.wa-head strong { font-family: var(--font-display); display: block; font-size: 1.02rem; }
.wa-head small { opacity: .85; font-size: .82rem; }
.wa-close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; opacity: .85; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 20px; background: #ece5dd; min-height: 220px; }
.wa-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08);
  max-width: 90%; margin-bottom: 14px; font-size: .96rem; color: #303030; animation: rise .2s ease; }
.wa-options { display: grid; gap: 10px; }
.wa-opt { background: #fff; border: 1.5px solid var(--teal); color: var(--teal-700); border-radius: 12px;
  padding: .8em 1em; font-family: var(--font-display); font-weight: 600; cursor: pointer; text-align: left; transition: .15s; }
.wa-opt:hover { background: var(--teal); color: #fff; }
.wa-field { display: flex; gap: 8px; }
.wa-field input { flex: 1; border: 1.5px solid #cfd8d8; border-radius: 12px; padding: .8em 1em; font: inherit; }
.wa-field input:focus { outline: none; border-color: var(--teal); }
.wa-send { background: var(--teal); color: #fff; border: 0; border-radius: 12px; padding: 0 1.1em; cursor: pointer; font-weight: 700; }
.wa-final { display: inline-flex; align-items: center; gap: .5rem; background: #25d366; color: #fff;
  border: 0; border-radius: var(--radius-pill); padding: .9em 1.5em; font-family: var(--font-display); font-weight: 700;
  cursor: pointer; text-decoration: none; margin-top: 6px; box-shadow: var(--shadow); }
.wa-final svg { width: 22px; height: 22px; fill: #fff; }

/* =============================================================
   18. RESPONSIVE
   ============================================================= */
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .review-card { flex-basis: calc((100% - 22px) / 2); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
  .author-grid { grid-template-columns: .9fr 1.1fr; }
  .how-grid { grid-template-columns: 1fr 1.05fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; }
  .review-card { flex-basis: calc((100% - 66px) / 4); }
  .header-cta { display: inline-flex; }
}

/* --- Menú móvil --- */
@media (max-width: 899px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; z-index: 55;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 20px; }
  .nav-list > li > a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .6rem 14px; min-width: 0; }
  .has-sub > a::after { content: ""; }
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; background: var(--teal-tint); border-radius: 12px; }
  .fab-call { display: grid; }
}

@media (min-width: 900px) { .nav-toggle { display: none; } }

@media (max-width: 420px) {
  .review-card { flex-basis: 100%; }
}

/* --- Accesibilidad: reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* --- Focus visible --- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* =============================================================
   19. PÁGINAS INTERIORES (servicios y blog)
   ============================================================= */
.page-hero { background:
  radial-gradient(900px 380px at 80% -10%, var(--teal-tint) 0, transparent 60%),
  linear-gradient(180deg, #fbffff, #fff); padding-block: clamp(40px, 6vw, 76px); position: relative; }
.page-hero .container { max-width: 820px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal-700); }
.page-hero h1 { font-size: var(--step-h1); font-weight: 800; margin-bottom: 1rem; }
.page-hero .lead { max-width: 60ch; }
.page-hero .btn { margin-top: 1.4rem; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { list-style: none; display: grid; gap: .7rem; margin: 1rem 0 1.6rem; }
.prose ul li { position: relative; padding-left: 1.8rem; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose a { color: var(--teal-700); text-decoration: underline; }
.prose blockquote { border-left: 4px solid var(--teal); background: var(--teal-tint); margin: 1.5rem 0;
  padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }

.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-700)); color: #fff; text-align: center;
  border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px); margin: var(--section-y) auto 0; }
.cta-band h2 { color: #fff; font-size: var(--step-h2); margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--teal-700); box-shadow: none; margin-top: 1.2rem; }
.cta-band .btn:hover { background: var(--orange); color: #fff; }

/* Blog */
.blog-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--teal-tint-2), var(--teal-tint));
  background-size: cover; background-position: center; }
.post-body { padding: 22px 24px 26px; }
.post-meta { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--orange); }
.post-card h3 { font-size: 1.18rem; font-weight: 700; margin: .5rem 0 .6rem; }
.post-card p { font-size: .95rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
