/* RESETEO BÁSICO Y VARIABLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #2b2825; /* Fondo exterior oscuro para resaltar el papel */
  font-family: 'IM Fell English', Georgia, serif;
  color: #1a1715;
  display: flex;
  justify-content: center;
  padding: 10px;
}

/* CONTENEDOR TIPO PAPEL ANTIGUO CON TEXTURA DE MANCHAS */
.paper-container {
  background-color: #f3efe6; /* Color papel pergamino/periódico envejecido */
  background-image: url('img/textura_manchas4.png');
  background-repeat: repeat;
  background-blend-mode: multiply; /* Fusiona perfectamente las manchas con el color pergamino */
  max-width: 1200px;
  width: 100%;
  padding: 18px 25px;
  border: 1px solid #3a322c;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden; /* Mantiene las telarañas dentro de las esquinas del papel */
}

/* TELARAÑAS EN LAS ESQUINAS SUPERIORES */
.corner-web {
  position: absolute;
  top: -10px;           /* Compensamos el padding superior de .paper-container */
  width: 330px;
  height: 330px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
  opacity: 0.95;
  filter: contrast(1.2);
}

.web-left {
  left: -9px;          /* Compensamos el padding izquierdo */
  background-image: url('img/telarana_izquierda.png');
  background-position: top left;
}

.web-right {
  right: -9px;         /* Compensamos el padding derecho */
  background-image: url('img/telarana_derecha_murcielagos.png');
  background-position: top right;
}

/* ROSA EN LA ESQUINA INFERIOR DERECHA */
.corner-rose {
  position: absolute;
  bottom: 180px;        /* Se alinea al borde inferior */
  right: 80px;          /* Se alinea al borde derecho */
  width: 160px;         /* Tamaño de la rosa */
  height: 160px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none; /* Permite interactuar con los elementos debajo */
  z-index: 10;
  opacity: 0.95;
}

.rose-bottom-right {
  background-image: url('img/bevel_rose.png');
  background-position: bottom right;
}

/* ENCABEZADO */
.header {
  border-bottom: 3px double #1a1715;
  padding-bottom: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-title h1 {
  font-family: "Pirata One", system-ui;
  font-size: 3.6rem;
  font-weight: normal;
  line-height: 1;
}

.tagline {
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 4px;
  line-height: 1.25;
}

/* Cita superior unificada con IM Fell English */
.header-quote-box {
  font-family: 'IM Fell English', Georgia, serif;
  border: 1px solid #1a1715;
  padding: 8px;
  font-size: 0.85rem;
  font-style: italic;
}

.author {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
}

/* NAVEGACIÓN SUB-HEADER */
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1a1715;
  border-bottom: 1px solid #1a1715;
  margin-top: 10px;
  padding: 5px 0;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: bold;
}

.nav-links a {
  color: #1a1715;
  text-decoration: none;
  margin: 0 8px;
  letter-spacing: 1px;
}

.nav-links a.highlight {
  color: #7a1c1c; /* Rojo victoriano */
}

.nav-links a:hover {
  text-decoration: underline;
}

/* MAQUETACIÓN A 3 COLUMNAS CON GRID */
.main-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.col {
  border-right: 1px solid #ccc1b0;
  padding-right: 15px;
}

.col:last-child {
  border-right: none;
  padding-right: 0;
}

/* TIPOGRAFÍA Y ORNAMENTOS */
.section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  margin-bottom: 10px;
}

.ornament {
  text-align: center;
  color: #7a1c1c;
  margin: 6px 0;
}

.ornament-small {
  text-align: center;
  color: #7a1c1c;
  margin: 4px 0;
  font-size: 0.8rem;
}

.drop-cap {
  font-family: 'Cinzel', serif;
  float: left;
  font-size: 2.1rem;
  line-height: 0.75;
  padding-right: 8px;
  padding-top: 4px;
  margin-bottom: -4px;
  color: #7a1c1c;
}

/* NOTA DE LA EDITORA */
.editor-note {
  font-family: 'IM Fell English', Georgia, serif;
  border: 1px solid #1a1715;
  padding: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.15);
}

.editor-note strong {
  font-family: 'Cinzel', serif;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.editor-note .sig {
  font-family: 'IM Fell English', Georgia, serif;
  display: block;
  text-align: right;
  margin-top: 6px;
  font-style: italic;
}

/* ARTÍCULO PRINCIPAL */
.main-article-header {
  text-align: center;
  margin-bottom: 10px;
}

.main-article-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  letter-spacing: 2px;
}

