:root {
  --noche: #0b0a1f; --noche-2: #15133a; --noche-3: #211e52;
  --oro: #e3bd60; --oro-claro: #f6d680;
  --papel: #efe0bd; --papel-2: #e2cd9f; --tinta: #33230f; --tinta-2: #5f4726;
  --texto: #f3ead5; --texto-2: #c9bfdc;
  --titulo: 'Cinzel Decorative', Georgia, serif;
  --rotulo: 'Cinzel', Georgia, serif;
  --cuerpo: 'EB Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--noche); color: var(--texto); font: 400 20px/1.5 var(--cuerpo); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--oro-claro); outline-offset: 3px; }

.aviso-demo { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 4px; text-align: center; font: 700 13px var(--rotulo); background: #a3121f; color: #fff; }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(11, 10, 31, .92); border-bottom: 1px solid rgba(227, 189, 96, .35); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--rotulo); color: var(--oro-claro); white-space: nowrap; }
.marca img { border-radius: 50%; }
.enlaces { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.enlaces a { font: 600 15px var(--rotulo); text-decoration: none; white-space: nowrap; }
.enlaces a:hover { color: var(--oro-claro); }
.buscar-nav { padding: 7px 14px; border: 1px solid var(--oro); border-radius: 4px; color: var(--oro-claro); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: max(540px, min(86vh, 56vw)); display: flex; align-items: center; overflow: hidden; }
.paisaje { position: absolute; inset: 0; width: 100%; height: 100%; }
.castillo-pos { transform: translate(474px, 166px) scale(.82); }
.estrella { animation: titila 3.4s ease-in-out infinite; animation-delay: var(--r); }
.ventana { animation: luz 3s ease-in-out infinite; animation-delay: var(--r); }
@keyframes titila { 50% { opacity: .15; } }
@keyframes luz { 50% { opacity: .72; } }
#velas { position: absolute; inset: 0; pointer-events: none; }
.vela { position: absolute; left: calc(50% + var(--x) * .47%); top: calc(5% + var(--y) * .38%); width: 11px; height: 44px; border-radius: 2px; background: linear-gradient(90deg, #f3e7c8, #cdb88a); transform: scale(var(--e)); animation: flota 6s ease-in-out infinite; animation-delay: var(--d); }
.vela::before { content: ''; position: absolute; left: 50%; top: -19px; width: 11px; height: 19px; margin-left: -5.5px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: radial-gradient(circle at 50% 70%, #fff4c0, #ffb533 62%, #f06a1a); box-shadow: 0 0 24px 9px rgba(255, 190, 80, .42); animation: llama .7s ease-in-out infinite alternate; }
@keyframes flota { 50% { translate: 0 -24px; } }
@keyframes llama { to { transform: scale(.86, 1.12); } }
.hero-texto { position: relative; z-index: 2; margin-left: clamp(16px, 7vw, 130px); padding: 40px 0 90px; width: min(46%, 640px); }
.antetitulo { font: 700 clamp(15px, 2vw, 20px) var(--rotulo); letter-spacing: .14em; text-transform: uppercase; color: var(--oro-claro); }
h1 { margin: 8px 0 10px; font: 900 clamp(46px, 6.2vw, 96px)/1.02 var(--titulo); color: #fff6dc; text-shadow: 0 4px 0 #120814, 0 0 42px rgba(122, 79, 224, .85); }
.sub { font-size: clamp(21px, 2.8vw, 29px); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.boton { display: inline-block; padding: 13px 28px; border: 2px solid #4d3412; border-radius: 4px; background: linear-gradient(#f6d680, #cf9f42); color: #2a1a06; font: 800 17px var(--rotulo); text-decoration: none; transition: transform .15s, filter .15s; }
.boton:hover { transform: translateY(-2px); filter: brightness(1.08); }
.boton-2 { background: rgba(11, 10, 31, .72); color: var(--oro-claro); border-color: var(--oro); }
.boton-tinta { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 56px); text-align: center; }
.seccion > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
h2 { font: 700 clamp(33px, 5vw, 56px)/1.12 var(--titulo); color: var(--oro-claro); }
.bajada { margin-top: 12px; max-width: 660px !important; color: var(--texto-2); font-size: 22px; }
.etiqueta { font: 700 16px var(--rotulo); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }

/* ---------- Copa ---------- */
#copa { background: radial-gradient(ellipse at 50% 0, var(--noche-3), var(--noche) 72%); }
.puntuacion { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.regla { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; border: 1px solid rgba(227, 189, 96, .5); border-radius: 40px; background: var(--noche-2); }
.regla b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--oro); color: #2a1a06; font: 800 23px var(--rotulo); }
.relojes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 28px); margin-top: 38px; }
.reloj { position: relative; display: flex; flex-direction: column; align-items: center; padding: 26px 6px 18px; background: none; border: 1px solid transparent; border-radius: 8px; transition: border-color .2s, background .2s; }
.reloj:hover { border-color: var(--c); background: rgba(255, 255, 255, .04); }
.reloj-svg { width: min(100%, 170px); height: auto; }
.reloj h3 { margin-top: 12px; font: 700 clamp(14px, 2.1vw, 23px) var(--rotulo); }
.reloj strong { font: 800 clamp(30px, 4.6vw, 52px)/1.1 var(--rotulo); color: var(--oro-claro); }
.reloj small { font-size: 17px; color: var(--texto-2); }
.corona { position: absolute; top: 0; padding: 2px 12px; border-radius: 20px; background: var(--oro); color: #2a1a06; font: 800 12px var(--rotulo); white-space: nowrap; }
.reloj.lider .reloj-svg { filter: drop-shadow(0 0 20px var(--c)); }
.chorro circle { animation: cae 1.3s linear infinite; }
.chorro circle:nth-child(2) { animation-delay: .43s; }
.chorro circle:nth-child(3) { animation-delay: .86s; }
@keyframes cae { from { transform: translateY(0); opacity: 1; } to { transform: translateY(58px); opacity: .1; } }
.copa-nota { margin-top: 18px; color: var(--texto-2); }
.cuenta { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.cuenta-titulo { font: 700 17px var(--rotulo); letter-spacing: .1em; text-transform: uppercase; }
.cuenta-num { display: flex; gap: 8px; }
.cuenta-num span { display: flex; flex-direction: column; min-width: 68px; padding: 8px 6px; border: 1px solid rgba(227, 189, 96, .5); border-radius: 6px; background: var(--noche-2); font-size: 15px; color: var(--texto-2); }
.cuenta-num b { font: 800 27px var(--rotulo); color: #fff; }

/* ---------- Casas ---------- */
#casas-sec { background: var(--noche-2); }
.casas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.casa { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 14px; background: linear-gradient(170deg, var(--o), #100e29 78%); border: 1px solid var(--c); border-radius: 8px; transition: transform .18s; }
.casa:hover { transform: translateY(-5px); }
.estandarte-svg { width: 118px; height: auto; }
.casa h3 { margin-top: 12px; font: 700 23px var(--rotulo); color: #fff; }
.lema { min-height: 54px; margin-top: 4px; font-style: italic; font-size: 18px; line-height: 1.25; color: #ded6e9; }
.casa dl { display: flex; gap: 26px; margin: 14px 0 8px; }
.casa dl div { display: flex; flex-direction: column-reverse; }
.casa dt { font-size: 16px; color: #ded6e9; }
.casa dd { margin: 0; font: 800 28px var(--rotulo); color: var(--oro-claro); }
.mejor { min-height: 50px; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.ver { margin-top: 6px; font: 700 14px var(--rotulo); color: var(--oro-claro); }

/* ---------- Registro ---------- */
.pergamino { color: var(--tinta); background-color: var(--papel); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .27 0 0 0 0 .1 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); box-shadow: inset 0 0 90px rgba(96, 62, 18, .42); }
.pergamino h2 { color: #4d2f0b; }
.pergamino .bajada { color: var(--tinta-2); }
.herramientas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; text-align: left; }
.campo { flex: 1 1 280px; display: flex; flex-direction: column; gap: 3px; font: 700 14px var(--rotulo); }
.campo-orden { flex: 0 1 240px; }
.campo input, .campo select { padding: 11px 13px; font: 500 20px var(--cuerpo); color: var(--tinta); background: #fbf3df; border: 2px solid var(--tinta-2); border-radius: 4px; }
.campo input::placeholder { color: #7f6742; }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.filtros button { padding: 8px 15px; background: transparent; border: 2px solid var(--c, var(--tinta)); border-radius: 30px; font: 700 15px var(--rotulo); color: var(--tinta); }
.filtros button small { margin-left: 3px; font-size: 13px; opacity: .8; }
.filtros button.activo { background: var(--c, var(--tinta)); color: var(--t, var(--papel)); }
.contador { margin-top: 14px; color: var(--tinta-2); font-style: italic; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; margin-top: 14px; }
.tarjeta { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 14px 8px 12px; color: var(--tinta); background: #f8eed6; border: 1px solid #b89a63; border-top: 6px solid var(--c); border-radius: 5px; transition: transform .14s, box-shadow .14s; }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(62, 39, 8, .3); }
.puesto { position: absolute; top: 4px; left: 8px; font: 700 13px var(--rotulo); color: var(--tinta-2); }
.retrato { width: 86px; height: auto; margin-top: 8px; overflow: visible; }
.tarjeta b { max-width: 100%; margin-top: 8px; font-size: 18px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarjeta-casa { font-size: 16px; line-height: 1.2; color: var(--tinta-2); }
.tarjeta-puntos { font: 800 15px var(--rotulo); }
.sin-resultados { margin-top: 22px; font-size: 22px; font-style: italic; }
#mas { margin-top: 24px; }

/* ---------- Cursos ---------- */
.cursos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 38px; padding: 0; list-style: none; }
.curso { display: flex; flex-direction: column; align-items: center; padding: 16px 5px; background: var(--noche-2); border: 1px solid #3c3770; border-radius: 6px; line-height: 1.2; }
.curso-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; border: 2px solid #5b5599; font: 800 22px var(--rotulo); }
.curso b { font: 700 15px var(--rotulo); }
.curso small { margin: 4px 0; font-size: 16px; color: var(--texto-2); }
.curso em { font-size: 16px; color: var(--texto-2); }
.curso.actual { background: var(--noche-3); border-color: var(--oro); box-shadow: 0 0 22px rgba(227, 189, 96, .32); }
.curso.actual .curso-num { background: var(--oro); border-color: var(--oro); color: #2a1a06; }
.curso.actual em { color: var(--oro-claro); }
.curso.pasado .curso-num { background: var(--c, #3c3770); }

/* ---------- Cómo entrar ---------- */
#entrar { background: var(--noche-2); }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; padding: 0; list-style: none; counter-reset: paso; text-align: left; }
.pasos li { position: relative; padding: 50px 20px 20px; color: var(--tinta); background: var(--papel); border-radius: 5px; counter-increment: paso; line-height: 1.32; }
.pasos li::before { content: counter(paso); position: absolute; top: 12px; left: 20px; font: 800 29px var(--titulo); color: #8d2030; }
.pasos b { font-weight: 700; }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.red { display: flex; flex-direction: column; min-width: 240px; padding: 11px 22px; border: 2px solid var(--oro); border-radius: 5px; font: 700 17px var(--rotulo); text-decoration: none; color: var(--oro-claro); }
.red:hover { background: var(--noche-3); }
.red small { font: 400 17px var(--cuerpo); color: var(--texto); }

footer { padding: 32px clamp(16px, 5vw, 56px) 44px; text-align: center; font-size: 18px; color: var(--texto-2); border-top: 1px solid rgba(227, 189, 96, .3); }
.legal { margin-top: 12px; font-size: 16px; }

/* ---------- Expediente ---------- */
dialog { width: min(470px, calc(100vw - 32px)); padding: 26px; color: var(--tinta); background: var(--papel); border: 2px solid var(--c); border-top: 10px solid var(--c); border-radius: 6px; }
dialog::backdrop { background: rgba(5, 4, 20, .78); }
.cerrar { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; background: none; border: 0; font-size: 21px; color: var(--tinta); }
.ficha-cabeza { display: flex; align-items: center; gap: 16px; }
.ficha-cabeza .retrato { width: 104px; margin: 0; }
#ficha-num { font: 700 14px var(--rotulo); color: var(--tinta-2); }
#ficha-nick { font: 800 25px/1.12 var(--rotulo); overflow-wrap: anywhere; padding-right: 22px; }
.ficha-casa { font-size: 22px; font-style: italic; }
.ficha-puntos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; }
.ficha-puntos div { display: flex; flex-direction: column-reverse; padding: 8px 3px; text-align: center; background: #f8eed6; border: 1px solid #b89a63; border-radius: 4px; }
.ficha-puntos dt { font-size: 16px; }
.ficha-puntos dd { margin: 0; font: 800 28px var(--rotulo); }
.ficha-puntos .total { color: var(--papel); background: var(--tinta); }

/* ---------- Directo ---------- */
.directo-ahora { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 20px; text-align: center; font-size: 19px; color: var(--texto-2); }
.directo-ahora b { flex-basis: 100%; font: 800 24px var(--rotulo); color: var(--oro-claro); }
.plano { position: relative; height: min(74vh, 700px); min-height: 430px; margin-top: 20px; overflow: hidden; background: #3f7a44; border: 2px solid var(--oro); border-radius: 8px; }
.plano.abierto { position: fixed; inset: 0; z-index: 60; height: 100dvh; min-height: 0; margin: 0; border: 0; border-radius: 0; }
body.plano-abierto { overflow: hidden; }
.plano-lienzo { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.plano-lienzo:active { cursor: grabbing; }
.plano.abierto .plano-lienzo { touch-action: none; }
.plano-lienzo svg, .plano-lienzo canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.plano-arriba { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; pointer-events: none; }
.plano-arriba > * { pointer-events: auto; }
.plano-busca { position: relative; width: min(100%, 380px); }
.plano-busca input { width: 100%; padding: 9px 13px; font-size: 18px; color: var(--tinta); background: var(--papel); border: 2px solid var(--tinta); border-radius: 6px; }
.plano-resultados { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; overflow: hidden; color: var(--tinta); background: var(--papel); border: 2px solid var(--tinta); border-radius: 6px; }
.plano-resultados button { display: block; width: 100%; padding: 7px 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid #b89a63; }
.plano-resultados button:hover { background: var(--papel-2); }
.plano-resultados b { display: block; overflow-wrap: anywhere; }
.plano-resultados small { font-size: 16px; }
.plano-resultados span { display: block; padding: 9px 12px; font-size: 17px; line-height: 1.25; }
.plano-cerrar, .plano-zoom button, .plano-pantalla { color: var(--oro-claro); background: rgba(11, 10, 31, .86); border: 1px solid var(--oro); border-radius: 6px; }
.plano-cerrar { width: 44px; flex: none; }
.plano-zoom { position: absolute; z-index: 2; right: 10px; bottom: 54px; display: grid; gap: 6px; }
.plano-zoom button { width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.plano-pantalla { position: absolute; z-index: 2; right: 10px; bottom: 10px; height: 38px; padding: 0 12px; font: 700 13px var(--rotulo); }
.plano-aviso { position: absolute; z-index: 2; left: 10px; right: 66px; bottom: 10px; width: fit-content; padding: 8px 13px; font-size: 18px; line-height: 1.25; color: var(--tinta); background: var(--papel); border: 2px solid var(--tinta); border-radius: 6px; }
.horario-titulo { margin-top: 30px; text-align: center; font: 800 24px var(--rotulo); color: var(--oro-claro); }
.horario { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.horario li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--noche-2); border: 1px solid rgba(227, 189, 96, .28); border-radius: 5px; }
.horario li span { text-align: right; }
.horario time { font: 700 15px/1.7 var(--rotulo); color: var(--texto-2); white-space: nowrap; }
.horario li.actual { color: #2a1a06; background: var(--oro-claro); border-color: var(--oro-claro); }
.horario li.actual time { color: #2a1a06; }
.profes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.profes button { display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 10px 14px; color: var(--texto-2); font: inherit; line-height: 1.25; text-align: left; cursor: pointer; background: var(--noche-2); border: 1px solid rgba(227, 189, 96, .28); border-radius: 5px; }
.profes button:hover { border-color: var(--oro-claro); }
.profes b { font: 700 18px var(--rotulo); color: var(--oro-claro); }
.profes small { font-size: 16px; font-style: italic; }
#ficha-ver { width: 100%; margin-bottom: 8px; }
.ficha-datos { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0 0 18px; font-size: 18px; line-height: 1.3; }
.ficha-datos dt { font-weight: 700; }
.ficha-datos dd { margin: 0; }
#ficha-compartir { width: 100%; }
.ficha-aviso { min-height: 24px; margin-top: 6px; text-align: center; font-size: 17px; }

/* ---------- Carta de entrada ---------- */
#carta { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: radial-gradient(circle, #211e52, #070821 70%); cursor: pointer; transition: opacity .6s; }
#carta.fuera { opacity: 0; }
#carta > p { font: 600 16px var(--rotulo); color: var(--oro-claro); }
.sobre { position: relative; width: min(390px, 82vw); aspect-ratio: 1.55; background: #d9c08b; border-radius: 4px; perspective: 800px; }
.papel { position: absolute; left: 7%; right: 7%; top: 12%; bottom: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--tinta); background: #f8eed6; transition: transform .8s .45s; }
.papel small { font-size: 17px; font-style: italic; }
.papel b { font: 700 clamp(19px, 5vw, 26px)/1.15 var(--rotulo); }
.abierta .papel { transform: translateY(-46%); }
.solapa { position: absolute; z-index: 3; inset: 0 0 auto; height: 58%; background: #c9ae76; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s .15s, z-index 0s .4s; }
.abierta .solapa { transform: rotateX(180deg); z-index: 0; }
.sello { position: absolute; z-index: 4; left: 50%; top: 58%; display: grid; place-items: center; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d0303f, #7c0f1b); color: #f2c9c9; font: 900 28px var(--titulo); transition: opacity .3s, transform .3s; }
.abierta .sello { opacity: 0; transform: scale(1.5); }

/* ---------- Móvil ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 800px; align-items: flex-start; justify-content: center; }
  .hero-texto { margin: 0; padding: 34px 16px 0; width: 100%; max-width: 760px; text-align: center; }
  .botones { justify-content: center; }
  h1 { font-size: clamp(46px, 10vw, 84px); }
  .castillo-pos { transform: translate(400px, 345px) scale(.5); }
  .luna { transform: translate(235px, 325px) scale(.62); }
  .vela { left: calc(var(--x) * .95%); top: calc(47% + var(--y) * .16%); }
  /* Con miles de alumnos, las dos cifras de cada casa no caben lado a lado. */
  .casa dl { flex-direction: column; gap: 4px; width: 100%; }
  .casa dl div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; }
  .casa dd { font-size: 25px; }
}
@media (max-width: 860px) {
  .relojes, .casas { grid-template-columns: repeat(2, 1fr); }
  .cursos { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: 1fr; }
  .marca span { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 19px; }
  .hero { min-height: 860px; }
  .botones { flex-wrap: nowrap; gap: 8px; }
  .botones .boton { padding: 12px 14px; font-size: 16px; white-space: nowrap; }
  .castillo-pos { transform: translate(464px, 390px) scale(.42); }
  .luna { transform: translate(400px, 352px) scale(.4); }
  .enlaces a { font-size: 13px; }
  .enlaces a[href="#cursos-sec"] { display: none; }
  .buscar-nav { padding: 6px 8px; }
  .estandarte-svg { width: 92px; }
  .casa { padding: 16px 12px; }
  .casa h3 { font-size: clamp(18px, 5.4vw, 23px); }
  .casa dt { font-size: 15px; }
  .ver { font-size: clamp(11px, 3.3vw, 14px); white-space: nowrap; }
  .casa dd { font-size: clamp(18px, 5.6vw, 25px); }
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .curso:last-child { grid-column: span 2; }
  .campo-orden { flex: 1 1 100%; }
  .cuenta { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .enlaces a[href="#casas-sec"] { display: none; }
  .botones { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
