/* ============================================ */
/* TUTURNO - Central de Turnos Profesional       */
/* Paleta: Calma Profesional (Azul)             */
/* ============================================ */

* { 
    font-family: 'Inter', -apple-system, sans-serif; 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: #F5F7FA; 
    min-height: 100vh; 
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, #1A1D20 0%, #2C3035 100%);
    border-bottom: 3px solid #1565C0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.logo-text span {
    color: #1565C0;
}

/* ===== CARDS ===== */
.card-modern {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.card-modern:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===== BOTONES ===== */
.btn-primary-modern {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(21, 101, 192, 0.4);
    color: white;
}

.btn-success-modern {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.4);
    color: white;
}

.btn-outline-modern {
    border: 2px solid #1565C0;
    color: #1565C0;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
}

.btn-outline-modern:hover {
    background: #1565C0;
    color: white;
}

.btn-danger-modern {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-danger-modern:hover {
    transform: translateY(-2px);
    color: white;
}

/* ===== TABLAS ===== */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-modern th {
    background: #1565C0;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
}

.table-modern td {
    background: white;
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

.table-modern tr:hover td {
    background: #F5F7FA;
}

/* ===== ALERTAS ===== */
.alert-modern {
    border: none;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* ===== ESPECIALIDADES ===== */
.especialidad-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.especialidad-card:hover {
    border-color: #1565C0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.1);
}

.especialidad-card i {
    font-size: 40px;
    color: #1565C0;
    margin-bottom: 10px;
}

.especialidad-card h5 {
    font-weight: 700;
    color: #1A1D20;
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */
.footer-modern {
    background: #1A1D20;
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.footer-modern a {
    color: white;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card-modern {
        padding: 15px;
    }
}

/* ===== AGENDA DE TURNOS ===== */
.agenda-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.agenda-header {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.agenda-header h2 {
    font-weight: 800;
    margin-bottom: 5px;
}

.agenda-header p {
    opacity: 0.9;
    margin: 0;
}

/* ===== TURNOS ===== */
.turno-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.turno-card:hover {
    box-shadow: 0 5px 20px rgba(21, 101, 192, 0.1);
    border-color: #1565C0;
}

.turno-card.disponible {
    border-left: 4px solid #2E7D32;
}

.turno-card.ocupado {
    border-left: 4px solid #dc3545;
    opacity: 0.6;
}

.turno-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.turno-icono {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.turno-icono.disponible {
    background: #E8F5E9;
    color: #2E7D32;
}

.turno-icono.ocupado {
    background: #FFEBEE;
    color: #dc3545;
}

.turno-fecha {
    font-weight: 700;
    font-size: 18px;
    color: #1A1D20;
}

.turno-hora {
    font-size: 14px;
    color: #8E8E93;
}

/* ===== BOTÓN RESERVAR ===== */
.btn-reservar {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-reservar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3);
    color: white;
}

.btn-reservar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== SIN TURNOS ===== */
.empty-agenda {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
}

.empty-agenda i {
    font-size: 60px;
    color: #1565C0;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-agenda h4 {
    font-weight: 700;
    color: #1A1D20;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .turno-card {
        flex-direction: column;
        text-align: center;
    }
    
    .turno-info {
        flex-direction: column;
    }
}