.subtitle {
  color: #7a1c1c;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 0.95rem;
}

.byline {
  font-style: italic;
  font-size: 0.88rem;
}

.featured-image img {
  width: 80%;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px auto;
  border: 1px solid #1a1715;
  filter: grayscale(0.9) contrast(1.1);
}

/* CITA DESTACADA */
.quote-box {
  font-family: 'IM Fell English', Georgia, serif;
  border: 1px solid #1a1715;
  padding: 12px;
  margin-top: 12px;
  font-size: 1.15rem; /* Tamaño más grande para la frase */
  background-color: rgba(255, 255, 255, 0.15);
  text-align: center;
  font-style: italic;
}

.quote-box cite {
  font-style: normal;
  font-family: 'Cinzel', serif;
  display: block;
  margin-top: 6px;
  font-size: 0.95rem; /* Un poco más grande para el autor */
  letter-spacing: 0.5px;
}

/* MARCO Y PORTADAS DE RECIÉN LLEGADOS (AMPLIADOS) */
.newly-received-frame {
  border: 2px double #1a1715;
  padding: 12px 6px;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
}

.book-covers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.book-covers .book-img {
  width: 75px;          /* Ampliado de 55px */
  height: 115px;        /* Ampliado de 85px */
  object-fit: cover;
  border: 1px solid #1a1715;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.book-covers .book-img:hover {
  transform: scale(1.06);
}

.book-list .book-item {
  margin-bottom: 58px;
  font-size: 0.9rem;
}

.book-list h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
}

.author-sub {
  font-style: italic;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 2px;
}

.short-hr {
  border: 0;
  border-top: 1px dashed #1a1715;
  margin: 8px 0;
}

/* FOOTER */
.footer {
  margin-top: 20px;
  border-top: 3px double #1a1715;
  padding-top: 15px;
  font-family: 'IM Fell English', Georgia, serif;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 15px;
  align-items: center;
  text-align: center;
}

.footer-box {
  border: 1px solid #1a1715;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-box h4 {
  font-family: 'IM Fell English', Georgia, serif;
  letter-spacing: 2px;
  font-size: 20px;
}

.footer-box a {
  color: #1a1715;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}

.cta-button {
  display: inline-block;
  border: 2px solid #7a1c1c;
  color: #7a1c1c !important;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  padding: 8px 12px;
  margin-bottom: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #7a1c1c;
  color: #f3efe6 !important;
}

.copyright {
  font-size: 1.05rem; /* Tamaño más visible y legible */
  font-style: italic;
  margin-top: 6px;
  line-height: 1.4;
}

.legal-links {
  list-style: none;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* OPTIMIZACIÓN PANTALLAS DE PORTÁTIL (14" / HASTA 900px DE ALTO) */
@media screen and (max-height: 900px) {
  .header-title h1 {
    font-size: 3.2rem;
  }
  .featured-image img {
    max-height: 240px;
  }
  .main-article-header h2 {
    font-size: 1.7rem;
  }
  .drop-cap {
    font-size: 2.4rem;
  }
}

/* RESPONSIVE (MÓVILES Y TABLETS) */
@media (max-width: 850px) {
  .header-top, .main-content, .footer-columns {
    grid-template-columns: 1fr;
  }

  .col {
    border-right: none;
    border-bottom: 1px solid #ccc1b0;
    padding-right: 0;
    padding-bottom: 15px;
  }

  .sub-header {
    flex-direction: column;
    gap: 8px;
  }

  .corner-web {
    width: 80px;
    height: 80px;
  }

  .corner-rose {
    width: 120px;
    height: 120px;
  }
} /* <--- Este corchete CIERRA el media query */

/* ==========================================
   CURSOR ANIMADO: MURCIÉLAGO VOLADOR (LOOP)
   ========================================== */
body, body * {
  cursor: url('https://cur.cursors-4u.net/animated/ani-1/ani21.ani'), auto !important;
}

/* Murciélago animado que sigue al puntero */
#custom-bat-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  background-image: url('img/Bat_Sticker.gif');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9999;
  
  /* CAMBIA ESTA LÍNEA: */
  /* El primer valor (X) descentra horizontalmente, el segundo (Y) lo sube */
  transform: translate(-50%, -80%); 
}