/* ─── SYSTEMA DE DISEÑO GYMFOCUS (ALTO CONTRASTE Y LEGIBILIDAD) ─── */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;700;900&display=swap');

:root {
  /* Paleta de Colores de Alto Impacto */
  --bg-pure: #000000;
  --bg-card: #121212;
  --bg-card-glow: #1a1a1a;
  
  --primary-volt: #CCFF00; /* Volt Green */
  --primary-volt-hover: #D8FF33;
  --primary-volt-glow: rgba(204, 255, 0, 0.25);
  
  /* Variables Dinámicas de Tema */
  --color-acento: #CCFF00;
  --color-acento-hover: #D8FF33;
  --color-acento-glow: rgba(204, 255, 0, 0.25);
  --color-acento-glow-soft: rgba(204, 255, 0, 0.2);
  --color-acento-glow-strong: rgba(204, 255, 0, 0.5);
  
  --text-white: #FFFFFF;
  --text-muted: #D1D1D6; /* Gris muy claro para legibilidad (sin anteojos) */
  --text-dark: #000000;
  
  --danger: #FF3B30;
  --danger-hover: #FF453A;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Variables de tamaño de fuente — controladas desde Ajustes */
  --font-size-base:   18px;
  --font-size-small:  14px;
  --font-size-medium: 18px;
  --font-size-large:  29px;
  --font-size-xlarge: 36px;
}

/* Reset de Pantalla */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pure);
  color: var(--text-white);
  line-height: 1.4;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* ─── ESTRUCTURA DE LA SPA ─── */

/* Contenedor de Pantallas */
main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 120px 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Pantalla entrenamiento sin padding superior para que sticky quede pegado al tope */
#screen-entrenar {
  margin: -24px -16px 0 -16px;
  padding: 0 16px 120px 16px;
}

#screen-entrenar #block-nav-bar {
  top: 0;
}

/* Mostrar/Ocultar Pantallas */
.screen {
  display: none;
  animation: fadeIn 0.15s ease-out;
}

.screen.active {
  display: block;
}

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

/* Barra de Navegación Inferior */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border-top: 3px solid var(--color-acento-glow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.nav-item svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.nav-item:active svg {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--color-acento);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 6px var(--color-acento));
}

/* ─── COMPONENTES GLOBALES ─── */

/* Títulos Gigantes */
h1 {
  font-size: var(--font-size-large);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 24px;
  text-transform: uppercase;
  border-left: 6px solid var(--color-acento);
  padding-left: 12px;
}

h2 {
  font-size: var(--font-size-large);
  font-weight: 900;
  color: var(--text-white);
  margin: 16px 0;
}

/* Textos mínimos requeridos: 18px / 24px */
p, label, span, select, input, button {
  font-size: var(--font-size-medium);
  font-weight: 700;
}

.subtext {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  font-weight: 400;
}

/* Botones Gigantes de Alto Contraste */
.btn {
  background-color: var(--bg-card);
  color: var(--text-white);
  border: 3px solid var(--text-white);
  border-radius: 16px;
  padding: 18px 24px;
  min-height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.1s ease;
  width: 100%;
  gap: 12px;
}

.btn:active {
  transform: scale(0.96);
  background-color: #222;
}

.btn-primary {
  background-color: var(--color-acento);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 0 16px var(--color-acento-glow);
}

.btn-primary:active {
  background-color: var(--color-acento-hover);
  transform: scale(0.96);
}

/* Botones de incremento de peso NO seleccionados en el modal de progresión —
   solo borde y texto en acento, sin relleno. El +2.5kg preseleccionado usa .btn-primary (relleno). */
.btn-overload-outline {
  background-color: var(--bg-card);
  color: var(--color-acento);
  border: 1px solid var(--color-acento);
}

.btn-overload-outline:active {
  background-color: #1a1a1a;
  transform: scale(0.96);
}

