/* =========================================================
   Centro Educativo Santa FE
   Hoja de estilos principal
   Diseño institucional educativo, moderno y responsive
   ========================================================= */

/* Variables globales */
:root {
  --color-primary: #8f73cf;
  --color-primary-light: #b49ae5;
  --color-secondary: #9acb3f;
  --color-secondary-dark: #77a928;
  --color-accent: #ec4aa0;
  --color-yellow: #ffe600;
  --color-white: #ffffff;
  --color-light: #faf9fb;
  --color-muted: #6f6a74;
  --color-text: #343238;
  --color-dark: #2f2d33;
  --shadow-soft: 0 16px 40px rgba(52, 50, 56, 0.10);
  --shadow-card: 0 10px 26px rgba(52, 50, 56, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --transition: all 0.28s ease;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 4px 18px rgba(8, 38, 74, 0.08);
}

.top-bar {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.top-bar__content {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar a {
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--color-secondary);
}

.navbar {
  background: var(--color-white);
}

.navbar__content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__image {
  width: 86px;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(52, 50, 56, 0.14);
  border: 1px solid rgba(143, 115, 207, 0.16);
}

.brand__image--footer {
  background: rgba(255, 255, 255, 0.96);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  color: var(--color-primary);
  font-size: 1rem;
}

.brand__text small {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(214, 169, 53, 0.14);
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background: var(--color-white);
  border-radius: 999px;
  transition: var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero / Carrusel principal */
.hero {
  position: relative;
  min-height: 560px;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-primary);
}

.hero-carousel {
  isolation: isolate;
}

.hero-carousel__track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: inherit;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.75s ease, visibility 0.75s ease, transform 1.1s ease;
  background:
    linear-gradient(90deg, rgba(47, 45, 51, 0.58) 0%, rgba(47, 45, 51, 0.46) 42%, rgba(47, 45, 51, 0.40) 100%),
    linear-gradient(180deg, rgba(13, 24, 35, 0.20), rgba(13, 24, 35, 0.36)),
    url("assets/hero-estudiantes-1.webp") center center / cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: auto auto 34px 16px;
  width: 138px;
  height: 138px;
  border-radius: 0 28px 0 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.30) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.28;
}

