/* Estilos para la página de Turnos Online - Estilo Mater Digital */

.turnos-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    zoom: 0.8;
    /* Ajuste al 80% solicitado para mayor densidad visual */
}

.turnos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/bg-edificio.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.9;
    z-index: 0;
}

.turnos-container-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    /* Aumentado para soportar 4 columnas */
    margin: 0 auto;
}

/* Panel Principal */
.turnos-panel {
    display: none;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    min-height: 600px;
    position: relative;
    transition: all 0.3s ease;
    max-width: 600px;
    /* Por defecto todas las pantallas a 600px */
    margin: 0 auto;
}

.turnos-panel.wide {
    max-width: 1200px;
    /* Pantalla de médicos ancha */
}

/* Limitar ancho de formularios dentro de paneles anchos para estética */
.turnos-panel.wide .turnos-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.turnos-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    70% {
        transform: translateY(5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseRedGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
        border-color: #ef4444;
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(220, 38, 38, 0.2);
        border-color: #b91c1c;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
        border-color: #ef4444;
    }
}

.prof-message-box {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 20px 30px;
    border-radius: 16px;
    margin: 0 auto 30px;
    max-width: 650px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    animation: slideDownBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), pulseRedGlow 2s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prof-message-box i {
    display: block;
    font-size: 28px;
    margin-bottom: 12px;
    color: #dc2626;
}

.prof-message-box strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: #b91c1c;
    font-weight: 800;
}

