:root {
  color-scheme: dark;
  --ink: #06101f;
  --ink-2: #091a31;
  --surface: #0d2340;
  --text: #f4f1ea;
  --muted: #b5bdc9;
  --gold: #d6a640;
  --gold-light: #f3d68d;
  --line: rgba(214, 166, 64, .24);
  --radius: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.scrolled {
  background: rgba(6, 16, 31, .92);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand { width: 136px; height: 62px; display: grid; place-items: center; }
.brand img, .footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.desktop-nav a, .mobile-nav a, .site-footer nav a {
  text-decoration: none;
  color: #e7e8eb;
  font-size: .92rem;
  transition: color .25s ease;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible, .site-footer nav a:hover { color: var(--gold-light); }
.menu-button { display: none; background: transparent; border: 0; padding: .7rem; }
.menu-button span { width: 26px; height: 2px; display: block; margin: 6px 0; background: var(--gold-light); }
.mobile-nav { position: absolute; top: 76px; left: 0; right: 0; padding: 1.5rem; background: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: .85rem 0; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-media, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: 58% center; filter: saturate(.72) contrast(1.04) brightness(.78); }
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 9, 18, .98) 0%, rgba(3, 9, 18, .89) 38%, rgba(3, 9, 18, .3) 76%),
    linear-gradient(0deg, rgba(3, 9, 18, .62), transparent 58%);
}
.hero-content { position: relative; z-index: 2; width: min(92vw, var(--max)); margin: 0 auto; padding-top: 4.5rem; }
.eyebrow { margin: 0 0 1.25rem; color: var(--gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 1.35rem; font-size: clamp(3.3rem, 7vw, 6.8rem); line-height: 1.03; letter-spacing: .008em; }
.hero-content > p:not(.eyebrow) { max-width: 570px; margin-bottom: 2rem; color: #d3d7de; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .82rem 1.3rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button-primary { background: var(--gold); color: #111827; }
.button-primary:hover { background: var(--gold-light); }
.button-secondary { background: rgba(7, 20, 39, .58); color: var(--text); border-color: rgba(255,255,255,.34); backdrop-filter: blur(8px); }
.button-secondary:hover { border-color: var(--gold-light); }

.section { padding: clamp(5rem, 10vw, 9rem) 1.25rem; }
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.intro.section { position: relative; min-height: min(75vw, 960px); display: grid; align-items: center; overflow: hidden; padding: 0; background: var(--ink); }
.intro-grid { width: 100%; max-width: none; min-height: min(75vw, 960px); display: grid; align-items: center; }
.intro-copy { position: relative; z-index: 2; width: min(92vw, var(--max)); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) 0; }
.intro-copy h2, .intro-copy > p { max-width: 620px; }
h2 { margin-bottom: 1.4rem; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; }
.intro-copy > p, .services-heading > p:not(.eyebrow), .school-copy > p, .cta-copy > p { max-width: 58ch; color: var(--muted); line-height: 1.75; font-size: 1.06rem; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.image-frame { position: absolute; inset: 0; z-index: 1; margin: 0; overflow: hidden; filter: saturate(.72) contrast(1.04) brightness(.76); }
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3,9,18,.97) 0%, rgba(3,9,18,.82) 40%, rgba(3,9,18,.2) 78%), linear-gradient(0deg, rgba(3,9,18,.54), transparent 55%);
}
.image-frame img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; opacity: 1; }

