/**
 * MÓDULO DE ESTILOS - BIBLIOTECA DE PROFECÍAS MESIÁNICAS
 * ======================================================
 * 
 * Este módulo contiene todos los estilos CSS, temas y configuraciones
 * visuales para la biblioteca de profecías mesiánicas del TanaK.
 * 
 * Autor: Ministerio Judío Mesiánico - Torah Viviente
 * Fecha: 2025
 * Versión: 1.0
 */

/* ===== VARIABLES CSS Y CONFIGURACIÓN DE TEMAS ===== */

:root {
  /* 🏰 TEMA "MANUSCRITO MEDIEVAL" - EXPERIENCIA CINEMATOGRÁFICA */

  /* Font-family global - Söhne para PC y móviles */
  --font-family-global: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Emoji support */
  --emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla",
    "Segoe UI Symbol", sans-serif;

  /* Pergamino Medieval Auténtico */
  --color-pergamino: #f4f1e8;
  --color-pergamino-oscuro: #e6d7c3;
  --color-papel-antiguo: #fdf9f0;
  --color-papel-manchado: #f0ead6;
  --color-papel-amarillento: #f4f1e8;
  --color-papel-quemado: #e6d7c3;
  --color-papel-envejecido: #d4c4a8;
  --color-pergamino-sombra: #c9b99b;

  /* Tintas Medievales Auténticas - COLORES OSCUROS PARA VISIBILIDAD */
  --color-tinta: #1a0f08;
  --color-tinta-desvanecida: #2c1810;
  --color-tinta-rojiza: #5d2a0a;
  --color-tinta-marron: #3d2415;
  --color-tinta-sepia: #4a2c0a;
  --color-tinta-sangre: #5d0000;
  --color-tinta-carbón: #0a0502;
  --color-tinta-oro: #8b6914;

  /* Colores de Biblioteca Medieval */
  --color-tierra-clara: #d4c4a8;
  --color-tierra-media: #b8a082;
  --color-tierra-oscura: #8b7355;
  --color-tierra-quemada: #5d4e37;
  --color-arcilla-roja: #8b4513;
  --color-arcilla-blanca: #f0ead6;
  --color-arena-dorada: #d4c4a8;
  --color-piedra-antigua: #8b7355;

  /* Metales Medievales Auténticos */
  --color-dorado-opaco: #b8860b;
  --color-dorado-bronce: #cd853f;
  --color-dorado-cobre: #b87333;
  --color-dorado-tenue: #d4c4a8;
  --color-dorado-latón: #cd7f32;
  --color-dorado-plata: #8b7355;
  --color-dorado-hierro: #5d4e37;
  --color-oro-brillante: #ffd700;

  /* Colores de Acento Medieval */
  --color-acento: #8b4513;
  --color-acento-secundario: #a0522d;
  --color-acento-terciario: #cd853f;
  --color-cobre: #b87333;
  --color-bronce: #cd7f32;
  --color-sombra: rgba(60, 36, 21, 0.15);
  --color-sombra-tinta: rgba(60, 36, 21, 0.4);
  --color-sombra-profunda: rgba(0, 0, 0, 0.6);

  /* Iluminación de Biblioteca Medieval */
  --color-luz-vela: #ffd700;
  --color-luz-antorcha: #ff8c00;
  --color-luz-luna: #e6e6fa;
  --color-sombra-vela: rgba(255, 215, 0, 0.3);
  --color-sombra-antorcha: rgba(255, 140, 0, 0.4);

  /* Tema Kindle - Modo Manuscrito */
  --kindle-bg-light: #fdf9f0;
  --kindle-text-light: #1a0f08;
  --kindle-title-light: #0a0502;
  --kindle-accent-light: #8b4513;
  --kindle-border-light: #d4c4a8;
  --kindle-button-light: #8b4513;
  --kindle-button-text-light: #fdf9f0;
}

/* ===== RESET Y CONFIGURACIÓN BASE ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Permitir selección de texto en elementos específicos */
body,
p,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Desactivar selección solo en botones y elementos interactivos */
button,
input,
select,
textarea,
.boton-accion,
.boton-tamano {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

body {
  background: radial-gradient(
      circle at 20% 80%,
      var(--color-sombra-vela) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      var(--color-sombra-antorcha) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      var(--color-tierra-quemada) 0%,
      var(--color-tierra-oscura) 50%,
      var(--color-tierra-quemada) 100%
    );
  background-attachment: fixed;
  color: #374151;
  font-family: var(--font-family-global);
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  position: relative;
  /* Configuración de scroll funcional */
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  height: auto;
  /* Mejorar scroll en móviles */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* 🏰 Efecto de Biblioteca Medieval */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stone" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23d4c4a8"/><circle cx="10" cy="10" r="2" fill="%23b8a082" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stone)"/></svg>')
      repeat,
    linear-gradient(
      45deg,
      transparent 49%,
      rgba(184, 134, 11, 0.1) 50%,
      transparent 51%
    );
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* Efecto de Partículas de Polvo */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      1px 1px at 20px 30px,
      rgba(255, 255, 255, 0.1),
      transparent
    ),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.1),
      transparent
    ),
    radial-gradient(
      1px 1px at 160px 30px,
      rgba(255, 255, 255, 0.1),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: float 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* ===== PROTECCIÓN CONTRA SELECCIÓN ===== */

::selection {
  background: transparent !important;
  color: inherit !important;
}

::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
}

/* ===== ESTRUCTURA PRINCIPAL ===== */

.page-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  min-height: 100vh;
  position: relative;
  width: 100%;
  /* Asegurar que el scroll funcione */
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* 🏰 Contenedor Principal - Extendido al Máximo */
.contenedor-principal {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  position: relative;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
}

/*  Efecto de Iluminación de Vela - ELIMINADO */

/* 🔥 Animación de Parpadeo de Vela */
@keyframes flicker {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) scale(1);
  }
  25% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-50%) scale(0.9);
  }
  75% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1.05);
  }
}

/* 🏰 Efecto de Sombra de Pergamino */
.contenedor-principal::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(
      135deg,
      transparent 0%,
      rgba(139, 69, 19, 0.1) 50%,
      transparent 100%
    ),
    linear-gradient(
      45deg,
      transparent 0%,
      rgba(184, 134, 11, 0.05) 50%,
      transparent 100%
    );
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}