.btn-danger {
  background-color: var(--danger);
  border: none;
  color: var(--text-white);
}

.btn-danger:active {
  background-color: var(--danger-hover);
}

.btn-small {
  min-height: 50px;
  padding: 8px 16px;
  font-size: var(--font-size-small);
  border-radius: 8px;
}

/* Tarjetas y Contenedores */
.card {
  background-color: var(--bg-card);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: var(--font-size-base);
  font-weight: 900;
  color: var(--color-acento);
  margin-bottom: 12px;
}

/* Inputs de Gran Tamaño */
.input-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field {
  background-color: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  padding: 16px;
  color: var(--text-white);
  font-size: var(--font-size-base);
  font-weight: 700;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--color-acento);
}

/* Fix: el ícono nativo del selector de fecha (type="date") se ve oscuro sobre
   fondo oscuro en Android/Chrome — se invierte para que quede visible */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.select-field {
  background-color: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  padding: 16px;
  color: var(--text-white);
  font-size: var(--font-size-base);
  font-weight: 700;
  width: 100%;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px;
}

.select-field:focus {
  border-color: var(--color-acento);
}

/* Toggles & Switches de alta visibilidad */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #222;
  gap: 16px;
}

.switch-container label:first-child {
  font-size: var(--font-size-small);
  flex: 1;
  line-height: 1.4;
}

.switch {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 36px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3a3a3c;
  transition: .2s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-acento);
}

input:checked + .slider:before {
  transform: translateX(28px);
  background-color: var(--text-dark);
}

/* ─── PANTALLA 1: INICIO (HOY) ─── */
.today-routine-banner {
  border: 1px solid #1e1e1e;
  background: #0d0d0d;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.stat-box {
  background-color: #121212;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.stat-val {
  font-size: var(--font-size-large);
  font-weight: 900;
  color: var(--color-acento);
}

/* ─── PANTALLA 2: ENTRENAMIENTO ACTIVO (NÚCLEO PRINCIPAL) ─── */
.active-workout-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding-bottom: 24px;
  position: relative;
}

.exercise-title {
  font-size: var(--font-size-xlarge);
  font-weight: 900;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 8px;
  word-wrap: break-word;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.exercise-category-badge {
  background-color: #222;
  border: 1px solid var(--text-muted);
  border-radius: 8px;
  padding: 4px 16px;
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
}

.sets-counter {
  font-size: var(--font-size-large, 40px);
  font-weight: 900;
  color: var(--color-acento);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Peso e Controles de Ajuste Rápido */
.weight-adjuster-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.btn-adjust {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--color-acento);
  color: var(--text-white);
  font-size: var(--font-size-large);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-adjust:active {
  background-color: #222;
  transform: scale(0.9);
}

.weight-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-width: 90px;
}

.weight-number {
  font-size: var(--font-size-xlarge, 64px);
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.weight-unit {
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.reps-unit-label {
  font-size: var(--font-size-medium);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Timer de Descanso Gigante */
.timer-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-pure);
  border: 4px solid var(--color-acento);
  border-radius: 50%;
  width: 230px;
  height: 230px;
  margin: 16px auto;
  box-shadow: 0 0 30px var(--color-acento-glow);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  from { box-shadow: 0 0 20px var(--color-acento-glow-soft, rgba(204, 255, 0, 0.2)); }
  to { box-shadow: 0 0 35px var(--color-acento-glow-strong, rgba(204, 255, 0, 0.5)); }
}

.timer-seconds {
  font-size: var(--font-size-xlarge, 78px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-acento);
}

.timer-label {
  font-size: var(--font-size-small);
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 1px;
}

/* Botón Serie Lista Gigante */
.btn-done-container {
  width: 100%;
  padding: 0 16px;
}

.btn-done-series {
  min-height: 96px;
  font-size: var(--font-size-xlarge);
  border-radius: 20px;
}

/* ─── PANTALLA 3: RUTINAS ─── */
.routine-list-item {
  display: block;
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--color-acento);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #111;
  transition: border-color 0.2s;
}
.routine-list-item:active {
  border-color: var(--color-acento);
  background: #161616;
}

.routine-info {
  flex: 1;
}

.routine-name {
  font-size: var(--font-size-base, 22px);
  font-weight: 900;
}

.routine-meta {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.routine-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: #222;
  border: 1px solid #333;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon:active {
  background-color: #333;
}

.btn-icon-danger {
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.3);
}

