
:root {
  --navy: #09233e;
  --navy-deep: #061b30;
  --navy-soft: #123958;
  --gold: #deb36d;
  --gold-light: #f5d69a;
  --white: #ffffff;
  --text: #263a4c;
  --muted: #657485;
  --background: #f5f8fb;
  --border: #e4eaf0;
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.gold {
  color: var(--gold-light) !important;
}

.white {
  color: var(--white) !important;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b47a30;
}

.section-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 18px 0 26px;
  color: var(--navy);
}

.section-title span {
  display: block;
}

.section-title .gold {
  color: #bb8844 !important;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading p {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted);
}

/* NAVEGACIÓN */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--navy);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.nav-container {
  width: min(1240px, calc(100% - 48px));
  min-height: 80px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  color: #fff;
}

.brand-logo {
  width: 55px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: #e6edf5;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

.nav-menu .nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 21px;
  border-radius: 8px;
}

.nav-menu .nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform .25s, background .25s, border-color .25s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold {
  color: var(--navy);
  background: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--gold-light);
  background: rgba(255,255,255,.08);
}

/* HERO */

.hero {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-background {
  position: absolute;
  inset: 0;
  background: url('../img/media/media-12.jpg') center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4,23,43,.94) 0%,
    rgba(5,28,51,.84) 42%,
    rgba(5,28,51,.38) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 115px;
}

.hero-eyebrow {
  color: var(--gold-light);
}

.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 25px 0;
}

.hero-title span {
  display: block;
}

.hero-description {
  color: #e6edf5;
  font-size: 17px;
  max-width: 620px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 42px;
  padding: 19px;
  border-top: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

/* INTRODUCCIÓN */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.intro-copy p {
  margin-bottom: 20px;
  color: var(--muted);
}

.intro-highlights {
  margin-top: 35px;
  display: grid;
  gap: 18px;
}

.intro-highlights div {
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.intro-highlights strong,
.intro-highlights span {
  display: block;
}

.intro-highlights strong {
  color: var(--navy);
  font-size: 14px;
}

.intro-highlights span {
  color: var(--muted);
  font-size: 13px;
}

.intro-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 14px;
  align-items: center;
}

.intro-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-secondary {
  height: 350px;
}

.photo-caption {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  padding: 15px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* BACHILLERATOS */

.programs-section {
  background: var(--background);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(8,35,62,.06);
  transition: transform .3s, box-shadow .3s;
}

.program-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(8,35,62,.13);
}

.program-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.program-card:hover .program-image img {
  transform: scale(1.04);
}

.program-number {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.program-content {
  padding: 36px;
}

.program-category {
  color: #b17a33;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.program-content h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.3;
  color: var(--navy);
  margin: 15px 0;
}

.program-content p {
  color: var(--muted);
  font-size: 14px;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.program-tags span {
  padding: 7px 12px;
  border-radius: 30px;
  background: #edf3f8;
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 700;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #a56c25;
}

.program-link:hover {
  color: var(--navy);
}

/* FORMACIÓN INTEGRAL */

.formation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}

.formation-card {
  padding: 35px 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.formation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(8,35,62,.08);
}

.formation-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 25px;
  border-radius: 13px;
  background: #f7ead4;
  color: #a16e31;
  font-size: 25px;
}

.formation-card h3 {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.formation-card p {
  color: var(--muted);
  font-size: 13px;
}

/* GALERÍA */

.experiences-section {
  background: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  grid-auto-rows: 225px;
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #dbe4ed;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(3,18,33,.8));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

/* PROYECCIÓN UNIVERSITARIA */

.future-section {
  background: var(--navy-deep);
  padding: 110px 0;
  overflow: hidden;
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.future-content .eyebrow {
  color: var(--gold-light);
}

.future-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 20px 0 30px;
  color: #fff;
}

.future-title span {
  display: block;
}

.future-content p {
  color: #d6e1eb;
  margin-bottom: 30px;
  max-width: 530px;
}

.future-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 55px rgba(0,0,0,.25);
}

/* ADMISIONES */

.admissions-section {
  padding: 90px 0;
  background: #fff;
}

.admissions-panel {
  background: linear-gradient(125deg, #092943, #143d5f);
  border-radius: 22px;
  padding: 85px 40px;
  text-align: center;
  color: #fff;
}

.admissions-panel .eyebrow {
  color: var(--gold-light);
}

.admissions-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
  color: #fff !important;
  max-width: 1050px;
  margin: 24px auto;
}

.admissions-title span {
  display: block;
}

.admissions-title .white {
  color: #fff !important;
}

.admissions-title .gold {
  color: var(--gold-light) !important;
}

.admissions-panel > p {
  max-width: 680px;
  margin: 0 auto 35px;
  color: #e7edf5;
  font-size: 15px;
}

.admissions-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* PIE DE PÁGINA */

.site-footer {
  background: var(--navy-deep);
  color: #dce6f0;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand img {
  width: 65px;
  height: 75px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.footer-brand p {
  font-size: 12px;
  margin-top: 10px;
  color: #aebfd0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  color: var(--gold-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
  font-size: 13px;
  color: #bdcad8;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: 11px;
  color: #aebfd0;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-menu a {
    font-size: 12px;
  }

  .intro-grid,
  .future-grid {
    gap: 40px;
  }

  .formation-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 800px) {
  .nav-container {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 22px 24px;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 8px;
    font-size: 14px;
  }

  .nav-menu .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .intro-grid,
  .future-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: clamp(3.3rem, 10vw, 6rem);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 200px;
  }

  .gallery-large {
    grid-row: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  .brand-logo {
    width: 43px;
    height: 48px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-content {
    padding-top: 65px;
    padding-bottom: 90px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-bottom {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .hero-actions,
  .admissions-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-photos {
    gap: 10px;
  }

  .intro-photo {
    height: 330px;
  }

  .photo-secondary {
    height: 250px;
  }

  .photo-caption {
    font-size: 11px;
    left: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .program-image {
    height: 230px;
  }

  .program-content {
    padding: 25px;
  }

  .formation-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .future-section {
    padding: 75px 0;
  }

  .future-title {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
  }

  .future-image img {
    height: 320px;
  }

  .admissions-section {
    padding: 45px 0;
  }

  .admissions-panel {
    padding: 55px 20px;
    border-radius: 16px;
  }

  .admissions-title {
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
