/**
 * FCE / Solow / More — pasada visual final (Jul 2026)
 * Carga al final para overrides seguros.
 */

/* ── 1. Pilares home: hover expande texto; Ver más solo en touch ─ */
.home-pillars__feature {
  gap: 28px clamp(40px, 6vw, 88px);
}
@media (hover: hover) and (pointer: fine) {
  .home-pillars__cards .home-pillar__more {
    display: none !important;
  }
  .home-pillars__cards .home-pillar:hover .home-pillar__desc,
  .home-pillars__cards .home-pillar:focus-within .home-pillar__desc {
    max-height: 280px !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 10px !important;
  }
}
@media (hover: none) {
  .home-pillar__more {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--teal);
    border: 0;
    background: none;
    cursor: pointer;
  }
  .home-pillar__more::after {
    content: "→";
    font-size: .9em;
  }
  .home-pillar.is-expanded .home-pillar__more::after {
    transform: rotate(90deg);
  }
}
.home-pillars__feature-media--blob {
  isolation: isolate;
}
.home-pillars__feature-media--blob::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--teal) 28%, transparent) 0%, transparent 62%);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.home-pillars__feature-media--blob.is-in-view::before {
  opacity: 1;
  animation: fce-pillar-glow 4s ease-in-out infinite;
}
.home-pillars__feature-media--blob img {
  animation: fce-pillar-reveal 1.1s cubic-bezier(.22, 1, .36, 1) both;
}
.home-pillars__feature-media--blob.is-in-view img {
  animation: fce-pillar-float 7s ease-in-out infinite;
}
@keyframes fce-pillar-reveal {
  from { opacity: 0; transform: scale(1.06); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: none; }
}
@keyframes fce-pillar-float {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50%      { transform: scale(1.055) translateY(-10px); }
}
@keyframes fce-pillar-glow {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ── 2. Mapa / contacto ───────────────────────────────────── */
.home-contact-nice__map-link-wrap {
  margin: .65rem 0 0;
}
.home-contact-nice__map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── 2b. Café Sagrado: logo completo (grano + halo) ─────────── */
.ecosystem .brand-card__logo img[alt*="Sagrado"] {
  max-height: none;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}
.brand-showcase__visual-img[alt*="Sagrado"] {
  object-fit: contain;
  object-position: center center;
  padding: 1.25rem;
}

/* ── 2d. Métricas blanco · ranking con banda teal ───────────── */
.home-why__metrics::before {
  background: #fff;
}
[data-theme='dark'] .home-why__metrics::before {
  background: var(--bg);
}
.home-ranking {
  position: relative;
  isolation: isolate;
}
.home-ranking::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background:
    radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--teal) 14%, transparent) 0%, transparent 55%),
    radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--teal) 10%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, #f3fbf9 0%, #eef7f6 100%);
  pointer-events: none;
}
[data-theme='dark'] .home-ranking::before {
  background:
    radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--teal) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--teal) 10%, #0f141d) 0%, #0f141d 100%);
}

/* ── 2c. Footer FCE: tagline completo sin Ver más ───────────── */
.footer__intro .footer__tagline {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}
.footer__intro .cms-readmore__toggle,
.footer__intro [data-readmore-toggle] {
  display: none !important;
}

