
/* justify-content  Eje principal (horizontal) por defecto  Alinea los elementos a lo largo del eje principal (izquierda–derecha) */
/* align-items	    Eje secundario (vertical) por defecto	  Alinea los elementos a lo largo del eje cruzado (arriba–abajo).*/
/* background-color: #070807; */

/* ====================================================*/
/* Paneles alineados horizontalmente */
/* ====================================================*/

.panel {
  position: absolute;
  display: flex;
  flex: 1;
  top: 0;
  left: 0;
  transition: transform 0.6s ease-in-out;
  flex-direction: column;
  will-change: transform;
  width: 100%;
  margin-top: 1rem;
}

/* ====================================================*/
/* Posiciones iniciales */
/* ====================================================*/

#panel-publico-A, #panel-privado-A { 
  justify-content: center;
  align-items: center;
  transform: translateX(-100%); 
}

#panel-publico-B, #panel-privado-B { 
  display: flex;
  flex: 1;
  transform: translateX(0); 
}

#panel-publico-C, #panel-privado-C { 
  justify-content: center;
  align-items: center;
  transform: translateX(100%); 
}

/* ====================================================*/
/* Paneles de Lectura. */
/* ====================================================*/

#panel-publico-lectura, #panel-privado-lectura {
  position: absolute;
  display: none !important;
  width: 100%;
  max-width: 900px;             /* ancho de columna ideal para lectura */
  margin: 1.5rem auto 0 auto;   /* centrar */
  padding: 1rem 1.2rem;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.6;
  font-size: var(--font-size);
  background-color: var(--bg-color);
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#panel-publico-lectura p, #panel-privado-lectura p {
    margin: 0 0 1.2rem 0;
}

#panel-publico-lectura h1, #panel-privado-lectura h1 {
    font-size: var(--font-size);
    margin-bottom: 1rem;
    font-weight: bold;
}

#panel-publico-lectura h2, #panel-privado-lectura h2 {
    font-size: var(--font-size);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

#panel-publico-lectura ul, #panel-privado-lectura ul {
    margin-left: 1.3rem;
}
.palabra {
    white-space: pre-wrap;
    padding: 0 0.1rem;
}

.palabra-activa {
    background: rgba(255, 230, 100, 0.9);
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.palabra-activa {
    animation: subtleGlow 0.25s ease-out;
}

@keyframes subtleGlow {
    from {
        background-color: rgba(255, 230, 100, 0.4);
    }
    to {
        background-color: rgba(255, 230, 100, 0.9);
    }
}

/* ====================================================*/
/* Estados de transición */
/* ====================================================*/

.mostrar-A .panel-wrapper #panel-publico-A, .mostrar-A .panel-wrapper #panel-privado-A { 
  transform: translateX(0); 
}

.mostrar-A .panel-wrapper #panel-publico-B, .mostrar-A .panel-wrapper #panel-privado-B { 
  transform: translateX(100%); 
}

.mostrar-A .panel-wrapper #panel-publico-C, .mostrar-A .panel-wrapper #panel-privado-C { 
  transform: translateX(200%); 
}

.mostrar-B .panel-wrapper #panel-publico-A, .mostrar-B .panel-wrapper #panel-privado-A { 
  transform: translateX(-100%); 
}

.mostrar-B .panel-wrapper #panel-publico-B, .mostrar-B .panel-wrapper #panel-privado-B { 
  transform: translateX(0); 
}

.mostrar-B .panel-wrapper #panel-publico-C, .mostrar-B .panel-wrapper #panel-privado-C { 
  transform: translateX(100%); 
}

.mostrar-C .panel-wrapper #panel-publico-A, .mostrar-C .panel-wrapper #panel-privado-A { 
  transform: translateX(-200%);
}

.mostrar-C .panel-wrapper #panel-publico-B, .mostrar-C .panel-wrapper #panel-privado-B { 
  transform: translateX(-100%); 
}

.mostrar-C .panel-wrapper #panel-publico-C, .mostrar-C .panel-wrapper #panel-privado-C { 
  transform: translateX(0); 
}

/* ====================================================*/
/* Ocultar y Mostrar Paneles */
/* ====================================================*/

