:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --accent: #0d9488;
  --accent-light: #f0fdfa;
  --accent-border: #99f6e4;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor principal */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* Encabezado */
.header-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.header-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.header-title {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.header-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  opacity: 0.92;
  font-weight: 400;
}

/* Tarjeta de Identificación del Alumno */
.student-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .required {
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.is-invalid {
  border-color: var(--danger);
  background-color: var(--danger-light);
}

/* Barra de progreso y estado pegajosa */
.sticky-bar {
  position: sticky;
  top: 10px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.student-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.progress-track {
  width: 130px;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
}

/* Reproductor de Audio Flotante / Dedicado */
.audio-player-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
}

.audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.audio-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-ready {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-playing {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  animation: pulseBadge 1.8s infinite;
}

.badge-one-left {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-locked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-audio-play {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  font-family: inherit;
}

.btn-audio-play:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.btn-audio-play:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.audio-time-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.time-text {
  font-family: monospace;
  font-size: 0.9rem;
  color: #cbd5e1;
  min-width: 44px;
}

.audio-scrubber {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.audio-warning-box {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid #ef4444;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #fca5a5;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Secciones de Actividades */
.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.activity-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.activity-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.activity-number {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.activity-points {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.activity-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Ejemplo destacado */
.example-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.example-badge {
  display: inline-block;
  background: #475569;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Galería de imágenes (Actividad 1) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.image-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #f8fafc;
  transition: var(--transition);
  cursor: pointer;
}

.image-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  border: 2px solid #ffffff;
}

.img-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}

/* Preguntas de Diálogos (Actividad 1) */
.listening-questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.listening-q-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listening-q-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-letter {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.select-letter:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Diálogos interactivos (Actividad 2) */
.dialogue-wrapper {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.dialogue-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.dialogue-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.dialogue-media-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}

.dialogue-img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: block;
}

.dialogue-speech-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 1rem;
  line-height: 2;
  box-shadow: var(--shadow-sm);
}

.inline-blank {
  display: inline-block;
  padding: 0 4px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border-bottom: 2px dashed var(--primary);
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

/* Tabla u opciones de selección de huecos (Actividad 2) */
.blanks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.blank-item-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.blank-item-card:hover {
  border-color: #94a3b8;
}

.blank-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.blank-options-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blank-opt-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  font-size: 0.88rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.blank-opt-btn:hover {
  background: #e2e8f0;
}

.blank-opt-btn.is-selected {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Blog de Diego (Actividad 3) */
.blog-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.blog-author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  height: fit-content;
}

.blog-author-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}

.blog-author-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.blog-author-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-post-content {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #334155;
}

.blog-post-content p {
  margin-bottom: 14px;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

/* Preguntas opción múltiple (Actividad 3) */
.multiple-choice-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mc-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.mc-question-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.mc-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.mc-option-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mc-option-label.is-checked {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  font-weight: 600;
}

.mc-option-input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Foro y Redacción (Actividad 4) */
.forum-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
}

.forum-message-box {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.96rem;
  line-height: 1.7;
}

.forum-author-tag {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guidelines-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.guidelines-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 6px;
}

.guidelines-list {
  padding-left: 20px;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.6;
}

.essay-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.essay-textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  resize: vertical;
  font-family: inherit;
  transition: var(--transition);
}

.essay-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.word-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.word-count-badge {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.words-low {
  background: #fef3c7;
  color: #b45309;
}

.words-good {
  background: #dcfce7;
  color: #15803d;
}

.words-high {
  background: #fee2e2;
  color: #b91c1c;
}

/* Barra inferior de Envío */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 14px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.bottom-container {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-submit-main {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: var(--transition);
  font-family: inherit;
}

.btn-submit-main:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
}

.btn-download-backup {
  background: #f8fafc;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-download-backup:hover {
  background: #e2e8f0;
}

/* Modal de Zoom y Confirmación */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 24px;
  position: relative;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.zoom-modal-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  margin: 10px 0;
}

/* Pantalla de Éxito / Envío completado */
.success-screen {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.success-screen.is-active {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
  border: 2px solid #86efac;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.success-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.success-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Media Queries para Pantallas Pequeñas y Tablets */
@media (max-width: 900px) {
  .blog-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .blog-author-card {
    margin: 0 auto;
  }
  .dialogue-media-layout {
    grid-template-columns: 1fr;
  }
  .dialogue-img {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 12px 14px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sticky-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .audio-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-audio-play {
    width: 100%;
    justify-content: center;
  }
  .audio-time-wrap {
    width: 100%;
  }
  .bottom-container {
    flex-direction: column;
  }
  .btn-submit-main, .btn-download-backup {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