.panel-title {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

/* Barra superior con usuario (Estilo Mater Digital) */
.user-info-top {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    gap: 0;
    align-items: center;
    z-index: 100;
}

.user-name {
    background: #f8d478;
    /* Amarillo según imagen */
    color: white;
    padding: 12px 25px;
    border-radius: 30px 0 0 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-logout {
    background: #007bff;
    /* Azul según imagen */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #0056b3;
}

.patient-name {
    text-align: center;
    color: #555;
    font-size: 17px;
    margin-bottom: 35px;
    margin-top: -20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Botones Principales (Bloques Grandes Teal) */
.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.btn-main {
    background: #73b1c1;
    /* Color Teal de la imagen */
    color: white;
    padding: 35px 20px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

.btn-main:hover {
    background: #5a9eaf;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(115, 177, 193, 0.4);
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:active {
    transform: translateY(-1px);
}

/* Botón Volver */
.btn-back {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

/* Link Cerrar Sesión */
.link-back {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: color 0.3s;
}

.link-back:hover {
    color: var(--primary-dark);
}

/* Formulario de Login - Estilo Mater Digital */
.login-panel {
    padding: 60px 50px;
    background: rgba(255, 255, 255, 0.75);
}

.login-title {
    margin-bottom: 35px;
    color: #2c3e50;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.login-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 30px 0;
    width: 100%;
}

.login-form-container {
    margin: 0;
}

.login-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.login-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.login-input::placeholder {
    color: #999;
    font-style: italic;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
    transform: translateY(-1px);
}

.btn-ingresar {
    padding: 14px 30px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
    letter-spacing: 0.5px;
}

.btn-ingresar:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

.btn-ingresar:active {
    transform: translateY(0);
}

.login-buttons {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.btn-registrar,
.btn-volver-login {
    flex: 1;
    padding: 14px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-registrar:hover,
.btn-volver-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Pantalla de Registro */
.registro-panel {
    padding: 50px 40px;
    background: rgba(250, 250, 250, 0.98);
    max-width: 700px;
    margin: 0 auto;
}

.registro-title {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 400;
    text-align: center;
}

.registro-form-container {
    margin: 0;
}

.registro-form {
    width: 100%;
}

.registro-form .form-group {
    margin-bottom: 20px;
}

.registro-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.registro-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #333;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.registro-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
    transform: translateY(-1px);
}

.registro-form input::placeholder {
    color: #999;
    font-style: italic;
}

.registro-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-volver-registro,
.btn-registrar-submit {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-volver-registro {
    background: white;
    color: var(--primary-color);
}

.btn-volver-registro:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.btn-registrar-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.btn-registrar-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

/* Logo en el panel */
.turnos-logo {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-text-turnos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.logo-turnos-part1 {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(45, 134, 89, 0.2);
}

.logo-turnos-part2 {
    color: var(--primary-dark);
    text-shadow: 0 2px 4px rgba(30, 93, 63, 0.2);
}

.logo-subtitle {
    font-size: 15px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.turnos-form-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.turnos-form-container h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.turno-form {
    width: 100%;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

.btn-next {
    width: 100%;
}

/* Resumen del Turno */
.resumen-turno {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.resumen-turno h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-item strong {
    color: var(--text-color);
}

.resumen-item span {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Resultado de Consulta */
.resultado-turno {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 8px;
}

.resultado-turno h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.turno-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-color);
}

.info-item span {
    color: var(--dark-gray);
    font-weight: 500;
}

.estado-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.estado-badge.confirmado {
    background: #28a745;
    color: white;
}

.estado-badge.pendiente {
    background: #ffc107;
    color: #333;
}

.estado-badge.cancelado {
    background: #dc3545;
    color: white;
}

/* Lista de turnos (Cards) */
.lista-turnos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 992px) {
    .lista-turnos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.turno-card-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.turno-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.turno-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.turno-card-header strong {
    color: var(--primary-color);
    font-size: 17px;
}

.turno-card-body p {
    margin: 6px 0;
    color: #555;
    font-size: 15px;
}

.turno-card-body strong {
    color: #333;
}

.turno-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-cancel-small,
.btn-print-small {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-cancel-small {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-cancel-small:hover {
    background: #f5c6cb;
    transform: translateY(-1px);
}

.btn-print-small {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.btn-print-small:hover {
    background: #bee5eb;
    transform: translateY(-1px);
}

/* Mensajes de éxito/error */
.mensaje {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.mensaje.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Indicador de pasos */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step-indicator .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid var(--border-color);
}

.step-indicator .step.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.step-indicator .step.completed {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* Botón completo */
.btn-full {
    width: 100%;
}

/* Ajustes adicionales */
.turnos-panel h2 {
    display: none;
}

.turnos-panel .panel-title {
    margin-top: 0;
}

/* Botón flecha atrás */
.btn-back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.btn-back-arrow:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateX(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(45, 134, 89, 0.4);
}

.panel-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 30px;
}

/* Grid de Profesionales */
.profesionales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

@media (min-width: 992px) {
    .profesionales-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Forzar 4 columnas en pantallas grandes */
    }
}

.profesional-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    max-width: 260px;
    /* Evitar que crezcan demasiado si hay pocos */
    border: 1px solid #eee;
}

.profesional-card:hover {
    transform: translateY(-5px);
}

.profesional-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #f8f8f8;
}

.profesional-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.profesional-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.profesional-especialidades {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.4;
}

.btn-horarios {
    background: #73b1c1;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto;
}

.btn-horarios:hover {
    background: #5a9eaf;
}

.nav-link {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px 20px;
    display: inline-block;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Calendario */
.calendar-container {
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #555 0%, #444 100%);
    padding: 18px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cal-nav {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-cal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-month {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: block !important;
}

.calendar-grid {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #555;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.calendar-weekdays span {
    padding: 10px;
    text-align: center;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: #666;
    font-weight: 500;
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day.available {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.4);
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Fecha seleccionada */
.selected-date-display {
    margin-top: 30px;
    text-align: center;
}

.selected-date-display h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(45, 134, 89, 0.1);
}

/* Horarios */
.horarios-container {
    margin-top: 30px;
}

.horarios-container h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.btn-horario {
    padding: 16px;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.9) 0%, rgba(30, 93, 63, 0.9) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(45, 134, 89, 0.3);
}

.btn-horario:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 134, 89, 0.4);
}

/* Modal de Confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-confirmacion {
    background: white;
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-days {
    display: flex;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.modal-content {
    padding: 45px 35px;
    text-align: center;
    background: linear-gradient(to bottom, white 0%, #fafafa 100%);
}

.modal-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.modal-date {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.modal-time {
    font-size: 22px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-professional {
    font-size: 17px;
    color: #777;
    margin-top: 25px;
    font-style: italic;
}

.modal-actions {
    display: flex;
    gap: 15px;
    padding: 25px 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.btn-modal-confirm {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
    letter-spacing: 0.3px;
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

.btn-modal-cancel {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.3px;
}

.btn-modal-cancel:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFD700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .turnos-panel {
        padding: 30px 20px;
        min-height: auto;
    }

    .panel-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .btn-main {
        padding: 20px 30px;
        font-size: 18px;
    }

    .user-info-top {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .turno-actions {
        flex-direction: column;
    }

    .main-buttons {
        margin: 30px 0;
    }

    .profesionales-grid {
        grid-template-columns: 1fr;
    }

    .horarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-confirmacion {
        width: 95%;
        margin: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Logo Institutional - Icon + Text (Profesional) */
.logo {
    display: flex;
    align-items: center;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 15px;
    color: inherit !important;
}

.logo-link.centered {
    justify-content: center;
    width: 100%;
}

.logo-icon {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block !important;
    mix-blend-mode: multiply;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    text-align: left;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark) !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
}

.brand-accent {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2.5px;
    margin-top: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.panel-brand-icon {
    height: 75px;
    width: auto;
    mix-blend-mode: multiply;
}

.brand-name.panel-size {
    font-size: 32px;
}

.brand-tagline.panel-size {
    font-size: 13px;
    letter-spacing: 3px;
}

.turnos-logo {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 20px;
    }

    .brand-name.panel-size {
        font-size: 24px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .logo-icon {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .panel-logo {
        max-height: 60px;
    }
}