.hero-slide::after {
  content: "";
  position: absolute;
  right: -76px;
  top: 28px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.hero-slide--two {
  background:
    linear-gradient(90deg, rgba(47, 45, 51, 0.56) 0%, rgba(47, 45, 51, 0.42) 45%, rgba(47, 45, 51, 0.38) 100%),
    linear-gradient(180deg, rgba(143, 115, 207, 0.18), rgba(13, 24, 35, 0.32)),
    url("assets/hero-estudiantes-2.jpg") center center / cover no-repeat;
}

.hero-slide--three {
  background:
    linear-gradient(90deg, rgba(47, 45, 51, 0.58) 0%, rgba(47, 45, 51, 0.44) 42%, rgba(47, 45, 51, 0.40) 100%),
    linear-gradient(180deg, rgba(236, 74, 160, 0.10), rgba(13, 24, 35, 0.34)),
    url("assets/hero-estudiantes-2.jpg") 72% center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-block: 88px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.section-kicker::before {
  content: "";
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.hero h2 {
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 18px;
  letter-spacing: -0.05em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.hero p {
  max-width: 660px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.carousel-control:hover {
  background: var(--color-yellow);
  color: var(--color-dark);
  transform: translateY(-50%) scale(1.06);
}

.carousel-control--prev {
  left: max(18px, calc((100vw - var(--container)) / 2 - 60px));
}

.carousel-control--next {
  right: max(18px, calc((100vw - var(--container)) / 2 - 60px));
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.is-active {
  width: 34px;
  background: var(--color-yellow);
}

@media (max-width: 1024px) {
  .hero {
    min-height: 520px;
  }

  .hero__content {
    padding-block: 80px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 500px;
  }

  .hero-slide,
  .hero-slide--two,
  .hero-slide--three {
    background-position: 64% center;
  }

  .hero-slide::before {
    width: 108px;
    height: 108px;
    left: 12px;
    bottom: 24px;
  }

  .hero-slide::after {
    width: 170px;
    height: 170px;
    right: -40px;
    top: 18px;
  }

  .carousel-control--prev {
    left: 12px;
  }

  .carousel-control--next {
    right: 12px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 460px;
  }

  .hero-slide,
  .hero-slide--two,
  .hero-slide--three {
    background-position: 66% center;
  }

  .hero__content {
    max-width: 100%;
    padding-block: 76px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(1.9rem, 10vw, 3.15rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .carousel-control {
    width: 42px;
    height: 42px;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(214, 169, 53, 0.25);
}

.btn--primary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* Secciones */
.section {
  padding: 96px 0;
}

.section--light {
  background: var(--color-light);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.split__content h2,
.form-layout__intro h2,
.contact-info h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.section-heading p,
.split__content p,
.form-layout__intro p,
.contact-info p {
  color: var(--color-muted);
}

/* Quiénes somos */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split__content p + p {
  margin-top: 16px;
}

.stats-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
}

.stat-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--color-muted);
  font-size: 0.93rem;
}

.image-card {
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.image-card__placeholder {
  min-height: 420px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(8, 38, 74, 0.86), rgba(18, 61, 112, 0.78)),
    radial-gradient(circle at 70% 30%, rgba(214, 169, 53, 0.50), transparent 30%),
    linear-gradient(135deg, #dfe8f5, #ffffff);
}

/* Tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cards-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.program-card,
.activity-card,
.news-card,
.quick-card,
.contact-form,
.map-card {
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.info-card:hover,
.program-card:hover,
.activity-card:hover,
.news-card:hover,
.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.info-card {
  padding: 34px;
  border: 1px solid rgba(8, 38, 74, 0.08);
}

.info-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(214, 169, 53, 0.16);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.info-card h3,
.program-card h3,
.activity-card h3,
.news-card h3,
.quick-card h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.info-card p,
.program-card p,
.activity-card p,
.news-card p,
.quick-card p {
  color: var(--color-muted);
}

.program-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border-top: 5px solid var(--color-accent);
}

.program-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(214, 169, 53, 0.12);
}

.program-card__level {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 900;
}

.program-card a,
.news-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-accent);
  font-weight: 800;
}

.program-card a:hover,
.news-card a:hover {
  color: var(--color-primary);
}

/* Actividades */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.activity-card {
  padding: 28px;
  border: 1px solid rgba(8, 38, 74, 0.08);
}

.activity-card span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--color-light);
  font-size: 1.8rem;
}

/* Noticias */
.section--news-reference {
  background: #eeeeee;
  padding: 27px 0 29px;
}

.news-reference {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 20px;
  align-items: start;
}

.news-reference__column {
  min-width: 0;
}

.news-reference__heading {
  margin-bottom: 15px;
}

.news-reference__heading h2 {
  color: #142033;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.3px;
}

.news-reference__heading span {
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 13px;
  background: #c8c8c8;
}

.news-reference__list {
  border-top: 1px solid #d6d6d6;
}

.news-reference__item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 15px;
  padding: 19px 0 14px;
  border-bottom: 1px solid #d6d6d6;
}

.news-reference__thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.news-reference__content h3 {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.15px;
}

.news-reference__content p {
  max-width: 365px;
  color: #868686;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.68;
  margin-bottom: 7px;
}

.news-reference__meta,
.events-reference__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: #686f79;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.news-reference__meta span,
.events-reference__meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-date::before {
  content: "□";
  color: #151515;
  font-size: 12px;
  line-height: 1;
}

.meta-time::before {
  content: "◷";
  color: #151515;
  font-size: 13px;
  line-height: 1;
}

.news-reference__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  min-height: 41px;
  margin-top: 19px;
  padding: 0 21px;
  border: 3px solid #c8c8c8;
  background: transparent;
  color: #111111;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

.news-reference__button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #ffffff;
  transform: translateY(-1px);
}

.news-reference__button--small {
  min-width: 106px;
  min-height: 41px;
  margin-top: 19px;
  padding-inline: 18px;
}

.events-reference__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.events-reference__card {
  min-width: 0;
}

.events-reference__image {
  height: 273px;
  overflow: hidden;
  border-bottom: 4px solid var(--color-accent);
  background: #dddddd;
}

.events-reference__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.events-reference__card h3 {
  min-height: 50px;
  margin-top: 20px;
  margin-bottom: 11px;
  color: #142033;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.55px;
  text-transform: uppercase;
}

.events-reference__meta {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .news-reference {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .news-reference__content p {
    max-width: none;
  }

  .events-reference__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section--news-reference {
    padding: 52px 0;
  }

  .events-reference__grid {
    grid-template-columns: 1fr;
  }

  .events-reference__image {
    height: 300px;
  }
}

@media (max-width: 560px) {
  .news-reference__item {
    grid-template-columns: 1fr;
  }

  .news-reference__thumb {
    width: 100%;
    height: 175px;
  }

  .events-reference__image {
    height: 220px;
  }

  .events-reference__card h3 {
    min-height: auto;
    font-size: 22px;
  }
}

/* Formulario */


.cta-section {
  background:
    linear-gradient(135deg, rgba(8, 38, 74, 0.96), rgba(18, 61, 112, 0.94)),
    radial-gradient(circle at 12% 18%, rgba(214, 169, 53, 0.18), transparent 25%);
  color: var(--color-white);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.form-layout__intro h2,
.form-layout__intro p {
  color: var(--color-white);
}

.form-layout__intro p {
  opacity: 0.86;
}

.check-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 900;
}

.contact-form {
  padding: 30px;
  color: var(--color-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.94rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(8, 38, 74, 0.16);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: var(--transition);
  background: var(--color-white);
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(214, 169, 53, 0.16);
}

.form-message {
  margin-top: 14px;
  min-height: 24px;
  color: var(--color-primary);
  font-weight: 700;
}

/* Accesos rápidos */
.quick-access {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-card {
  display: block;
  padding: 34px;
  border-bottom: 5px solid var(--color-accent);
}

.quick-card span {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 2.2rem;
}

/* Contacto */
.contact-section {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list div {
  padding: 18px;
  border-radius: 16px;
  background: var(--color-light);
  border-left: 4px solid var(--color-accent);
}

.contact-list strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-list span {
  color: var(--color-muted);
}

.map-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-light);
  box-shadow: var(--shadow-soft);
}

.map-card iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
  filter: saturate(1.05);
}

.map-card__link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(52, 50, 56, 0.18);
  transition: var(--transition);
}

.map-card__link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 34px;
  padding: 66px 0;
}

.brand--footer .brand__text strong,
.brand--footer .brand__text small {
  color: var(--color-white);
}

.footer p {
  margin-top: 18px;
}

.footer h3 {
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer a {
  transition: var(--transition);
}

.footer a:hover {
  color: var(--color-secondary);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-secondary);
  font-weight: 900;
  text-transform: uppercase;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
  text-align: center;
  font-size: 0.92rem;
}

/* Animaciones de aparición */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid,
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .form-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 86px;
  }

  .top-bar {
    display: none;
  }

  .navbar__content {
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--color-white);
    box-shadow: 0 18px 30px rgba(8, 38, 74, 0.14);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    width: 100%;
    border-radius: 12px;
    justify-content: center;
  }

  .hero {
    min-height: 590px;
  }

  .hero__content {
    padding-block: 86px;
  }

  .section {
    padding: 72px 0;
  }

  .stats-grid,
  .quick-access {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .brand__text strong {
    font-size: 0.94rem;
  }

  .cards-grid,
  .cards-grid--two,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
  }

  .hero__actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .image-card__placeholder,
  .map-card {
    min-height: 300px;
  }

  .contact-form,
  .info-card,
  .program-card,
  .activity-card,
  .quick-card {
    padding: 24px;
  }

  .news-card {
    flex-direction: column;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
}



/* Animación especial para Niveles académicos */
.program-card {
  isolation: isolate;
  transform: translateY(0) scale(1);
  will-change: transform;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: auto 24px 18px 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary), var(--color-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 1;
}

.program-card:hover {
  transform: translateY(-14px) scale(1.025);
  box-shadow: 0 22px 46px rgba(52, 50, 56, 0.18);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover::after {
  transform: scale(1.18);
  opacity: 0.95;
}

.program-card__level {
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.program-card:hover .program-card__level {
  transform: rotate(-8deg) scale(1.12);
  background: var(--color-accent);
  color: var(--color-white);
}

.program-card h3,
.program-card p,
.program-card a {
  position: relative;
  z-index: 2;
}

.program-card:hover h3 {
  color: var(--color-accent);
}

.program-card:hover a {
  transform: translateX(6px);
}

.program-card a {
  transition: transform 0.28s ease, color 0.28s ease;
}


/* Mejoras visuales: Actividades escolares y Servicios a la comunidad */
.activity-card,
.quick-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(143, 115, 207, 0.10);
  transform: translateY(0) scale(1);
  will-change: transform;
}

.activity-card::before,
.quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(236, 74, 160, 0.13), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(154, 203, 63, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.activity-card::after,
.quick-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.36s ease;
}

.activity-card:hover,
.quick-card:hover {
  transform: translateY(-12px) scale(1.025);
  box-shadow: 0 22px 46px rgba(52, 50, 56, 0.16);
}

.activity-card:hover::before,
.quick-card:hover::before {
  opacity: 1;
}

.activity-card:hover::after,
.quick-card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(143, 115, 207, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.card-icon--pink {
  color: var(--color-accent);
  background: rgba(236, 74, 160, 0.12);
}

.card-icon--green {
  color: var(--color-secondary-dark);
  background: rgba(154, 203, 63, 0.16);
}

.card-icon--purple {
  color: var(--color-primary);
  background: rgba(143, 115, 207, 0.14);
}

.card-icon--yellow {
  color: #b99e00;
  background: rgba(255, 230, 0, 0.20);
}

.activity-card:hover .card-icon,
.quick-card:hover .card-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.08);
  box-shadow: 0 14px 28px rgba(52, 50, 56, 0.14);
}

.activity-card:hover .card-icon--pink,
.quick-card:hover .card-icon--pink {
  background: var(--color-accent);
  color: var(--color-white);
}

.activity-card:hover .card-icon--green,
.quick-card:hover .card-icon--green {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.activity-card:hover .card-icon--purple,
.quick-card:hover .card-icon--purple {
  background: var(--color-primary);
  color: var(--color-white);
}

.activity-card:hover .card-icon--yellow,
.quick-card:hover .card-icon--yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
}

.activity-card h3,
.quick-card h3 {
  transition: color 0.28s ease, transform 0.28s ease;
}

.activity-card p,
.quick-card p {
  transition: color 0.28s ease;
}

.activity-card:hover h3,
.quick-card:hover h3 {
  color: var(--color-accent);
  transform: translateX(3px);
}

.activity-card:hover p,
.quick-card:hover p {
  color: var(--color-text);
}

.quick-card {
  min-height: 245px;
}

.quick-card .card-icon {
  margin-bottom: 20px;
}

/* Contacto: texto y mapa con el mismo alto */
.contact-grid {
  align-items: stretch;
}

.contact-info,
.map-card {
  min-height: 470px;
  height: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(143, 115, 207, 0.10);
}

.contact-list {
  margin-top: 24px;
}

.map-card iframe {
  height: 100%;
  min-height: 470px;
}

@media (max-width: 1024px) {
  .contact-info,
  .map-card,
  .map-card iframe {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .activity-card,
  .quick-card {
    min-height: auto;
  }

  .contact-info {
    padding: 24px;
  }

  .contact-info,
  .map-card,
  .map-card iframe {
    min-height: 340px;
  }
}


/* Animaciones adicionales: Noticias y Eventos */
.news-reference__item {
  transition: background 0.28s ease, padding-left 0.28s ease;
}

.news-reference__item:hover {
  background: rgba(236, 74, 160, 0.045);
  padding-left: 8px;
}

.news-reference__thumb {
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.news-reference__item:hover .news-reference__thumb {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.04);
  box-shadow: 0 12px 22px rgba(52, 50, 56, 0.16);
}

.news-reference__content h3 {
  transition: color 0.28s ease, transform 0.28s ease;
}

.news-reference__item:hover .news-reference__content h3 {
  color: var(--color-primary);
  transform: translateX(5px);
}

.news-reference__content p,
.news-reference__meta {
  transition: color 0.28s ease;
}

.news-reference__item:hover .news-reference__content p,
.news-reference__item:hover .news-reference__meta {
  color: var(--color-text);
}

.events-reference__card {
  cursor: pointer;
}

.events-reference__image {
  position: relative;
  overflow: hidden;
}

.events-reference__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(143, 115, 207, 0.22), rgba(236, 74, 160, 0.18)),
    radial-gradient(circle at 80% 20%, rgba(255, 230, 0, 0.22), transparent 28%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.events-reference__image img {
  transition: transform 0.55s ease, filter 0.55s ease;
}

.events-reference__card:hover .events-reference__image img {
  transform: scale(1.09);
  filter: saturate(1.18) contrast(1.05);
}

.events-reference__card:hover .events-reference__image::after {
  opacity: 1;
}

.events-reference__card h3 {
  transition: color 0.28s ease, transform 0.28s ease;
}

.events-reference__card:hover h3 {
  color: var(--color-accent);
  transform: translateY(-3px);
}

.events-reference__card .news-reference__button {
  transition: transform 0.28s ease, border-color 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.events-reference__card:hover .news-reference__button {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #ffffff;
}


/* Ajustes de títulos, imagen institucional y contadores */
.section-kicker {
  color: var(--color-accent);
}

.brand__text small {
  color: var(--color-accent);
}

.carousel-dots button.is-active {
  background: var(--color-yellow);
}

.carousel-control:hover {
  background: var(--color-yellow);
  color: var(--color-dark);
}

.image-card--photo {
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  background: var(--color-white);
  border: 8px solid var(--color-white);
}

.image-card--photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.counter-number {
  display: inline-block;
  min-width: 1.8ch;
  color: var(--color-accent);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: rgba(236, 74, 160, 0.10);
}

.stat-card strong {
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .image-card--photo,
  .image-card--photo img {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .image-card--photo,
  .image-card--photo img {
    min-height: 300px;
  }

  .image-card--photo {
    border-width: 6px;
  }
}


/* Niveles académicos: números sobre círculo amarillo */
.program-card__level,
.program-card:hover .program-card__level {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: 0 12px 24px rgba(255, 230, 0, 0.24);
}

.program-card:hover .program-card__level {
  transform: rotate(-8deg) scale(1.12);
}

/* Misión y Visión: nuevos iconos y animación */
.info-card--mission,
.info-card--vision {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(143, 115, 207, 0.12);
  transform: translateY(0) scale(1);
  will-change: transform;
}

.info-card--mission::before,
.info-card--vision::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(236, 74, 160, 0.14), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(154, 203, 63, 0.16), transparent 32%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.info-card--mission::after,
.info-card--vision::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 22px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.36s ease;
}

.info-card--mission:hover,
.info-card--vision:hover {
  transform: translateY(-12px) scale(1.018);
  box-shadow: 0 22px 46px rgba(52, 50, 56, 0.16);
}

.info-card--mission:hover::before,
.info-card--vision:hover::before {
  opacity: 1;
}

.info-card--mission:hover::after,
.info-card--vision:hover::after {
  transform: scaleX(1);
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.philosophy-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.philosophy-icon--mission {
  background: rgba(236, 74, 160, 0.12);
  color: var(--color-accent);
}

.philosophy-icon--vision {
  background: rgba(143, 115, 207, 0.14);
  color: var(--color-primary);
}

.info-card--mission:hover .philosophy-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: rotate(-7deg) scale(1.08);
  box-shadow: 0 14px 28px rgba(236, 74, 160, 0.18);
}

.info-card--vision:hover .philosophy-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(7deg) scale(1.08);
  box-shadow: 0 14px 28px rgba(143, 115, 207, 0.20);
}

.info-card--mission h3,
.info-card--vision h3 {
  transition: color 0.28s ease, transform 0.28s ease;
}

.info-card--mission:hover h3,
.info-card--vision:hover h3 {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.34);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.32);
  animation: whatsappPulse 1.8s ease-out infinite;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 20px 38px rgba(37, 211, 102, 0.44);
  filter: saturate(1.08);
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* Iconos sociales en footer */
.social-links a {
  color: var(--color-yellow);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .whatsapp-float svg {
    width: 31px;
    height: 31px;
  }
}


/* Ajustes: niveles académicos y fondo de solicitud de información */

/* Invertir colores de los círculos en Niveles académicos:
   estado inicial amarillo y hover morado */
.program-card__level {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: 0 12px 24px rgba(255, 230, 0, 0.24);
}

.program-card:hover .program-card__level {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 28px rgba(143, 115, 207, 0.28);
  transform: rotate(-8deg) scale(1.12);
}

/* Fondo llamativo para Solicitud de información */
.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(236, 74, 160, 0.92), rgba(143, 115, 207, 0.88)),
    url("assets/cta-pattern-pink-base.jpg") center/cover no-repeat;
  background-blend-mode: multiply;
  color: var(--color-white);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.10), transparent 22%),
    radial-gradient(circle at 82% 75%, rgba(154, 203, 63, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(47, 45, 51, 0.12), rgba(47, 45, 51, 0.22));
  z-index: -1;
}