.ocultar-panel {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mostrar-panel {
  /*display: flex !important;*/
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ====================================================*/
/* Contenedor Superior B */
/* ====================================================*/

.bloque-publico-superior, .bloque-privado-superior {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  height: auto;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  
  /* Visibilidad */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  background-color: var(--bg-color);
  color: var(--color-text);
  border: none;
  padding: 0.75rem;
}

/* ====================================================*/
/* Contenedor Inferior B   */
/* ====================================================*/

.bloque-publico-inferior, .bloque-privado-inferior {
  flex: 0 0 auto; 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;

  /* Visibilidad */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  background-color: var(--bg-color);
  color: var(--color-text);
  border: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  padding: 0.75rem;
}

/*==============================================*/
/* LISTAS (públicas y privadas) */
/*==============================================*/

.lista-publica, .lista-privada {
  display: block;
  white-space: normal;
  overflow-x: hidden;
  overflow-y: auto;
  width: 80%;
  height: auto;
  padding-left: 3.5rem;
  background-color: var(--bg-color);
  border: none;
  padding-top: 3.5rem;
  box-sizing: border-box;
}

.lista-publica p, .lista-privada p {
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.2;
}

.lista-publica a, .lista-privada a {
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.8rem;
}

.lista-publica li, .lista-privada li {
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.8;
}

.lista-publica li:hover, .lista-privada li:hover, .lista-publica a:hover, .lista-privada a:hover {
  background-color: transparent !important;
}

/*==============================================*/
/* VISTAS (públicas y privadas) */
/*==============================================*/

.vista-publica, .vista-privada {
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: justify;
  background-color: var(--bg-color);
  color: var(--color-text);
  font-size: var(--font-size);
  border: none;
  overflow-y: auto;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.linea-vp {
  width: 90%;
  text-align: center;
  padding: 0 1.0rem;
  color: var(--color-text);
  font-size: var(--font-size);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  line-height: 1.5;
}

.titulo-tabla {
  font-weight: bold;
  background-color: var(--bg-color);
  color: var(--color-text);
  font-size: var(--font-size);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  margin: 8px 0 4px;
  line-height: 1.5; 
}

/*==============================================*/
/* Contenedores de imagen y texto en contenedor C y Carrusel */
/* ====================================================*/

.contenedor-img {
   display: flex;
  justify-content: flex-start;
  align-self: flex-start;
  align-items: center;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 0.1rem;
  flex-direction: column;
}

.imagen-arc {
  width: 100%;
  height: auto;
}

img.cuadrada {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

img.vertical {
  object-fit: cover;
  aspect-ratio: 1 / 1 ; /* 2 / 3;*/
}

img.horizontal {
  object-fit: cover;
  aspect-ratio: 1 / 1 ; /*16 / 9;*/
}

.contenedor-img button { 
  width: 93%;
  min-width: 80%;
  background-color: var(--bg-color);
  color: var(--color-text);
  font-size: var(--font-size);
  border: 0.1rem solid var(--color-border);
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  padding: 0.2rem 0.2rem; 
  margin-top: 20px;
  cursor: pointer; 
}

.contenedor-img button:hover { 
  background-color: var(--bg-hover); 
}

.contenedor-txt {
  flex: 1;
  width: 80%;
  height: auto;
  align-items: flex-start;
  justify-content: center;
  text-align: justify;
  background-color: var(--bg-color);
  color: var(--color-text);
  font-size: var(--font-size);
  border: none;
  line-height: 1.5;
  scrollbar-width: none;
  margin: 0 auto; 
}

.contenedor-txt a {
  color: var(--color-link);
  font-size: var(--font-size);
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s;
}

.contenedor-txt a:hover {
  white-space: normal;
  color: var(--color-hover);
  background-color: var(--bg-hover); 
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contenedor-txt .nombre { 
  font-weight:bold; 
  color: var(--color-text);
}

.contenedor-txt p { 
  color: var(--color-text);
  font-size: var(--font-size);
  background-color: var(--bg-color); 
  line-height: 1.3;
  text-align: justify;
  padding: 5px 20px; 
}

/* ====================================================*/
/* ====================================================*/

/* === Track del carrusel === */

/* =================================================== */
/* ====================================================*/

.carousel-container {
  display: block;
  width: 80%;
  height: auto;
  overflow: hidden; 
  transition: height 0.3s ease;
  padding: 0;
  margin: 0;
  background-color: var(--bg-color); 
}

.carousel-track {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
  align-items: stretch;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  justify-content: center;
}

/*==============================================*/
/* Ficha */
/* ====================================================*/

.ficha { 
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-direction: row;
  margin: 0 auto;
  box-sizing: border-box;
  align-items: flex-start;
  justify-content: center;

  background-color: var(--bg-color); 
  color: var(--color-text);
  border: none;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  padding: 0.75rem;
}

/*==============================================*/
/* Controles Izq / Dcha delCarrusel */
/* ====================================================*/

.btns-carrusel { 
  width: 30px; 
  height: 30px; 
  border-radius: 20%; 
  background-color: var(--bg-boton);
  color: var(--color-boton);
  border: 0.1rem solid var(--color-border);
  font-size: var(--font-size);
  cursor: pointer; 
  padding: 10px;
}

.btns-carrusel:hover { 
  background-color: var(--bg-hover);
}

.btns-carrusel:disabled { 
  background:#555; 
  cursor:not-allowed; 
}

.carousel-counter {
  color: var(--color-boton);
  font-size: var(--font-size);
  line-height: 1.5;
}


/*=====================================================*/
/* Otros */
/* ====================================================*/




/* ========================================= */
/*  Loading Spinner */
/* ========================================= */

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.overlay-fondo {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.overlay-contenido {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-boton);
  font-size: var(--font-size);
  text-align: center;
}

/* ========================================= */
/* Spinner */
/* ========================================= */

.spinner {
  border: 0.2px solid rgba(255, 255, 255, 0.2);
  border-top: 0.2rem solid var(--color-text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================= */
/* Barra de progreso */
/* ========================================= */

.progress-bar-container {
  width: 220px;
  height: 8px;
  background-color: var(--bg-color);
  border-radius: 0.4rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--bg-color);
  transition: width 0.3s ease;
}

/* ============================================================== */
/* Propiedades de OTRAS LISTAS Cocina,Musica, Video, Catalogo */
/* ============================================================== */

.txt-cine {
  text-align: center;
}

.clase-cine {
  color: var(--color-boton);
  font-size: var(--font-size);
  line-height: 1.5;
  padding: 10px 10px;
}

.clase-cocina {
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.5;
  padding: 10px 10px;
}

.encabezado-lista {
    font-weight: bold;
    color: var(--color-text);
    font-size: var(--font-size);
    margin-bottom: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid #444;
}

.clase-album {
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.5;
  text-align: center;
}

.clase-tit-album {
  color: var(--color-link);
 cursor: pointer;
  font-size: var(--font-size);
  line-height: 1.5;
  padding: 10px 10px;
  text-align: center;
}

.clase-album-tit {
  color: var(--color-text);
  font-size: var(--font-size);
  line-height: 1.5;
  padding: 10px 10px;
  text-align: center;
}

.clase-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0; 
}

.clase-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ============================================================== */
/* Datos de Visitas
/* ============================================================== */

.contador {
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 80%;

  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid var(--color-border);
  border-radius: 0.2rem;
  padding: 20px;
  margin-bottom: 20px;
}

.contador p {
  color: var(--color-text);
  font-size: var(--font-size);
  padding: 8px 16px;
  margin: 6px 0;
  text-align: center;
  border: 0.1rem solid var(--color-border);
  border-radius: 0.4rem;
}

.contador p strong {
  color: var(--color-text);
}

.dashboard-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  width: 80%;
}

.card {
  width: 80%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 0.2rem solid var(--color-border);
  border-radius: 1rem;
  padding: 16px 24px;
  text-align: center;
  flex: 1 1 180px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(56,189,248,0.1);
  border-color: var(--color-border);
}

.card p {
  color: var(--color-text);
  font-size: var(--font-size);

}

#grafica-visitas {
  background-color: var(--bg-color);
order: 0.2rem solid var(--color-border);
  border-radius: 0.4rem;
  padding: 12px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

