/* 
  DocuLab Estudiantil - Sistema de Diseño "Premium Netflix" 
  - Dark mode by default
  - Glassmorphism effects
  - Responsive layouts
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Inter:wght@300;400;600&display=swap");

:root {
  --netflix-red: #e50914;
  --netflix-black: #141414;
  --netflix-dark-gray: #181818;
  --accents-cyan: #00d2ff;
  --accents-purple: #9d50bb;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-muted: #b3b3b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--netflix-black);
  background-image: 
    radial-gradient(at 0% 0%, rgba(229, 9, 20, 0.15) 0, transparent 50%), 
    radial-gradient(at 50% 0%, rgba(157, 80, 187, 0.1) 0, transparent 50%);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--netflix-black);
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* Layout Principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--netflix-red);
  text-transform: uppercase;
  letter-spacing: -1px;
  font-family: "Montserrat", sans-serif;
}

.logo span {
  color: var(--text-primary);
  font-weight: 400;
}

/* Sección de Entrada de Datos */
.input-section {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #fff, var(--netflix-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

textarea {
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  padding: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  resize: none;
  transition: 0.3s;
  outline: none;
}

textarea:focus {
  border-color: var(--netflix-red);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.btn-primary {
  background-color: var(--netflix-red);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.3s;
  margin-top: 1.5rem;
  width: 100%;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: #ff0f1a;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Grid de Escenas (Hitos) */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.scene-card {
  background: var(--netflix-dark-gray);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}

.scene-card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  border-color: var(--netflix-red);
}

.scene-header {
  background: rgba(229, 9, 20, 0.8);
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scene-number {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.scene-duration {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.scene-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.spoke-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--netflix-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.spoke-text {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.prompt-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accents-cyan);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.prompt-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.scene-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 0.5rem;
}

.btn-card {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
}

.btn-copy {
  background: var(--accents-cyan);
  color: #000;
}
.btn-audio {
  background: #eee;
  color: #000;
}

.btn-card:hover {
  filter: brightness(1.2);
}

/* Panel de Exportación / Video Tools */
.video-tools {
  margin-top: 5rem;
  background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.video-tools h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.video-tools p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tool-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 20px;
  width: 250px;
  transition: 0.3s;
  cursor: pointer;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: #fff;
}

.tool-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.tool-card p {
  font-size: 0.8rem;
  font-weight: normal;
}

/* Mensaje Informativo */
.info-toast {
  background: #008744;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  display: none;
}

/* Responsividad */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .logo {
    font-size: 1.3rem; /* Título más pequeño para móviles */
  }
  header img {
    height: 45px !important; /* Escudo proporcionalmente más pequeño */
  }
  .container {
    padding: 1rem;
  }
  textarea {
    height: 200px;
  }
  .tool-card {
    width: 100%;
  }
}

/* Protección de Texto y Seguridad */
.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.locked-text {
    filter: blur(2px);
    opacity: 0.3;
    pointer-events: none;
}

.btn-primary:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}