.cta-section .container,
.cta-section .form-layout,
.cta-section .form-layout__intro,
.cta-section .contact-form {
  position: relative;
  z-index: 1;
}

.form-layout__intro h2,
.form-layout__intro p,
.form-layout__intro .section-kicker,
.check-list li {
  text-shadow: 0 2px 10px rgba(47, 45, 51, 0.22);
}

.contact-form {
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 36px rgba(52, 50, 56, 0.16);
}

@media (max-width: 820px) {
  .cta-section {
    background-position: center;
  }
}

@media (max-width: 560px) {
  .cta-section {
    background:
      linear-gradient(135deg, rgba(236, 74, 160, 0.94), rgba(143, 115, 207, 0.90)),
      url("assets/cta-pattern-pink-base.jpg") center/cover no-repeat;
    background-blend-mode: multiply;
  }
}


/* Ajustes refinados: números amarillos y fondo escolar rosado */

/* Niveles académicos: números en amarillo */
.program-card__level {
  background: var(--color-primary);
  color: var(--color-yellow);
  box-shadow: 0 12px 24px rgba(143, 115, 207, 0.22);
}

.program-card:hover .program-card__level {
  background: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 14px 28px rgba(255, 230, 0, 0.24);
  transform: rotate(-8deg) scale(1.12);
}

/* Solicitud de información: fondo tipo escolar con transparencia rosada */
.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(236, 74, 160, 0.94), rgba(143, 115, 207, 0.88));
  color: var(--color-white);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("assets/cta-school-pattern-pink-reference.png") center/cover no-repeat;
  opacity: 0.16;
  filter: saturate(0.6) brightness(1.1);
  z-index: -2;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.10), transparent 22%),
    radial-gradient(circle at 82% 75%, rgba(154, 203, 63, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(47, 45, 51, 0.08), rgba(47, 45, 51, 0.18));
  z-index: -1;
}

.cta-section .container,
.cta-section .form-layout,
.cta-section .form-layout__intro,
.cta-section .contact-form {
  position: relative;
  z-index: 1;
}

.form-layout__intro h2,
.form-layout__intro p,
.form-layout__intro .section-kicker,
.check-list li {
  text-shadow: 0 2px 10px rgba(47, 45, 51, 0.18);
}

.contact-form {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 36px rgba(52, 50, 56, 0.16);
}

@media (max-width: 820px) {
  .cta-section::before {
    background-position: center;
  }
}

@media (max-width: 560px) {
  .cta-section::before {
    opacity: 0.14;
    background-size: cover;
  }
}


/* Ajuste compacto y fondo oscuro para Solicitud de información */
.cta-section {
  padding: 68px 0;
  background:
    linear-gradient(135deg, rgba(158, 54, 129, 0.96), rgba(102, 70, 154, 0.94)),
    linear-gradient(180deg, rgba(47, 45, 51, 0.10), rgba(47, 45, 51, 0.26));
  color: var(--color-white);
}

.cta-section::before {
  opacity: 0.12;
  filter: saturate(0.45) brightness(0.85);
}

.cta-section::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.07), transparent 22%),
    radial-gradient(circle at 82% 75%, rgba(154, 203, 63, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(47, 45, 51, 0.12), rgba(47, 45, 51, 0.28));
}

.form-layout {
  align-items: center;
}

.form-layout__intro h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.form-layout__intro p {
  margin-bottom: 0;
}

.check-list {
  margin-top: 24px;
  gap: 10px;
}

.contact-form {
  padding: 26px 30px;
}

.form-group {
  margin-bottom: 13px;
}

.form-group input,
.form-group select {
  min-height: 48px;
  padding: 11px 14px;
}

.form-group textarea {
  min-height: 124px;
  padding: 12px 14px;
}

.btn--full {
  min-height: 48px;
}

@media (max-width: 820px) {
  .cta-section {
    padding: 58px 0;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .cta-section {
    padding: 50px 0;
  }

  .form-layout__intro h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .form-group textarea {
    min-height: 112px;
  }
}


/* Ajuste compacto para sección Contacto */
.contact-section {
  padding: 62px 0;
}

.contact-grid {
  align-items: stretch;
  gap: 34px;
}

.contact-info,
.map-card {
  min-height: 390px;
  height: 100%;
}

.contact-info {
  padding: 28px 34px;
  justify-content: center;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 14px;
}

.contact-info p {
  margin-bottom: 0;
}

.contact-list {
  margin-top: 22px;
  gap: 12px;
}

.contact-list div {
  padding: 14px 18px;
}

.map-card iframe {
  height: 100%;
  min-height: 390px;
}

.map-card__link {
  bottom: 14px;
  right: 14px;
  min-height: 40px;
  padding: 0 18px;
}

@media (max-width: 1024px) {
  .contact-section {
    padding: 56px 0;
  }

  .contact-info,
  .map-card,
  .map-card iframe {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .contact-section {
    padding: 48px 0;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-info {
    padding: 24px;
  }

  .contact-info,
  .map-card,
  .map-card iframe {
    min-height: 320px;
  }

  .contact-list div {
    padding: 13px 16px;
  }
}


/* Ajuste general: menor separación entre secciones */
.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.split {
  gap: 38px;
}

.cards-grid,
.activity-grid,
.news-grid,
.quick-access {
  gap: 20px;
}

.cta-section {
  padding: 58px 0;
}

.contact-section {
  padding: 54px 0;
}

.footer__grid {
  padding: 48px 0;
}

.hero {
  min-height: 500px;
}

.hero__content {
  padding-block: 76px;
}

.image-card__placeholder,
.image-card--photo,
.image-card--photo img {
  min-height: 360px;
}

@media (max-width: 1024px) {
  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .hero {
    min-height: 480px;
  }

  .hero__content {
    padding-block: 68px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 50px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .cta-section {
    padding: 50px 0;
  }

  .contact-section {
    padding: 48px 0;
  }

  .hero {
    min-height: 460px;
  }

  .hero__content {
    padding-block: 64px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 44px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .cta-section {
    padding: 44px 0;
  }

  .contact-section {
    padding: 42px 0;
  }

  .footer__grid {
    padding: 38px 0;
  }

  .hero {
    min-height: 430px;
  }

  .hero__content {
    padding-block: 58px;
  }
}


/* Ajuste: fondo más oscuro en Solicitud de información */
.cta-section {
  background:
    linear-gradient(135deg, rgba(102, 38, 92, 0.97), rgba(68, 48, 116, 0.96)),
    linear-gradient(180deg, rgba(47, 45, 51, 0.24), rgba(47, 45, 51, 0.42));
  color: var(--color-white);
}

.cta-section::before {
  opacity: 0.10;
  filter: saturate(0.38) brightness(0.72);
}

.cta-section::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 82% 75%, rgba(154, 203, 63, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(47, 45, 51, 0.22), rgba(47, 45, 51, 0.38));
}

.form-layout__intro h2,
.form-layout__intro p,
.form-layout__intro .section-kicker,
.check-list li {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.30);
}


/* Página Noticias */
.news-page-hero {
  padding: 38px 0 24px;
  background: linear-gradient(180deg, #ffffff, var(--color-light));
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: rgba(143, 115, 207, 0.07);
  color: var(--color-muted);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 800;
}

.breadcrumb a::before {
  content: "🎓";
  margin-right: 8px;
}

.news-page-title h1 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  margin-bottom: 10px;
}

.news-page-title p {
  max-width: 720px;
  color: var(--color-muted);
}

.news-listing-section {
  padding-top: 34px;
}

.news-listing-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.news-listing-toolbar h2 {
  color: var(--color-primary);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 4px;
}

.news-listing-toolbar p,
.news-listing-toolbar span {
  color: var(--color-muted);
}

.news-listing-toolbar span {
  font-weight: 800;
  font-size: 0.92rem;
}

.news-listing {
  display: grid;
  gap: 20px;
}

.news-listing-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid rgba(143, 115, 207, 0.12);
  box-shadow: 0 10px 28px rgba(52, 50, 56, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.news-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(52, 50, 56, 0.12);
}

.news-listing-card__image {
  display: block;
  min-height: 250px;
  overflow: hidden;
}

.news-listing-card__image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.news-listing-card:hover .news-listing-card__image img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.news-listing-card__body {
  display: grid;
  align-content: center;
  padding: 26px 32px;
}

.news-listing-card__body h3 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  transition: color 0.28s ease, transform 0.28s ease;
}

.news-listing-card:hover h3 {
  color: var(--color-accent);
  transform: translateX(5px);
}

.news-listing-card__body p {
  color: #7d7d7d;
  font-weight: 700;
  margin-bottom: 16px;
}

.news-listing-card__body time {
  color: #888;
  font-weight: 700;
  margin-bottom: 18px;
}

.news-listing-card__button {
  justify-self: end;
  min-width: 126px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #c8c8c8;
  background: transparent;
  color: var(--color-dark);
  font-weight: 800;
  transition: var(--transition);
}

.news-listing-card__button:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  min-height: 38px;
  border: 3px solid #c8c8c8;
  background: #ffffff;
  color: var(--color-dark);
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover:not(:disabled),
.pagination button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .news-listing-card {
    grid-template-columns: 1fr;
  }

  .news-listing-card__image,
  .news-listing-card__image img {
    min-height: 280px;
  }

  .news-listing-card__button {
    justify-self: start;
  }

  .news-listing-toolbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .news-page-hero {
    padding-top: 26px;
  }

  .breadcrumb {
    width: 100%;
  }

  .news-listing-card__image,
  .news-listing-card__image img {
    min-height: 210px;
  }

  .news-listing-card__body {
    padding: 22px;
  }

  .news-listing-card__body h3 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .news-listing-card__button {
    width: 100%;
  }
}


/* Ajustes compactos para página Noticias */
.news-page-hero {
  padding: 30px 0 16px;
}

.news-page-title h1 {
  margin-bottom: 8px;
}

.news-page-title p {
  max-width: 780px;
  margin-bottom: 0;
}

.news-listing-section {
  padding-top: 24px;
}

.news-listing-toolbar {
  display: none;
}

.news-listing {
  gap: 14px;
}

.news-listing-card {
  grid-template-columns: 34% 1fr;
  min-height: 168px;
  border-radius: 7px;
}

.news-listing-card__image {
  min-height: 168px;
}

.news-listing-card__image img {
  min-height: 168px;
}

.news-listing-card__body {
  padding: 18px 24px;
}

.news-listing-card__body h3 {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  margin-bottom: 9px;
}

.news-listing-card__body p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 9px;
}

