body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8; /* Color suave */
    margin: 0;
    padding: 0;
}

header {
    background-color: #ff6b81; /* Color "Pilates" enérgico */
    color: white;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    display: flex;
    justify-content: center; /* Centrar tarjetas */
    flex-wrap: wrap; /* Si no caben, bajan */
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 300px; /* Ancho ideal para tablet */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.input-name {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.select-exercise {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    border-radius: 5px;
}

.timer-display {
    font-size: 3rem; /* Números grandes */
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.buttons {
    display: flex;
    justify-content: space-around;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.start { background-color: #2ecc71; }
.stop { background-color: #f1c40f; color: black; }
.reset { background-color: #e74c3c; }

/* Efecto al tocar botón */
.btn:active { transform: scale(0.95); }

.admin-panel {
    width: 100%;
    max-width: 600px;
    margin: 40px auto; /* Centrado y separado de arriba */
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed #ff6b81; /* Borde punteado para diferenciarlo */
}

.admin-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

#nuevoEjercicioInput {
    padding: 10px;
    width: 60%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Estilos del Login */
.login-container {
    height: 100vh; /* Ocupa toda la altura */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-google {
    background: white;
    color: #555;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    font-weight: bold;
}

.btn-google:hover {
    background-color: #f7f7f7;
    border-color: #bbb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logout {
    background-color: #333;
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* --- ESTILOS DE NAVEGACIÓN --- */

/* Ajuste para que el contenido no quede tapado por el menú */
.main-content {
    padding-bottom: 80px; /* Espacio para el menú inferior */
}

/* Menú inferior fijo */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.nav-btn.active {
    color: #ff6b81; /* Color activo */
}

/* Tarjeta de bienvenida */
.welcome-card {
    background: white;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Cuadrícula de nombres */
.grid-alumnas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Adaptable */
    gap: 15px;
    margin-top: 15px;
}

.card-alumna {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
    font-weight: bold;
    color: #444;
}

.card-alumna:hover {
    background-color: #ffeef5; /* Rosita claro al pasar el mouse */
    border-color: #d81b60;
    transform: translateY(-2px);
}

.card-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

/* Botón de volver */
.btn-volver {
    background: #666;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 10px;
}