/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 100%) no-repeat top / 100% 210px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--navy); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--sky { background: var(--sky-50); }
.section--cream { background: var(--cream); }
.section__head { max-width: 680px; margin: 0 auto var(--space-7); text-align: center; }
.section__head p { color: var(--muted); margin-top: var(--space-3); }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--red-text); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-3); }
.h-sm { font-size: 1.55rem; margin-bottom: var(--space-5); display: flex; align-items: center; gap: 10px; }
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.03em; color: var(--muted); background: var(--sky-50); border-radius: var(--radius-pill); padding: 2px 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease, color var(--dur-hover) ease;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform var(--dur-hover) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -10px rgba(214, 51, 106, 0.75); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(31, 120, 200, 0.7); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .btn--pink:hover { background: var(--pink-hover); transform: translateY(-2px); }
  .btn--blue:hover { background: var(--blue-hover); transform: translateY(-2px); }
  .btn--outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn:active { transform: scale(0.97); }
}

/* ---------- Barra superior ---------- */
.topbar { position: relative; z-index: 40; }
.topbar__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 96px; }
.topbar__logo img { height: 66px; width: auto; }
.topbar__right { display: flex; align-items: center; gap: var(--space-6); }
.topbar__call { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.topbar__call .icon { width: 34px; height: 34px; color: var(--blue); }
.topbar__call span { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__call small { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.topbar__call strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--navy); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }

/* ---------- Menú en tarjeta ---------- */
.navwrap { position: sticky; top: 10px; z-index: 50; padding-bottom: 12px; }
.navcard { background: #fff; border-radius: 26px; box-shadow: 0 12px 30px -14px rgba(22, 46, 103, 0.4); padding: 8px 12px; }
.navcard__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.navcard__list a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 14px; text-decoration: none; color: var(--navy);
  font-weight: 800; font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; position: relative;
}
.navcard__list .icon { width: 28px; height: 28px; color: var(--ic); fill: color-mix(in srgb, var(--ic) 20%, transparent); transition: transform var(--dur-hover) var(--ease-out); }
.navcard__list a::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transition: transform var(--dur-hover) var(--ease-out); }
.navcard__list a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .navcard__list a:hover .icon { transform: translateY(-3px) scale(1.08); }
  .navcard__list a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  --photo-w: min(47vw, 640px);
  position: relative; overflow: hidden;
  background: var(--sky-mid); /* plano: coincide con el cielo de la foto (#b6e9f7) y evita costuras */
  min-height: calc(var(--photo-w) + 24px);
}
.hero__inner { position: relative; z-index: 3; display: flex; align-items: center; min-height: calc(var(--photo-w) - 40px); padding-bottom: 40px; }
.hero__copy { max-width: min(560px, 46%); }
.hero__copy h1 .accent { color: var(--pink); }
.hero__lead { font-size: 1.2rem; margin-top: var(--space-4); color: var(--ink); max-width: 30em; }
.hero__lead b { font-weight: 800; }
.c-blue { color: var(--blue-text); } .c-green { color: #3f7d17; } .c-orange { color: #b35a00; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__photo {
  position: absolute; z-index: 1; right: calc((100% - min(100% - (var(--gutter) * 2), var(--container))) / 2); bottom: 0; width: var(--photo-w); height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 3%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 3%);
  mask-composite: intersect;
}
.hero__social { position: absolute; z-index: 4; top: 8px; right: 0; display: flex; gap: 8px; }
.hero__social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--blue);
  box-shadow: 0 4px 12px -4px rgba(22, 46, 103, 0.4); transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.hero__social .icon { width: 22px; height: 22px; }