.news-listing-card__body time {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-listing-card__button {
  min-width: 108px;
  min-height: 38px;
  border-width: 2px;
  font-size: 0.9rem;
}

.pagination {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .news-listing-card {
    grid-template-columns: 1fr;
  }

  .news-listing-card__image,
  .news-listing-card__image img {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .news-page-hero {
    padding-top: 22px;
  }

  .news-listing-section {
    padding-top: 18px;
  }

  .news-listing-card__body {
    padding: 18px;
  }

  .news-listing-card__body h3 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .news-listing-card__image,
  .news-listing-card__image img {
    min-height: 185px;
  }
}


/* Ajuste tipográfico suave para Noticias */
.news-listing-card__body h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

.news-listing-card__body p {
  font-weight: 500;
  color: #6f6a74;
}

.news-listing-card__body time {
  font-weight: 500;
  color: #8a8490;
}

.news-listing-card__button {
  font-weight: 700;
}

.news-page-title h1 {
  font-weight: 600;
}

.news-page-title p {
  font-weight: 400;
}


/* Ajuste: imágenes uniformes en página Noticias */
.news-listing-card {
  grid-template-columns: 320px 1fr;
  min-height: auto;
  align-items: stretch;
}

.news-listing-card__image {
  width: 100%;
  height: 185px;
  min-height: 185px;
  align-self: stretch;
}

.news-listing-card__image img {
  width: 100%;
  height: 185px;
  min-height: 185px;
  object-fit: cover;
  object-position: center;
}

.news-listing-card__body {
  min-height: 185px;
  padding: 18px 24px;
}

.news-listing-card__body h3 {
  font-size: clamp(1.35rem, 2.35vw, 2.1rem);
  margin-bottom: 8px;
}

.news-listing-card__body p {
  margin-bottom: 8px;
}

.news-listing-card__body time {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .news-listing-card {
    grid-template-columns: 1fr;
  }

  .news-listing-card__image,
  .news-listing-card__image img {
    height: 210px;
    min-height: 210px;
  }

  .news-listing-card__body {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .news-listing-card__image,
  .news-listing-card__image img {
    height: 180px;
    min-height: 180px;
  }
}


/* Corrección de paginado en Noticias */
.news-listing-card[hidden] {
  display: none !important;
}

.pagination__button.is-active,
.pagination button.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}


/* Página Detalle de Noticia */
.news-detail-page {
  padding: 34px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.news-detail-container {
  max-width: 980px;
}

.news-detail-breadcrumb {
  margin-bottom: 24px;
}

.news-detail-article {
  background: var(--color-white);
  border-radius: 14px;
  padding: 0 0 34px;
}

.news-detail-header h1 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.news-detail-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: #8a8490;
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-detail-meta span:first-child::before {
  content: "👤";
}

.news-detail-meta span:last-child::before {
  content: "🗓";
}

.news-detail-cover {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(52, 50, 56, 0.10);
}

.news-detail-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-detail-content {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.75;
}

.news-detail-content h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  margin: 26px 0 14px;
}

.news-detail-content p {
  margin-bottom: 16px;
}

.news-detail-content ul {
  list-style: disc;
  padding-left: 28px;
  margin: 12px 0 18px;
}

.news-detail-content li {
  margin-bottom: 8px;
}

.news-detail-content hr {
  border: 0;
  border-top: 1px solid rgba(52, 50, 56, 0.16);
  margin: 24px 0;
}

.news-detail-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.news-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(236, 74, 160, 0.20);
  transition: var(--transition);
}

.news-detail-button:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.news-detail-button--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid rgba(143, 115, 207, 0.35);
  box-shadow: none;
}

.news-detail-button--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 560px) {
  .news-detail-page {
    padding: 24px 0 48px;
  }

  .news-detail-meta {
    justify-content: flex-start;
  }

  .news-detail-cover img {
    max-height: 320px;
  }

  .news-detail-content {
    font-size: 0.98rem;
  }

  .news-detail-button {
    width: 100%;
  }
}


/* Página Detalle de Noticia 2 columnas */
.news-detail-two-page {
  padding: 34px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.news-detail-two-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, 0.9fr);
  gap: 38px;
  align-items: start;
}

.news-detail-two-main {
  min-width: 0;
}

.news-detail-two-header h1 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.news-detail-two-cover {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(52, 50, 56, 0.10);
}

.news-detail-two-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-detail-two-meta {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  color: #8a8490;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 12px 0 20px;
}

.news-detail-two-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-detail-two-meta span:first-child::before {
  content: "👤";
}

.news-detail-two-meta span:last-child::before {
  content: "🗓";
}

.news-detail-two-content {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.72;
}

.news-detail-two-content h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  margin: 24px 0 14px;
}

.news-detail-two-content p {
  margin-bottom: 15px;
}

.news-detail-two-content ul {
  list-style: disc;
  padding-left: 28px;
  margin: 12px 0 18px;
}

.news-detail-two-content li {
  margin-bottom: 7px;
}

.news-detail-two-content hr {
  border: 0;
  border-top: 1px solid rgba(52, 50, 56, 0.15);
  margin: 22px 0;
}

.news-detail-sidebar {
  position: sticky;
  top: 112px;
}

.sidebar-block {
  background: var(--color-white);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(52, 50, 56, 0.08);
  border: 1px solid rgba(143, 115, 207, 0.10);
}

.sidebar-heading {
  margin-bottom: 16px;
}

.sidebar-heading h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.sidebar-heading span {
  display: block;
  width: 42px;
  height: 2px;
  background: #c8c8c8;
  margin-top: 12px;
}

.sidebar-news-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(52, 50, 56, 0.12);
}

.sidebar-news-card__image {
  display: block;
  width: 78px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
}

.sidebar-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.sidebar-news-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.sidebar-news-card h3 {
  color: var(--color-accent);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.16;
  margin-bottom: 6px;
  transition: color 0.28s ease, transform 0.28s ease;
}

.sidebar-news-card:hover h3 {
  color: var(--color-primary);
  transform: translateX(3px);
}

.sidebar-news-card p {
  color: #777;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 7px;
}

.sidebar-news-card__meta {
  color: #8a8490;
  font-size: 0.78rem;
  font-weight: 600;
}

.sidebar-news-card__meta span::before {
  content: "🗓 ";
}

.sidebar-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 24px;
  border: 3px solid #c8c8c8;
  background: transparent;
  color: var(--color-dark);
  font-weight: 800;
  transition: var(--transition);
}