/* ─── PANTALLA 4: PROGRESO ─── */
.history-item {
  border-left: 5px solid var(--color-acento);
  margin-bottom: 16px;
  padding-left: 16px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-medium);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.history-title {
  font-size: var(--font-size-base);
  font-weight: 900;
}

.history-exercises-list {
  font-size: var(--font-size-medium);
  color: var(--text-white);
  margin-top: 8px;
}

/* Gráficos de Barra Gigantes para presbicia */
.chart-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-label {
  width: 100px;
  font-size: var(--font-size-medium);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-bg {
  flex: 1;
  height: 36px;
  background-color: #1c1c1e;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  background-color: var(--color-acento);
  border-radius: 18px;
  width: 0%;
  transition: width 0.8s ease-out;
}

.chart-value {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-small);
  font-weight: 900;
  color: var(--text-white);
  text-shadow: 0 0 4px #000;
}

/* ─── AJUSTES DE FUENTE DINÁMICOS ─── */
.fontsize-slider-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  border-radius: 8px;
  background: #333;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-acento);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Slider de RPE — más delgado que el genérico (id, no clase, para no tocar el de Ajustes).
   El relleno (var(--color-acento) hasta el thumb) se pinta vía JS en updateRpeSliderFill(). */
#rpe-slider {
  height: 6px;
  border-radius: 999px;
}

/* Thumb más chico que el genérico (36px) — a ese tamaño se montaba sobre el título de arriba
   dentro del panel de RPE, que tiene poco margen vertical. */
#rpe-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
}

/* ─── MODALES DE EDICIÓN GIGANTES ─── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  overflow-y: auto;
  padding: 24px 16px;
  align-items: flex-start;
  justify-content: center;
}

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

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--color-acento);
  border-radius: 28px;
  padding: 24px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}

/* Variante más ancha — usada en Crear/Editar Rutina para aprovechar mejor
   el espacio en pantallas grandes (PC). En el celular no cambia nada porque
   el viewport ya es más angosto que el max-width. */
.modal-content-wide {
  max-width: 720px;
}

