@font-face { font-family:'Bebas Neue'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/bebas-neue-400.woff2') format('woff2'); }
@font-face { font-family:'Rajdhani'; font-style:normal; font-weight:300; font-display:swap; src:url('/fonts/rajdhani-300.woff2') format('woff2'); }
@font-face { font-family:'Rajdhani'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/rajdhani-400.woff2') format('woff2'); }
@font-face { font-family:'Rajdhani'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/rajdhani-500.woff2') format('woff2'); }
@font-face { font-family:'Rajdhani'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/rajdhani-600.woff2') format('woff2'); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #FAFAF8; --warm-white: #F5F3F0; --cream: #EDE9E3; --sage: #7A7A78; --sage-light: #B0B0AE;
  --black: #0C0C0A; --dark: #1A1A18; --grey-800: #2E2E2C; --grey-600: #5A5A58;
  --font-serif: 'Bebas Neue', sans-serif; --font-sans: 'Rajdhani', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; }
body { background: var(--warm-white); color: var(--dark); font-family: var(--font-sans); font-weight: 500; font-size: 1.12rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }

/* NAV */
nav { position: sticky; top: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 4rem; background: rgba(12,12,10,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; filter: invert(1); }
.nav-back { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.7); transition: color .3s; }
.nav-back:hover { color: var(--white); }

/* HERO (foto de fondo oscurecida, como la portada) */
.hero { position: relative; min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--black); color: var(--white); text-align: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .6; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,8,.55) 0%, rgba(10,10,8,.5) 45%, rgba(10,10,8,.85) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 6rem 2rem 5rem; }
.eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 1rem; }
h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.2rem, 7.5vw, 6rem); line-height: .98; letter-spacing: .02em; }
h1 em { font-style: normal; color: var(--sage-light); }
.lead { margin: 1.3rem auto 0; color: rgba(255,255,255,.88); font-size: 1.3rem; max-width: 33em; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
h1 { text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cta-center { justify-content: center; }
.btn { display: inline-block; padding: .9rem 1.6rem; background: var(--white); color: var(--black); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; border: 1px solid var(--white); transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--white); }
.btn-sec { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-sec:hover { background: var(--white); color: var(--black); }

/* SECCIONES (claro / gris / oscuro) */
.sec { padding: 5rem 0; }
.sec-light { background: var(--white); }
.sec-grey { background: var(--cream); }
.sec-dark { background: var(--dark); color: var(--white); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 820px; }
.wrap-wide { max-width: 2200px; padding: 0 1.2rem; }
.num { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: .3em; color: var(--sage); margin-bottom: .4rem; }
.sec-dark .num { color: var(--sage-light); }
h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: .03em; margin-bottom: 1.4rem; }
.sec p { margin-bottom: 1.1rem; }
.texto p { color: var(--grey-800); font-size: 1.18rem; }
.sec a { text-decoration-color: rgba(0,0,0,.3); }

.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.two-col-media { grid-template-columns: .8fr 1.2fr; align-items: center; }

/* VÍDEO */
.video-wrap { display: flex; justify-content: center; }
.video-wrap video { width: 100%; max-width: 340px; max-height: 70vh; background: #000; box-shadow: 0 24px 50px rgba(0,0,0,.25); }

.video-wrap .foto-lateral { width: 100%; max-width: 520px; max-height: 70vh; object-fit: cover; box-shadow: 0 24px 50px rgba(0,0,0,.25); }

/* HORARIO */
.card { background: var(--white); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.tabla-wrap { overflow-x: auto; }
table.horario { width: 100%; border-collapse: collapse; }
table.horario th, table.horario td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid rgba(0,0,0,.08); }
table.horario thead th { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); font-weight: 600; background: var(--warm-white); }
table.horario tbody th { font-weight: 700; }
table.horario tbody tr:last-child th, table.horario tbody tr:last-child td { border-bottom: 0; }
.nota { font-size: .98rem; color: var(--grey-600); margin-top: 1rem; }

/* PROFES */
ul.profes { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
ul.profes li { background: var(--warm-white); border-left: 3px solid var(--dark); padding: 1.1rem 1.3rem; color: var(--grey-800); }

/* GALERÍA (oscura) */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 0; row-gap: 56px; }
.gal-item { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--grey-800); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .5s var(--ease), opacity .3s; }
.gal-item.vert img { object-fit: contain; object-position: center; }
.gal-item:hover img { transform: scale(1.06); opacity: .9; }
.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 2.2rem; cursor: pointer; padding: .6rem 1rem; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .4rem; top: 50%; transform: translateY(-50%); }

/* FAQ */
details { border-bottom: 1px solid rgba(0,0,0,.12); padding: 1.05rem 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--sage); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: .8rem 0 0; color: var(--grey-800); }

/* OTRAS DISCIPLINAS */
.otras-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.otras-links a { padding: .8rem 1.4rem; background: var(--white); border: 1px solid rgba(0,0,0,.15); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; transition: background .3s, color .3s; }
.otras-links a:hover { background: var(--dark); color: var(--white); }

/* LLAMADA FINAL */
.sec-cta { text-align: center; }
.sec-cta p { color: rgba(255,255,255,.75); max-width: 30em; margin: 0 auto; }

footer { background: var(--black); color: rgba(255,255,255,.6); text-align: center; padding: 2.5rem 1.5rem 3rem; font-size: .95rem; }
footer p { margin-bottom: .4rem; }
footer a { color: rgba(255,255,255,.85); }

@media (max-width: 860px) {
  nav { padding: 1rem 1.2rem; }
  .hero { min-height: 80vh; }
  .hero-inner { padding: 4rem 1.2rem 3rem; }
  .sec { padding: 3.2rem 0; }
  .wrap { padding: 0 1.2rem; }
  .two-col, .two-col-media { grid-template-columns: 1fr; gap: 2rem; }
  .wrap-wide { padding: 0 1rem; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}