.sidebar-view-all:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .news-detail-two-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    position: static;
  }

  .sidebar-block {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .news-detail-two-page {
    padding: 24px 0 48px;
  }

  .news-detail-two-header h1 {
    font-size: clamp(1.35rem, 2.25vw, 2.05rem);
  }

  .news-detail-two-meta {
    justify-content: flex-start;
  }

  .news-detail-two-cover img {
    max-height: 320px;
  }

  .news-detail-two-content {
    font-size: 0.98rem;
  }

  .sidebar-news-card {
    grid-template-columns: 74px 1fr;
  }

  .sidebar-view-all {
    width: 100%;
  }
}


/* Ajuste: textos largos en Misión y Visión */
.info-card--mission,
.info-card--vision {
  min-height: 330px;
}

.info-card--mission p,
.info-card--vision p {
  line-height: 1.72;
}

@media (max-width: 820px) {
  .info-card--mission,
  .info-card--vision {
    min-height: auto;
  }
}


/* Ajuste: párrafos justificados en todo el sitio */
main p,
.footer p,
.hero p,
.section-heading p,
.info-card p,
.program-card p,
.activity-card p,
.quick-card p,
.news-reference__content p,
.form-layout__intro p,
.contact-info p,
.news-listing-card__body p,
.news-detail-content p,
.news-detail-two-content p,
.sidebar-news-card p {
  text-align: justify;
  text-align-last: left;
}

/* Mantener títulos y textos cortos sin justificar */
h1,
h2,
h3,
h4,
h5,
h6,
.section-kicker,
.btn,
.news-reference__button,
.news-listing-card__button,
.news-detail-button,
.sidebar-view-all {
  text-align: inherit;
}


/* Ajuste: subtítulos de secciones centrados */
.section-heading p,
.news-page-title p {
  text-align: center;
  text-align-last: center;
}

/* En secciones con texto introductorio lateral se mantiene la lectura natural */
.form-layout__intro p,
.contact-info p,
.news-detail-content p,
.news-detail-two-content p {
  text-align: justify;
  text-align-last: left;
}


/* Submenú principal: Nosotros */
.anchor-offset {
  position: relative;
  top: -110px;
  height: 0;
  visibility: hidden;
}

.nav-item--has-submenu {
  position: relative;
}

.nav-link-with-submenu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.submenu-arrow {
  font-size: 0.78rem;
  transition: transform 0.28s ease;
}

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 235px;
  padding: 10px;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.16);
  border: 1px solid rgba(143, 115, 207, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  z-index: 1000;
}

.submenu::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--color-white);
  border-left: 1px solid rgba(143, 115, 207, 0.12);
  border-top: 1px solid rgba(143, 115, 207, 0.12);
  transform: rotate(45deg);
}

.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--color-dark);
  font-weight: 800;
  white-space: nowrap;
  transition: var(--transition);
}

.submenu a:hover {
  background: rgba(236, 74, 160, 0.12);
  color: var(--color-accent);
  transform: translateX(4px);
}

.nav-item--has-submenu:hover .submenu,
.nav-item--has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item--has-submenu:hover .submenu-arrow,
.nav-item--has-submenu:focus-within .submenu-arrow {
  transform: rotate(180deg);
}

@media (max-width: 820px) {
  .nav-item--has-submenu {
    width: 100%;
  }

  .nav-link-with-submenu {
    width: 100%;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    padding: 6px;
    border-radius: 14px;
    box-shadow: none;
    background: rgba(143, 115, 207, 0.06);
    border: 1px solid rgba(143, 115, 207, 0.10);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu::before {
    display: none;
  }

  .submenu a {
    padding: 10px 14px 10px 24px;
    font-size: 0.95rem;
  }

  .submenu a:hover {
    transform: none;
  }

  .submenu-arrow {
    transform: rotate(0deg);
  }

  .nav-item--has-submenu:hover .submenu-arrow,
  .nav-item--has-submenu:focus-within .submenu-arrow {
    transform: rotate(0deg);
  }
}


/* Ajuste: texto del submenú sin negritas */
.submenu a {
  font-weight: 500;
}


/* Ajuste: submenú móvil desplegable */
@media (max-width: 820px) {
  .nav-menu .nav-item--has-submenu .submenu {
    display: none;
    margin-top: 8px;
  }

  .nav-menu .nav-item--has-submenu.is-open .submenu {
    display: block;
  }

  .nav-menu .nav-item--has-submenu.is-open .submenu-arrow {
    transform: rotate(180deg);
  }

  .nav-menu .nav-item--has-submenu .nav-link-with-submenu {
    cursor: pointer;
  }
}


/* Ajuste: menú móvil con cierre manual */
@media (max-width: 820px) {
  .nav-menu .submenu a {
    cursor: pointer;
  }
}


/* Ajuste definitivo: menú móvil con cierre manual */
@media (max-width: 820px) {
  .nav-menu a {
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu .submenu a {
    font-weight: 500;
  }
}


/* Ajuste: comportamiento final del menú móvil */
@media (max-width: 820px) {
  .nav-menu .submenu a {
    font-weight: 500;
  }

  .nav-menu .nav-link-with-submenu {
    cursor: pointer;
  }
}


/* Página Valores */
.values-page-hero {
  padding: 38px 0 42px;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.values-breadcrumb {
  margin-bottom: 28px;
}

.values-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.15fr);
  gap: 58px;
  align-items: center;
}

.values-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.values-illustration__circle {
  width: min(340px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(236, 74, 160, 0.13) 100%),
    linear-gradient(135deg, rgba(143, 115, 207, 0.16), rgba(255, 205, 49, 0.22));
  box-shadow: 0 18px 40px rgba(52, 50, 56, 0.10);
  position: relative;
  overflow: hidden;
}

.values-illustration__circle::before,
.values-illustration__circle::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(143, 115, 207, 0.12);
}

.values-illustration__circle::before {
  width: 170px;
  height: 170px;
  right: -34px;
  top: -20px;
}

.values-illustration__circle::after {
  width: 120px;
  height: 120px;
  left: -24px;
  bottom: -20px;
  background: rgba(236, 74, 160, 0.12);
}

.values-illustration__circle img {
  width: 62%;
  max-width: 210px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(52, 50, 56, 0.16));
}

.values-illustration__caption {
  text-align: center;
  margin-top: 20px;
}

.values-illustration__caption strong {
  display: block;
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.values-illustration__caption span {
  display: block;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.values-intro-content h1,
.values-intro-content h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.values-intro-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.values-intro-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  margin: 22px 0 8px;
}

.values-intro-content p {
  color: var(--color-text);
  line-height: 1.76;
  margin-bottom: 10px;
  text-align: justify;
  text-align-last: left;
}

.values-section {
  padding-top: 54px;
}

.values-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.value-card {
  min-height: 210px;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 14px 24px rgba(52, 50, 56, 0.14);
  transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 36px rgba(52, 50, 56, 0.18);
  filter: saturate(1.08);
}

.value-card h3 {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.value-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 600;
  margin: 0;
  text-align: center;
  text-align-last: center;
}

.value-card--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.value-card--yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
}

.value-card--pink {
  background: var(--color-accent);
  color: var(--color-white);
}

.value-card--soft {
  background: #e8fbf6;
  color: var(--color-dark);
}

.value-card--blue {
  background: #13a9df;
  color: var(--color-white);
}

.value-card--green {
  background: var(--color-green);
  color: var(--color-white);
}

.submenu a.submenu-active {
  background: rgba(236, 74, 160, 0.12);
  color: var(--color-accent);
}

@media (max-width: 960px) {
  .values-intro-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .values-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .values-page-hero {
    padding: 28px 0 34px;
  }

  .values-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    min-height: 180px;
  }

  .values-intro-content p {
    text-align: justify;
    text-align-last: left;
  }
}


/* Ajuste: misión y visión en página Valores */
.values-intro-content h2 {
  margin-top: 24px;
}

.values-intro-content p + h2 {
  border-top: 1px solid rgba(143, 115, 207, 0.16);
  padding-top: 18px;
}



/* Ajuste: colores únicos y texto ligero en Valores */
.values-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
}

.value-card {
  min-height: 245px;
  padding: 30px 24px;
  border-radius: 4px;
}

.value-card h3 {
  font-size: 1.9rem;
  line-height: 1.08;
  margin-bottom: 12px;
  font-weight: 500;
}

.value-card p {
  font-size: 0.92rem;
  line-height: 1.68;
  font-weight: 400;
  max-width: 96%;
  text-align: center;
  text-align-last: center;
}

/* Colores únicos para cada valor */
.value-card--lavender {
  background: #8f73cf;
  color: #ffffff;
}

.value-card--sun {
  background: #ffd731;
  color: #1f2330;
}

.value-card--rose {
  background: #e84aa0;
  color: #ffffff;
}

.value-card--mint {
  background: #a1c942;
  color: #1f2330;
}

.value-card--aqua {
  background: #22aeda;
  color: #ffffff;
}

.value-card--sage {
  background: #edf5ef;
  color: #1f2330;
}

.value-card--violet {
  background: #755ac6;
  color: #ffffff;
}

.value-card--amber {
  background: #ffb64d;
  color: #1f2330;
}

.value-card--lavender h3,
.value-card--rose h3,
.value-card--aqua h3,
.value-card--violet h3,
.value-card--lavender p,
.value-card--rose p,
.value-card--aqua p,
.value-card--violet p {
  color: #ffffff;
}

.value-card--sun h3,
.value-card--mint h3,
.value-card--sage h3,
.value-card--amber h3,
.value-card--sun p,
.value-card--mint p,
.value-card--sage p,
.value-card--amber p {
  color: #1f2330;
}