/* 🎭 Efecto Hover del Pergamino - ELIMINADO */

/* ===== ENCABEZADO MEDIEVAL ===== */

.encabezado {
  text-align: center;
  margin: 0;
  padding: 20px;
  background: #750404;
  border: none;
  border-radius: 0;
  color: #ffffff;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 🏰 Decoración Ornamental del Encabezado */
/* Decoración ornamental eliminada */

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.encabezado h1 {
  font-size: 3em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  font-family: var(--font-family-global);
  color: #ffffff;
  position: relative;
  letter-spacing: 2px;
}

/*  Efecto de Escritura con Tinta */
.encabezado h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-tinta-oro) 50%,
    transparent 100%
  );
  animation: write 3s ease-in-out forwards;
  z-index: -1;
}

@keyframes write {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.encabezado p {
  font-size: 1.4em;
  opacity: 0.95;
  font-weight: 500;
  color: #f0f0f0;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* ===== PANEL DE NAVEGACIÓN MEDIEVAL ===== */

.panel-navegacion {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 15px;
  margin: 0;
  text-align: center;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 🏰 Decoración del Panel de Navegación */
.panel-navegacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-dorado-bronce) 0%,
    var(--color-oro-brillante) 50%,
    var(--color-dorado-bronce) 100%
  );
  border-radius: 8px 8px 0 0;
}

.selector-profecia {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  min-width: 250px;
  position: relative;
  appearance: none;
  font-family: var(--font-family-global);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 50px;
  text-shadow: none;
}

