* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

header { text-align: center; padding: 30px 0; }
header h1 { color: #2c3e50; margin-bottom: 10px; }
header a { display: inline-block; margin-bottom: 10px; color: #3498db; text-decoration: none; }

/* Tarjetas del menú */
.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tarjeta {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.tarjeta-proximamente { opacity: 0.6; cursor: not-allowed; }
.tarjeta-icono { font-size: 3rem; margin-bottom: 15px; }
.tarjeta h2 { color: #2c3e50; margin-bottom: 10px; }

/* Navegación secundaria */
.subnav { display: flex; gap: 15px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.subnav a {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}
.subnav a:hover { background: #2980b9; }

/* Filtros */
.filtros {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-filtros { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.filtro-grupo { display: flex; flex-direction: column; gap: 5px; }
.filtro-grupo label { font-size: 14px; font-weight: 500; }
.filtro-grupo input { padding: 8px; border: 1px solid #ddd; border-radius: 5px; }

/* Bloques de días */
.dia-bloque {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dia-titulo {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.momento-bloque { margin-left: 20px; margin-bottom: 20px; }
.momento-titulo { color: #3498db; font-size: 16px; margin-bottom: 10px; text-transform: uppercase; }

/* Tablas */
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #3498db; color: white; }
tr:hover { background: #f9f9f9; }

/* Formularios */
.formulario {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.campo { margin-bottom: 20px; }
.campo label { display: block; margin-bottom: 5px; font-weight: 500; }
.campo input, .campo textarea, .campo select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background: #229954; }

/* Tomas en formulario */
.tomas-container { display: grid; gap: 20px; margin: 20px 0; }
.toma-bloque {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}
.toma-bloque h3 { color: #2c3e50; margin-bottom: 15px; font-size: 18px; }

.mensaje-vacio { text-align: center; padding: 40px; color: #999; font-size: 18px; }