@media (max-width: 1100px) {
  .values-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .value-card h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 620px) {
  .values-card-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .value-card {
    min-height: 200px;
    padding: 26px 22px;
  }

  .value-card h3 {
    font-size: 1.6rem;
  }

  .value-card p {
    font-size: 0.9rem;
    line-height: 1.62;
  }
}


/* Página Forma de Trabajo */
.work-page-hero {
  padding: 38px 0 56px;
  background:
    radial-gradient(circle at 90% 14%, rgba(161, 201, 66, 0.16), transparent 30%),
    radial-gradient(circle at 10% 16%, rgba(143, 115, 207, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.work-breadcrumb {
  margin-bottom: 28px;
}

.work-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.work-hero-content h1 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 8px 0 18px;
}

.work-hero-content p,
.work-content-card p,
.work-field-card p,
.work-ally p {
  text-align: justify;
  text-align-last: left;
}

.work-hero-content p {
  color: var(--color-text);
  font-size: 1.04rem;
  line-height: 1.78;
  margin-bottom: 14px;
}

.work-hero-card {
  padding: 34px;
  border-radius: 26px;
  background: var(--color-white);
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.12);
  border: 1px solid rgba(143, 115, 207, 0.12);
}

.work-hero-card__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(161, 201, 66, 0.18);
  color: #6c8f24;
  margin-bottom: 20px;
}

.work-hero-card__icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.work-hero-card h2,
.work-content-card h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.work-hero-card p {
  color: var(--color-text);
  line-height: 1.72;
}

.work-section {
  padding-top: 56px;
}

.work-content-card {
  background: var(--color-white);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.10);
  border: 1px solid rgba(143, 115, 207, 0.10);
}

.work-content-card p {
  line-height: 1.78;
  margin-bottom: 16px;
}

.work-allies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 24px;
}

.work-ally {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(143, 115, 207, 0.09), rgba(236, 74, 160, 0.07));
  border: 1px solid rgba(143, 115, 207, 0.12);
  transition: var(--transition);
}

.work-ally:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(52, 50, 56, 0.12);
}

.work-ally h3 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.work-ally p {
  color: var(--color-text);
  line-height: 1.62;
  margin: 0;
}

.work-fields-section {
  padding-top: 42px;
}

.work-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.work-field-card {
  min-height: 300px;
  padding: 34px;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(52, 50, 56, 0.12);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.work-field-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 38px rgba(52, 50, 56, 0.16);
}

.work-field-card h3 {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.work-field-card p {
  line-height: 1.7;
  margin: 0;
}

.work-field-card--purple {
  background: #8f73cf;
  color: #ffffff;
}

.work-field-card--green {
  background: #a1c942;
  color: #1f2330;
}

.work-field-card--pink {
  background: #e84aa0;
  color: #ffffff;
}

.work-field-card--yellow {
  background: #ffd731;
  color: #1f2330;
}

.work-field-card--purple h3,
.work-field-card--purple p,
.work-field-card--pink h3,
.work-field-card--pink p {
  color: #ffffff;
}

.work-field-card--green h3,
.work-field-card--green p,
.work-field-card--yellow h3,
.work-field-card--yellow p {
  color: #1f2330;
}

@media (max-width: 960px) {
  .work-hero-grid,
  .work-allies-grid,
  .work-fields-grid {
    grid-template-columns: 1fr;
  }

  .work-hero-card {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .work-page-hero {
    padding: 28px 0 42px;
  }

  .work-hero-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .work-hero-card,
  .work-content-card,
  .work-field-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .work-field-card {
    min-height: auto;
  }
}


/* Ajuste: textos actualizados en campos formativos */
.work-fields-grid {
  align-items: stretch;
}

.work-field-card {
  min-height: 340px;
}

.work-field-card p {
  line-height: 1.76;
}

.work-fields-section .section-heading p + p {
  margin-top: 8px;
  font-weight: 600;
  color: var(--color-primary);
}

@media (max-width: 960px) {
  .work-field-card {
    min-height: auto;
  }
}


/* Página Nuestro Compromiso */
.commitment-hero {
  padding: 38px 0 58px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 215, 49, 0.20), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(232, 74, 160, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.commitment-breadcrumb {
  margin-bottom: 28px;
}

.commitment-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.commitment-hero-content h1 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 8px 0 18px;
}

.commitment-hero-content p,
.commitment-main-card p,
.commitment-subject p,
.commitment-closing-card p {
  text-align: justify;
  text-align-last: left;
}

.commitment-hero-content p {
  color: var(--color-text);
  font-size: 1.04rem;
  line-height: 1.78;
  margin-bottom: 14px;
}

.commitment-highlight {
  padding: 34px;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.12);
  border: 1px solid rgba(143, 115, 207, 0.12);
}

.commitment-highlight__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(232, 74, 160, 0.14);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.commitment-highlight__icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.commitment-highlight h2,
.commitment-main-card h2,
.commitment-closing-card h2 {
  color: var(--color-dark);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.commitment-highlight p {
  color: var(--color-text);
  line-height: 1.72;
}
.commitment-highlight__photo {
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  position: relative;
  box-shadow: 0 14px 28px rgba(52, 50, 56, 0.14);
}

.commitment-highlight__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(143, 115, 207, 0), rgba(143, 115, 207, 0.14));
  pointer-events: none;
}

.commitment-highlight__photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}


.commitment-section {
  padding-top: 56px;
}

.commitment-main-card {
  background: var(--color-white);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.10);
  border: 1px solid rgba(143, 115, 207, 0.10);
}

.commitment-main-card > p {
  line-height: 1.78;
  margin-bottom: 28px;
}

.commitment-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.commitment-subject {
  min-height: 310px;
  padding: 30px 26px;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(52, 50, 56, 0.12);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.commitment-subject:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 38px rgba(52, 50, 56, 0.16);
}

.commitment-subject__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.commitment-subject h3 {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.08;
  margin-bottom: 12px;
  font-weight: 500;
}

.commitment-subject p {
  line-height: 1.68;
  margin: 0;
  font-weight: 400;
}

.commitment-subject--green {
  background: #a1c942;
  color: #1f2330;
}

.commitment-subject--pink {
  background: #e84aa0;
  color: #ffffff;
}

.commitment-subject--purple {
  background: #8f73cf;
  color: #ffffff;
}

.commitment-subject--blue {
  background: #22aeda;
  color: #ffffff;
}

.commitment-subject--yellow {
  background: #ffd731;
  color: #1f2330;
}

.commitment-subject--pink h3,
.commitment-subject--pink p,
.commitment-subject--purple h3,
.commitment-subject--purple p,
.commitment-subject--blue h3,
.commitment-subject--blue p {
  color: #ffffff;
}

.commitment-subject--green h3,
.commitment-subject--green p,
.commitment-subject--yellow h3,
.commitment-subject--yellow p {
  color: #1f2330;
}

.commitment-closing-section {
  padding: 12px 0 70px;
  background: var(--color-light);
}

.commitment-closing-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(143, 115, 207, 0.96), rgba(232, 74, 160, 0.88)),
    var(--color-primary);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(52, 50, 56, 0.16);
}

.commitment-closing-card .section-kicker,
.commitment-closing-card h2,
.commitment-closing-card p {
  color: #ffffff;
}

.commitment-closing-card p {
  line-height: 1.78;
  margin: 0;
}

@media (max-width: 1100px) {
  .commitment-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .commitment-hero-grid {
    grid-template-columns: 1fr;
  }

  .commitment-highlight {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .commitment-hero {
    padding: 28px 0 42px;
  }

  .commitment-hero-content h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .commitment-subject-grid {
    grid-template-columns: 1fr;
  }

  .commitment-highlight,
  .commitment-main-card,
  .commitment-subject,
  .commitment-closing-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .commitment-subject {
    min-height: auto;
  }
}


/* Ajuste: asignaturas con fotografías */
.commitment-subject-grid--photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.commitment-subject--photo {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 0;
  min-height: 390px;
  overflow: hidden;
  padding: 0;
  background: var(--color-white);
  border-radius: 6px;
  border: 14px solid transparent;
  box-shadow: 0 18px 38px rgba(52, 50, 56, 0.16);
}

.commitment-subject--photo:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 46px rgba(52, 50, 56, 0.20);
}

.commitment-subject--photo .commitment-subject__photo {
  position: relative;
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  margin: 0;
}

.commitment-subject--photo .commitment-subject__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.52) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, transparent 42%, rgba(143, 115, 207, 0.22) 100%);
  z-index: 1;
  pointer-events: none;
}

.commitment-subject--photo .commitment-subject__photo::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 96px;
  height: 36px;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.72) 0 2px,
    transparent 2px 9px
  );
  z-index: 2;
  opacity: 0.85;
}

.commitment-subject--photo .commitment-subject__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.commitment-subject--photo:hover .commitment-subject__photo img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.commitment-subject--photo .commitment-subject__body {
  padding: 34px 28px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.commitment-subject--photo .commitment-subject__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  background: rgba(143, 115, 207, 0.10);
}

.commitment-subject--photo h3 {
  color: var(--color-dark);
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  border-bottom: 1px solid rgba(52, 50, 56, 0.14);
  padding-bottom: 10px;
}

.commitment-subject--photo p {
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.72;
  font-weight: 400;
  margin-top: 4px;
}

.commitment-subject--green.commitment-subject--photo {
  border-color: #a1c942;
}

.commitment-subject--pink.commitment-subject--photo {
  border-color: #e84aa0;
}

.commitment-subject--purple.commitment-subject--photo {
  border-color: #8f73cf;
}

