/* Estilos del Panel Público - Sistema de Turnos */

:root {
    --primary-color: #0066cc;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .text-primary {
    color: #ffd700 !important;
}

.hero-image {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: scale(1.05);
}

.benefit-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.benefit-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.form-label {
    margin-bottom: 8px;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 100px;
    background: #212529 !important;
}

footer h5 {
    color: #fff;
    font-weight: 600;
}

footer p {
    color: #fff;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Calendario de Turnos */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.calendar-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    background: #0052a3;
    transform: scale(1.05);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: var(--dark-color);
    padding: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.calendar-day:hover {
    border-color: var(--primary-color);
    background: #e7f3ff;
    transform: scale(1.05);
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    border-color: #e9ecef;
    background: #f8f9fa;
    transform: none;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.today {
    border-color: var(--success-color);
    font-weight: 600;
}

/* Horarios disponibles */
.horarios-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.horario-item {
    display: inline-block;
    padding: 15px 25px;
    margin: 5px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.horario-item:hover {
    border-color: var(--primary-color);
    background: #e7f3ff;
    transform: scale(1.05);
}

.horario-item.ocupado {
    background: #f8f9fa;
    color: #ced4da;
    cursor: not-allowed;
    opacity: 0.6;
}

.horario-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Tarjeta de turno */
.turno-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.turno-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.turno-card .turno-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.turno-card .codigo-turno {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.turno-card .estado-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.estado-reservado {
    background: #cce5ff;
    color: #004085;
}

.estado-confirmado {
    background: #d4edda;
    color: #155724;
}

.estado-cancelado {
    background: #f8d7da;
    color: #721c24;
}

.estado-atendido {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .calendar-days {
        gap: 5px;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .horario-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Estilos para páginas de autenticación (Login, Registro, Recuperar Password) */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header i {
    color: rgba(255, 255, 255, 0.9);
}

.auth-header h2 {
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-form {
    padding: 30px;
}

.auth-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #764ba2;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        margin: 10px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
}