/* ── 3. Footer FCE ─────────────────────────────────────────── */
.footer__prebar-btn--wa {
  border-color: rgba(94, 234, 212, .42) !important;
  color: #fff !important;
  background: linear-gradient(145deg, rgba(15, 76, 92, .88), rgba(11, 58, 74, .94)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.footer__prebar-btn--wa:hover {
  background: linear-gradient(145deg, rgba(18, 92, 110, .94), rgba(13, 68, 86, .98)) !important;
  border-color: rgba(94, 234, 212, .62) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.footer__grid {
  gap: 24px 20px;
  align-items: start;
}
.footer__col h5 {
  margin-bottom: .65rem;
  letter-spacing: .06em;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.footer__col a {
  transition: color .2s ease, transform .2s ease;
}
.footer__col a:hover {
  transform: translateX(2px);
}

/* Footer Solow: compactar columnas */
body.body--unit-solow .footer__grid {
  gap: 18px 16px;
  margin-bottom: 28px;
}
body.body--unit-solow .footer__tagline {
  margin-bottom: 12px;
  font-size: .95rem;
}
body.body--unit-solow .footer__address-block {
  margin-top: 0;
  padding-top: 10px;
}
body.body--unit-solow .footer__col h5 {
  margin-bottom: .5rem;
}
body.body--unit-solow .footer__col ul {
  gap: .28rem;
}
@media (min-width: 901px) {
  body.body--unit-solow .footer__grid {
    grid-template-columns: minmax(0, 1fr) max-content max-content max-content max-content;
    gap: 14px clamp(20px, 2.2vw, 32px);
    justify-content: start;
  }
  body.body--unit-solow .footer__col {
    min-width: max-content;
  }
}

/* ── 5. Pilares / valores sin números ──────────────────────── */
.fce-pillars__num,
.sl-message__num {
  display: none !important;
}
.fce-pillars__label {
  gap: 0;
}
.fce-pillars__head {
  padding-left: 0;
}

/* ── 6. Transformando aspiraciones (Solow nosotros) ─────────── */
body.body--unit-solow .page-solow-nosotros .sl-about-hero {
  min-height: 0;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__inner {
  min-height: clamp(420px, 72vh, 680px);
  align-items: stretch;
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__media img,
body.body--unit-solow .page-solow-nosotros .sl-about-hero__media video {
  min-height: clamp(380px, 62vh, 620px);
  max-height: 72vh;
  object-position: center 10%;
  transform: none;
  transition: none;
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta {
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--solow-brand-accent) 38%, transparent),
    0 0 0 0 color-mix(in srgb, var(--solow-brand-accent) 25%, transparent);
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
  animation: fce-solow-cta-breathe 3.8s ease-in-out infinite;
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.24) 42%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 36px color-mix(in srgb, var(--solow-brand-accent) 45%, transparent),
    0 0 24px color-mix(in srgb, var(--solow-brand-accent) 22%, transparent);
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta:hover::after {
  transform: translateX(120%);
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__media {
  position: relative;
  overflow: hidden;
}
body.body--unit-solow .page-solow-nosotros .sl-about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 40%, rgba(32,178,170,.1));
  opacity: .45;
  pointer-events: none;
}
@keyframes fce-solow-cta-breathe {
  0%, 100% { box-shadow: 0 10px 28px color-mix(in srgb, var(--solow-brand-accent) 34%, transparent); }
  50% { box-shadow: 0 16px 34px color-mix(in srgb, var(--solow-brand-accent) 46%, transparent); }
}

/* ── 7. Oferta académica ───────────────────────────────────── */
body.body--unit-solow .solow-landing .sl-oferta--facultades {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
body.body--unit-solow .solow-landing .sl-oferta-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
body.body--unit-solow .solow-landing .sl-oferta-head__eyebrow {
  margin-bottom: .7rem;
}
body.body--unit-solow .solow-landing .sl-oferta-head__title {
  max-width: 13ch;
  margin-inline: auto;
  font-size: 2.65rem;
  letter-spacing: 0;
  line-height: 1.08;
}
body.body--unit-solow .solow-landing .sl-oferta-head__title span {
  color: var(--solow-brand-accent);
}
body.body--unit-solow .solow-landing .sl-oferta-head__lead {
  max-width: 42rem;
  margin: .9rem auto 0;
  font-size: 1.02rem;
  line-height: 1.65;
}
body.body--unit-solow .solow-landing .sl-facultad-grid--media {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
}
body.body--unit-solow .solow-landing .sl-oferta-foot {
  max-width: 36rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  text-align: center;
  line-height: 1.6;
}
body.body--unit-solow .solow-landing .sl-facultad-card--media {
  min-height: 100%;
}
body.body--unit-solow .solow-landing .sl-facultad-card__cover {
  min-height: clamp(260px, 31vw, 380px);
}
body.body--unit-solow .solow-landing .sl-facultad-card--media .sl-facultad-card__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: auto;
  padding: clamp(.85rem, 1.8vw, 1rem) clamp(1rem, 2vw, 1.2rem);
}
body.body--unit-solow .solow-landing .sl-facultad-card--media .sl-facultad-card__title {
  display: none !important;
}

/* FCQ: reencuadre con object-position — cara libre del logo superior derecho */
body.body--unit-solow .solow-landing .sl-facultad-card--c2 .sl-facultad-card__photo {
  object-position: 68% 10%;
}
@media (max-width: 720px) {
  body.body--unit-solow .solow-landing .sl-facultad-card--c2 .sl-facultad-card__photo {
    object-position: 62% 10%;
  }
}
/* Logos de facultad: visibles de inmediato con la tarjeta */
body.body--unit-solow .solow-landing .sl-facultad-card__corner-logo {
  opacity: 1;
  visibility: visible;
}
body.body--unit-solow .solow-landing .sl-facultad-card__btn--link {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}
@media (max-width: 720px) {
  body.body--unit-solow .solow-landing .sl-oferta-head__title {
    max-width: 15ch;
    font-size: 2.1rem;
  }
  body.body--unit-solow .solow-landing .sl-facultad-card--media .sl-facultad-card__panel {
    align-items: center;
    flex-direction: column;
    min-height: 0;
  }
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__media img,
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__media video {
    min-height: clamp(320px, 76vw, 460px);
    object-position: center 10%;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta,
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__media {
    animation: none !important;
  }
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta::after {
    display: none;
  }
}

/* FCQ career underline — un poco más largo que el texto */
body.body--unit-solow .solow-landing--fcq .sl-hero__title--ingreso .sl-hero__career-name::after {
  left: -2%;
  right: -14%;
  height: .16em;
  bottom: -.14em;
}

/* FCE career cards — subrayado tipo FCQ con color FCE */
body.body--unit-solow .solow-landing--fce .sl-hero__title--ingreso .sl-hero__career-name {
  display: inline-block;
  position: relative;
  color: var(--solow-brand-accent);
}
body.body--unit-solow .solow-landing--fce .sl-hero__title--ingreso .sl-hero__career-name::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -12%;
  bottom: -.12em;
  height: .14em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--solow-brand-accent) 0%, #5ff0e6 100%);
  opacity: .88;
}

/* ── Capturas: becas ordinales, FAQ, gráfico, sellos ──────── */
body.body--unit-solow .solow-landing .sl-faq--clean.sl-faq--panel .sl-faq__item > summary {
  align-items: center !important;
}
body.body--unit-solow .solow-landing .sl-faq--clean.sl-faq--panel .sl-faq__item > summary::after {
  align-self: center;
  flex-shrink: 0;
}
body.body--unit-solow .solow-landing .sl-faq--clean.sl-faq--panel .sl-faq__item[open] > summary {
  padding-bottom: .55rem !important;
}
body.body--unit-solow .solow-landing .sl-faq--clean.sl-faq--panel .sl-faq__item > p,
body.body--unit-solow .solow-landing .sl-faq--clean.sl-faq--panel .sl-faq__item > ul {
  padding-top: 0 !important;
  padding-bottom: .85rem !important;
}
body.body--unit-solow .solow-landing .sl-faq--landing .sl-faq__item > summary {
  align-items: center;
}
body.body--unit-solow .solow-landing .sl-faq--landing .sl-faq__item > summary::after {
  top: 50% !important;
  margin-top: 0 !important;
  transform: translateY(-35%) rotate(45deg) !important;
}
body.body--unit-solow .solow-landing .sl-faq--landing .sl-faq__item[open] > summary::after {
  transform: translateY(-35%) rotate(-135deg) !important;
}
body.body--unit-solow .solow-landing .sl-faq--landing .sl-faq__item > p,
body.body--unit-solow .solow-landing .sl-faq--landing .sl-faq__item > ul {
  margin-top: .25rem !important;
  padding-top: .65rem !important;
}

/* Gráfico aprobados: sellos centrados, sin recuadro */
body.body--unit-solow .solow-landing .solow-fce-proofs__panel--chart,
body.body--unit-solow .solow-landing .solow-fce-proofs__panel.solow-fce-proofs__panel--chart {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}
body.body--unit-solow .solow-landing .sl-chart3d__badge {
  transform: translate(-50%, 50%) !important;
}
body.body--unit-solow .solow-landing .sl-chart3d__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sellos pódium: Fernanda izq / Israel der */
body.body--unit-solow .solow-landing .solow-podio__card--seal-left .solow-podio__seal {
  top: clamp(10px, 2vw, 18px);
  left: clamp(10px, 2vw, 18px);
  right: auto;
  width: clamp(82px, 14vw, 112px);
}
body.body--unit-solow .solow-landing .solow-podio__card--seal-right .solow-podio__seal {
  top: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  left: auto;
  width: clamp(82px, 14vw, 112px);
}
body.body--unit-solow .solow-landing--fce .sl-follow__seal {
  margin: 0 auto;
  max-width: min(340px, 82vw);
}

/* ── 8. Microinteracciones globales ─────────────────────────── */
.btn,
.btn-hero,
a.sl-facultad-card {
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, gap .25s ease;
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}
.section {
  scroll-margin-top: calc(var(--navbar-h, 72px) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  .home-pillars__feature-media--blob img,
  .home-pillars__feature-media--blob::before,
  body.body--unit-solow .page-solow-nosotros .sl-about-hero__media {
    animation: none !important;
    transition: none !important;
  }
}

/* ── 9. Academia More: sin números laterales ni texto cortado ─ */
body.body--unit-more .more-landing .am-propuesta-card__num,
body.body--unit-more .more-landing .am-empresas-feature__step,
body.body--unit-more .more-landing .more-process__ghost {
  display: none !important;
}
body.body--unit-more .more-landing .am-modalidades .sec-lead {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}
body.body--unit-more .more-landing .am-propuesta-card--solapa .am-propuesta-card__title {
  padding-right: 0;
}
/* "Conectamos con tu estilo de vida": que el texto nunca se corte por altura fija */
body.body--unit-more .more-landing .am-modalidades-cards .am-propuesta-card {
  min-height: 0;
  height: auto;
  max-height: none;
}

/* ── 11. Beca Solow: carrera oculta hasta elegir entidad ───── */
.beca-form__field--carrera {
  display: none;
}

/* ── 10. Solow nosotros: CTA separado del texto (no pegado) ─── */
body.body--unit-solow .page-solow-nosotros .sl-about-hero__cta {
  margin-top: clamp(1.1rem, 2.5vw, 1.8rem);
}

/* ── 12. Becas Solow: foto calculadora + animación suave ───── */
body.body--unit-solow .solow-landing .beca-about__photo--calc {
  transform: rotate(-2deg);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
  animation: fce-beca-photo-float 5.5s ease-in-out infinite;
}
body.body--unit-solow .solow-landing .beca-about__photo--calc img {
  object-position: center 18%;
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
body.body--unit-solow .solow-landing .beca-about__media.fade-up.in .beca-about__photo--calc {
  animation:
    fce-beca-photo-in .9s cubic-bezier(.22, 1, .36, 1) both,
    fce-beca-photo-float 5.5s ease-in-out 1s infinite;
}
body.body--unit-solow .solow-landing .beca-about__photo--calc:hover {
  transform: rotate(-1deg) translateY(-6px);
  box-shadow: 0 32px 68px rgba(15, 23, 42, 0.22);
}
body.body--unit-solow .solow-landing .beca-about__photo--calc:hover img {
  transform: scale(1.05);
}
@keyframes fce-beca-photo-in {
  from {
    opacity: 0;
    transform: rotate(-4deg) translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: rotate(-2deg) translateY(0) scale(1);
  }
}
@keyframes fce-beca-photo-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  body.body--unit-solow .solow-landing .beca-about__photo--calc,
  body.body--unit-solow .solow-landing .beca-about__media.fade-up.in .beca-about__photo--calc {
    animation: none !important;
    transition: none !important;
  }
}

/* ── 13. Becas hero: collage animado ─────────────────────── */
body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo--main {
  animation: fce-beca-hero-main-float 6.2s ease-in-out infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo--mini {
  animation: fce-beca-hero-mini-float 5.4s ease-in-out .35s infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo--mini img {
  object-position: center 22%;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__badge {
  animation: fce-beca-hero-badge-float 4.8s ease-in-out .2s infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__sticker {
  animation: fce-beca-hero-sticker-pulse 3.6s ease-in-out infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__photo--main {
  animation:
    fce-beca-hero-main-in .9s cubic-bezier(.22, 1, .36, 1) both,
    fce-beca-hero-main-float 6.2s ease-in-out 1s infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__photo--mini {
  animation:
    fce-beca-hero-mini-in .95s cubic-bezier(.22, 1, .36, 1) .15s both,
    fce-beca-hero-mini-float 5.4s ease-in-out 1.2s infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__badge {
  animation:
    fce-beca-hero-badge-in .8s cubic-bezier(.22, 1, .36, 1) .28s both,
    fce-beca-hero-badge-float 4.8s ease-in-out 1.35s infinite;
}
body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__sticker {
  animation:
    fce-beca-hero-sticker-in .75s cubic-bezier(.22, 1, .36, 1) .42s both,
    fce-beca-hero-sticker-pulse 3.6s ease-in-out 1.5s infinite;
}
@keyframes fce-beca-hero-main-in {
  from { opacity: 0; transform: rotate(5deg) translate(18px, 24px) scale(.94); }
  to   { opacity: 1; transform: rotate(2deg) translate(0, 0) scale(1); }
}
@keyframes fce-beca-hero-mini-in {
  from { opacity: 0; transform: rotate(-7deg) translate(-16px, 20px) scale(.92); }
  to   { opacity: 1; transform: rotate(-4deg) translate(0, 0) scale(1); }
}
@keyframes fce-beca-hero-badge-in {
  from { opacity: 0; transform: rotate(-8deg) translate(-12px, -10px) scale(.88); }
  to   { opacity: 1; transform: rotate(-3deg) translate(0, 0) scale(1); }
}
@keyframes fce-beca-hero-sticker-in {
  from { opacity: 0; transform: scale(.72); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fce-beca-hero-main-float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2.5deg) translateY(-10px); }
}
@keyframes fce-beca-hero-mini-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-9px); }
}
@keyframes fce-beca-hero-badge-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-7px); }
}
@keyframes fce-beca-hero-sticker-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo--main,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo--mini,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__badge,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__sticker,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__photo--main,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__photo--mini,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__badge,
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__media.fade-up.in .beca-hero__sticker {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   FASE UX/UI MOBILE FINAL — Landings FCE / Solow / More (320–768px)
   Solo diseño responsive; sin tocar PHP ni lógica.
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --landing-float-edge: max(16px, env(safe-area-inset-right, 0px));
    --landing-float-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    /* Alto total del flotante (WhatsApp + ecosistema) + su offset inferior;
       usado para reservar espacio bajo los CTA del hero en FCE/Solow y que
       el flotante fijo abajo-derecha nunca los tape. */
    --landing-float-clear: 180px;
    --landing-section-y: clamp(48px, 12vw, 64px);
    --landing-btn-h: 44px;
    --landing-btn-radius: 999px;
  }

  /* ── 15. Sin scroll horizontal en landings públicas ── */
  body:not(.body--learning-portal) {
    overflow-x: clip;
  }
  body:not(.body--learning-portal) #app,
  body:not(.body--learning-portal) .solow-landing,
  body:not(.body--learning-portal) .more-landing,
  body:not(.body--learning-portal) .page.active {
    overflow-x: clip;
    max-width: 100%;
  }

  /* ── 13. Espaciados uniformes entre secciones ── */
  body:not(.body--learning-portal) .section {
    padding: var(--landing-section-y) 0;
  }
  body:not(.body--learning-portal) .section--sm {
    padding: clamp(40px, 10vw, 52px) 0;
  }
  body:not(.body--learning-portal) .sec-title {
    margin-bottom: clamp(12px, 3vw, 18px);
  }
  body:not(.body--learning-portal) .sec-lead {
    margin-bottom: clamp(20px, 4vw, 28px);
  }

  /* ── 14. Tipografía: títulos balanceados ── */
  body:not(.body--learning-portal) .sec-title,
  body:not(.body--learning-portal) h2.sec-title,
  body.body--unit-solow .solow-landing .sl-oferta-head__title,
  body.body--unit-more .more-landing .am-section__title {
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  /* ── 3. Botones unificados (CTA landings) ── */
  body:not(.body--learning-portal) .btn,
  body:not(.body--learning-portal) .btn-hero,
  body:not(.body--learning-portal) a.btn,
  body:not(.body--learning-portal) button.btn {
    min-height: var(--landing-btn-h);
    padding: 11px 20px;
    font-size: .875rem;
    font-weight: 700;
    border-radius: var(--landing-btn-radius);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
  }
  body:not(.body--learning-portal) .btn--sm {
    min-height: 40px;
    padding: 9px 16px;
    font-size: .82rem;
  }
  body:not(.body--learning-portal) .btn:active:not(:disabled),
  body:not(.body--learning-portal) .btn-hero:active:not(:disabled) {
    transform: translateY(0) scale(.98);
  }

  /* ── 4. Contacto footer: petróleo elegante (FCE + Solow + More) ── */
  .footer__prebar-btn.footer__prebar-btn--wa,
  .footer__prebar .footer__prebar-btn.btn {
    border-color: rgba(94, 234, 212, .42) !important;
    color: #fff !important;
    background: linear-gradient(145deg, rgba(15, 76, 92, .88), rgba(11, 58, 74, .94)) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .footer__prebar-btn.footer__prebar-btn--wa:hover,
  .footer__prebar .footer__prebar-btn.btn:hover {
    border-color: rgba(94, 234, 212, .62) !important;
    color: #fff !important;
    background: linear-gradient(145deg, rgba(18, 92, 110, .94), rgba(13, 68, 86, .98)) !important;
    transform: translateY(-1px);
  }

  /* ── 1. Logos footer: mismo tratamiento FCE / Solow / More ── */
  .footer__prebar > a.fce-wordmark--img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    box-sizing: border-box;
    justify-self: start;
  }
  .footer__prebar .fce-wordmark__svg,
  .footer__prebar .solow-brand-logo--footer .solow-brand-logo__img {
    display: block;
    max-height: 52px !important;
    width: auto !important;
    height: auto !important;
    max-width: min(220px, 58vw) !important;
    object-fit: contain;
  }

  /* ── 5. Footer FCE: más aire (paridad Solow) ── */
  body:not(.body--unit-solow):not(.body--unit-more) .footer > .container {
    padding-top: clamp(44px, 8vw, 56px);
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__prebar {
    padding-bottom: clamp(24px, 4vw, 32px);
    margin-bottom: clamp(28px, 5vw, 36px);
    gap: 20px 24px;
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__grid {
    gap: clamp(28px, 5vw, 36px) clamp(20px, 4vw, 28px);
    margin-bottom: clamp(36px, 6vw, 48px);
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__col h5 {
    margin-bottom: .85rem;
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__col ul {
    gap: .5rem;
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__tagline {
    margin-bottom: clamp(18px, 4vw, 24px);
    line-height: 1.55;
  }
  body:not(.body--unit-solow):not(.body--unit-more) .footer__address-block {
    margin-top: clamp(8px, 2vw, 12px);
    padding-top: clamp(10px, 2vw, 14px);
  }

  /* ── 2. Alineación de tarjetas en grilla ── */
  body:not(.body--learning-portal) .how-step,
  body:not(.body--learning-portal) .home-pillar,
  body:not(.body--learning-portal) .brand-card,
  body.body--unit-solow .solow-landing .sl-facultad-card--media,
  body.body--unit-more .more-landing .am-propuesta-card,
  body:not(.body--learning-portal) .home-ranking .ranking-spotlight--banner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  body:not(.body--learning-portal) .how-step h3,
  body:not(.body--learning-portal) .home-pillar__title,
  body:not(.body--learning-portal) .brand-card__title {
    margin-top: 0;
  }

  /* ── 6–7. Contacto: curva → mapa sin invadir texto ── */
  .home-contact-nice {
    --nice-band: clamp(420px, 72vh, 680px);
  }
  .home-contact-nice__wave svg {
    height: clamp(88px, 14vh, 150px) !important;
  }
  .home-contact-nice__copy,
  .home-contact-nice__data,
  .home-contact-nice__headline,
  .home-contact-nice__sub {
    position: relative;
    z-index: 3;
  }
  .home-contact-nice__data {
    margin-bottom: clamp(16px, 4vw, 24px);
  }
  .home-contact-nice__map-wrap {
    position: relative;
    z-index: 4;
    margin-top: clamp(24px, 5vw, 36px);
    padding-top: clamp(8px, 2vw, 12px);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
  }
  .home-contact-nice__map {
    display: block;
    width: 100%;
    min-height: clamp(200px, 52vw, 280px);
  }

  /* home-why: curva no tapa copy de contacto en banda verde */
  .home-why__intro {
    padding-bottom: clamp(48px, 10vw, 72px);
  }
  .home-why__wave svg {
    height: clamp(42px, 7vw, 72px);
  }

  /* ── 8. Fotos alumnos: rostro/hombros, sin piernas ── */
  body.body--unit-solow .solow-landing .sl-facultad-card--c1 .sl-facultad-card__photo {
    object-fit: cover;
    object-position: center 14%;
    left: 50%;
    bottom: 0;
    height: 112%;
    width: 90%;
    min-width: 0;
    transform: translate(-50%, 2%) scale(1.08);
  }
  body.body--unit-solow .solow-landing .sl-facultad-card--c2 .sl-facultad-card__photo,
  body.body--unit-solow .solow-landing .sl-facultad-card--c3 .sl-facultad-card__photo {
    object-fit: cover;
    object-position: center 16%;
  }
  body.body--unit-solow .solow-landing--beca-solow .beca-hero__photo img,
  body.body--unit-solow .solow-landing--beca-solow .beca-about__photo img {
    object-fit: cover;
    object-position: center 18%;
  }

  /* ── 9. Gráficos ingresantes / becas: sin superposición ── */
  body.body--unit-solow .solow-landing .sl-chart3d {
    --maxh: clamp(118px, 32vw, 158px);
    --col-w: clamp(42px, 11vw, 56px);
    --depth: 8px;
    --pad-left: 26px;
    --xpad: clamp(44px, 11vw, 54px);
    padding-top: clamp(52px, 13vw, 76px);
    min-height: 230px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.body--unit-solow .solow-landing .sl-chart3d__row {
    gap: clamp(8px, 3.5vw, 18px);
    min-width: 270px;
  }
  body.body--unit-solow .solow-landing .sl-chart3d__col:nth-child(1) { --badge: clamp(38px, 10vw, 52px); }
  body.body--unit-solow .solow-landing .sl-chart3d__col:nth-child(2) { --badge: clamp(50px, 13vw, 66px); }
  body.body--unit-solow .solow-landing .sl-chart3d__col:nth-child(3) { --badge: clamp(62px, 17vw, 84px); }
  body.body--unit-solow .solow-landing .sl-chart3d__badge {
    transform: translate(-50%, 36%) !important;
  }
  body.body--unit-solow .solow-landing .sl-chart3d__col {
    padding-bottom: clamp(18px, 4vw, 24px);
  }
  body.body--unit-solow .solow-landing .sl-chart3d__year {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: clamp(10px, 2.5vw, 14px);
    font-size: .68rem;
    white-space: nowrap;
  }
  body.body--unit-solow .solow-landing--becas .solow-becas-growth__chart {
    overflow: hidden;
    padding: clamp(.65rem, 2vw, 1rem);
  }
  body.body--unit-solow .solow-landing--becas .solow-becas-growth__chart img {
    width: 100%;
    height: auto;
    max-height: min(280px, 72vw);
    object-fit: contain;
    object-position: center bottom;
  }

  /* Gráfico plano ingresantes (sl-chart3d--flat) — sellos/años sin pisarse */
  body.body--unit-solow .solow-landing .sl-chart3d--flat {
    --maxh: clamp(118px, 30vw, 168px);
    padding-top: 0 !important;
  }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__row {
    padding-top: clamp(1.85rem, 8.5vw, 2.5rem);
    gap: clamp(6px, 2.2vw, 14px);
  }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__col {
    gap: 0.3rem;
    max-width: none;
  }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__col:nth-child(1) { --badge: clamp(44px, 11vw, 58px); }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__col:nth-child(2) { --badge: clamp(52px, 13vw, 68px); }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__col:nth-child(3) { --badge: clamp(60px, 15vw, 78px); }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__badge {
    transform: translate(-50%, 24%) !important;
  }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__value {
    font-size: clamp(0.76rem, 2.3vw, 0.9rem);
    line-height: 1.1;
  }
  body.body--unit-solow .solow-landing .sl-chart3d--flat .sl-chart3d__year {
    font-size: clamp(0.7rem, 2vw, 0.82rem);
    line-height: 1.2;
  }

  /* ── 10. Rankings: sello adaptativo, contenido completo ── */
  .home-ranking .ranking-spotlight--banner,
  body.body--unit-solow .solow-landing .home-ranking .ranking-spotlight--banner,
  body.body--unit-solow .solow-landing .sl-ranking-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: clamp(16px, 4vw, 22px);
    padding: clamp(20px, 5vw, 28px);
    overflow: visible;
  }
  .home-ranking .ranking-spotlight__badge-circle,
  body.body--unit-solow .solow-landing .home-ranking .ranking-spotlight__badge-circle,
  body.body--unit-solow .solow-landing .sl-ranking-card__badge {
    width: clamp(120px, 34vw, 168px) !important;
    height: clamp(120px, 34vw, 168px) !important;
    flex-shrink: 0;
  }
  .ranking-spotlight__img,
  body.body--unit-solow .solow-landing .sl-ranking-card__badge img,
  body.body--unit-solow .solow-landing .ranking-spotlight__img--sello {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .ranking-spotlight__copy--banner,
  body.body--unit-solow .solow-landing .sl-ranking-card .ranking-spotlight__copy--banner {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .ranking-spotlight__lead,
  .ranking-spotlight__title {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  /* ── 11–12. Flotantes: siempre abajo-derecha, misma distancia en todo el sitio ── */
  .wa-float {
    bottom: var(--landing-float-bottom);
    right: var(--landing-float-edge);
    gap: 10px;
    z-index: 9000;
  }
  .fce-eco-float__btn,
  .wa-float__btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .home-contact-nice {
    --nice-band: clamp(460px, 78vh, 720px);
  }
  .footer__prebar > a.fce-wordmark--img {
    justify-self: center;
  }
}
