/*
==============================================================================
Archivo     : public_html/css/futuro_inmediato.css
Fecha       : 25 de octubre de 2026
Propósito   : Estilos del banner y desplegable protegido "Proyecto para televisión"
              (Fondo Documental "Futuro Inmediato", Pedro Soler, 2011).
Descripción : Banner interactivo con breve leyenda, desplegable bajo clave,
              marca de agua diagonal anticopia, protección anti-descarga
              y compatibilidad responsive.
==============================================================================
*/

/* 1. Banner Principal: Proyecto para televisión */
.banner-proyecto-tv {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 18, 30, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 158, 11, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.banner-proyecto-tv:hover {
  border-color: rgba(245, 158, 11, 0.65);
}

.banner-proyecto-tv-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.banner-proyecto-tv-info {
  flex: 1 1 500px;
}

.banner-proyecto-tv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.banner-proyecto-tv-titulo {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.45rem;
  color: #F8FAFC;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.banner-proyecto-tv-leyenda {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0;
}

.banner-proyecto-tv-leyenda strong {
  color: #F59E0B;
}

.banner-proyecto-tv-accion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-desplegar-proyecto {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn-desplegar-proyecto:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-desplegar-proyecto.desplegado {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  box-shadow: none;
}

.btn-desplegar-proyecto.desplegado:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #F59E0B;
}

/* 1b. Panel Integrado de Clave para Desbloqueo AES-256-GCM */
.panel-clave-proyecto {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 158, 11, 0.28);
  animation: animacionDesplegar 0.25s ease-out forwards;
}

.panel-clave-proyecto-interior {
  background: rgba(8, 14, 26, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-clave-proyecto-texto {
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.panel-clave-proyecto-texto strong {
  color: #FCD34D;
}

.panel-clave-proyecto-controles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.panel-clave-input-grupo {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 320px;
  background: #0F172A;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-clave-input-grupo:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.input-clave-proyecto {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  outline: none;
}

.btn-ver-clave-proyecto {
  background: transparent;
  border: none;
  color: #CBD5E1;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-confirmar-clave-proyecto {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #071524;
  border: none;
  border-radius: 7px;
  padding: 0.62rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-confirmar-clave-proyecto:hover {
  filter: brightness(1.07);
}

.btn-cancelar-clave-proyecto {
  background: rgba(51, 65, 85, 0.65);
  color: #E2E8F0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 7px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancelar-clave-proyecto:hover {
  background: rgba(71, 85, 105, 0.85);
}

.error-clave-proyecto {
  font-size: 0.85rem;
  color: #FCA5A5;
  background: rgba(127, 29, 29, 0.35);
  border-left: 3px solid #EF4444;
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
}

.btn-desplegar-proyecto:focus-visible,
.btn-barra-visor:focus-visible,
.btn-confirmar-clave-proyecto:focus-visible,
.btn-cancelar-clave-proyecto:focus-visible,
.btn-ver-clave-proyecto:focus-visible {
  outline: 2px solid #FBBF24;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .banner-proyecto-tv,
  .btn-desplegar-proyecto,
  .panel-clave-proyecto,
  .desplegable-proyecto-contenedor {
    animation: none !important;
    transition: none !important;
  }
}

/* 2. Contenedor Desplegable Protegido (In-situ en la página) */
.desplegable-proyecto-contenedor {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  animation: animacionDesplegar 0.35s ease-out forwards;
}

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

.desplegable-proyecto-marco {
  position: relative;
  background: #090E17;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.desplegable-proyecto-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #05080E;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.desplegable-proyecto-barra-titulo {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desplegable-proyecto-barra-acciones {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-barra-visor {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-barra-visor:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #FFFFFF;
  border-color: #F59E0B;
}

.btn-barra-cerrar {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.btn-barra-cerrar:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #EF4444;
  color: #FFFFFF;
}

/* 3. Cuerpo de Lectura con Marca de Agua y Protección */
.desplegable-proyecto-cuerpo {
  position: relative;
  max-height: 75vh;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  color: #E2E8F0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.8;
  background-color: #0A0F1A;
}

/* Marca de Agua Repetitiva */
.visor-marca-de-agua {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 140px,
    rgba(245, 158, 11, 0.035) 140px,
    rgba(245, 158, 11, 0.035) 280px
  );
}

.visor-marca-texto {
  position: sticky;
  top: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(245, 158, 11, 0.05);
  text-transform: uppercase;
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 9;
  user-select: none;
}

/* Tipografía y Secciones Editoriales */
.doc-portada-seccion {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.doc-gran-titulo {
  font-size: 2.25rem;
  letter-spacing: 0.08em;
  color: #F8FAFC;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.doc-subtitulo-autor {
  font-size: 1.05rem;
  color: #F59E0B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-fecha-lugar {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-top: 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.doc-seccion {
  margin-bottom: 2.5rem;
}

.doc-seccion-titulo {
  font-size: 1.35rem;
  color: #F59E0B;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.doc-parrafo {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.doc-cita {
  border-left: 3px solid #F59E0B;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #FCD34D;
}

.doc-lista-temas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.doc-item-tema {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #CBD5E1;
  display: flex;
  gap: 0.5rem;
}

.doc-item-numero {
  color: #F59E0B;
  font-weight: 700;
  min-width: 1.5rem;
}

.doc-guion-bloque {
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid #38BDF8;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 6px 6px 0;
}

.doc-guion-encabezado {
  font-weight: 700;
  color: #38BDF8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.doc-referencias-caja {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Pie del Desplegable */
.desplegable-proyecto-pie {
  padding: 1rem 1.5rem;
  background: #05080E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 4. Modo Pantalla Completa Inmersivo (Opcional al pulsar botón ⛶) */
.desplegable-proyecto-marco.modo-pantalla-completa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  z-index: 100000;
  border-radius: 0;
  border: none;
}

.desplegable-proyecto-marco.modo-pantalla-completa .desplegable-proyecto-cuerpo {
  max-height: calc(100vh - 120px);
}

/* 5. Bloqueo de Impresión */
@media print {
  .banner-proyecto-tv,
  .desplegable-proyecto-contenedor,
  .desplegable-proyecto-marco {
    display: none !important;
  }
}

/* 6. Adaptabilidad Móvil */
@media (max-width: 768px) {
  .banner-proyecto-tv {
    padding: 1.25rem;
  }
  .banner-proyecto-tv-titulo {
    font-size: 1.25rem;
  }
  .desplegable-proyecto-cuerpo {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
  .doc-lista-temas {
    grid-template-columns: 1fr;
  }
}