.commitment-subject--blue.commitment-subject--photo {
  border-color: #22aeda;
}

.commitment-subject--yellow.commitment-subject--photo {
  border-color: #ffd731;
}

.commitment-subject--green.commitment-subject--photo .commitment-subject__icon {
  background: rgba(161, 201, 66, 0.18);
}

.commitment-subject--pink.commitment-subject--photo .commitment-subject__icon {
  background: rgba(232, 74, 160, 0.14);
}

.commitment-subject--purple.commitment-subject--photo .commitment-subject__icon {
  background: rgba(143, 115, 207, 0.14);
}

.commitment-subject--blue.commitment-subject--photo .commitment-subject__icon {
  background: rgba(34, 174, 218, 0.14);
}

.commitment-subject--yellow.commitment-subject--photo .commitment-subject__icon {
  background: rgba(255, 215, 49, 0.24);
}

@media (max-width: 1100px) {
  .commitment-subject-grid--photos {
    grid-template-columns: 1fr;
  }

  .commitment-subject--photo {
    max-width: 920px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .commitment-subject--photo {
    grid-template-columns: 1fr;
    border-width: 10px;
    min-height: auto;
  }

  .commitment-subject--photo .commitment-subject__photo {
    min-height: 245px;
  }

  .commitment-subject--photo .commitment-subject__body {
    padding: 26px 22px;
  }
}


/* Ajuste: tarjetas elegantes en asignaturas */
.commitment-subject-grid--photos {
  align-items: stretch;
  gap: 30px;
}

.commitment-subject--photo {
  border-width: 0;
  border-radius: 28px;
  min-height: 430px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(52, 50, 56, 0.12);
  border: 1px solid rgba(143, 115, 207, 0.12);
  position: relative;
  isolation: isolate;
}

.commitment-subject--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 4px;
  background: linear-gradient(135deg, rgba(143, 115, 207, 0.95), rgba(161, 201, 66, 0.85), rgba(232, 74, 160, 0.85));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 3;
  opacity: 0.95;
}

.commitment-subject--photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  z-index: 3;
}

.commitment-subject--photo:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(52, 50, 56, 0.18);
}

.commitment-subject--photo .commitment-subject__photo {
  min-height: 430px;
  height: 100%;
  border-radius: 24px 0 0 24px;
  background: #f4f1f8;
}

.commitment-subject--photo .commitment-subject__photo::before {
  background:
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, rgba(31, 35, 48, 0.02) 0%, rgba(143, 115, 207, 0.26) 100%);
  opacity: 0.95;
}

.commitment-subject--photo .commitment-subject__photo img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: saturate(1.03) contrast(1.02);
}

.commitment-subject--photo:hover .commitment-subject__photo img {
  transform: scale(1.09);
  filter: saturate(1.14) contrast(1.04) brightness(1.03);
}

.commitment-subject--photo .commitment-subject__body {
  padding: 38px 34px;
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1)),
    #ffffff;
}

.commitment-subject--photo h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.commitment-subject--photo p {
  font-weight: 400;
  line-height: 1.76;
}

.commitment-subject--photo .commitment-subject__icon {
  transition: transform 0.32s ease, background 0.32s ease;
}

.commitment-subject--photo:hover .commitment-subject__icon {
  transform: rotate(-4deg) scale(1.08);
}

