/* ==========================================================================
   Marcela Ibarra Hernández · Neuropsicóloga Clínica
   Identidad del logo: azul marino, azul cielo y acentos cálidos · Poppins
   ========================================================================== */
:root {
  --navy: #13264A;
  --blue: #1A4A78;
  --sky-deep: #156596;
  --sky: #64B5DB;
  --sky-soft: #E4F1FA;
  --orange: #E8913A;
  --orange-ink: #A35008;
  --orange-soft: #FDF1E2;

  --bg: #F7FAFD;
  --bg-alt: #EEF4FA;
  --white: #FFFFFF;

  --ink: #13264A;
  --body: #3E4D64;
  --muted: #556275;
  --line: #D8E4EF;

  --wa: #147A3C;
  --wa-dark: #0F612F;

  --f-head: 'Poppins', 'Century Gothic', -apple-system, sans-serif;
  --f-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 12px 32px -10px rgba(19, 38, 74, 0.14);
  --shadow-hover: 0 20px 40px -12px rgba(19, 38, 74, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }
h1, h2 { font-weight: 700; }
h3 { font-weight: 600; }
[id] { scroll-margin-top: 90px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--orange-ink); margin-bottom: 0.6rem;
}
.eyebrow-warm { color: #F5B167; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: 0.7rem; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000; background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: .75rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 99px; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: .96rem; transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-sm { min-height: 42px; padding: .55rem 1.2rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 122, 60, .55); }
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--sky-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-soft); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Barra superior y navegación */
.top-bar { background: var(--navy); color: #E4F1FA; font-size: .8rem; padding: .45rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top-bar span { display: inline-flex; align-items: center; gap: .4rem; }

.navbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: -.02em; }
.brand-role { font-family: var(--f-head); font-size: .8rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a:not(.btn) { font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-cta { white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--sky-deep); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Portada */
.hero { padding: 3.5rem 0 4.5rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 1rem; }
.hl { color: var(--sky-deep); }
.hero-lead { font-size: 1.08rem; max-width: 560px; margin-bottom: 1.4rem; }
.paths-label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.paths { display: grid; gap: .9rem; margin-bottom: .9rem; }
.path {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px;
  color: #fff; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.path-autismo { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.path-memoria { background: linear-gradient(135deg, var(--blue), var(--sky-deep)); }
.path-cerebro { background: linear-gradient(135deg, #153B5E, #166573); }
.path-icon {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.path-text { flex: 1; display: flex; flex-direction: column; }
.path-text strong { font-family: var(--f-head); font-size: 1.08rem; font-weight: 600; }
.path-text span { font-size: .88rem; color: #E4F1FA; }
.path-go {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.paths-more { font-size: .92rem; margin-bottom: 1.8rem; }
.paths-more a { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trust { display: flex; flex-wrap: wrap; gap: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; }
.trust strong { color: var(--navy); font-family: var(--f-head); font-size: 1rem; }
.trust span { font-size: .82rem; color: var(--muted); }

.photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow); }
.photo-wrap { aspect-ratio: 4 / 4.4; border-radius: 16px; overflow: hidden; background: var(--bg-alt); }
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.photo-caption { text-align: center; padding: 1rem .5rem; }
.photo-caption strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: 1.05rem; }
.photo-caption span { display: block; font-size: .84rem; color: var(--muted); }
.photo-caption .pc-accent { color: var(--orange-ink); font-weight: 600; }
.photo-caption .pc-accent2 { color: var(--sky-deep); font-weight: 600; }
.photo-actions { display: grid; gap: .6rem; }

/* Mini perfil (solo celular) */
.mini-profile { display: none; }

/* Secciones destacadas: autismo y memoria */
.feature-autismo { background: #fff; }
.feature-memoria { background: var(--bg-alt); }
.feature-dano { background: #fff; }
.feature-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 2rem; align-items: center;
  margin-bottom: 2.4rem;
}
.feature-head { display: flex; gap: 1.4rem; align-items: flex-start; }
.feature-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .7rem; }
.feature-lead { font-size: 1.04rem; }
.feature-media {
  border-radius: var(--r-lg); overflow: hidden; border: 4px solid #fff;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; background: var(--bg-alt);
}
.feature-autismo .feature-media, .feature-dano .feature-media { border-color: var(--bg-alt); }
.feature-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform .35s ease;
}
.feature-media:hover img { transform: scale(1.03); }
.feature-icon {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
}
.feature-icon-sky { background: var(--sky-deep); }
.feature-icon-teal { background: #166573; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.feature-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.9rem; overflow: hidden; }
.feature-memoria .feature-card { background: #fff; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.feature-card-dark { background: linear-gradient(160deg, var(--navy), var(--blue)); border: 0; color: #E4F1FA; }
.feature-memoria .feature-card-sky { background: linear-gradient(160deg, var(--blue), var(--sky-deep)); border: 0; color: #EDF6FC; }
.feature-card-teal { background: linear-gradient(160deg, #153B5E, #166573); border: 0; color: #E4F5F7; }
.feature-card-dark h3, .feature-card-sky h3, .feature-card-teal h3 { color: #fff; }
.feature-card-dark > *:not(.feature-neural), .feature-card-sky > *, .feature-card-teal > * { position: relative; z-index: 1; }
.feature-neural { position: absolute; top: -20px; right: -80px; width: 360px; opacity: .28; z-index: 0; pointer-events: none; }
.feature-neural .n-lines line { stroke: rgba(156, 205, 232, .7); stroke-width: 1.4; }
.feature-neural .n-sky { fill: var(--sky); }
.feature-neural .n-warm { fill: var(--orange); }
.pill { display: inline-block; padding: .35rem .85rem; border-radius: 99px; font-size: .76rem; font-weight: 700; margin-bottom: .9rem; }
.pill-warm { background: var(--orange); color: var(--navy); }
.pill-sky-light { background: var(--sky-soft); color: var(--navy); }

.ages { display: grid; gap: .9rem; }
.age { display: grid; grid-template-columns: 112px 1fr; gap: .9rem; align-items: start; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.age:last-child { border-bottom: 0; padding-bottom: 0; }
.age-label {
  display: inline-flex; justify-content: center; text-align: center; padding: .3rem .65rem; border-radius: 99px;
  background: var(--sky-soft); color: var(--navy); font-weight: 700; font-size: .8rem; line-height: 1.25;
}
.age p { font-size: .92rem; }
.note { margin-top: 1rem; font-size: .85rem; color: var(--muted); font-style: italic; }

.checks { display: grid; gap: .65rem; margin-bottom: 1.3rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .94rem; }
.chk {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff; margin-top: 1px;
}
.checks-sky .chk { background: var(--sky-soft); color: var(--sky-deep); }
.accred { font-size: .85rem; color: #D4E6F5; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; margin-bottom: 1.3rem; }

.tnc { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-bottom: 1.4rem; }
.tnc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.tnc-card-strong { border: 2px solid var(--sky-deep); }
.tnc-tag { display: inline-block; font-family: var(--f-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; margin-bottom: .5rem; }
.tnc-card p { font-size: .94rem; }
.tnc-card strong { color: var(--navy); }
.tnc-arrow { display: flex; align-items: center; color: var(--sky-deep); }

/* Áreas de práctica clínica */
.services { background: var(--bg-alt); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.svc {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--sky-soft); color: var(--sky-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.svc-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-deep); }
.svc h3 { font-size: 1.05rem; margin: .25rem 0 .5rem; }
.svc p { font-size: .92rem; }

/* Informes */
.informes { background: #fff; }
.inf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.inf { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.inf-strong { border: 2px solid var(--orange); }
.inf-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--sky-soft); color: var(--sky-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.inf-strong .inf-icon { background: var(--orange); color: var(--navy); }
.inf h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.inf p { font-size: .92rem; }
.inf-cta { text-align: center; margin-top: 2rem; }

/* Proceso */
.process { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-photo { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--bg-alt); }
.step-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transition: transform .35s ease;
}
.step:hover .step-photo img { transform: scale(1.04); }
.step-badge {
  position: absolute; top: 12px; left: 12px; min-width: 38px; height: 34px; padding: 0 .65rem;
  border-radius: 99px; background: rgba(19, 38, 74, .92); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: .86rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(19, 38, 74, .25);
}
.step-body { padding: 1.35rem 1.35rem 1.5rem; flex: 1; }
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.mode { display: flex; gap: .9rem; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
.mode-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #fff; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.mode strong { display: block; color: var(--navy); font-size: .96rem; margin-bottom: .2rem; }
.mode span { font-size: .88rem; }

/* Sobre mí */
.about { background: var(--sky-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: start; }
.about-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .3rem; }
.about-sub { color: var(--sky-deep); font-weight: 700; margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; }
.about-photo {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.15rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .85rem; margin: 1.4rem 0 1.2rem; box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%; aspect-ratio: 4 / 4.4; border-radius: 12px;
  object-fit: cover; object-position: 50% 18%;
}
.about-photo figcaption strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: .96rem; margin-bottom: .25rem; }
.about-photo figcaption span { display: block; font-size: .86rem; color: var(--body); line-height: 1.5; }
.about-text .btn { margin-top: .4rem; }
.creds { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.8rem; }
.creds h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }
.creds ul { display: grid; gap: 1rem; }
.cred { display: flex; gap: .9rem; align-items: flex-start; }
.cred strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.cred div span { display: block; font-size: .86rem; margin-top: .15rem; }
.cred-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--sky-soft); color: var(--sky-deep); display: inline-flex; align-items: center; justify-content: center; }
.cred-featured { background: var(--orange-soft); border-radius: 14px; padding: 1rem; }
.cred-featured .cred-icon { background: var(--orange); color: var(--navy); }
.creds-more { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.creds-more summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  min-height: 44px; font-weight: 700; font-size: .9rem; color: var(--sky-deep);
}
.creds-more summary::-webkit-details-marker { display: none; }
.creds-more summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.creds-more[open] summary::after { content: "−"; }
.creds-more ul { margin-top: .9rem; }

/* Contacto profesional */
.referral { padding: 3.5rem 0; background: var(--bg); }
.referral-box {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 2.5rem; align-items: center;
  background: var(--navy); color: #E4F1FA; border-radius: var(--r-lg); padding: 2.6rem;
  width: calc(100% - 3rem); max-width: 1132px;
}
.referral-box h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: .8rem; }
.referral-box p { margin-bottom: 1rem; }
.referral-list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.2rem; }
.referral-list li { position: relative; padding-left: 1.2rem; font-size: .92rem; }
.referral-list li::before { content: "•"; position: absolute; left: 0; color: #F5B167; font-weight: 700; }
.referral-cta { display: flex; flex-direction: column; gap: .75rem; }

/* Preguntas */
.faq-section { background: #fff; }
.faq-container { max-width: 840px; }
.faq-list { display: grid; gap: .9rem; }
.faq { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.4rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; color: var(--ink); min-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sky-deep); }
.faq[open] summary::after { content: "−"; }
.faq p { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .94rem; }

/* Contacto */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .8rem; }
.contact-info > p { margin-bottom: 1.6rem; }
.contact-list { display: grid; gap: .9rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; transition: border-color .2s ease; }
a.contact-item:hover { border-color: var(--sky-deep); }
.contact-item-main { border: 1.5px solid var(--wa); }
.ci-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--sky-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.contact-item-main .ci-icon { background: var(--wa); color: #fff; }
.contact-item small { display: block; font-size: .8rem; color: var(--muted); }
.contact-item strong { display: block; color: var(--ink); font-size: 1rem; word-break: break-word; }
.social-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-weight: 700; font-size: .9rem; transition: border-color .2s ease, background-color .2s ease;
}
.social-btn:hover { border-color: var(--sky-deep); background: var(--sky-soft); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 2.2rem; }
.form-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.form-sub { font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); font-family: var(--f-body); font-size: .95rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sky-deep); background: #fff;
}
.form-actions { display: grid; gap: .7rem; margin-top: .4rem; }
.form-feedback {
  margin-top: .9rem; padding: .85rem 1rem; border-radius: 10px;
  background: var(--sky-soft); border: 1px solid var(--sky); color: var(--navy); font-size: .88rem;
}
.form-feedback a { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.privacy { margin-top: 1rem; font-size: .8rem; color: var(--muted); }

/* Mensaje de cierre */
.closing { padding: 4.5rem 0; background: #fff; }
.closing-box {
  display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; max-width: 920px;
}
.closing-photo img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  border: 6px solid var(--sky-soft); box-shadow: var(--shadow);
}
.closing-quote {
  font-family: var(--f-head); font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.5; color: var(--ink); margin-bottom: 1.2rem; position: relative; padding-left: 1.4rem;
  border-left: 4px solid var(--orange);
}
.closing-sign { margin-bottom: 1.4rem; }
.closing-sign strong { display: block; color: var(--navy); font-family: var(--f-head); }
.closing-sign span { font-size: .9rem; color: var(--muted); }
.closing-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pie de página */
.footer { background: var(--navy); color: #D4E4F2; padding: 3rem 0 6rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; max-width: 640px; }
.footer-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; padding: 6px 8px; border-radius: 12px;
}
.footer-brand img { height: 48px; width: auto; }
.footer-brand strong { display: block; color: #fff; font-family: var(--f-head); font-size: 1.1rem; }
.footer-brand span { display: block; font-size: .88rem; }
.footer-brand small { display: block; font-size: .82rem; color: #BFD4E8; margin-top: .3rem; }
.footer-right { display: flex; flex-direction: column; gap: .9rem; align-items: flex-end; justify-content: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.footer-links a { padding: .4rem 0; font-size: .9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .4rem .9rem;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.26); color: #E4F1FA;
  font-size: .85rem; font-weight: 600; transition: background-color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
@media (max-width: 980px) {
  .footer-right { align-items: flex-start; }
}
.footer-bottom { padding-top: 1.4rem; font-size: .82rem; color: #C2D6E9; text-align: center; }

/* WhatsApp flotante (computador) y barra fija (celular) */
.floating-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 999; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(20, 122, 60, .42); transition: background-color .2s ease, transform .2s ease;
}
.floating-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }
.floating-tip {
  position: absolute; right: 72px; white-space: nowrap; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.floating-wa:hover .floating-tip, .floating-wa:focus-visible .floating-tip { opacity: 1; }
.mobile-bar { display: none; }

/* ----------------------------------------------------------------- Responsive */
@media (min-width: 1121px) and (max-width: 1240px) {
  .nav-links { gap: .9rem; }
  .nav-links a:not(.btn) { font-size: .84rem; }
}

@media (max-width: 1120px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; padding: .6rem 1.5rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: .9rem; }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .feature-grid, .feature-intro { grid-template-columns: minmax(0, 1fr); }
  .feature-intro { gap: 1.4rem; }
  .feature-media { max-width: 340px; }
  .hero-visual { max-width: 420px; }
  .svc-grid, .steps { grid-template-columns: 1fr 1fr; }
  .inf-grid { grid-template-columns: 1fr; }
  .inf-cta .btn { width: 100%; }
  .referral-box { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .top-bar { display: none; }
  .brand img { height: 42px; }
  .brand-name { font-size: .98rem; }

  .hero { padding: 2rem 0 3rem; }
  .hero-grid { gap: 2rem; }
  .hero-eyebrow { margin-bottom: .4rem; }
  .hero h1 { font-size: 1.72rem; }
  .hero-lead { font-size: 1rem; }
  .hero-visual { display: none; }

  .mini-profile {
    display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: .65rem .85rem;
  }
  .mini-profile img {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
    border: 3px solid var(--sky-soft); flex-shrink: 0;
  }
  .mini-profile div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .mini-profile strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: .96rem; line-height: 1.25; }
  .mini-profile span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
  .mini-profile .mp-accent { color: var(--orange-ink); font-weight: 600; }
  .mini-profile .mp-accent2 { color: var(--sky-deep); font-weight: 600; }

  .path { padding: .95rem 1rem; gap: .8rem; }
  .path-icon { width: 46px; height: 46px; }
  .path-text strong { font-size: 1rem; }
  .path-text span { font-size: .82rem; }
  .trust { gap: 1rem 1.4rem; }

  .feature-head { flex-direction: column; gap: 1rem; }
  .feature-media { max-width: 360px; width: 100%; }
  .feature-icon { width: 56px; height: 56px; }
  .feature-card { padding: 1.4rem; }
  .feature-card .btn { width: 100%; }
  .about-photo { grid-template-columns: 112px 1fr; gap: .9rem; }
  .age { grid-template-columns: 1fr; gap: .4rem; }
  .age-label { justify-self: start; }
  .tnc { grid-template-columns: 1fr; }
  .tnc-arrow { justify-content: center; transform: rotate(90deg); }

  .svc-grid, .steps, .modes, .referral-list { grid-template-columns: 1fr; }
  .referral-box { padding: 1.8rem 1.4rem; width: calc(100% - 2rem); }
  .form-card, .creds { padding: 1.4rem; }

  .closing { padding: 3.5rem 0; }
  .closing-box { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .closing-photo { justify-self: center; }
  .closing-photo img { width: 150px; height: 150px; }
  .closing-quote { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 4px solid var(--orange); display: inline-block; }
  .closing-actions { flex-direction: column; }
  .closing-actions .btn { width: 100%; }

  .floating-wa { display: none; }
  .mobile-bar {
    display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(19, 38, 74, .08);
  }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; border-radius: 99px; font-weight: 700; font-size: .95rem; }
  .mb-wa { flex: 1; background: var(--wa); color: #fff; }
  .mb-call { padding: 0 1.25rem; background: var(--sky-soft); color: var(--navy); border: 1px solid var(--line); }
  body { padding-bottom: 76px; }
  .footer { padding-bottom: 2rem; }
}

/* ----------------------------------------------------------------- Subpáginas y enlaces a guías */
.nav-links a[aria-current="page"] { color: var(--sky-deep); }
.guide-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .75rem;
  font-weight: 700; font-size: .92rem; color: var(--sky-deep);
  text-decoration: underline; text-underline-offset: 3px;
}
.guide-link:hover { color: var(--navy); gap: .6rem; }
.svc .guide-link { margin-top: auto; padding-top: .75rem; }
.feature-card .guide-link-light {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .75rem;
  font-weight: 700; font-size: .92rem; color: #fff; text-decoration: underline; text-underline-offset: 3px;
}
.feature-card .guide-link-light:hover { color: var(--sky-soft); }

.sub-hero { padding: 3rem 0 3.8rem; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.sub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 320px); gap: 2.6rem; align-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--sky-deep); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.sub-hero h1 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); margin-bottom: .9rem; }
.sub-lead { font-size: 1.06rem; max-width: 620px; margin-bottom: 1.5rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sub-photo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .85rem; box-shadow: var(--shadow);
}
.sub-photo-card img {
  width: 100%; aspect-ratio: 4 / 4.2; border-radius: 14px;
  object-fit: cover; object-position: 50% 20%;
}
.sub-photo-card figcaption { padding: .75rem .35rem .2rem; font-size: .84rem; color: var(--muted); text-align: center; }
.sub-photo-card figcaption strong { display: block; color: var(--navy); font-family: var(--f-head); font-size: .94rem; }

.sub-section { padding: 4.2rem 0; background: #fff; }
.sub-section-alt { background: var(--bg-alt); }
.sub-section-head { max-width: 760px; margin-bottom: 2.2rem; }
.sub-section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .6rem; }
.sub-section-head p { font-size: 1rem; }

.info-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.info-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.info-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem;
}
.sub-section-alt .info-card { background: #fff; }
.info-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.info-card p { font-size: .94rem; }
.info-card p + p { margin-top: .75rem; }
.info-card-accent { border: 2px solid var(--sky-deep); }
.info-card-warm { border: 2px solid var(--orange); }

.callout-box {
  margin-top: 1.8rem; background: var(--sky-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--sky-deep); border-radius: var(--r-md); padding: 1.3rem 1.5rem;
}
.callout-box strong { display: block; color: var(--navy); font-family: var(--f-head); margin-bottom: .3rem; }
.callout-box p { font-size: .93rem; }

.sub-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 1.4rem;
  justify-content: center; margin-top: 1.8rem;
}
.sub-gallery-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.sub-gallery-card img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 50% 22%;
}
.sub-gallery-card figcaption { padding: 1rem 1.2rem; font-size: .88rem; color: var(--body); }
.sub-gallery-card figcaption strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: .96rem; margin-bottom: .2rem; }

.sub-inline-photo {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center;
  max-width: 780px; margin: 1.8rem auto 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: .95rem; box-shadow: var(--shadow);
}
.sub-inline-photo img {
  width: 100%; aspect-ratio: 4 / 4.2; border-radius: 14px; object-fit: cover; object-position: 50% 18%;
}
.sub-inline-photo figcaption strong { display: block; font-family: var(--f-head); color: var(--navy); font-size: 1.05rem; margin-bottom: .35rem; }
.sub-inline-photo figcaption span { display: block; font-size: .93rem; color: var(--body); line-height: 1.55; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.related-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.related-card:hover { transform: translateY(-2px); border-color: var(--sky-deep); box-shadow: var(--shadow); }
.related-card strong { font-family: var(--f-head); color: var(--navy); font-size: 1.02rem; display: block; margin-bottom: .3rem; }
.related-card p { font-size: .88rem; color: var(--body); }
.related-go { font-size: .88rem; font-weight: 700; color: var(--sky-deep); }

.sub-contact-box {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: center;
  background: var(--navy); color: #E4F1FA; border-radius: var(--r-lg); padding: 2.4rem;
}
.sub-contact-box h2 { color: #fff; font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin-bottom: .6rem; }
.sub-contact-box p { font-size: .96rem; margin-bottom: .9rem; }
.sub-contact-meta { font-size: .86rem; color: #BFD4E8; }
.sub-contact-actions { display: flex; flex-direction: column; gap: .7rem; }

@media (max-width: 980px) {
  .sub-hero-grid, .info-grid-2, .info-grid-3, .related-grid, .sub-contact-box { grid-template-columns: 1fr; }
  .sub-photo-card { max-width: 340px; }
}
@media (max-width: 720px) {
  .sub-hero { padding: 2rem 0 2.8rem; }
  .sub-section { padding: 3rem 0; }
  .sub-actions { flex-direction: column; align-items: stretch; }
  .sub-actions .btn { width: 100%; }
  .sub-gallery { grid-template-columns: 1fr; }
  .sub-inline-photo { grid-template-columns: 1fr; gap: 1rem; }
  .sub-inline-photo img { aspect-ratio: 4 / 3.4; }
  .info-card { padding: 1.35rem; }
  .sub-contact-box { padding: 1.7rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
