/* reserva.css - Estilos para el formulario de reserva */

/* Contenedor principal */
.multi-step-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
    border: none;
}

/* Header de la tarjeta */
.multi-step-card .card-header {
    background: linear-gradient(135deg, #263F73 0%, #1a2d5c 100%);
    color: white;
    padding: 2rem;
    border-bottom: none;
}

.multi-step-card .card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* Body de la tarjeta */
.multi-step-card .card-body {
    padding: 2rem;
}

/* Indicador de pasos */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

/* Paso activo */
.step.active .step-number {
    background: #E0F556;
    color: #263F73;
    box-shadow: 0 4px 12px rgba(224, 245, 86, 0.3);
}

.step.active .step-label {
    color: #263F73;
    font-weight: 600;
}

/* Línea de progreso */
.step.active ~ .step .step-number {
    background: #e9ecef;
    color: #6c757d;
}

/* Formulario */
.multi-step-form {
    position: relative;
}

.step-content {
    min-height: 200px;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Campos del formulario */
.form-label {
    font-weight: 600;
    color: #263F73;
    margin-bottom: 0.5rem;
}

/* TODOS los tipos de inputs deben tener texto azul oscuro SIEMPRE */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="month"],
input[type="week"],
textarea,
select,
.form-control,
input.form-control,
textarea.form-control,
select.form-control {
    color: #263F73 !important; /* SIEMPRE azul oscuro */
    -webkit-text-fill-color: #263F73 !important; /* Para Safari */
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="time"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder,
select::placeholder,
.form-control::placeholder {
    color: #6c757d !important; /* Color gris oscuro para placeholders */
    opacity: 0.8;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #E0F556;
    box-shadow: 0 0 0 0.2rem rgba(224, 245, 86, 0.25);
    color: #263F73 !important; /* Mantener color oscuro al hacer focus */
    -webkit-text-fill-color: #263F73 !important;
}

.form-control:disabled,
.form-control[readonly] {
    color: #263F73 !important;
    opacity: 0.6;
    -webkit-text-fill-color: #263F73 !important;
}

/* Autocomplete Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #263F73 !important;
    color: #263F73 !important; /* Asegurar color oscuro también */
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Badges de Estado - Texto azul oscuro SIEMPRE */
.badge.bg-success,
.badge.bg-warning,
.badge.bg-danger,
.badge.bg-secondary,
.badge.bg-info,
.badge[class*="bg-"],
span.badge,
.badge {
    color: #263F73 !important; /* Azul oscuro SIEMPRE */
    font-weight: 600;
}

/* Sobrescribir cualquier clase text-white en badges */
.badge.text-white,
.badge.bg-success.text-white,
.badge.bg-danger.text-white,
.badge.bg-secondary.text-white {
    color: #263F73 !important; /* Forzar azul oscuro incluso con text-white */
}

.badge.bg-success {
    background-color: #d1e7dd !important;
    border: 1px solid #badbcc;
}

.badge.bg-warning {
    background-color: #fff3cd !important;
    border: 1px solid #ffecb5;
}

.badge.bg-danger {
    background-color: #f8d7da !important;
    border: 1px solid #f5c2c7;
}

.badge.bg-secondary {
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6;
}

.badge.bg-info {
    background-color: #cff4fc !important;
    border: 1px solid #b6effb;
}

/* Checkbox */
.form-check {
    margin-top: 1rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #E0F556;
    border-color: #E0F556;
}

@media (prefers-color-scheme: dark) {
    /* En modo oscuro, mantener texto claro para legibilidad */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select,
    .form-control {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.2);
        -webkit-text-fill-color: white !important;
    }
    
    input[type="text"]::placeholder,
    input[type="email"]::placeholder,
    input[type="tel"]::placeholder,
    textarea::placeholder,
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7) !important; /* Placeholder más claro en modo oscuro */
    }
    
    .form-control:focus {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: #E0F556;
        color: white !important;
        -webkit-text-fill-color: white !important;
    }
    
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        -webkit-text-fill-color: white !important;
        -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
    }
    
    .form-label {
        color: rgba(255, 255, 255, 0.9);
    }
}
.form-check-label {
    font-size: 0.95rem;
    color: #495057;
    margin-left: 0.5rem;
}

/* Navegación de pasos */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Botones */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #263F73;
    color: white;
}

.btn-primary:hover {
    background: #1a2d5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 63, 115, 0.3);
}

.btn-success {
    background: #E0F556;
    color: #263F73;
}

.btn-success:hover {
    background: #d4e84f;
    color: #263F73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 245, 86, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Footer de la tarjeta */
.multi-step-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

.btn-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .multi-step-card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .multi-step-card .card-header {
        padding: 1.5rem;
    }
    
    .multi-step-card .card-title {
        font-size: 1.5rem;
    }
    
    .multi-step-card .card-body {
        padding: 1.5rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .step-indicator::before {
        left: 15%;
        right: 15%;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-control {
        font-size: 0.95rem;
    }
}

/* Nuevos breakpoints para móviles pequeños */
@media (max-width: 480px) {
    .step-navigation {
        gap: 0.75rem;
    }
    
    .step-navigation .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 1rem; /* Evitar zoom en iOS */
        padding: 0.6rem 0.8rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .multi-step-card .card-header {
        padding: 1rem;
    }
    
    .multi-step-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 375px) {
    .multi-step-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .multi-step-card .card-title {
        font-size: 1.3rem;
    }
    
    .step-indicator::before {
        left: 20%;
        right: 20%;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .form-control {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
}