/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
/* === ESTILOS LEGACY PARA TABLAS (MANTENIDOS PARA COMPATIBILIDAD) === */
.series-inputs input {
width: 100%;
min-width: 100px;
padding: 6px;
margin-bottom: 5px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1em;
}
.series-inputs .input-wrapper {
display: flex;
flex-direction: column;
gap: 6px;
}
.timer-container { margin-top: 8px; }
.timer-container p {
margin: 0 0 4px;
font-size: 0.85em;
font-style: italic;
color: #666;
}
.timer, .rest-timer {
display: flex;
align-items: center;
gap: 6px;
margin-top: 2px;
flex-wrap: wrap;
}
.timer .time, .rest-timer .rest-time {
font-size: 1em;
font-weight: 700;
min-width: 3ch;
order: -1;
margin: 0;
line-height: 1;
}
.timer button, .rest-timer button {
padding: 0.25rem;
border: none;
cursor: pointer;
font-size: 0.85rem;
color: #fff;
border-radius: 3px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.timer .start-pause { background-color: #28a745; }
.timer .start-pause.pause { background-color: #007bff; }
.timer .reset { background-color: #dc3545; }
.timer:not(.daily-circuit-timer) button {
width: auto;
height: auto;
padding: 0.25rem 0.5rem;
display: inline-block;
}
.rest-timer { background-color: #f8f9fa; padding: 4px; border-radius: 3px; }
.rest-timer .rest-time { color: #666; }
/* === ESTILOS PARA TABLAS LEGACY === */
.day-table table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
background-color: #fff;
border: 2px solid #000;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
table-layout: fixed;
}
.day-table thead { background-color: #3e4d5d; }
.day-table thead th {
padding: 12px 8px;
font-weight: bold;
text-align: left;
font-size: 1em;
color: #fff;
}
.day-table thead th:nth-child(1),
.day-table tbody td:nth-child(1) { width: 44%; }
.day-table thead th:nth-child(2),
.day-table tbody td:nth-child(2) { width: 28%; }
.day-table thead th:nth-child(3),
.day-table tbody td:nth-child(3) { width: 28%; }
.day-table tbody td {
padding: 10px 8px;
border-top: 1px solid #eee;
vertical-align: top;
background-color: #fff;
word-wrap: break-word;
}
.day-table tbody tr:hover { background-color: #fff; }
.day-table td strong {
display: inline-block;
margin-bottom: 6px;
font-size: 1em;
}
.day-table input[type="text"] {
width: 100%;
padding: 6px;
font-size: 0.95em;
border: 1px solid #ccc;
border-radius: 4px;
}
/* === NUEVO DISEÑO DE TARJETAS === */
/* Reset básico */
{
box-sizing: border-box;
}
/* === CONTENEDOR PRINCIPAL DE LA RUTINA === */
.rutina-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.rutina-titulo {
color: #134184;
text-align: center;
margin-bottom: 2rem;
}
/* === TARJETAS DE EJERCICIOS (MOBILE-FIRST) === */
.exercise-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
overflow: hidden;
border: 2px solid #e9ecef;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.exercise-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
/* === ENCABEZADO DE LA TARJETA === */
.card-header {
background: #ffd21b;
color: #000;
padding: 1rem;
font-weight: 700;
font-size: 1.1rem;
}
/* === CONTENIDO DE LA TARJETA === */
.card-content {
padding: 1.2rem;
}
/* === GIF/medios por ejercicio (VERSIÓN DEFINITIVA) === */
.exercise-media {
  margin-top: 8px;
}

/* 1. Forzamos la alineación de la celda de la tabla */
.day-table tbody td:first-child {
  text-align: center !important; /* CENTRA TODO EL CONTENIDO DE LA CELDA */
}

/* 2. Forzamos el centrado específico del GIF */
.day-table .exercise-gif {
  display: block !important;
  float: none !important;         /* Anula cualquier 'float' que esté interfiriendo */
  margin-left: auto !important;  /* Forza el margen izquierdo automático */
  margin-right: auto !important; /* Forza el margen derecho automático */
  
  width: 140px; /* Mantenemos el ancho para escritorio */
  max-width: 100%;
  height: auto;
  
  /* Mantenemos tus estilos originales para evitar bordes, etc. */
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 3. Ajustamos el ancho para móviles */
@media (max-width: 768px) {
  .day-table .exercise-gif { 
    width: 90px !important;
  }
}
/* === LISTA DE SERIES === */
.series-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.series-row {
background: #f8f9fa;
border-radius: 8px;
padding: 1rem;
border: 1px solid #e9ecef;
}
.series-label {
display: block;
font-weight: 700;
color: #134184;
margin-bottom: 0.5rem;
font-size: 0.95rem;
}
.series-input {
width: 100%;
padding: 0.7rem;
font-size: 1rem;
border: 2px solid #ddd;
border-radius: 6px;
margin-bottom: 0.8rem;
transition: border-color 0.2s ease;
font-family: 'Montserrat', sans-serif;
}
.series-input:focus {
outline: none;
border-color: #134184;
box-shadow: 0 0 0 3px rgba(19, 65, 132, 0.1);
}
/* === TEMPORIZADOR === */
.timer-section {
margin-top: 0.5rem;
}
.rest-label {
font-size: 0.85rem;
font-style: italic;
color: #666;
margin-bottom: 0.5rem;
display: block;
}
.timer {
display: flex;
align-items: center;
gap: 0.8rem;
flex-wrap: wrap;
}
.timer .time {
font-size: 1.1rem;
font-weight: 700;
color: #134184;
min-width: 60px;
background: #e9f4ff;
padding: 0.4rem 0.8rem;
border-radius: 6px;
text-align: center;
}
.timer-controls {
display: flex;
gap: 0.4rem;
}
.timer button {
width: 36px;
height: 36px;
border: none;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
color: #fff;
}
.timer .start-pause {
background-color: #28a745;
}
.timer .start-pause:hover {
background-color: #218838;
transform: scale(1.05);
}
.timer .start-pause.pause {
background-color: #007bff;
}
.timer .start-pause.pause:hover {
background-color: #0056b3;
}
.timer .reset {
background-color: #dc3545;
}
.timer .reset:hover {
background-color: #c82333;
transform: scale(1.05);
}
/* === BARRA DE PROGRESO === */
.rt-progress {
width: 100%;
height: 6px;
background: #e9ecef;
border-radius: 999px;
overflow: hidden;
margin-top: 0.8rem;
}
.rt-progress-fill {
height: 100%;
width: 0%;
background: #28a745;
transition: width 0.25s linear, background-color 0.25s linear;
}
/* Advertencia últimos 5 segundos */
.timer.rt-warn .rt-progress-fill {
background: #dc3545;
}
.timer.rt-warn .time {
color: #dc3545;
background: #ffeaea;
}
/* === ESTILOS GLOBALES LEGACY === */
.exercise-media { margin-top: 8px; }
.series-inputs .slabel {
display: block;
margin-bottom: 2px;
font-size: 0.82em;
line-height: 1.05;
color: #666;
}
/* === RESPONSIVE DESIGN === */
/* Responsivo general */
@media (max-width: 600px) {
.series-inputs input {
font-size: 1.05em;
padding: 8px;
width: 100%;
min-width: unset;
}
.day-table thead th:nth-child(1),
.day-table tbody td:nth-child(1) { width: 40%; }
.day-table thead th:nth-child(2),
.day-table tbody td:nth-child(2) { width: 28%; white-space: normal; }
.day-table thead th:nth-child(3),
.day-table tbody td:nth-child(3) { width: 32%; }
.series-inputs .slabel { font-size: 0.9em; }
.series-inputs input { font-size: 1.05em; padding: 8px; }
}
/* Tablet */
@media (min-width: 768px) {
.card-content {
padding: 1.5rem;
}
.series-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.2rem;
}
.exercise-gif {
max-width: 250px;
float: left;
margin: 0 0 1rem 1.5rem;
}
.exercise-objective {
clear: both;
}
}
/* Desktop */
@media (min-width: 1024px) {
.rutina-container {
max-width: 1200px;
}
.series-list {
grid-template-columns: repeat(3, 1fr);
}
.exercise-gif {
max-width: 200px;
}
.card-content {
padding: 2rem;
}
}
/* Ampliar el ancho del contenido en móviles */
@media (max-width: 768px) {
.ast-container,
.entry-content .elementor,
.site-content > .ast-container {
padding-left: 10px !important;
padding-right: 10px !important;
max-width: 100% !important;
}
.rutina-container {
padding: 10px;
}
}
/* === ESTILOS GLOBALES === */
body {
font-family: 'Montserrat', sans-serif;
background-color: #f8f9fa;
color: #333;
}
h1, h2 { color: #134184; }
.highlight {
background-color: #ffca27;
padding: 10px;
border-radius: 5px;
}
/* === ESTADOS ESPECIALES === */
.exercise-card.completed {
border-color: #28a745;
background: linear-gradient(145deg, #fff, #f8fff8);
}
.exercise-card.completed .card-header {
background: #28a745;
}
/* Animación de entrada */
.exercise-card {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/*
==============================================
FIX: Anular el 'float: right' del GIF en escritorio
==============================================
*/
@media (min-width: 768px) {
    .day-table .exercise-gif {
        float: none !important; /* ¡Anulamos el float culpable! */
        margin: 0 auto !important; /* Centramos el GIF con márgenes automáticos */
    }
}
==============================================
ESTILOS PÁGINA "MI PROGRESO"
==============================================
/*
==============================================
ESTILOS PARA HISTORIAL DETALLADO
==============================================
*/

/* Contenedor principal del acordeón */
.historial-acordeon-item {
  border-bottom: 1px solid #eee;
}
.historial-acordeon-item:last-child {
  border-bottom: none;
}

/* Fila principal visible (Fecha, Nombre, Botón) */
.historial-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.historial-cabecera:hover {
  background-color: #f8f9fa;
}

.historial-info-principal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.historial-fecha {
  font-weight: 600;
  color: #333;
}
.historial-nombre {
  color: #555;
  font-size: 0.95rem;
}

/* Botón para ver/ocultar detalles */
.btn-detalles {
  background-color: #134184; /* Azul corporativo */
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Panel de detalles (oculto por defecto) */
.workout-detalles {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px; /* Padding se aplicará cuando esté abierto */
  background-color: #fdfdfd;
}

/* Clase que se añade con JS para mostrar el panel */
.workout-detalles.visible {
  max-height: 1000px; /* Un valor alto para permitir que se expanda */
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

/* Estilo para la lista de ejercicios y series */
.workout-detalles ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.workout-detalles li {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
}

.workout-detalles .nombre-serie {
  color: #666;
  text-transform: capitalize;
}

.workout-detalles .valor-serie {
  font-weight: 600;
  color: #333;
}
/*
==============================================
NUEVO: Estilos para la sección de Alternativas
==============================================
*/

/* --- ESTILOS PARA LA NUEVA SECCIÓN DE ALTERNATIVAS (BASE MÓVIL) --- */
.exercise-alternatives-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.2rem;
  border: 1px solid #e9ecef;
}

.alternatives-title {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: #134184;
  border-bottom: 2px solid #ffca27;
  padding-bottom: 0.5rem;
}

.alternatives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alternatives-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3e4d5d;
}

.alternatives-list li svg {
  width: 18px;
  height: 18px;
  color: #28a745; /* Verde */
  flex-shrink: 0;
}

/* --- AJUSTES PARA TABLET Y ESCRITORIO (min-width: 768px) --- */
@media (min-width: 768px) {
  
  /* 1. Creamos la rejilla de 2 columnas para el contenido principal */
  .exercise-main-content {
    display: grid;
    grid-template-columns: 4fr 5fr; /* Columna GIF (más pequeña) y columna Alternativas (más grande) */
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.5rem; /* Espacio antes del banner de Objetivo */
  }

  /* 2. El GIF ya no necesita margen inferior */
  .exercise-gif {
    margin-bottom: 0;
  }
  
  /* 3. El contenedor de alternativas ya no necesita margen superior */
  .exercise-alternatives-container {
    margin-top: 0;
  }

  /* 4. Hacemos que la lista de series se distribuya en columnas */
  .series-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }
}
/* Mi Progreso - rutinas.top Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #134184 0%, #1e5aa8 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(19, 65, 132, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Dashboard Stats */
.dashboard {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffca27 0%, #ffd54f 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #134184;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-weight: 500;
}

/* Filters */
.filters {
    margin-bottom: 30px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #134184;
    background: white;
    color: #134184;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #134184;
    color: white;
}

/* Chart Section */
.progress-chart {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.progress-chart h2 {
    color: #134184;
    margin-bottom: 25px;
    font-weight: 600;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

#progressChart {
    width: 100% !important;
    height: 100% !important;
}

/* Personal Records */
.personal-records {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.personal-records h2 {
    color: #134184;
    margin-bottom: 25px;
    font-weight: 600;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.record-card {
    background: linear-gradient(135deg, #ffca27 0%, #ffd54f 100%);
    padding: 20px;
    border-radius: 12px;
    color: #134184;
    border: 2px solid #134184;
}

.record-card h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.record-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.record-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Workout History */
.workout-history {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.workout-history h2 {
    color: #134184;
    margin-bottom: 25px;
    font-weight: 600;
}

.history-container {
    max-height: 600px;
    overflow-y: auto;
}

.workout-entry {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.workout-entry:hover {
    border-color: #134184;
    box-shadow: 0 2px 8px rgba(19, 65, 132, 0.1);
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.workout-title {
    font-weight: 600;
    color: #134184;
    font-size: 1.1rem;
}

.workout-date {
    color: #666;
    font-size: 0.9rem;
}

.exercises-list {
    display: grid;
    gap: 10px;
}

.exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.exercise-name {
    font-weight: 500;
    color: #333;
}

.exercise-values {
    color: #134184;
    font-weight: 600;
    font-size: 0.9rem;
}

/* No Data Messages */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Load More Button */
.load-more-btn {
    width: 100%;
    padding: 15px;
    background: #134184;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #0f2d5c;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-btn:not(.danger) {
    background: #134184;
    color: white;
}

.action-btn:not(.danger):hover {
    background: #0f2d5c;
    transform: translateY(-2px);
}

.action-btn.danger {
    background: #dc3545;
    color: white;
}

.action-btn.danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .progress-chart,
    .personal-records,
    .workout-history {
        padding: 20px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .records-grid {
        grid-template-columns: 1fr;
    }
    
    .workout-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exercise-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 15px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}
/* === BOTÓN AÑADIR SERIE === */
.add-series-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.add-series-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffca27; /* Color sólido en lugar de gradiente */
    color: #134184; /* Mantener texto azul oscuro */
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 202, 39, 0.2);
}

.add-series-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 202, 39, 0.4);
    background: #ffd54f;
}

.add-series-btn:active {
    transform: translateY(0);
}

/* Estado de éxito - mantener colores legibles */
.add-series-btn.success {
    background: #4caf50;
    color: white !important; /* Asegurar que el texto sea blanco */
}

.add-series-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* === SERIES EXTRAS === */
.series-row.extra-series {
    position: relative;
    background: linear-gradient(to right, rgba(255, 202, 39, 0.08), rgba(255, 213, 79, 0.08));
    border-left: 3px solid #ffca27;
    padding-left: 12px;
    margin-top: 10px;
    padding-right: 50px; /* Espacio para el botón eliminar */
}

/* === BOTÓN ELIMINAR SERIE === */
.remove-series {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff5252;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Hacer el botón eliminar siempre visible en móvil */
@media (hover: hover) {
    .remove-series {
        opacity: 0;
    }
    
    .series-row.extra-series:hover .remove-series {
        opacity: 1;
    }
}

/* En dispositivos táctiles, siempre visible */
@media (hover: none) {
    .remove-series {
        opacity: 1;
    }
}

.remove-series:hover {
    background: #ff1744;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.remove-series svg {
    width: 16px;
    height: 16px;
    fill: white;
    pointer-events: none; /* Evitar problemas con el click */
}

/* === MENSAJE MÁXIMO === */
.max-series-message {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #134184;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .add-series-btn {
        width: 100%;
        max-width: 280px;
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .remove-series {
        width: 28px;
        height: 28px;
        right: 8px;
    }
    
    .series-row.extra-series {
        padding-right: 45px;
    }
}

/* === AJUSTE PARA TIMER EN MÓVIL === */
@media (max-width: 480px) {
    .series-row.extra-series .timer-section {
        margin-top: 10px;
        width: 100%;
    }
    
    .remove-series {
        top: 20px;
        transform: translateY(0);
    }
    
    .remove-series:hover {
        transform: scale(1.1);
    }
}

/* ===================================================================
   CSS PARA CIRCUITOS - DISEÑO DE CARDS
   Compatible con rutinas.top - Colores corporativos y tipografía Montserrat
   =================================================================== */

/* Contenedor principal */
.rutina-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

/* Cards de ejercicios */
.exercise-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exercise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Header de cada card */
.card-header {
  background: #ffca27;
  color: #134184;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid #e5e7eb;
}

/* Contenido de la card */
.card-content {
  padding: 20px;
}

/* Layout principal del ejercicio */
.exercise-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Contenedor del GIF */
.exercise-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.exercise-gif {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}

/* Contenedor de temporizadores */
.exercise-timer-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Información del objetivo */
.timer-info {
  background: #f3f4f6;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.timer-objective {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

/* Sección de temporizadores */
.timer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Estilos de temporizadores */
.timer {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.timer.is-running {
  border-color: #10b981;
  background: #ecfdf5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Labels de temporizadores */
.timer-label {
  font-size: 12px;
  font-weight: bold;
  color: #6b7280;
  margin-bottom: 5px;
}

.daily-circuit-timer .timer-label {
  color: #134184;
}

.rest-timer .timer-label {
  color: #ff6b35;
}

/* Tiempo mostrado */
.time, .rest-time {
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
  margin: 5px 0;
}

/* Barra de progreso */
.rt-progress {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.rt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Controles de temporizador */
.timer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.start-pause, .reset {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 40px;
  min-height: 32px;
}

.start-pause:hover {
  background: #3730a3;
  transform: scale(1.05);
}

.reset {
  background: #ef4444;
}

.reset:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Sección de registro */
.registration-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

/* Grid para las rondas - adaptable según cantidad */
.rounds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-items: end;
}

/* Adaptación para 2 rondas - ocupar todo el ancho */
.rounds-grid:has(.round-input:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Fallback para navegadores que no soportan :has() */
.rounds-grid.two-rounds {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.round-input {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.round-label {
  font-weight: 500;
  color: #374151;
  font-size: 13px;
  text-align: center;
}

/* Inputs de series */
.series-input {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease;
  text-align: center;
}

.series-input:focus {
  outline: none;
  border-color: #134184;
  box-shadow: 0 0 0 3px rgba(19, 65, 132, 0.1);
}

.series-input::placeholder {
  color: #9ca3af;
}

/* Botón de inicio del circuito */
.circuit-start-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.circuit-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #f7c020 !important;
}

.circuit-start-btn:disabled {
  background: #6b7280 !important;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

/* Estados especiales del temporizador */
.timer.rt-warn {
  border-color: #f59e0b;
  background: #fffbeb;
  animation: warning-pulse 1s infinite;
}

@keyframes warning-pulse {
  0%, 100% { border-color: #f59e0b; }
  50% { border-color: #d97706; }
}

.timer.rt-warn .time,
.timer.rt-warn .rest-time {
  color: #f59e0b;
}

/* Animación para display de preparación */
.preparation-display {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .rutina-container {
    padding: 15px;
  }
  
  .exercise-main-content {
    gap: 15px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .rutina-container {
    padding: 10px;
  }
  
  .exercise-main-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card-header {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .exercise-gif {
    max-height: 150px;
  }
  
  .timer {
    min-height: 100px;
    padding: 12px;
  }
  
  .time, .rest-time {
    font-size: 20px;
  }
  
  /* Mantener rondas horizontales en móvil */
  .rounds-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  /* Adaptación para 2 rondas en móvil */
  .rounds-grid:has(.round-input:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .rounds-grid.two-rounds {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .round-input {
    flex-direction: column;
    gap: 5px;
  }
  
  .round-label {
    font-size: 12px;
    text-align: center;
  }
  
  .series-input {
    text-align: center;
    padding: 8px 6px;
    font-size: 13px;
  }
  
  .circuit-start-btn {
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .rutina-container {
    padding: 5px;
  }
  
  .card-content {
    padding: 10px;
  }
  
  .exercise-main-content {
    gap: 10px;
  }
  
  .exercise-timer-container {
    gap: 10px;
  }
  
  .timer {
    min-height: 90px;
    padding: 10px;
  }
  
  .time, .rest-time {
    font-size: 18px;
  }
  
  .timer-controls {
    gap: 8px;
  }
  
  .start-pause, .reset {
    padding: 6px 10px;
    min-width: 36px;
    min-height: 28px;
  }
  
  .round-label {
    font-size: 11px;
  }
  
  .series-input {
    padding: 6px 4px;
    font-size: 12px;
  }
}

/* ===================================================================
   UTILIDADES Y CLASES ADICIONALES
   =================================================================== */

/* Texto centrado */
.text-center {
  text-align: center;
}

/* Espaciado */
.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Estados de carga */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  .exercise-card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .timer {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .timer-info {
    background: #4b5563;
    color: #f9fafb;
  }
  
  .series-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .series-input::placeholder {
    color: #9ca3af;
  }
}