/* ==========================================================================
   STYLE.CSS - VERSIÓN FINAL
   ========================================================================== */

/* --- 1. VARIABLES DE DISEÑO --- */
:root {
  --accent-orange: #ff9900;
  --accent-orange-dark: #e68a00;
  --bg-dark-deep: #111113;
  --bg-card: #1d1d20;
  --border-color: #333336;
  --text-light: #eaeaea;
  --text-muted: #888888;
  --text-dark: #000000;
}

/* --- 2. ESTILOS BASE Y GLOBALES --- */
body {
  background-color: var(--bg-dark-deep);
  color: var(--text-light);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

/* --- 3. COMPONENTES --- */
.nav-link {
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-link:hover {
  color: var(--accent-orange);
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--text-dark);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  border: 2px solid var(--accent-orange);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 10px 0 rgba(255, 153, 0, 0.3);
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: var(--accent-orange-dark);
  border-color: var(--accent-orange-dark);
  box-shadow: 0 0 20px 0 rgba(255, 153, 0, 0.5);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 5px 0 rgba(255, 153, 0, 0.2);
}

.form-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 4px;
  width: 100%;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.6);
}

.card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  border-radius: 6px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 0 25px -5px rgba(255, 153, 0, 0.2);
}

/* --- 4. SECCIONES ESPECIALES --- */

.hero-section {
    padding: 6rem 0;
    border-bottom: 2px solid var(--border-color);
}

/* Aplicamos la capa oscura directamente al contenedor de la imagen */
#hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 17, 19, 0.7); /* Capa negra. Ajusta opacidad aquí */
    z-index: 1; /* Pone la capa encima de la imagen (que tiene z-index implícito de 0) */
}

.cta-section {
  background: linear-gradient(45deg, var(--accent-orange), #ff7e00);
  color: var(--text-dark);
}
.cta-button {
  background-color: var(--bg-dark-deep);
  color: var(--accent-orange);
  font-weight: bold;
}
.cta-button:hover {
  background-color: var(--bg-card);
}

/* --- 5. COMPONENTES JS --- */
.hexagon-icon {
  position: relative;
  width: 100px;
  height: 57.74px;
  background-color: var(--accent-orange);
  margin: 28.87px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}
.hexagon-icon:before,
.hexagon-icon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}
.hexagon-icon:before {
  bottom: 100%;
  border-bottom: 28.87px solid var(--accent-orange);
  transition: border-bottom-color 0.3s ease;
}
.hexagon-icon:after {
  top: 100%;
  width: 0;
  border-top: 28.87px solid var(--accent-orange);
  transition: border-top-color 0.3s ease;
}
.hexagon-icon-wrapper:hover .hexagon-icon {
  background-color: var(--accent-orange-dark);
}
.hexagon-icon-wrapper:hover .hexagon-icon:before {
  border-bottom-color: var(--accent-orange-dark);
}
.hexagon-icon-wrapper:hover .hexagon-icon:after {
  border-top-color: var(--accent-orange-dark);
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-item.open .fa-chevron-down {
  transform: rotate(180deg);
}

/* --- 6. ANIMACIONES --- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}



/* =================================== */
/* ====== ESTILOS DE PAGINACIÓN ====== */
/* =================================== */

/* Contenedor principal de la paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem; /* Espacio entre botones */
  flex-wrap: wrap; /* Para que se ajuste en pantallas pequeñas */
}

/* Estilo base para cada botón de paginación */
.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  padding: 0 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-light);
  font-weight: bold;
  border-radius: 0.25rem; /* Bordes redondeados */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none; /* Evita que el texto del botón se seleccione */
}

/* Efecto al pasar el mouse sobre un botón (que no esté activo o deshabilitado) */
.pagination-button:not(:disabled):not(.active):hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--dark-deep);
}

/* Estilo para el botón de la página ACTIVA */
.pagination-button.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--dark-deep);
  cursor: default; /* El cursor no cambia porque ya estás en esa página */
}

/* Estilo para botones DESHABILITADOS (ej. "Anterior" en la pág 1) */
.pagination-button.disabled {
  background-color: #2a2a33; /* Un gris más oscuro */
  color: #6b7280; /* Color de texto apagado */
  border-color: #3b3b47;
  cursor: not-allowed; /* Cursor de "no permitido" */
  opacity: 0.6;
}

/* Estilo para los puntos suspensivos "..." */
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  color: var(--text-muted);
  font-weight: bold;
}

/* ======================================================= */
/* ====== ESTILOS PARA RESALTAR EL DÍA ACTUAL (V2) ====== */
/* ======================================================= */

/* Contenedor del item de horario del día actual */
.weekly-hour-item.today-highlight {
  background-color: rgba(
    45,
    45,
    48,
    0.5
  ); /* Fondo muy sutil, apenas perceptible */
  border-left: 3px solid var(--accent-orange); /* El borde naranja que marca la línea */
  padding: 0.5rem 0.75rem; /* Añade un poco de espacio interno */
  margin-left: -0.75rem; /* Compensa el padding para mantener la alineación */
  border-radius: 4px; /* Bordes ligeramente redondeados */
  display: flex; /* Asegura el alineamiento con la etiqueta "Hoy" */
  justify-content: space-between; /* Alinea los elementos a los extremos */
  align-items: center; /* Centra verticalmente */
}

/* El span con el nombre del día (ej. "Jueves") */
.weekly-hour-item.today-highlight > span:first-child {
  color: var(--text-light); /* Hace el nombre del día más brillante */
  font-weight: 700; /* Lo pone en negrita */
}

/* El span que contiene el horario (ej. "10 a.m. - 7 p.m.") */
.weekly-hour-item.today-highlight .horario-container {
  display: flex; /* Usamos flexbox para alinear horario y etiqueta "Hoy" */
  align-items: center;
  gap: 0.75rem; /* Espacio entre el horario y la etiqueta "Hoy" */
}

/* La etiqueta "HOY" */
.weekly-hour-item .today-label {
  background-color: var(--accent-orange);
  color: var(--text-dark); /* Texto oscuro para el mejor contraste */
  font-size: 0.65rem; /* Letra pequeña */
  font-weight: 900; /* Muy negrita para que resalte */
  padding: 3px 8px; /* Padding interno */
  border-radius: 9999px; /* Totalmente redondeado (píldora) */
  text-transform: uppercase;
  line-height: 1;
}