.commitment-subject--green.commitment-subject--photo::before {
  background: linear-gradient(135deg, #a1c942, #19e4a7, #8f73cf);
}

.commitment-subject--pink.commitment-subject--photo::before {
  background: linear-gradient(135deg, #e84aa0, #ffb64d, #8f73cf);
}

.commitment-subject--purple.commitment-subject--photo::before {
  background: linear-gradient(135deg, #8f73cf, #22aeda, #e84aa0);
}

.commitment-subject--blue.commitment-subject--photo::before {
  background: linear-gradient(135deg, #22aeda, #19e4a7, #8f73cf);
}

.commitment-subject--yellow.commitment-subject--photo::before {
  background: linear-gradient(135deg, #ffd731, #ffb64d, #a1c942);
}

@media (max-width: 1100px) {
  .commitment-subject--photo {
    min-height: 390px;
  }

  .commitment-subject--photo .commitment-subject__photo,
  .commitment-subject--photo .commitment-subject__photo img {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .commitment-subject--photo {
    min-height: auto;
    border-radius: 24px;
  }

  .commitment-subject--photo::after {
    inset: 10px;
    border-radius: 18px;
  }

  .commitment-subject--photo .commitment-subject__photo {
    min-height: 250px;
    height: 250px;
    border-radius: 22px 22px 0 0;
  }

  .commitment-subject--photo .commitment-subject__photo img {
    min-height: 250px;
    height: 250px;
  }

  .commitment-subject--photo .commitment-subject__body {
    border-radius: 0 0 22px 22px;
    padding: 28px 24px;
  }
}


/* Ajuste: footer móvil compacto sin menú principal */
@media (max-width: 820px) {
  .footer-menu-column {
    display: none !important;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0;
  }

  .footer h3 {
    margin-bottom: 12px;
  }

  .footer p {
    margin-top: 12px;
  }
}


/* Ajuste: hero de compromiso más compacto */
.commitment-hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.commitment-hero-content {
  max-width: 760px;
}

.commitment-highlight {
  max-width: 420px;
  justify-self: center;
  padding: 28px;
}

.commitment-highlight h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

.commitment-highlight p {
  line-height: 1.62;
}

.commitment-highlight__photo {
  min-height: 210px;
  margin-top: 18px;
}

.commitment-highlight__photo img {
  min-height: 210px;
  max-height: 230px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 960px) {
  .commitment-hero-grid {
    grid-template-columns: 1fr;
  }

  .commitment-highlight {
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .commitment-highlight {
    max-width: 100%;
    padding: 24px 20px;
  }

  .commitment-highlight__photo,
  .commitment-highlight__photo img {
    min-height: 200px;
    max-height: 220px;
  }
}


/* Ajuste: mensajes de noticias dinámicas */
.news-alert {
  width: 100%;
  padding: 34px;
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 14px 32px rgba(52, 50, 56, 0.10);
  border: 1px solid rgba(143, 115, 207, 0.12);
  text-align: center;
}

.news-alert h3 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.news-alert p {
  color: var(--color-text);
  margin-bottom: 18px;
  text-align: center;
  text-align-last: center;
}

.sidebar-empty {
  color: var(--color-text);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 14px 0;
}


/* Ajuste: detalle de noticia seguro y redes sociales */
.news-detail-actions--right {
  justify-content: flex-end;
  margin-top: 26px;
}

.news-detail-button--back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(143, 115, 207, 0.24);
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.news-detail-button--back:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(143, 115, 207, 0.32);
  filter: saturate(1.05);
}

@media (max-width: 620px) {
  .news-detail-actions--right {
    justify-content: stretch;
  }

  .news-detail-button--back {
    width: 100%;
  }

}


/* Ajuste: noticias dinámicas en inicio */
.news-reference__thumb-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
}

.news-reference__thumb-link .news-reference__thumb {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.news-reference__thumb-link:hover .news-reference__thumb {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.05);
}

.news-reference__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.news-reference__title-link:hover {
  color: var(--color-primary);
}

.news-reference__empty {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(143, 115, 207, 0.12);
}

.news-reference__empty h3 {
  color: var(--color-accent);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.news-reference__empty p {
  color: var(--color-text);
  line-height: 1.55;
}


/* Ajuste: justificar títulos y resúmenes de noticias en inicio */
.news-reference__content h3,
.news-reference__title-link,
.news-reference__content p {
  text-align: justify;
  text-align-last: left;
}

.news-reference__content h3 {
  width: 100%;
}

.news-reference__title-link {
  display: inline;
}


/* Ajuste: detalle de noticia título y contenido justificado */
.news-detail-two-header h1 {
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  line-height: 1.12;
  text-align: justify;
  text-align-last: left;
}

.news-detail-two-content,
.news-detail-two-content p,
.news-detail-two-content li {
  text-align: justify;
  text-align-last: left;
}

.news-detail-two-content {
  line-height: 1.82;
}

@media (max-width: 620px) {
  .news-detail-two-header h1 {
    font-size: clamp(1.30rem, 5.5vw, 1.75rem);
    text-align: left;
  }
}


/* Ajuste: títulos de noticias 1.2rem en inicio */
.news-reference__content h3 {
  font-size: 1.2rem;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.news-reference__title-link {
  font-size: inherit;
  line-height: inherit;
}

/* Ajuste: detalle título 2.5rem */
.news-detail-two-header h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  text-align: justify;
  text-align-last: left;
}

.news-detail-two-content,
.news-detail-two-content p,
.news-detail-two-content li {
  text-align: justify;
  text-align-last: left;
}

.news-detail-two-content {
  line-height: 1.82;
}

@media (max-width: 620px) {
  .news-detail-two-header h1 {
    font-size: 2rem;
    text-align: left;
  }
}

/* Ajuste: Control Escolar 50 por ciento en escritorio */
@media (min-width: 821px) {
  .quick-access {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .quick-access .quick-card {
    width: 100%;
  }
}




/* Ajuste: galería tipo collage con Lightbox */
.activity-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.activity-card--link h3,
.activity-card--link p {
  color: inherit;
}

.activity-card--link:hover h3 {
  color: var(--color-accent);
}

.gallery-experience-hero {
  padding: 42px 0 66px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 215, 49, 0.26), transparent 28%),
    radial-gradient(circle at 4% 16%, rgba(232, 74, 160, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.gallery-breadcrumb {
  margin-bottom: 28px;
}

.gallery-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  align-items: center;
  gap: 52px;
}

.gallery-experience__content h1 {
  color: var(--color-primary);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 10px 0 18px;
}

.gallery-experience__content p {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.78;
  text-align: justify;
  text-align-last: left;
  max-width: 680px;
}

.gallery-experience__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.gallery-experience__stats div {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(143, 115, 207, 0.11);
  box-shadow: 0 12px 26px rgba(52, 50, 56, 0.08);
}

.gallery-experience__stats strong {
  display: block;
  color: var(--color-accent);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.gallery-experience__stats span {
  display: block;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.28;
  margin-top: 8px;
}

.gallery-experience__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(143, 115, 207, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-experience__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(143, 115, 207, 0.32);
}

.gallery-showcase {
  min-height: 500px;
  position: relative;
}

.gallery-showcase::before {
  content: "";
  position: absolute;
  inset: 58px 14px 34px 80px;
  border-radius: 46px;
  background:
    radial-gradient(circle at 74% 12%, rgba(255, 215, 49, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(143, 115, 207, 0.16), rgba(232, 74, 160, 0.14));
}

.gallery-showcase__photo {
  position: absolute;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--color-white);
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(52, 50, 56, 0.18);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.gallery-showcase__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.gallery-showcase__photo:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 30px 62px rgba(52, 50, 56, 0.24);
}

.gallery-showcase__photo:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) brightness(1.04);
}

.gallery-showcase__photo--1 {
  width: 62%;
  height: 340px;
  left: 4%;
  top: 78px;
  z-index: 3;
  transform: rotate(-2deg);
}

.gallery-showcase__photo--2 {
  width: 46%;
  height: 238px;
  right: 0;
  top: 12px;
  z-index: 2;
  transform: rotate(3deg);
}

.gallery-showcase__photo--3 {
  width: 42%;
  height: 220px;
  right: 8%;
  bottom: 0;
  z-index: 4;
  transform: rotate(-1.5deg);
}

.gallery-empty-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.gallery-collage-section {
  padding: 72px 0;
  background: #4c3252;
  color: var(--color-white);
}

.gallery-collage-heading {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.gallery-collage-heading .section-kicker {
  color: var(--color-accent);
}

.gallery-collage-heading .section-kicker::before {
  background: var(--color-accent);
}

.gallery-collage-heading h2 {
  color: var(--color-white);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 10px 0 14px;
}

.gallery-collage-heading p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 145px;
  gap: 18px;
  background: #4c3252;
}

.gallery-collage__item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: none;
  isolation: isolate;
}

.gallery-collage__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 1;
}

.gallery-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.gallery-collage__overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #ffffff;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.gallery-collage__overlay strong,
.gallery-collage__overlay small {
  display: block;
}

.gallery-collage__overlay strong {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.gallery-collage__overlay small {
  margin-top: 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.gallery-collage__item:hover::after {
  opacity: 1;
}

.gallery-collage__item:hover img {
  transform: scale(1.07);
  filter: saturate(1.08) brightness(1.04);
}

.gallery-collage__item:hover .gallery-collage__overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-collage__item--1 {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-collage__item--2 {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-collage__item--3 {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-collage__item--4 {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery-collage__item--5 {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-collage__item--6 {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-collage__item--7 {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-collage__item--8 {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-collage__item--9 {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-collage__item--10 {
  grid-column: span 5;
  grid-row: span 2;
}

.gallery-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
}

.gallery-actions--dark .news-detail-button--back {
  background: #ffffff;
  color: var(--color-accent) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 9999;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__panel {
  position: relative;
  width: min(1180px, 100%);
  z-index: 1;
}

.gallery-lightbox__figure {
  margin: 0;
  overflow: hidden;
  background: #4c3252;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.gallery-lightbox__figure img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #4c3252;
}

.gallery-lightbox__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
  color: var(--color-white);
}

.gallery-lightbox__figure strong {
  color: var(--color-white);
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 1.22rem;
}

.gallery-lightbox__figure span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, background 0.24s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(236, 74, 160, 0.92);
}

.gallery-lightbox__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  right: 0;
  top: -58px;
  font-size: 2.1rem;
  line-height: 1;
}

.gallery-lightbox__nav {
  width: 54px;
  height: 76px;
  border-radius: 999px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
}

.gallery-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox__nav--prev {
  left: -74px;
}

.gallery-lightbox__nav--next {
  right: -74px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .gallery-collage {
    grid-auto-rows: 130px;
  }

  .gallery-lightbox__nav--prev {
    left: 8px;
  }

  .gallery-lightbox__nav--next {
    right: 8px;
  }
}

@media (max-width: 980px) {
  .gallery-experience {
    grid-template-columns: 1fr;
  }

  .gallery-showcase {
    min-height: 420px;
  }

  .gallery-collage {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 14px;
  }

  .gallery-collage__item--1,
  .gallery-collage__item--3,
  .gallery-collage__item--6,
  .gallery-collage__item--7,
  .gallery-collage__item--8 {
    grid-column: span 4;
    grid-row: span 2;
  }

  .gallery-collage__item--2,
  .gallery-collage__item--4,
  .gallery-collage__item--5,
  .gallery-collage__item--9,
  .gallery-collage__item--10 {
    grid-column: span 8;
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  .gallery-experience-hero {
    padding-bottom: 48px;
  }

  .gallery-experience__stats {
    grid-template-columns: 1fr;
  }

  .gallery-showcase {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .gallery-showcase::before {
    display: none;
  }

  .gallery-showcase__photo,
  .gallery-showcase__photo--1,
  .gallery-showcase__photo--2,
  .gallery-showcase__photo--3 {
    position: relative;
    inset: auto;
    width: 100%;
    height: 230px;
    transform: none;
  }

  .gallery-collage-section {
    padding: 48px 0;
  }

  .gallery-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .gallery-collage__item,
  .gallery-collage__item--1,
  .gallery-collage__item--2,
  .gallery-collage__item--3,
  .gallery-collage__item--4,
  .gallery-collage__item--5,
  .gallery-collage__item--6,
  .gallery-collage__item--7,
  .gallery-collage__item--8,
  .gallery-collage__item--9,
  .gallery-collage__item--10 {
    grid-column: auto;
    grid-row: auto;
    height: 260px;
  }

  .gallery-collage__item::after,
  .gallery-collage__overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-actions {
    justify-content: stretch;
  }

  .gallery-actions .news-detail-button {
    width: 100%;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox__close {
    right: 8px;
    top: 8px;
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery-lightbox__nav {
    width: 42px;
    height: 58px;
    font-size: 2.35rem;
  }

  .gallery-lightbox__nav--prev {
    left: 6px;
  }

  .gallery-lightbox__nav--next {
    right: 6px;
  }

  .gallery-lightbox__figure figcaption {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 0;
  }
}


/* Ajuste: galería sin cuadros de resumen */
.gallery-experience__content p {
  margin-bottom: 24px;
}

.gallery-experience__button {
  margin-top: 4px;
}


/* Ajuste: galería solo texto ver fotografía */
.gallery-collage__overlay {
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-accent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.gallery-collage__overlay small {
  margin-top: 0;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1;
}

.gallery-collage__overlay strong {
  display: none;
}


/* Ajuste: quitar botón Ver del collage superior */
.gallery-showcase__photo::after {
  display: none !important;
  content: none !important;
}


/* Ajuste: Lightbox solo contador */
.gallery-lightbox__figure figcaption {
  justify-content: flex-end;
}

.gallery-lightbox__figure strong {
  display: none !important;
}


/* Ajuste: fondo morado para galería fotográfica */
.gallery-collage-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(236, 74, 160, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 215, 49, 0.10), transparent 28%),
    linear-gradient(180deg, #4c3252 0%, #4a314f 100%);
}

.gallery-collage {
  background: transparent;
}

.gallery-collage__item {
  background: rgba(255, 255, 255, 0.08);
}


/* Ajuste: fondo morado oscuro con degradado */
.gallery-collage-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 74, 160, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(143, 115, 207, 0.18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(35, 18, 42, 0.85), transparent 42%),
    linear-gradient(180deg, #4c3252 0%, #3f2947 48%, #2f1e35 100%);
}

.gallery-collage {
  background: transparent;
}

.gallery-collage__item {
  background: rgba(255, 255, 255, 0.06);
}


/* Ajuste: degradado personalizado para galería */
.gallery-collage-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(64, 42, 72, 0.72), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(43, 26, 50, 0.78), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(24, 13, 29, 0.92), transparent 46%),
    linear-gradient(135deg, #1d1023 0%, #2b1a32 38%, #180d1d 70%, #402a48 100%);
}

.gallery-collage {
  background: transparent;
}

.gallery-collage__item {
  background: rgba(255, 255, 255, 0.055);
}

/* Ajustes finales de identidad visual basada en el logotipo */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(236, 74, 160, 0.25);
}

.btn--primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(236, 74, 160, 0.12);
  color: var(--color-accent);
}

.info-card__icon,
.activity-card span {
  background: rgba(154, 203, 63, 0.16);
  color: var(--color-secondary-dark);
}

.program-card__level,
.news-card__date {
  background: var(--color-primary);
  color: var(--color-accent);
}

.program-card::after {
  background: rgba(236, 74, 160, 0.12);
}

.program-card a,
.news-card a,
.news-outline-btn:hover {
  color: var(--color-accent);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(236, 74, 160, 0.14);
}

.check-list li::before {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.footer {
  background: var(--color-dark);
}

.social-links a {
  color: var(--color-accent);
}

@media (max-width: 560px) {
  .brand__image {
    width: 72px;
    height: 50px;
  }
}