.hero__social a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .hero__social a:hover { transform: translateY(-3px) scale(1.06); background: var(--blue); color: #fff; } }
.hero__deco { position: absolute; z-index: 2; pointer-events: none; }
.hero__deco--cloud-a { top: 28px; left: 3%; width: 90px; color: #fff; opacity: 0.95; }
.hero__deco--cloud-b { top: 10px; left: 42%; width: 130px; color: #fff; opacity: 0.9; }
.hero__edge { position: absolute; z-index: 5; left: 0; bottom: -1px; width: 100%; height: 72px; }

/* ---------- Programas (tarjetas de colores) ---------- */
.programs { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px; }
.program {
  flex: 0 1 calc((100% - 72px) / 5); min-width: 212px; background: var(--pc); color: var(--pt); border-radius: 26px; padding: 18px 18px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  box-shadow: 0 16px 30px -18px var(--pc); transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease;
}
.program__head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 3.5em; text-align: left; }
.program__head .icon { width: 28px; height: 28px; }
.program__head h3 { color: inherit; font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.program__art { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.26); border: 4px solid rgba(255, 255, 255, 0.55); }
.program__art .icon { width: 54px; height: 54px; stroke-width: 1.6; transition: transform 500ms var(--ease-out); }
.program__text { font-size: 0.96rem; line-height: 1.5; min-height: 6em; }
.program__more { width: 100%; }
.program__more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px;
  background: #fff; color: var(--pb); border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.35); transition: transform var(--dur-press) var(--ease-out);
}
.program__more summary::-webkit-details-marker { display: none; }
.program__more summary:active { transform: scale(0.96); }
.program__more summary .icon { width: 18px; height: 18px; transition: transform var(--dur-hover) var(--ease-out); }
.program__more[open] summary .icon { transform: rotate(90deg); }
.program__full { margin-top: 14px; text-align: left; font-size: 0.93rem; line-height: 1.55; }
.program__full p { margin-bottom: 10px; }
.program__full a { font-weight: 800; color: inherit; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.program :focus-visible { outline-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .program:hover { transform: translateY(-6px); box-shadow: 0 22px 36px -16px var(--pc); }
  .program:hover .program__art .icon { transform: scale(1.12) rotate(-6deg); }
}

/* ---------- Por qué elegirnos ---------- */
.why { padding-block: 8px 24px; }
.why__strip { background: var(--cream); border-radius: var(--radius-lg); padding: 28px 36px; display: grid; grid-template-columns: minmax(260px, 1.15fr) 3fr; gap: var(--space-6); align-items: center; }
.why__lead h2 { font-size: 1.9rem; line-height: 1.1; }
.why__lead h2 span { display: block; color: var(--pink); }
.why__lead p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.why__items { display: grid; grid-template-columns: repeat(4, 1fr); }
.why__items li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 14px; border-left: 1px solid rgba(22, 46, 103, 0.12); }
.why__items li:first-child { border-left: 0; }
.why__ico { width: 54px; height: 54px; border-radius: 50%; background: var(--bg); color: #fff; display: grid; place-items: center; margin-bottom: 6px; transition: transform var(--dur-hover) var(--ease-out); }
.why__ico .icon { width: 26px; height: 26px; }
.why__items strong { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.15; color: var(--c); }
.why__items li > span:last-child { font-weight: 700; font-size: 0.9rem; color: var(--navy); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .why__items li:hover .why__ico { transform: scale(1.1) rotate(-6deg); } }

/* ---------- Nosotros + Promociones ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.doodle-heart { width: 30px; height: 30px; fill: none; stroke: var(--pink); stroke-width: 1.6; }
.welcome__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.ph { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: linear-gradient(145deg, var(--a), var(--b)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.ph .icon { width: 34%; height: 34%; stroke-width: 1.5; }
.ph .tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, 0.88); }
.ph--sm { width: 112px; aspect-ratio: 1; border-radius: 16px; flex: none; }
.ph--sm .icon { width: 46%; height: 46%; }
.welcome__text p { color: var(--muted); margin-bottom: var(--space-5); }
.promos { display: grid; gap: var(--space-4); }
.promos .h-sm { margin-bottom: var(--space-2); }
.promo-card { display: flex; align-items: center; gap: var(--space-4); background: var(--cream); border-radius: var(--radius-md); padding: 14px 18px 14px 14px; transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease; }
.promo-card h3 { font-size: 1.08rem; }
.promo-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.45; margin-top: 2px; }
.promo-card a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; color: var(--blue-text); text-decoration: none; }
.promo-card a .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .promo-card a:hover { text-decoration: underline; }
  .promo-card a:hover .icon { transform: translateX(4px); }
}
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-7); }
.mv__card { border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); border-left: 8px solid var(--c); background: var(--cream); }
.mv__card h3 { color: var(--c); margin-bottom: var(--space-2); }
.mv__card p { color: var(--muted); }

/* ---------- Tarjetas genéricas / Equipo ---------- */
.card { background: #fff; border-radius: var(--radius-lg); padding: var(--space-6); border: 2px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-3); transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); } }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: 1000px; margin-inline: auto; }
.member { text-align: center; align-items: center; }
.member__photo { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; background: var(--bg); border: 6px solid #fff; box-shadow: var(--shadow-md); }
.member__photo svg { width: 100%; height: 100%; }
.member h3 { margin-top: var(--space-2); }
.member p { color: var(--muted); }

/* ---------- Testimonios ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: thin; scrollbar-color: var(--sky-top) transparent; }
.quote { flex: 0 0 min(88%, 380px); scroll-snap-align: start; position: relative; padding-top: var(--space-7); }
.quote::before { content: "\201C"; position: absolute; top: 4px; left: 24px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--c, var(--rb-orange)); }
.quote blockquote { margin: 0; color: var(--ink); }
.quote footer { margin-top: auto; font-weight: 800; color: var(--navy); }
.quote footer small { display: block; font-weight: 700; color: var(--muted); }
.carousel__nav { display: none; justify-content: center; gap: var(--space-3); margin-top: var(--space-4); }
.js .carousel__nav { display: flex; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.round-btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { background: var(--navy); color: #fff; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: var(--space-4); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 0; background: linear-gradient(145deg, var(--a), var(--b)); color: #fff; isolation: isolate; cursor: default; transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) ease; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__art { position: absolute; inset: 0; display: grid; place-items: center; }
.tile__art .icon { width: 30%; height: 30%; min-width: 64px; max-width: 150px; stroke-width: 1.5; opacity: 0.92; transition: transform 500ms var(--ease-out); }
.tile__art::before, .tile__art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.tile__art::before { width: 55%; aspect-ratio: 1; top: -18%; right: -12%; }
.tile__art::after { width: 36%; aspect-ratio: 1; bottom: -14%; left: -8%; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5) var(--space-4) var(--space-4); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(22, 46, 103, 0.72)); transition: transform var(--dur-hover) var(--ease-out); }
.tile .tag { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(255, 255, 255, 0.88); }
@media (hover: hover) and (pointer: fine) {
  .tile figcaption { transform: translateY(100%); }
  .tile:hover, .tile:focus-within { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
  .tile:hover figcaption, .tile:focus-within figcaption { transform: translateY(0); }
  .tile:hover .tile__art .icon { transform: scale(1.12) rotate(-6deg); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-md); transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease; }
.faq details[open] { border-color: var(--rb-blue); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding: var(--space-3) var(--space-5); font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-hover) var(--ease-out); color: var(--pink); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--space-5) var(--space-5); color: var(--muted); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: stretch; }
.info { display: grid; gap: var(--space-3); align-content: start; }
.info__item { display: flex; gap: var(--space-4); align-items: flex-start; background: #fff; border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); border: 2px solid var(--line); }
.info__item .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.info__item .ico .icon { width: 24px; height: 24px; }
.info__item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info__item p, .info__item a { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.info__item a { text-decoration: none; display: inline-block; padding-block: 10px; margin-block: -10px; }
@media (hover: hover) and (pointer: fine) { .info__item a:hover { color: var(--pink); text-decoration: underline; } }
.social-row { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.social-row a { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; background: var(--sky-low); color: var(--navy); transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.social-row a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .social-row a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); } }
.social-row .icon { width: 22px; height: 22px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-md); min-height: 420px; background: var(--sky-low); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Banner de paisaje ---------- */
.scene { position: relative; overflow: hidden; min-height: clamp(430px, 38vw, 540px); background: linear-gradient(180deg, #fff 0, #eaf6fe 70%, #dcefFb 100%); }
.scene__inner { position: relative; z-index: 3; padding-top: clamp(56px, 7vw, 100px); }
.scene__copy { max-width: 440px; }
.scene__copy h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); line-height: 1.15; }
.scene__copy h2 span { color: var(--pink); }
.scene__copy .btn { margin-top: var(--space-5); }
.scene__wreath { position: absolute; z-index: 2; left: 50%; bottom: clamp(56px, 6vw, 84px); width: clamp(250px, 26vw, 340px); aspect-ratio: 1; translate: -50% 0; }
.scene__wreath img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: cover; border-radius: 50%; }
.scene__wreath svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__ground { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(190px, 18vw, 260px); }
.scene__cloud { position: absolute; z-index: 0; width: 120px; color: #8fc6ee; }
.scene__cloud--a { top: 70px; left: 33%; }
.scene__cloud--b { top: 130px; right: 14%; width: 100px; }

/* ---------- Pie ---------- */
.footer { background: var(--footer-green); color: #fff; padding: var(--space-6) 0 var(--space-5); }
.footer h2 { font-size: 1.2rem; color: #fff; margin-bottom: var(--space-3); }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 0.7fr 1.9fr 0.8fr; gap: var(--space-6); align-items: start; }
.footer__logo { display: inline-block; background: #fff; border-radius: 18px; padding: 8px 16px; }
.footer__logo img { height: 56px; width: auto; }
.footer__brand p { margin-top: var(--space-3); font-weight: 700; max-width: 26em; }
.footer__col li { margin-bottom: 2px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 4px; }
.footer__col a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { text-decoration: underline; } }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--space-2); }
.footer__contact .icon { width: 20px; height: 20px; margin-top: 4px; }
.footer__contact a { min-height: 0; overflow-wrap: anywhere; font-size: 0.97rem; }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; justify-content: center; background: var(--bg); transition: transform var(--dur-hover) var(--ease-out); }
.footer__social .icon { width: 22px; height: 22px; }
.footer__social a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .footer__social a:hover { transform: translateY(-3px); } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.93rem; font-weight: 700; }
.footer__bottom ul { display: flex; gap: var(--space-5); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(11, 122, 64, 0.8); transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease;
  animation: pop 500ms var(--ease-out) 1.2s both;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: var(--wa-hover); transform: translateY(-3px); } }

/* ---------- Movimiento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(14px); } }

.navcard { animation: drop 520ms var(--ease-out) 80ms both; }
.hero__copy > * { animation: rise 640ms var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__photo { animation: slide-in 800ms var(--ease-out) 120ms both; }
.hero__deco { animation: drift 8s ease-in-out infinite alternate; }
.hero__deco--cloud-b { animation-duration: 10s; animation-delay: -3s; }
.scene__cloud { animation: drift 9s ease-in-out infinite alternate; }
.scene__cloud--b { animation-duration: 11s; animation-delay: -4s; }

.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .navcard__list a { font-size: 0.7rem; letter-spacing: 0.02em; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 180px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 88px; }
  .topbar { position: sticky; top: 0; background: var(--sky-top); box-shadow: 0 6px 18px -14px rgba(22, 46, 103, 0.6); }
  .topbar__bar { min-height: 72px; }
  .topbar__logo img { height: 52px; }
  .topbar__call { display: none; }
  .topbar__right .btn { min-height: 44px; padding: 0 20px; font-size: 0.98rem; }
  .nav-toggle { display: inline-flex; }
  .navwrap { position: relative; top: auto; padding-bottom: 0; }
  .navcard { animation: none; }
  .navcard__list { grid-template-columns: repeat(4, 1fr); }
  .js .navwrap { display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 55; max-height: calc(100vh - 84px); overflow-y: auto; padding-top: 8px; }
  .js .navwrap.is-open { display: block; }
  .js .navcard__list { grid-template-columns: 1fr; gap: 0; }
  .js .navcard__list a { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .js .navcard__list li:last-child a { border-bottom: 0; }
  .js .navcard__list a::after { display: none; }
  .js .navcard__list a.is-active { color: var(--pink); }

  .hero { --photo-w: 100%; min-height: 0; }
  .hero__inner { display: block; min-height: 0; padding-block: 28px 0; }
  .hero__copy { max-width: none; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__social { position: static; justify-content: center; margin-top: var(--space-5); }
  .hero__photo { position: relative; right: auto; bottom: auto; display: block; margin-top: var(--space-4); max-width: 560px; margin-inline: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 4%); mask-composite: intersect; }
  .hero__deco--cloud-b { left: auto; right: 6%; }
  .hero__edge { height: 48px; }

  .why__strip { grid-template-columns: 1fr; padding: 28px 24px; }
  .why__lead { text-align: center; }
  .why__items { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-5); }
  .why__items li:nth-child(odd) { border-left: 0; }
  .split, .contact__grid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 440px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile--big, .tile--wide { grid-column: span 2; grid-row: span 1; }

  .scene { min-height: 0; padding-bottom: 96px; }
  .scene__copy { max-width: none; text-align: center; }
  .scene__wreath { position: relative; left: auto; bottom: auto; translate: none; margin: var(--space-6) auto 0; width: min(72vw, 300px); }
  .scene__cloud { display: none; }
}
@media (max-width: 640px) {
  .welcome__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .topbar__right .btn { display: none; }
  .hero__actions .btn { width: 100%; }
  .program { flex-basis: 100%; max-width: 360px; }
  .program__text, .program__head { min-height: 0; }
  .promo-card { flex-direction: column; align-items: flex-start; }
  .ph--sm { width: 100%; aspect-ratio: 16 / 7; }
  .gallery { grid-auto-rows: 160px; gap: var(--space-3); }
  .card { padding: var(--space-5); }
  .wa-float { right: 14px; bottom: 14px; }
  .why__items li { padding-inline: 6px; }
  .why__items strong { font-size: 1.2rem; }
}

/* ---------- Reduced motion: fundidos suaves, sin desplazamientos ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drop { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { opacity: 0; } to { opacity: 1; } }
  .navcard, .hero__copy > *, .hero__photo { animation-duration: 300ms; animation-delay: 0ms; }
  .hero__deco, .scene__cloud { animation: none; }
  .reveal-ready .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .btn, .card, .tile, .program, .promo-card, .round-btn, .social-row a, .hero__social a, .footer__social a, .wa-float, .why__ico { transition-property: background-color, color, border-color, box-shadow; }
}
