:root {
  --dorado-1: #d4af37;
  --dorado-2: #c5a059;
  --dorado-3: #f3e5ab;
  --dorado-brillo: #ffd700;
  --rojo-grad: #9b1418;
  --rojo-oscuro: #54080b;
  --fondo-oscuro: #0a0f1d;
  --fondo-tarjeta: #121829;
  --fondo-suave: #1a2238;
  --borde-dorado: rgba(197, 160, 89, 0.3);
  --borde-dorado-brillo: rgba(212, 175, 55, 0.6);
  --texto-claro: #f8fafc;
  --texto-apagado: #94a3b8;
}

body.sitio {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #151e36 0%, #080c16 100%);
  color: var(--texto-claro);
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

/* CABECERA ARCHIVO GENERAL */
.cabecera-sitio {
  text-align: center;
  padding: 4.5rem 1.5rem 3rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
  border-bottom: 1px solid var(--borde-dorado);
  position: relative;
}

.cabecera-sitio h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin: 0 0 0.5rem 0;
}

.cabecera-sitio p {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--dorado-3);
  margin: 0;
  letter-spacing: 1px;
}

.contenido-sitio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem 1.5rem;
}

.contenido-sitio--full {
  max-width: 1400px;
}

/* HERO PROMOCIÓN / EDICIÓN ANUARIO */
.anuario-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5rem 2rem 2.5rem 2rem;
  background: radial-gradient(ellipse at top, #1c2646 0%, #0c1222 100%);
  border-bottom: 1px solid var(--borde-dorado);
  overflow: hidden;
}

.anuario-hero__decoracion-izq,
.anuario-hero__decoracion-der {
  flex-shrink: 0;
  opacity: 0.95;
}

.anuario-hero__centro {
  text-align: center;
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.anuario-hero__kicker {
  font-family: 'Cinzel', serif;
  color: var(--dorado-2);
  font-size: 1rem;
  letter-spacing: 6px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.anuario-hero__titular {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.anuario-hero__yearbook {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.anuario-hero__anio-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.anuario-hero__anio {
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, var(--dorado-3) 50%, var(--dorado-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 4px;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

.anuario-hero__birrete-mini {
  width: 48px;
  height: 38px;
  position: absolute;
  top: -15px;
  right: -25px;
  transform: rotate(15deg);
}

.anuario-hero__divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.anuario-hero__lineas {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 70px;
}

.anuario-hero__lineas span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dorado-2), transparent);
}

.anuario-hero__estrellas {
  color: var(--dorado-brillo);
  letter-spacing: 6px;
  font-size: 1rem;
}

.anuario-hero__meta h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.anuario-hero__sede {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--dorado-3);
  font-size: 1.1rem;
  margin: 0;
}

/* TOOLBAR / FILTROS */
.anuario-toolbar {
  max-width: 1350px;
  margin: 2rem auto 1rem auto;
  padding: 1rem 1.5rem;
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-dorado);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.anuario-toolbar__busqueda {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.anuario-toolbar__busqueda input {
  width: 100%;
  background: var(--fondo-suave);
  border: 1px solid var(--borde-dorado);
  border-radius: 30px;
  padding: 0.65rem 1.25rem 0.65rem 2.5rem;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.anuario-toolbar__busqueda input:focus {
  border-color: var(--dorado-2);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.anuario-toolbar__icono-lupa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid var(--dorado-2);
  border-radius: 50%;
}
.anuario-toolbar__icono-lupa::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 2px;
  background: var(--dorado-2);
  transform: rotate(45deg);
}

.anuario-toolbar__filtros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filtro-btn {
  background: transparent;
  border: 1px solid var(--borde-dorado);
  color: var(--texto-apagado);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtro-btn:hover {
  border-color: var(--dorado-2);
  color: #fff;
}

.filtro-btn.activo {
  background: linear-gradient(135deg, var(--dorado-1), var(--dorado-2));
  color: #000;
  border-color: var(--dorado-brillo);
  font-weight: 700;
}

.anuario-toolbar__conteo {
  font-size: 0.88rem;
  color: var(--dorado-3);
  font-weight: 600;
}

/* CURSOS Y ORLA DE GRADUADOS */
.curso {
  margin-bottom: 4rem;
}

.curso__encabezado {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.curso__titulo {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--dorado-3);
  margin: 0;
  white-space: nowrap;
  letter-spacing: 1px;
}

.curso__linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--dorado-2), transparent);
}

.orla {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem;
}

.retrato {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-dorado);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
  outline: none;
}

