/* ============================================================
   ESTÉTICA RETRO UNIFICADA — "ANÁLISIS EN BLUESKY"
   Aplicable a index.html, fiction-categorias.html y resúmenes.
   ============================================================ */

:root {
  --color-bg: #000000;
  --color-accent: #ff0000;
  --color-text: #e5e5e5;
  --color-muted: #888888;
  --color-border: #333333;
}

/* ------------------------------------------------------------
   CONFIGURACIÓN GLOBAL
   ------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Source Code Pro", "Consolas", monospace;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 15px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ------------------------------------------------------------
   DESCRIPCIÓN INDEX – ESTILO GENERAL
   ------------------------------------------------------------ */
.descripcion-index p {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.3px;
  color: var(--color-text);
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

/* ------------------------------------------------------------
   ENCABEZADOS Y TIPOGRAFÍA
   ------------------------------------------------------------ */
h1, h2, h3 {
  color: var(--color-accent);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

p, li {
  font-size: 15px;
  color: var(--color-text);
}

/* ------------------------------------------------------------
   TEXTO DE INFORMACIÓN DE CATEGORÍAS EN INDEX
   ------------------------------------------------------------ */
.info-categoria {
  color: #e5e5e5 !important;
  font-family: "Source Code Pro", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  font-style: normal !important;
}

/* ------------------------------------------------------------
   TÍTULOS DE SECCIONES EN RESUMENES
   ------------------------------------------------------------ */
.seccion h2 {
  color: #e5e5e5;
  text-shadow: 0 0 5px rgba(229, 229, 229, 0.3);
}

/* ------------------------------------------------------------
   DESCRIPCIÓN DE SECCIONES
   ------------------------------------------------------------ */
.seccion .descripcion {
  font-size: 14px;
}

/* ------------------------------------------------------------
   ESTRUCTURA Y CONTENEDORES
   ------------------------------------------------------------ */
.header {
  text-align: center;
  padding: 25px 0;
  margin-bottom: 30px;
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.subtitulo {
  font-size: 15px;
  color: var(--color-muted);
  margin-top: 5px;
}

/* ------------------------------------------------------------
   SEPARADOR LÍNEA ROJA DEBAJO DE DESCRIPCIÓN
   ------------------------------------------------------------ */
.descripcion-index {
  position: relative;
  padding-bottom: 25px;
  margin-bottom: 30px;
  text-align: center;
}

.descripcion-index::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ------------------------------------------------------------
   CATEGORÍAS
   ------------------------------------------------------------ */
.categoria {
  background-color: #000000;
  border: 1px solid var(--color-border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.categoria::after {
  content: none !important;
}

.categoria a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.categoria-titulo {
  color: var(--color-accent);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.categoria small {
  color: var(--color-muted);
  font-size: 14px;
  font-style: italic;
}

/* ------------------------------------------------------------
   BOTÓN DE CONSULTA
   ------------------------------------------------------------ */
.boton-consulta {
  text-align: center;
  padding: 25px 0;
  margin-bottom: 30px;
}

.boton-consulta::before,
.boton-consulta::after {
  content: none !important;
}

/* ------------------------------------------------------------
   PIE DE PÁGINA (CLASE ACTUALIZADA)
   ------------------------------------------------------------ */
.main-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  padding-top: 15px;
  margin-top: 25px;
  position: relative;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ------------------------------------------------------------
   ESTADOS DE CATEGORÍA
   ------------------------------------------------------------ */
.categoria:hover,
.categoria:focus-within {
  background-color: #000000;
  border-color: var(--color-border);
  box-shadow: 0 0 10px rgba(17, 17, 17, 0.8);
  outline: none;
}

.categoria:active {
  background-color: #000000 !important;
  border-color: var(--color-border);
  box-shadow: 0 0 10px rgba(17, 17, 17, 0.8);
  transition-duration: 0.05s;
}

.categoria a:active,
.categoria a:focus,
.categoria a:focus-visible {
  background-color: transparent !important;
  color: var(--color-text) !important;
  outline: none !important;
}

.categoria a:visited {
  color: var(--color-text);
}

.categoria a:visited small {
  color: var(--color-muted);
}

/* ------------------------------------------------------------
   SECCIONES
   ------------------------------------------------------------ */
.seccion {
  background-color: #000000;
  border: 1px solid var(--color-border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(17, 17, 17, 0.8);
}

/* ------------------------------------------------------------
   CITAS
   ------------------------------------------------------------ */
.lista-citas {
  list-style: none;
  padding-left: 0;
}

.cita-item {
  border-left: 2px solid var(--color-border);
  padding-left: 12px;
  margin-bottom: 12px;
}

.cita-original {
  font-style: italic;
  color: var(--color-muted);
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

/* ------------------------------------------------------------
   ENLACES Y BOTONES (EXTERNOS A CATEGORÍAS)
   ------------------------------------------------------------ */
a:not(.categoria a) {
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  display: inline-block;
  background-color: #000000;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a:not(.categoria a):visited {
  color: var(--color-text);
  border-color: var(--color-border);
}

a:not(.categoria a):hover,
a:not(.categoria a):focus {
  background-color: #000000;
  border-color: var(--color-border);
  box-shadow: 0 0 10px rgba(17, 17, 17, 0.8);
  outline: none;
}

a:not(.categoria a):active {
  background-color: #000000 !important;
  border-color: var(--color-border);
  box-shadow: 0 0 10px rgba(17, 17, 17, 0.8);
  transition-duration: 0.05s;
}

a:not(.categoria a):active,
a:not(.categoria a):focus,
a:not(.categoria a):focus-visible {
  background-color: transparent !important;
  color: var(--color-text) !important;
  outline: none !important;
}

/* ------------------------------------------------------------
   DESTELLO BLANCO / FOCUS
   ------------------------------------------------------------ */
a, .categoria a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   RESPONSIVE MÓVIL
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 15px;
    line-height: 1.6;
  }
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }

  .seccion, .categoria { padding: 15px; }
  .cita-original { font-size: 13px; }
  .categoria a { font-size: 14px; }
  .categoria small { font-size: 13px; }
  .categoria-titulo { font-size: 17px; }
  .seccion .descripcion { font-size: 13px; }

  .descripcion-index { 
    padding-bottom: 15px; 
    margin-bottom: 20px;
  }

  .boton-consulta { padding: 15px 0; margin-bottom: 20px; }

  a:not(.categoria a) { padding: 8px 14px; font-size: 14px; }

  .info-categoria { font-size: 13px; }

  /* ——— NUEVA DESCRIPCIÓN EN MÓVIL ——— */
  .descripcion-index p {
    max-width: 95%;
    padding: 0 5px;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    hyphens: auto;
  }
}

/* ------------------------------------------------------------
   AJUSTES PARA MONITORES GRANDES (DESKTOP)
   ------------------------------------------------------------ */
@media (min-width: 900px) {
  body {
    max-width: 1100px;
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.3px;
  }

  h1 {
    font-size: 28px;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
    letter-spacing: 0.7px;
  }

  h2 {
    font-size: 22px;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
    letter-spacing: 0.7px;
  }

  /* Cuadrícula de dos columnas en index */
  .categorias-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Mejor legibilidad en resúmenes */
  .contenido-principal {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(255,0,0,0.05) 1px, transparent 1px);
    background-size: 40ch 100%;
  }

  .categoria, .seccion {
    padding: 30px 40px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(17, 17, 17, 0.8);
    transition: all 0.25s ease;
  }

  .categoria:hover, .seccion:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  }

  .categoria:hover h2,
  .categoria:hover small {
    color: #ffffff;
  }

  .categoria-titulo {
    font-size: 22px;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
  }

  .info-categoria {
    font-size: 16px;
    color: #dcdcdc !important;
  }

  p, li {
    font-size: 16px;
  }

  .descripcion-index::after {
    left: 15%;
    right: 15%;
    opacity: 0.8;
  }

  .main-footer {
    font-size: 14px;
    padding-top: 25px;
    margin-top: 40px;
    letter-spacing: 0.5px;
  }

  .main-footer::before {
    left: 10%;
    right: 10%;
    opacity: 0.8;
  }

  a:not(.categoria a) {
    padding: 8px 16px;
    transition: all 0.25s ease;
  }

  a:not(.categoria a):hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  }

  /* ——— DESCRIPCIÓN INDEX EN DESKTOP ——— */
  .descripcion-index p {
    font-size: 18px;
    line-height: 1.75;
    max-width: 75%;
    text-align: center;
  }

  /* Separador superior */
.descripcion-index p {

    font-size: 18px;

    line-height: 1.75;

    max-width: 100%;

    width: 100%;

    text-align: center;

    padding: 0 20px;

}

  /* Animación glow de títulos */
  @keyframes pulseRed {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 0, 0, 0.4); }
    50% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
  }

  h1:hover {
    animation: pulseRed 2s infinite;
  }
}
t-size: 14px;
    padding-top: 25px;
    margin-top: 40px;
    letter-spacing: 0.5px;
  }

  .main-footer::before {
    left: 10%;
    right: 10%;
    opacity: 0.8;
  }

  a:not(.categoria a) {
    padding: 8px 16px;
    transition: all 0.25s ease;
  }

  a:not(.categoria a):hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  }

  @keyframes pulseRed {
    0%, 100% { text-shadow: 0 0 6px rgba(255, 0, 0, 0.4); }
    50% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
  }

  h1:hover {
    animation: pulseRed 2s infinite;
  }
}