.services { background: var(--ink-2); }
.services-heading { max-width: 720px; margin-bottom: 4rem; }
.schedule { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.schedule-item { min-height: 310px; padding: clamp(1.7rem, 3.5vw, 3rem); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.schedule-item.featured { background: linear-gradient(145deg, #12335b, #0c2848); }
.day { color: var(--gold-light); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.schedule h3 { max-width: 12ch; margin: auto 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.05; }
.schedule time { color: var(--gold-light); font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }

.school { position: relative; overflow: hidden; }
.school-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.school-art { position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 65% 40%, rgba(214,166,64,.22), transparent 30%), linear-gradient(145deg, #102949, #071426); }
.path-line { position: absolute; width: 55%; height: 130%; left: 22%; top: -15%; border: 1px solid rgba(243,214,141,.5); border-radius: 50%; transform: rotate(28deg); }
.path-line::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(243,214,141,.22); border-radius: 50%; }
.crown { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 8rem; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.school-copy .button { margin-top: 1rem; }

.announcements { background: var(--ink-2); }
.announcements-heading { max-width: 680px; margin-bottom: 3rem; }
.announcements-heading > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.carousel { position: relative; }
.carousel-radio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.carousel-viewport { min-height: 590px; }
.carousel-slide { display: none; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); min-height: 570px; overflow: hidden; border-radius: var(--radius); background: #0a1f39; animation: carousel-in .28s cubic-bezier(.23,1,.32,1); }
#carousel-suelta:checked ~ .carousel-viewport .slide-suelta,
#carousel-cruzada:checked ~ .carousel-viewport .slide-cruzada { display: grid; }
.carousel-slide > img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; }
.carousel-slide > img { object-position: center; }
.slide-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.slide-copy h3 { margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }
.slide-copy p { color: var(--muted); line-height: 1.7; }
.slide-copy p a { color: var(--gold-light); overflow-wrap: anywhere; text-underline-offset: 4px; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1.25rem; }
.carousel-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold-light); font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.carousel-button:hover, .carousel-button:focus-visible { background: rgba(214,166,64,.12); }
.carousel-button:active { transform: scale(.94); }
.carousel-toggle { min-height: 40px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.carousel-toggle:hover, .carousel-toggle:focus-visible { color: var(--gold-light); border-color: var(--gold-light); }
#carousel-suelta:checked ~ .carousel-controls .carousel-button:nth-child(1),
#carousel-cruzada:checked ~ .carousel-controls .carousel-button:nth-child(2) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.carousel-radio:focus-visible ~ .carousel-controls { outline: 2px solid var(--gold-light); outline-offset: 5px; border-radius: 999px; }
@keyframes carousel-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.site-footer { padding: 1.4rem 1.25rem; border-top: 1px solid rgba(214,166,64,.12); }
.footer-grid { display: flex; justify-content: center; align-items: center; }
.site-footer p { margin: 0; color: #707b8a; font-size: .72rem; text-align: center; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .site-header {
    inset: 10px 10px auto;
    width: auto;
    height: 64px;
    padding-inline: .9rem;
    border: 1px solid rgba(214,166,64,.2);
    border-radius: 14px;
    background: rgba(6,16,31,.93);
    box-shadow: 0 14px 38px rgba(0,5,14,.28);
    backdrop-filter: blur(14px);
  }
  .site-header.scrolled { background: rgba(6,16,31,.97); border-color: rgba(214,166,64,.28); }
  .brand {
    width: 92px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
  }
  .mobile-nav { top: calc(100% + 8px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 42px rgba(0,5,14,.35); }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero-media { object-position: 57% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(3,9,18,.94), rgba(3,9,18,.42)), linear-gradient(0deg, rgba(3,9,18,.85), transparent 55%); }
  h1 { font-size: clamp(3rem, 15vw, 5.3rem); }
  .intro-grid, .school-grid, .carousel-slide { grid-template-columns: 1fr; }
  .intro.section, .intro-grid { min-height: max(560px, 75vw); }
  .intro-copy { padding-inline: 1rem; }
  .image-frame::after { background: linear-gradient(90deg, rgba(3,9,18,.92), rgba(3,9,18,.35)), linear-gradient(0deg, rgba(3,9,18,.82), transparent 62%); }
  .image-frame img { min-height: 0; object-position: center; }
  .schedule { grid-template-columns: 1fr; }
  .schedule-item { min-height: 220px; }
  .school-art { min-height: 360px; }
  .carousel-viewport { min-height: 0; }
  .carousel-slide, .carousel-slide > img { min-height: 0; }
  .carousel-slide > img { aspect-ratio: 16 / 9; object-fit: contain; background: #050b14; }
  .slide-copy { padding: 2rem 1.5rem 2.5rem; }
}

@media (max-width: 520px) {
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 4rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .section { padding-inline: 1rem; }
  .cta-copy { padding: 2.25rem 1.25rem 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .carousel-slide { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled, .button-secondary { backdrop-filter: none; background: var(--ink); }
}

/* Ajuste del logotipo en la barra */
.brand { width: 120px; height: 54px; }
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 800px) {
  .brand { width: 76px; height: 36px; overflow: visible; }
}

/* Ajuste imagen nosotros movil */
@media (max-width: 800px) {
  .intro .image-frame img {
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }
}