.selector-profecia:hover,
.selector-profecia:focus {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.selector-profecia:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Estilos para las opciones del selector */
.selector-profecia option {
  background: #f5f5f5;
  color: #333333;
  padding: 8px 12px;
  font-size: 1em;
}

.selector-profecia option:hover {
  background: #e8e8e8;
  color: #222222;
}

/* Información de profecía seleccionada */
.info-profecia-seleccionada {
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  animation: slideIn 0.3s ease;
}

.info-profecia-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.info-profecia-numero {
  font-weight: 600;
  color: #555555;
}

.info-profecia-estado {
  color: #777777;
  font-style: italic;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BOTONES MODERNOS ESTILO IA ===== */

.boton-accion {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.025em;
}

/*  Efecto de Resplandor Dorado */
.boton-accion::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.boton-accion:hover::before {
  left: 100%;
}

.boton-accion:hover {
  background: #f9fafb;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #9ca3af;
}

.boton-accion:active {
  transform: translateY(0);
  background: #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-color: #6b7280;
}

.boton-accion:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ===== ÁREA DE LECTURA MODERNA ===== */

.area-lectura {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 20px;
  margin: 0;
  box-shadow: none;
  position: relative;
  min-height: 400px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 100%;
}

/* 🏰 Efecto de Iluminación de Lectura - ELIMINADO */

/*  Efecto Hover del Área de Lectura - ELIMINADO */

.contenido-profecia {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
  max-width: 100%;
  text-align: left;
  word-spacing: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  white-space: normal;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.contenido-profecia p {
  margin-bottom: 1em;
  margin-top: 0;
  word-spacing: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  line-height: 1.8;
  white-space: normal;
  text-align: justify;
  color: #374151;
  font-weight: 500;
}

/* ===== CONTROLES DE LECTURA ===== */

.controles-lectura {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  word-spacing: 0;
  line-height: 1.1;
  transition: all 0.3s ease;
}

/* Botón toggle para ocultar/mostrar controles */
.boton-toggle-controles {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #750404;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.boton-toggle-controles:hover {
  background: #8b0000;
  transform: scale(1.1);
}

.boton-toggle-controles:active {
  transform: scale(0.95);
}

/* Estado cuando los controles están ocultos */
.controles-lectura.controles-ocultos {
  height: 48px;
  overflow: hidden;
  padding: 8px;
}

.controles-lectura.controles-ocultos .control-tamano,
.controles-lectura.controles-ocultos .boton-accion {
  display: none;
}

.controles-lectura.controles-ocultos .boton-toggle-controles {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 auto;
}

/* Símbolo de pantalla completa - Botón funcional */
.simbolo-pantalla-completa {
  position: absolute;
  top: 50px;
  right: 8px;
  background: rgba(117, 4, 4, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.simbolo-pantalla-completa:hover {
  background: rgba(117, 4, 4, 1);
  transform: scale(1.1);
}

.simbolo-pantalla-completa:active {
  transform: scale(0.95);
}

/* Estado cuando los controles están ocultos */
.controles-lectura.controles-ocultos .simbolo-pantalla-completa {
  position: relative;
  top: auto;
  right: auto;
  margin: 8px auto 0 auto;
}

.control-tamano {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-spacing: 0;
  line-height: 1.1;
}

.boton-tamano {
  min-width: 50px;
  min-height: 50px;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  word-spacing: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.boton-tamano:hover {
  background: #f9fafb;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #9ca3af;
}

.indicador-tamano {
  min-width: 200px;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  word-spacing: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ===== MODO LECTURA MEDIEVAL ===== */

.modo-lectura-kindle .area-lectura {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 9999 !important;
  background: #f8f9fa !important; /* Tono suave para lectura extensa */
  color: #2c3e50 !important; /* Texto oscuro para contraste óptimo */
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 20px !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  font-size: 1.4em !important;
  line-height: 1.9 !important;
  transform: none !important;
  transition: all 0.3s ease !important;
}

/* 🏰 Efecto de Iluminación en Modo Lectura */
/* Gradiente eliminado para fondo uniforme */

.modo-lectura-kindle .contenido-profecia {
  font-size: 1.1em !important;
  line-height: 1.9 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  text-align-last: left !important;
  text-justify: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #2c3e50 !important; /* Texto oscuro para contraste óptimo */
  font-weight: 500 !important;
}

.modo-lectura-kindle .contenido-profecia h1 {
  font-size: 2.2em !important;
  margin-bottom: 1.5rem !important;
  text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
  color: #1a252f !important; /* Título más oscuro para contraste óptimo */
  font-weight: 700 !important;
  direction: ltr !important; /* Español: izquierda a derecha */
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
}

.modo-lectura-kindle .contenido-profecia h2 {
  font-size: 1.8em !important;
  text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
  color: #1a252f !important; /* Título más oscuro para contraste óptimo */
  font-weight: 600 !important;
  direction: ltr !important; /* Español: izquierda a derecha */
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
}

.modo-lectura-kindle .contenido-profecia h3 {
  font-size: 1.4em !important;
  text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
  color: #1a252f !important; /* Título más oscuro para contraste óptimo */
  font-weight: 600 !important;
  direction: ltr !important; /* Español: izquierda a derecha */
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
}

.modo-lectura-kindle .contenido-profecia p {
  text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
  text-align-last: left !important;
  direction: ltr !important; /* Español: izquierda a derecha */
  margin-bottom: 1em !important;
  word-spacing: 0.1em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO ENTRE PALABRAS */
  word-break: break-word !important; /* INSTRUCCIÓN ESTRICTA: DIVISIÓN DE PALABRAS AL FINAL DE LÍNEA */
  overflow-wrap: break-word !important;
  hyphens: auto !important; /* INSTRUCCIÓN ESTRICTA: GUIONES AUTOMÁTICOS */
  -webkit-hyphens: auto !important;
  -moz-hyphens: auto !important;
  -ms-hyphens: auto !important;
  line-height: 1.2 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO ENTRE LÍNEAS */
  white-space: normal !important;
  color: #2c3e50 !important; /* Texto oscuro para contraste óptimo */
  font-weight: 500 !important;
}

/* INSTRUCCIÓN ESTRICTA: TEXTO HEBREO EN MODO LECTURA - DERECHA A IZQUIERDA */
.modo-lectura-kindle .contenido-profecia .hebreo,
.modo-lectura-kindle .contenido-profecia [lang="he"],
.modo-lectura-kindle .contenido-profecia [class*="hebrew"] {
  direction: rtl !important; /* Hebreo: derecha a izquierda */
  text-align: right !important;
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
  word-break: break-word !important; /* División de palabras al final de línea */
  hyphens: auto !important; /* Guiones automáticos */
}

/* INSTRUCCIÓN ESTRICTA: TÍTULOS Y SUBTÍTULOS EN HEBREO - DERECHA A IZQUIERDA */
.modo-lectura-kindle .contenido-profecia .hebreo h1,
.modo-lectura-kindle .contenido-profecia .hebreo h2,
.modo-lectura-kindle .contenido-profecia .hebreo h3,
.modo-lectura-kindle .contenido-profecia .hebreo h4,
.modo-lectura-kindle .contenido-profecia .hebreo h5,
.modo-lectura-kindle .contenido-profecia .hebreo h6,
.modo-lectura-kindle .contenido-profecia [lang="he"] h1,
.modo-lectura-kindle .contenido-profecia [lang="he"] h2,
.modo-lectura-kindle .contenido-profecia [lang="he"] h3,
.modo-lectura-kindle .contenido-profecia [lang="he"] h4,
.modo-lectura-kindle .contenido-profecia [lang="he"] h5,
.modo-lectura-kindle .contenido-profecia [lang="he"] h6 {
  direction: rtl !important; /* Hebreo: derecha a izquierda */
  text-align: right !important;
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
}

/* ===== ÍNDICE DE PROFECÍAS ===== */

.indice-profecias {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.titulo-indice {
  color: #374151;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.lista-profecias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #750404;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.enlace-profecia {
  background: #ffffff;
  color: #374151;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.enlace-profecia:hover {
  background: #f9fafb;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #9ca3af;
}

.enlace-profecia.activo {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ===== PANEL DE DESCARGAS ===== */

.panel-descargas {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  color: #374151;
}

.panel-descargas.mostrar {
  display: block;
  animation: slideIn 0.3s ease;
}

.estadisticas-descarga {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.estadistica {
  text-align: center;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.estadistica .numero {
  font-size: 1.8em;
  font-weight: bold;
  color: #374151;
  margin-bottom: 5px;
}

.estadistica .etiqueta {
  font-size: 0.9em;
  color: #374151;
  font-weight: 500;
}

/* ===== MODAL DE APOYO ===== */

.support-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.support-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  position: relative;
  animation: slideIn 0.3s ease;
  overflow-y: auto;
  color: #374151;
  margin: auto;
  transform: translateY(0);
}

.support-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  font-size: 2rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d0d0;
}

.support-modal-header h3 {
  color: #374151;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.support-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

.paypal-btn {
  background: #750404;
  color: white;
  border-color: #d0d0d0;
}

.telegram-btn {
  background: #750404;
  color: white;
  border-color: #d0d0d0;
}

/* ===== MENÚ TORAH VIVIENTE ===== */

.menu-torah-viviente-compacto {
  background: #f7f3e9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.menu-header-compacto {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d0d0;
}

.menu-titulo-compacto {
  color: #374151;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.menu-enlaces-compacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.seccion-enlaces {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.seccion-titulo {
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.enlace-compacto {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.enlace-compacto:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (min-width: 769px) {
  .controles-lectura {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0;
  }

  .contenedor-principal {
    padding: 0;
    margin: 0;
  }

  .encabezado h1 {
    font-size: 2em;
  }

  .encabezado p {
    font-size: 1em;
  }

  .lista-profecias {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .enlace-profecia {
    padding: 6px 10px;
    font-size: 0.8em;
  }

  .controles-lectura {
    padding: 0.8rem;
    margin: 0.8rem 0;
    gap: 0.4rem;
    border-radius: 8px;
  }

  .boton-toggle-controles {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 6px;
    right: 6px;
  }

  .simbolo-pantalla-completa {
    width: 20px;
    height: 20px;
    font-size: 8px;
    top: 40px;
    right: 6px;
  }

  .boton-tamano {
    min-width: 45px;
    min-height: 45px;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border-width: 2px;
  }

  .indicador-tamano {
    min-width: 180px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0;
  }

  .contenedor-principal {
    padding: 0;
    margin: 0;
  }

  .encabezado {
    padding: 10px;
  }

  .encabezado h1 {
    font-size: 1.8em;
  }

  .encabezado p {
    font-size: 0.9em;
  }

  .panel-navegacion {
    padding: 15px;
  }

  .selector-profecia {
    font-size: 1em;
    padding: 10px 14px;
    min-width: 150px;
    background-size: 14px;
    padding-right: 35px;
  }

  .lista-profecias {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
  }

  .enlace-profecia {
    padding: 5px 8px;
    font-size: 0.75em;
  }

  .controles-lectura {
    padding: 0.6rem;
    margin: 0.6rem 0;
    gap: 0.3rem;
  }

  .boton-toggle-controles {
    width: 24px;
    height: 24px;
    font-size: 10px;
    top: 4px;
    right: 4px;
  }

  .simbolo-pantalla-completa {
    width: 18px;
    height: 18px;
    font-size: 7px;
    top: 32px;
    right: 4px;
  }

  .boton-tamano {
    min-width: 40px;
    min-height: 40px;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }

  .indicador-tamano {
    min-width: 160px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ===== ANIMACIONES MEDIEVALES ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 🏰 Animaciones Específicas del Tema Medieval */

@keyframes flotar {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes parpadear {
  0%,
  100% {
    transform: scale(1) rotate(-2deg);
    box-shadow: 0 0 10px var(--color-luz-vela);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 0 20px var(--color-luz-antorcha);
  }
}

@keyframes escribirTinta {
  0% {
    background-size: 0% 100%;
  }
  100% {
    background-size: 100% 100%;
  }
}

@keyframes brillarOro {
  0%,
  100% {
    box-shadow: 0 0 5px var(--color-dorado-bronce);
  }
  50% {
    box-shadow: 0 0 20px var(--color-oro-brillante),
      0 0 30px var(--color-oro-brillante);
  }
}

@keyframes desenrollarPergamino {
  0% {
    transform: perspective(1000px) rotateX(90deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: perspective(1000px) rotateX(45deg) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes temblarVela {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(1px) rotate(0.5deg);
  }
  75% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

/* Efectos de Clase para Aplicar Dinámicamente */

.efecto-escritura {
  background: linear-gradient(
    90deg,
    var(--color-tinta) 0%,
    var(--color-tinta) 0%,
    transparent 0%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: escribirTinta 3s ease-in-out forwards;
}

.efecto-brillo-oro {
  animation: brillarOro 2s ease-in-out infinite;
}

.efecto-desenrollar {
  animation: desenrollarPergamino 1.5s ease-out forwards;
}

.efecto-temblar {
  animation: temblarVela 0.1s ease-in-out infinite;
}

.particula-polvo {
  animation-delay: calc(var(--delay, 0) * 1s);
}

/* 🎭 Efectos de Transición de Página */

.transicion-pagina-entrada {
  animation: desenrollarPergamino 1s ease-out forwards;
}

.transicion-pagina-salida {
  animation: fadeIn 0.5s ease-in reverse forwards;
}

/* ===== ESTADOS ESPECIALES ===== */

.cargando {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #374151;
  font-weight: 500;
}

.error {
  text-align: center;
  padding: 40px;
  font-size: 1.1em;
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 20px 0;
}

.descargando {
  opacity: 0.7;
  pointer-events: none;
}

.descargado {
  background: #d4edda !important;
  color: #155724 !important;
  border-color: #d0d0d0 !important;
}

.oculto {
  display: none !important;
}

.mostrar {
  display: block !important;
}

.activo {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

/* ===== UTILIDADES ===== */

.texto-centrado {
  text-align: center !important;
}

.texto-izquierda {
  text-align: left !important;
}

.texto-derecha {
  text-align: right !important;
}

.sin-margen {
  margin: 0 !important;
}

.sin-padding {
  padding: 0 !important;
}

.sin-borde {
  border: 1px solid #e2e8f0 !important;
}

.sombra-suave {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.sombra-media {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.sombra-fuerte {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* ===== BOTÓN DE SALIDA DEL MODO LECTURA ===== */

#boton-salir-lectura {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 99999 !important;
  background: rgba(220, 38, 38, 0.95) !important;
  color: white !important;
  border: 2px solid #dc2626 !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  font-family: var(--font-family-global) !important;
}

#boton-salir-lectura:hover {
  background: #dc2626 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
}

#boton-salir-lectura:active {
  transform: scale(0.95) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #boton-salir-lectura {
    top: 15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 16px !important;
    z-index: 99999 !important;
  }
}

@media (max-width: 480px) {
  #boton-salir-lectura {
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
    z-index: 99999 !important;
  }
}

/* Tema oscuro para el botón */
.tema-oscuro #boton-salir-lectura {
  background: rgba(239, 68, 68, 0.95) !important;
  border-color: #ef4444 !important;
  color: white !important;
  z-index: 99999 !important;
}

.tema-oscuro #boton-salir-lectura:hover {
  background: #ef4444 !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
}

/* ===== TEMA OSCURO ===== */

.tema-oscuro {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .contenedor-principal {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .encabezado {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .encabezado h1 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.tema-oscuro .encabezado p {
  color: #e5e5e5 !important;
  opacity: 0.9 !important;
}

.tema-oscuro .panel-navegacion {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .area-lectura {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .contenido-profecia {
  color: #e5e5e5 !important;
}

.tema-oscuro .contenido-profecia h1,
.tema-oscuro .contenido-profecia h2,
.tema-oscuro .contenido-profecia h3,
.tema-oscuro .contenido-profecia p {
  color: #e5e5e5 !important;
}

.tema-oscuro .boton-accion {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .boton-accion:hover {
  background: #505050 !important;
  color: #ffffff !important;
  border-color: #666666 !important;
}

.tema-oscuro .boton-tamano {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .boton-tamano:hover {
  background: #505050 !important;
  color: #ffffff !important;
  border-color: #666666 !important;
}

.tema-oscuro .indicador-tamano {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .selector-profecia {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .selector-profecia option {
  background: #404040 !important;
  color: #e5e5e5 !important;
}

.tema-oscuro .enlace-profecia {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .enlace-profecia:hover {
  background: #505050 !important;
  color: #ffffff !important;
  border-color: #666666 !important;
}

.tema-oscuro .boton-toggle-controles {
  background: #750404 !important;
  color: white !important;
}

.tema-oscuro .boton-toggle-controles:hover {
  background: #8b0000 !important;
}

.tema-oscuro .simbolo-pantalla-completa {
  background: rgba(117, 4, 4, 0.8) !important;
  color: white !important;
}

.tema-oscuro .simbolo-pantalla-completa:hover {
  background: rgba(117, 4, 4, 1) !important;
}

.tema-oscuro .enlace-profecia.activo {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

.tema-oscuro .enlace-compacto {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .enlace-compacto:hover {
  background: #505050 !important;
  color: #ffffff !important;
  border-color: #666666 !important;
}

.tema-oscuro .titulo-indice {
  color: #e5e5e5 !important;
}

.tema-oscuro .seccion-titulo {
  color: #e5e5e5 !important;
}

.tema-oscuro .menu-titulo-compacto {
  color: #e5e5e5 !important;
}

.tema-oscuro .support-modal-content {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .support-modal-close {
  background: #404040 !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .support-modal-header h3 {
  color: #e5e5e5 !important;
}

/* ===== ANIMACIONES PARA MODAL DE APOYO ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== SCROLL MÓVIL MEJORADO ===== */

/* Mejorar scroll en todos los elementos */
html,
body {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Permitir scroll táctil en contenedores principales */
.page-container,
.contenedor-principal,
.area-lectura,
.contenido-profecia {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Mejorar scroll en listas y contenido largo */
.lista-profecias,
.indice-profecias,
.panel-descargas {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Configuración específica para móviles */
@media (max-width: 768px) {
  html,
  body {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    /* Permitir scroll nativo en móviles */
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  .page-container {
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  /* Asegurar que el contenido sea scrolleable */
  .contenido-profecia {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
}

/* ===== RESPONSIVE PARA MODAL DE APOYO ===== */

@media (max-width: 768px) {
  .support-modal-content {
    width: 95%;
    max-width: 400px;
    padding: 1.5rem;
    margin: 20px;
    max-height: 85vh;
  }

  .support-modal-header h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .support-modal-content {
    width: 98%;
    max-width: 350px;
    padding: 1rem;
    margin: 10px;
    max-height: 90vh;
  }

  .support-modal-header h3 {
    font-size: 1.3rem;
  }

  .support-modal-close {
    top: 0.5rem;
    right: 0.75rem;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}

.tema-oscuro .panel-descargas {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border: 1px solid #555555 !important;
}

.tema-oscuro .estadistica .numero,
.tema-oscuro .estadistica .etiqueta {
  color: #e5e5e5 !important;
}

.tema-oscuro .activo {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

/* Modo lectura oscuro */
.tema-oscuro.modo-lectura-kindle .area-lectura {
  background: #1e1e1e !important; /* Tono uniforme para lectura extensa en tema oscuro */
  color: #e5e5e5 !important;
}

.tema-oscuro.modo-lectura-kindle .contenido-profecia {
  color: #e5e5e5 !important;
}

.tema-oscuro.modo-lectura-kindle .contenido-profecia h1,
.tema-oscuro.modo-lectura-kindle .contenido-profecia h2,
.tema-oscuro.modo-lectura-kindle .contenido-profecia h3,
.tema-oscuro.modo-lectura-kindle .contenido-profecia p {
  color: #e5e5e5 !important;
}

/* ===== FORMATO ESTRICTO DEL DOCUMENTO ===== */

/* Configuración base para todo el documento */
.area-lectura,
.contenido-profecia,
.area-lectura * {
  word-spacing: 0.1em !important; /* Espacio mínimo entre palabras */
  line-height: 1.2 !important; /* Espaciado mínimo entre líneas */
  word-break: break-word !important; /* División de palabras al final de línea */
  hyphens: auto !important; /* Guiones automáticos */
  text-align: left !important; /* Alineación a la izquierda por defecto */
}

/* Títulos y subtítulos - ALINEACIÓN A LA IZQUIERDA */
.area-lectura h1,
.area-lectura h2,
.area-lectura h3,
.area-lectura h4,
.area-lectura h5,
.area-lectura h6,
.contenido-profecia h1,
.contenido-profecia h2,
.contenido-profecia h3,
.contenido-profecia h4,
.contenido-profecia h5,
.contenido-profecia h6 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  word-spacing: 0.1em !important;
  line-height: 1.2 !important;
}

/* Profecía #X - ALINEACIÓN A LA IZQUIERDA */
.area-lectura h1:contains("Profecía #"),
.contenido-profecia h1:contains("Profecía #"),
.area-lectura h1[class*="profecia"],
.contenido-profecia h1[class*="profecia"] {
  text-align: left !important;
  direction: ltr !important; /* Español: izquierda a derecha */
}

/* Títulos numerados (1. 2. 3. X.) - ALINEACIÓN A LA IZQUIERDA */
.area-lectura h2:contains("1."),
.area-lectura h2:contains("2."),
.area-lectura h2:contains("3."),
.area-lectura h3:contains("1."),
.area-lectura h3:contains("2."),
.area-lectura h3:contains("3."),
.contenido-profecia h2:contains("1."),
.contenido-profecia h2:contains("2."),
.contenido-profecia h2:contains("3."),
.contenido-profecia h3:contains("1."),
.contenido-profecia h3:contains("2."),
.contenido-profecia h3:contains("3.") {
  text-align: left !important;
  direction: ltr !important; /* Español: izquierda a derecha */
}

/* Subtítulos - ALINEACIÓN A LA IZQUIERDA */
.area-lectura h4,
.area-lectura h5,
.area-lectura h6,
.contenido-profecia h4,
.contenido-profecia h5,
.contenido-profecia h6 {
  text-align: left !important;
  direction: ltr !important; /* Español: izquierda a derecha */
}

/* Texto en español e idiomas similares - IZQUIERDA A DERECHA */
.area-lectura p,
.contenido-profecia p,
.area-lectura div,
.contenido-profecia div,
.area-lectura span,
.contenido-profecia span {
  direction: ltr !important; /* Español: izquierda a derecha */
  text-align: left !important;
  word-spacing: 0.1em !important;
  line-height: 1.2 !important;
}

/* Texto hebreo - DERECHA A IZQUIERDA */
.area-lectura .hebreo,
.contenido-profecia .hebreo,
.area-lectura [lang="he"],
.contenido-profecia [lang="he"],
.area-lectura [class*="hebrew"],
.contenido-profecia [class*="hebrew"] {
  direction: rtl !important; /* Hebreo: derecha a izquierda */
  text-align: right !important;
  word-spacing: 0.1em !important;
  line-height: 1.2 !important;
}

/* Títulos y subtítulos en hebreo - DERECHA A IZQUIERDA */
.area-lectura .hebreo h1,
.area-lectura .hebreo h2,
.area-lectura .hebreo h3,
.area-lectura .hebreo h4,
.area-lectura .hebreo h5,
.area-lectura .hebreo h6,
.contenido-profecia .hebreo h1,
.contenido-profecia .hebreo h2,
.contenido-profecia .hebreo h3,
.contenido-profecia .hebreo h4,
.contenido-profecia .hebreo h5,
.contenido-profecia .hebreo h6 {
  direction: rtl !important; /* Hebreo: derecha a izquierda */
  text-align: right !important;
}

/* Aplicar a modo lectura Kindle */
.modo-lectura-kindle .area-lectura,
.modo-lectura-kindle .contenido-profecia,
.modo-lectura-kindle .area-lectura * {
  word-spacing: 0.1em !important;
  line-height: 1.2 !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

.modo-lectura-kindle .area-lectura h1,
.modo-lectura-kindle .area-lectura h2,
.modo-lectura-kindle .area-lectura h3,
.modo-lectura-kindle .area-lectura h4,
.modo-lectura-kindle .area-lectura h5,
.modo-lectura-kindle .area-lectura h6,
.modo-lectura-kindle .contenido-profecia h1,
.modo-lectura-kindle .contenido-profecia h2,
.modo-lectura-kindle .contenido-profecia h3,
.modo-lectura-kindle .contenido-profecia h4,
.modo-lectura-kindle .contenido-profecia h5,
.modo-lectura-kindle .contenido-profecia h6 {
  text-align: left !important;
  direction: ltr !important;
}

/* Responsive para móviles - APLICACIÓN ESTRICTA */
@media (max-width: 768px) {
  .area-lectura,
  .contenido-profecia,
  .area-lectura * {
    word-spacing: 0.05em !important; /* Espacio aún más mínimo en móviles */
    line-height: 1.1 !important; /* Espaciado mínimo entre líneas en móviles */
    word-break: break-word !important;
    hyphens: auto !important;
  }

  .area-lectura h1,
  .area-lectura h2,
  .area-lectura h3,
  .area-lectura h4,
  .area-lectura h5,
  .area-lectura h6,
  .contenido-profecia h1,
  .contenido-profecia h2,
  .contenido-profecia h3,
  .contenido-profecia h4,
  .contenido-profecia h5,
  .contenido-profecia h6 {
    text-align: left !important;
    word-spacing: 0.05em !important;
    line-height: 1.1 !important;
  }

  /* INSTRUCCIÓN ESTRICTA: MODO LECTURA EN MÓVILES */
  .modo-lectura-kindle .contenido-profecia h1,
  .modo-lectura-kindle .contenido-profecia h2,
  .modo-lectura-kindle .contenido-profecia h3,
  .modo-lectura-kindle .contenido-profecia h4,
  .modo-lectura-kindle .contenido-profecia h5,
  .modo-lectura-kindle .contenido-profecia h6 {
    text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
    word-spacing: 0.05em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO EN MÓVILES */
    line-height: 1.1 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO EN MÓVILES */
    direction: ltr !important; /* Español: izquierda a derecha */
  }

  .modo-lectura-kindle .contenido-profecia p {
    text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
    word-spacing: 0.05em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO EN MÓVILES */
    line-height: 1.1 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO EN MÓVILES */
    direction: ltr !important; /* Español: izquierda a derecha */
    word-break: break-word !important; /* INSTRUCCIÓN ESTRICTA: DIVISIÓN DE PALABRAS */
    hyphens: auto !important; /* INSTRUCCIÓN ESTRICTA: GUIONES AUTOMÁTICOS */
  }

  /* INSTRUCCIÓN ESTRICTA: TEXTO HEBREO EN MÓVILES */
  .modo-lectura-kindle .contenido-profecia .hebreo,
  .modo-lectura-kindle .contenido-profecia [lang="he"],
  .modo-lectura-kindle .contenido-profecia [class*="hebrew"] {
    direction: rtl !important; /* Hebreo: derecha a izquierda */
    text-align: right !important;
    word-spacing: 0.05em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO EN MÓVILES */
    line-height: 1.1 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO EN MÓVILES */
  }
}

@media (max-width: 480px) {
  .area-lectura,
  .contenido-profecia,
  .area-lectura * {
    word-spacing: 0.03em !important; /* Espacio mínimo absoluto en móviles pequeños */
    line-height: 1.05 !important; /* Espaciado mínimo absoluto entre líneas */
  }

  /* INSTRUCCIÓN ESTRICTA: MODO LECTURA EN MÓVILES PEQUEÑOS */
  .modo-lectura-kindle .contenido-profecia h1,
  .modo-lectura-kindle .contenido-profecia h2,
  .modo-lectura-kindle .contenido-profecia h3,
  .modo-lectura-kindle .contenido-profecia h4,
  .modo-lectura-kindle .contenido-profecia h5,
  .modo-lectura-kindle .contenido-profecia h6 {
    text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
    word-spacing: 0.03em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO ABSOLUTO */
    line-height: 1.05 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO ABSOLUTO */
    direction: ltr !important; /* Español: izquierda a derecha */
  }

  .modo-lectura-kindle .contenido-profecia p {
    text-align: left !important; /* INSTRUCCIÓN ESTRICTA: ALINEACIÓN A LA IZQUIERDA */
    word-spacing: 0.03em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO ABSOLUTO */
    line-height: 1.05 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO ABSOLUTO */
    direction: ltr !important; /* Español: izquierda a derecha */
    word-break: break-word !important; /* INSTRUCCIÓN ESTRICTA: DIVISIÓN DE PALABRAS */
    hyphens: auto !important; /* INSTRUCCIÓN ESTRICTA: GUIONES AUTOMÁTICOS */
  }

  /* INSTRUCCIÓN ESTRICTA: TEXTO HEBREO EN MÓVILES PEQUEÑOS */
  .modo-lectura-kindle .contenido-profecia .hebreo,
  .modo-lectura-kindle .contenido-profecia [lang="he"],
  .modo-lectura-kindle .contenido-profecia [class*="hebrew"] {
    direction: rtl !important; /* Hebreo: derecha a izquierda */
    text-align: right !important;
    word-spacing: 0.03em !important; /* INSTRUCCIÓN ESTRICTA: ESPACIO MÍNIMO ABSOLUTO */
    line-height: 1.05 !important; /* INSTRUCCIÓN ESTRICTA: ESPACIADO MÍNIMO ABSOLUTO */
  }
}

/* ===== FONT-FAMILY GLOBAL - SÖHNE ===== */

/* Aplicar font-family global a todos los elementos CON soporte de emojis */
* {
  font-family: var(--font-family-global), var(--emoji-font) !important;
}

/* ===== EMOJI SUPPORT ===== */

/* Mejorar visualización de emojis */
body,
html {
  font-family: var(--font-family-global), var(--emoji-font) !important;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Asegurar que los emojis se muestren correctamente */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
select,
textarea,
.boton-accion,
.boton-tamano,
.selector-profecia,
.boton-toggle-controles,
.simbolo-pantalla-completa,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
  font-family: var(--font-family-global), var(--emoji-font) !important;
}

/* Específico para elementos que contienen emojis */
.encabezado h1,
.seccion-titulo,
.enlace-icono,
.boton-lectura,
.estado,
.boton-accion,
.boton-toggle-controles,
.simbolo-pantalla-completa,
.boton-tamano,
.boton-fullscreen-flotante {
  font-family: var(--font-family-global), var(--emoji-font) !important;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-variant-emoji: emoji !important;
  -moz-font-feature-settings: "liga" 1, "kern" 1 !important;
}

/* Asegurar que todos los elementos de texto usen la fuente Söhne */
body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
select,
textarea,
.contenedor-principal,
.encabezado,
.area-lectura,
.panel-navegacion,
.controles-lectura,
.support-modal-content,
.panel-descargas,
.boton-accion,
.boton-tamano,
.selector-profecia,
.boton-toggle-controles,
.simbolo-pantalla-completa,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
  font-family: var(--font-family-global) !important;
}

/* ===== BOTONES FLOTANTES ===== */

.boton-toggle-controles,
.boton-fullscreen {
  position: fixed;
  right: 20px;
  z-index: 1000;
  background: var(--color-tierra-oscura);
  color: white;
  border: 2px solid var(--color-tinta-oro);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.boton-toggle-controles {
  top: 20px;
}

.boton-fullscreen {
  top: 80px;
}

.boton-toggle-controles:hover,
.boton-fullscreen:hover {
  background: var(--color-tinta-oro);
  color: var(--color-tierra-oscura);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(139, 105, 20, 0.4);
}

.boton-toggle-controles:active,
.boton-fullscreen:active {
  transform: scale(0.95);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .boton-toggle-controles,
  .boton-fullscreen {
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .boton-toggle-controles {
    top: 15px;
  }

  .boton-fullscreen {
    top: 70px;
  }
}

@media (max-width: 480px) {
  .boton-toggle-controles,
  .boton-fullscreen {
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .boton-toggle-controles {
    top: 10px;
  }

  .boton-fullscreen {
    top: 60px;
  }
}

/* ===== TRANSICIONES PARA CONTROLES ===== */

.controles-lectura {
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.controles-lectura.oculto {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* ===== CONFIGURACIÓN ESPECÍFICA PARA EMOJIS ===== */

/* SOLUCIÓN AGRESIVA PARA CUADRITOS CON LETRAS */
/* Forzar renderizado correcto de emojis en todos los navegadores */
.emoji-fix {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla",
    "Segoe UI Symbol", "Apple Symbols", sans-serif !important;
  font-variant-emoji: emoji !important;
  -webkit-font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  vertical-align: middle !important;
  font-size: 1.2em !important;
  line-height: 1 !important;
}

/* Aplicar fix de emojis a elementos específicos - SOLUCIÓN AGRESIVA */
button,
.boton-accion,
.enlace-icono,
.seccion-titulo,
.boton-toggle-controles,
.simbolo-pantalla-completa,
.boton-tamano,
.boton-fullscreen-flotante {
  font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji",
    "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol",
    "Apple Symbols", sans-serif !important;
  font-variant-emoji: emoji !important;
  -webkit-font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* SOLUCIÓN ESPECÍFICA PARA EMOJIS EN BOTONES */
button:before,
button:after,
.boton-accion:before,
.boton-accion:after {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla",
    "Segoe UI Symbol", "Apple Symbols", sans-serif !important;
  font-variant-emoji: emoji !important;
}

/* SOLUCIÓN FINAL AGRESIVA PARA CUADRITOS */
/* Forzar emojis en todos los elementos que contienen emojis */
*[class*="emoji-fix"],
*[class*="boton-accion"],
*[class*="boton-toggle"],
*[class*="simbolo-pantalla"] {
  font-family: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji",
    "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI Symbol",
    "Apple Symbols", sans-serif !important;
  font-variant-emoji: emoji !important;
  -webkit-font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* SOLUCIÓN ESPECÍFICA PARA CÓDIGOS FONT AWESOME (FO53, FO54, etc.) */
/* Forzar carga de Font Awesome en elementos con clases fa- */
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
.fa-brands,
[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;
}

/* Solución específica para iconos que no se cargan */
.fa-solid:before,
.fa-regular:before,
.fa-light:before,
.fa-thin:before,
.fa-duotone:before,
.fa-brands:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro",
    "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
  font-weight: 900 !important;
}

/* Fallback para códigos internos de Font Awesome */
.fa-chevron-left:before {
  content: "\f053" !important;
}
.fa-chevron-right:before {
  content: "\f054" !important;
}
.fa-eye-slash:before {
  content: "\f070" !important;
}
.fa-expand:before {
  content: "\f065" !important;
}
.fa-book-open:before {
  content: "\f518" !important;
}
.fa-download:before {
  content: "\f019" !important;
}
.fa-moon:before {
  content: "\f186" !important;
}
.fa-trash:before {
  content: "\f1f8" !important;
}
.fa-file-export:before {
  content: "\f56e" !important;
}
.fa-times:before {
  content: "\f00d" !important;
}

/* Responsive font-family para móviles */
@media (max-width: 768px) {
  * {
    font-family: var(--font-family-global), var(--emoji-font) !important;
  }
}

@media (max-width: 480px) {
  * {
    font-family: var(--font-family-global), var(--emoji-font) !important;
  }
}

/* ===== WIDGET GTRANSLATE COMPLETAMENTE OPTIMIZADO ===== */
/* Estilos principales del widget - Posicionamiento fijo inferior izquierdo */
#gtranslate_wrapper {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  z-index: 99999 !important;
  font-family: "Times New Roman", Times, serif !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* Estilos solo cuando el widget está cargado */
#gtranslate_wrapper .goog-te-gadget {
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 0 !important;
  padding: 8px !important;
  backdrop-filter: none !important;
  min-width: 120px !important;
  min-height: 40px !important;
}

/* Hover effect para el widget */
#gtranslate_wrapper:hover .goog-te-gadget {
  background: #f0f0f0 !important;
  border-color: #d0d0d0 !important;
  transform: translateY(-1px) !important;
}

/* Estilos para el gadget de GTranslate */
#gtranslate_wrapper .goog-te-gadget {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
  font-family: "Times New Roman", Times, serif !important;
  color: #333 !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Estilos para el select de idiomas */
#gtranslate_wrapper select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: white !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 0 !important;
  padding: 4px 8px !important;
  font-family: "Times New Roman", Times, serif !important;
  font-size: 11px !important;
  color: #333 !important;
  cursor: pointer !important;
  min-width: 150px !important;
  max-width: 250px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  transition: all 0.3s ease !important;
}

/* Hover effect para el select */
#gtranslate_wrapper select:hover {
  border-color: #d0d0d0 !important;
}

/* Focus effect para el select */
#gtranslate_wrapper select:focus {
  outline: none !important;
  border-color: #d0d0d0 !important;
}

/* Estilos para las opciones del select */
#gtranslate_wrapper select option {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: white !important;
  color: #333 !important;
  padding: 6px 8px !important;
  font-size: 11px !important;
  font-family: "Times New Roman", Times, serif !important;
  border-bottom: 1px solid #f0f0f0 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Hover effect para las opciones */
#gtranslate_wrapper select option:hover {
  background: #f0f0f0 !important;
  color: #333 !important;
}

/* Primera opción (idioma por defecto) */
#gtranslate_wrapper select option:first-child {
  background: #f8f8f8 !important;
  color: #666 !important;
  font-weight: bold !important;
}

/* Ocultar elementos innecesarios de GTranslate */
#gtranslate_wrapper .goog-te-gadget .goog-te-combo .goog-te-combo-arrow {
  display: none !important;
}

#gtranslate_wrapper .goog-te-gadget .goog-te-combo .goog-te-combo-arrow:after {
  display: none !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #gtranslate_wrapper {
    bottom: 15px !important;
    left: 15px !important;
    min-width: 120px !important;
  }

  #gtranslate_wrapper select {
    min-width: 120px !important;
    max-width: 200px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  #gtranslate_wrapper {
    bottom: 18px !important;
    left: 18px !important;
  }

  #gtranslate_wrapper select {
    min-width: 140px !important;
    max-width: 220px !important;
  }
}

/* ===== REPRODUCTOR MINIMALISTA ===== */
/* Contenedor principal del reproductor minimalista */
.reproductor-minimalista {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Pestaña minimalista */
.pestana-minimalista {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #750404 0%, #a00505 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(117, 4, 4, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pestana-minimalista:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(117, 4, 4, 0.6);
  background: linear-gradient(135deg, #a00505 0%, #750404 100%);
}

.pestana-minimalista i {
  color: white;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.pestana-minimalista:hover i {
  transform: scale(1.1);
}

/* Controles minimalistas */
.controles-minimalistas {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 280px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones minimalistas */
.btn-mini {
  background: linear-gradient(135deg, #750404 0%, #a00505 100%);
  border: none;
  border-radius: 8px;
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  margin: 0 2px;
}

.btn-mini:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(117, 4, 4, 0.4);
}

.btn-mini:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-list {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-list:hover {
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* Información del audio */
.info-mini {
  flex: 1;
  margin: 0 8px;
  min-width: 0;
}

.titulo-mini {
  display: block;
  font-size: 11px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Lista de audios */
.lista-audios {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 320px;
  max-height: 400px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.header-lista {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #750404 0%, #a00505 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.btn-cerrar-lista {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.btn-cerrar-lista:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contenido-lista {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px;
}

.item-audio {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.item-audio:hover {
  background: rgba(117, 4, 4, 0.1);
}

.item-audio.activo {
  background: linear-gradient(135deg, #750404 0%, #a00505 100%);
  color: white;
}

.numero-audio {
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
  min-width: 20px;
}

.titulo-audio {
  font-size: 11px;
  line-height: 1.3;
  flex: 1;
}

/* Player iframe oculto */
#player {
  position: fixed;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .reproductor-minimalista {
    bottom: 15px;
    right: 15px;
  }

  .pestana-minimalista {
    width: 45px;
    height: 45px;
  }

  .pestana-minimalista i {
    font-size: 16px;
  }

  .controles-minimalistas {
    min-width: 260px;
    bottom: 55px;
  }

  .lista-audios {
    width: 280px;
    max-height: 350px;
    bottom: 55px;
  }

  .titulo-mini {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .reproductor-minimalista {
    bottom: 10px;
    right: 10px;
  }

  .controles-minimalistas {
    min-width: 240px;
    right: -10px;
  }

  .lista-audios {
    width: 260px;
    right: -10px;
  }
}

/* ===== CONFIGURACIONES DE SCROLL EXACTAS DEL ARCHIVO ORIGINAL ===== */

/* Configuración global para prevenir trabado de scroll */
html {
  scroll-behavior: smooth !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
}

/* Prevenir que elementos fixed interfieran con scroll */
* {
  box-sizing: border-box;
}

/* Asegurar que elementos fixed no bloqueen scroll */
[style*="position: fixed"] {
  pointer-events: auto !important;
}

/* Configuración específica para contenedores principales */
.page-container,
.contenedor-principal {
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
}

/* Configuración específica para móviles - Scroll optimizado */
@media (max-width: 768px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
    /* Permitir scroll vertical, solo ocultar horizontal */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Configuración de scroll táctil optimizada */
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
    /* Asegurar que el body tenga altura suficiente para scroll */
    min-height: 100vh !important;
    height: auto !important;
  }

  /* Optimización específica para área de lectura en móviles */
  .area-lectura {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  /* Configuración de scroll para contenido de profecías */
  .contenido-profecia {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }
}

/* Configuración de scroll para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  body {
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  .page-container,
  .contenedor-principal,
  .area-lectura,
  .contenido-profecia {
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }
}
