/* --- VARIABLES Y CONFIGURACIÓN BASE --- */
:root {
    --bg-main: #fcfcfd;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb; 
    --card-bg: #ffffff;
    --border-color: #f3f4f6;
    --radius-button: 28px; /* El redondeado que te gusta */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 120px 20px;
}

/* --- TÍTULOS --- */
header h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 10px 0 20px 0;
}

.back-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- GRID DE 2 COLUMNAS (Para Hijos y Actividades) --- */
/* Esta es la regla que hace que se vean 2 por fila */
.hijos-grid, .grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px 0;
}

.hijo-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- ESTILO DE BOTÓN NEGRO GRANDE (UI PRINCIPAL) --- */
.hijo-card, .btn-black-card, .btn-black {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #000000;
    color: #FFFFFF !important;
    height: 120px;
    border-radius: var(--radius-button);
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.hijo-card:active, .btn-black-card:active, .btn-black:active {
    background-color: #333333;
    transform: scale(0.96);
}

.edit-link {
    text-align: center;
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- FORMULARIOS (Login, Editar, Nuevo) --- */
.form-group {
    margin-bottom: 20px;
}

.input-ios, .input-custom {
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 18px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.label-mini {
    display: block;
    margin-bottom: 8px;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- AGENDA Y CALENDARIO (Horarios) --- */
.calendar-header {
    background: white;
    padding: 25px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.day-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 50px;
    border-radius: 12px;
    color: var(--text-dark);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
}

.day-btn span { font-size: 18px; font-weight: 900; }

.day-btn.active {
    background: #000000;
    color: #FFFFFF;
}

.agenda-grid {
    padding: 20px 0;
}

.hour-row {
    display: flex;
    align-items: center;
    background: white;
    margin-bottom: 12px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

.hour-time { 
    font-size: 16px; 
    font-weight: 800; 
    color: var(--accent); 
    min-width: 70px; 
}

.hour-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* --- BOTÓN FLOTANTE AZUL (+) --- */
.fab, .btn-add-schedule {
    position: fixed;
    bottom: 30px;
    right: 25px;
    background: var(--accent);
    color: white !important;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 100;
    font-weight: bold;
}
/* Añadir esto si no lo tienes para manejar estados de botones de acción */
.hour-row {
    display: flex;
    align-items: center;
    background: white;
    margin-bottom: 12px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

/* Estilo para botones de peligro (eliminar) */
.btn-danger {
    background-color: #ff3b30 !important;
}