@media (min-width: 640px) {
  .block-type-pills {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.routine-exercise-row {
  background-color: #1c1c1e;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.routine-exercise-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.routine-exercise-fields input {
  padding: 8px;
  font-size: var(--font-size-medium);
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #000;
  color: #fff;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── MODO ZOOM DE EMERGENCIA (DOBLE TOQUE) ─── */
.zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.zoom-overlay.active {
  display: flex;
}

.zoom-content {
  font-size: clamp(120px, 35vw, 220px);
  font-weight: 900;
  color: var(--color-acento);
  text-align: center;
  line-height: 1;
  animation: pulseZoom 0.8s alternate infinite;
}

.zoom-label {
  font-size: clamp(20px, 6vw, 32px);
  color: var(--text-white);
  text-transform: uppercase;
  margin-top: 24px;
  letter-spacing: 2px;
}

@keyframes pulseZoom {
  from { transform: scale(0.95); }
  to { transform: scale(1.05); }
}

/* ─── STYLES FOR DISABLED BUTTONS & UX LOCK ─── */
.btn:disabled,
.btn-done-series:disabled {
  background-color: #1a1a1a !important;
  color: #555555 !important;
  border-color: #333333 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* ─── TOUCH ACTION OPTIMIZATIONS ─── */
.btn,
.btn-adjust,
.nav-item,
.btn-icon,
.theme-dot,
.filter-btn,
.tab-btn {
  touch-action: manipulation;
}

/* ─── CALENDARIO DE DISCIPLINA ─── */
.calendar-day-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.calendar-day-name {
  font-size: var(--font-size-small);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calendar-day-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1c1c1e;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-small);
  font-weight: 900;
  color: #555;
  transition: all 0.3s ease;
}

.calendar-day-dot.active {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
  color: var(--text-dark) !important;
  box-shadow: 0 0 10px var(--color-acento-glow);
}

/* ─── ACORDEÓN PARA HISTORIAL DE ENTRENAMIENTOS ─── */
.history-item {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.history-item:hover {
  background-color: var(--bg-card-glow);
}

.history-exercises-list {
  display: none;
  border-top: 1px solid #222;
  margin-top: 12px;
  padding-top: 12px;
  animation: slideDown 0.2s ease-out;
}

.history-item.expanded .history-exercises-list {
  display: block;
}

.history-toggle-indicator {
  font-size: var(--font-size-small);
  color: var(--color-acento);
  margin-top: 8px;
  font-weight: 700;
  text-align: right;
}

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

/* ─── SECCIÓN DE HISTORIAL POR EJERCICIO (PRs) ─── */
.pr-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #222;
}

.pr-history-row.is-pr {
  background-color: var(--color-acento-glow-soft);
  border-left: 4px solid var(--color-acento);
  border-radius: 4px;
}

.pr-history-date {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

.pr-history-weight {
  font-size: var(--font-size-medium);
  font-weight: 900;
  color: #fff;
}

.pr-history-row.is-pr .pr-history-weight {
  color: var(--color-acento);
  text-shadow: 0 0 8px var(--color-acento-glow);
}

.pr-star-badge {
  font-size: var(--font-size-small);
  font-weight: 900;
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ─── STYLES FOR TRAINING BLOCKS (PROMPT 10) ─── */

/* Modificador de Bloques de Rutinas en el Modal */
.routine-block-row {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
  position: relative;
}

.routine-block-exercise-card {
  background-color: #1a1a1c;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
  position: relative;
}

/* Interfaz del Alumno: Ejercicios del Bloque Activo */
.active-block-exercise-card {
  background-color: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.active-block-exercise-card.selected {
  border-color: var(--color-acento);
  box-shadow: 0 0 15px var(--color-acento-glow);
  background-color: #16180b;
}

.active-block-exercise-info {
  text-align: left;
  flex: 1;
}

.active-block-exercise-weight-display {
  color: var(--text-white);
}

.active-block-exercise-card.selected .active-block-exercise-weight-display {
  color: var(--color-acento);
}

/* Línea Conectora Vertical para Superseries (Biseries/Triseries/Circuitos) */
.block-connector-line {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 36px;
  width: 6px;
  background: linear-gradient(180deg, var(--color-acento) 0%, #333 100%);
  z-index: 1;
  opacity: 0.5;
}

/* ── Botón insertar bloque entre bloques ── */
.btn-insert-block:hover {
  background: var(--color-acento) !important;
  color: #000 !important;
  border-color: var(--color-acento) !important;
  transform: scale(1.15);
}

/* ── Botones día de semana (DOW) ── */
.dow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.dow-btn.selected {
  background: var(--color-acento);
  border-color: var(--color-acento);
  color: #000;
}

/* Transición suave al reordenar bloques con drag & drop */
.block-container {
  transition: opacity 0.15s ease;
}

/* ── Cursor animado saludo pantalla Inicio ── */
@keyframes gf-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Cortina de respaldo: bloqueo de orientación en iOS (manifest.json ya cubre Android) ── */
.orientation-lock-overlay {
  display: none;
}
@media (orientation: landscape) {
  .orientation-lock-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
  }
}