.retrato:hover, .retrato:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--dorado-1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(212, 175, 55, 0.25);
}

.retrato__marco-foto {
  width: 120px;
  height: 150px;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--dorado-2);
  background: #0d1424;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retrato__marco-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retrato-vacio--grande {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dorado-2);
}

.retrato__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.retrato__nombre {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.retrato__titulo-prof {
  font-size: 0.8rem;
  color: var(--dorado-3);
  margin: 0;
  font-weight: 500;
}

.retrato__empresa {
  font-size: 0.78rem;
  color: var(--texto-apagado);
  margin: 0;
}

.retrato__ciudad {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0;
}

/* MODAL DETALLE GRADUADO */
.modal-alumno {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 580px;
  width: 90%;
  color: #fff;
}

.modal-alumno::backdrop {
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
}

.modal-alumno__contenido {
  background: linear-gradient(145deg, #162038, #0d1426);
  border: 2px solid var(--dorado-2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 30px rgba(197, 160, 89, 0.2);
}

.modal-alumno__cerrar {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  color: var(--dorado-3);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-alumno__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--borde-dorado);
  color: var(--dorado-3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.modal-alumno__nav-btn:hover {
  background: var(--dorado-2);
  color: #000;
}

.modal-alumno__nav-btn--prev { left: 10px; }
.modal-alumno__nav-btn--next { right: 10px; }

.modal-alumno__marco-foto {
  width: 150px;
  height: 190px;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--dorado-1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.modal-alumno__foto-contenedor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-alumno__curso-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--dorado-2);
  color: var(--dorado-3);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-alumno__info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.modal-alumno__titulo {
  font-size: 1rem;
  color: var(--dorado-3);
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.modal-alumno__detalles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
}

.modal-alumno__item-label {
  font-size: 0.75rem;
  color: var(--texto-apagado);
  text-transform: uppercase;
  font-weight: 600;
}

.modal-alumno__item-val {
  font-size: 0.9rem;
  color: #ffffff;
  margin: 0.2rem 0 0 0;
  font-weight: 500;
}

.volver {
  text-align: center;
  margin-top: 3rem;
}

.volver a {
  color: var(--dorado-3);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.volver a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .anuario-hero {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .anuario-hero__decoracion-izq,
  .anuario-hero__decoracion-der {
    display: none;
  }
  .anuario-hero__anio {
    font-size: 3.5rem;
  }
  .anuario-toolbar {
    border-radius: 20px;
  }
  .orla {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  .retrato__marco-foto {
    width: 90px;
    height: 115px;
  }
}

/* ==========================================================================
   ESTANTE DE ANUARIOS - DISEÑO DE LIBRO DE LUJO CON AÑO (HARDCOVER YEARBOOK)
   ========================================================================== */
.estante {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3.5rem 2.5rem;
  justify-items: center;
}

.estante li {
  width: 100%;
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.tomo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  cursor: pointer;
}

/* CONTENEDOR 3D DEL LIBRO */
.libro {
  position: relative;
  width: 240px;
  height: 350px;
  perspective: 1200px;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tomo:hover .libro {
  transform: translateY(-12px) rotateY(-8deg) scale(1.03);
}

/* TAPA DURA DEL LIBRO */
.libro__tapa {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 25%, #7a1217 0%, #4e080b 55%, #2a0406 100%);
  border-radius: 4px 14px 14px 4px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 
    -4px 0 0 #1a0203,
    -8px 0 0 #0d0102,
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 4px 0 8px rgba(0, 0, 0, 0.6);
  padding: 1.25rem 1.1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

/* LOMO EN RELIEVE */
.libro__lomo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18px;
  background: linear-gradient(90deg, #1f0304 0%, #4a080b 35%, #180203 70%, #580c0f 100%);
  border-right: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: inset 1px 0 3px rgba(255, 255, 255, 0.15), 2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.libro__lomo::before,
.libro__lomo::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #d4af37;
  opacity: 0.7;
}
.libro__lomo::before { top: 30px; }
.libro__lomo::after { bottom: 30px; }

/* CANTO DE HOJAS TRIDIMENSIONAL (DERECHA Y FONDO) */
.libro__paginas {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -10px;
  width: 14px;
  background: repeating-linear-gradient(
    to bottom,
    #f4ebd0,
    #f4ebd0 1px,
    #ded1b0 2px,
    #c9bb98 3px
  );
  border-radius: 0 4px 4px 0;
  border: 1px solid #9f9170;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.5);
  z-index: 1;
  transition: right 0.45s ease;
}

.tomo:hover .libro__paginas {
  right: -14px;
}

/* MARCO DORADO ESTILO PAN DE ORO (GOLD FOIL) */
.libro__marco {
  border: 2px solid #d4af37;
  outline: 1px solid rgba(212, 175, 55, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
  height: 100%;
  box-sizing: border-box;
  padding: 1.1rem 0.75rem 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(139, 29, 36, 0.15) 0%, transparent 80%);
}

.libro__marco::before,
.libro__marco::after {
  content: "✦";
  position: absolute;
  color: #d4af37;
  font-size: 0.85rem;
}
.libro__marco::before { top: -9px; left: calc(50% - 6px); }
.libro__marco::after { bottom: -9px; left: calc(50% - 6px); }

/* DETALLES TIPOGRÁFICOS DENTRO DEL LIBRO */
.libro__encabezado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.libro__institucion {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #f3e5ab;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.libro__estrella {
  color: #d4af37;
  font-size: 0.65rem;
}

.libro__kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #d4af37;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.libro__icono-birrete {
  width: 52px;
  height: 42px;
  margin: 0.2rem auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* EL AÑO GRABADO EN ORO RELIEVE */
.libro__anio {
  font-family: 'Cinzel', serif;
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  margin: 0.15rem 0;
  background: linear-gradient(180deg, #fff5c0 0%, #e6be48 40%, #b8860b 80%, #7d5904 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
}

.libro__divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 85%;
  font-size: 0.65rem;
  color: #d4af37;
  letter-spacing: 3px;
}

.libro__divisor span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.libro__subtitulo {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 4.5px;
  color: #fbf0b9;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  margin-top: 0.2rem;
}

.libro__edicion {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(243, 229, 171, 0.75);
  text-transform: uppercase;
}

/* CINTA MARCAPÁGINAS DORADA */
.libro__cinta {
  position: absolute;
  bottom: -18px;
  right: 38px;
  width: 14px;
  height: 28px;
  background: linear-gradient(180deg, #d4af37 0%, #aa7c11 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transition: transform 0.3s ease;
}

.tomo:hover .libro__cinta {
  transform: translateY(4px);
}

/* BRILLO REFLECTANTE */
.libro__brillo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 45%);
  pointer-events: none;
}

/* PIE DE TARJETA / INFORMACIÓN DEL TOMO */
.tomo__pie {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.tomo__pie strong {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 1px;
  transition: color 0.25s ease;
}

.tomo:hover .tomo__pie strong {
  color: var(--dorado-2);
}

.tomo__pie span {
  font-size: 0.85rem;
  color: var(--texto-apagado);
}

.tomo__btn-abrir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--borde-dorado);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dorado-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.tomo:hover .tomo__btn-abrir {
  background: var(--rojo-grad);
  border-color: var(--dorado-1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(155, 20, 24, 0.4);
}

