/*
 * Header Button Styles - Bootstrap 5.x Enhanced
 * Archivo: header-buttons.css
 * Fecha: 22 de agosto de 2025
 *
 * Estilos modernos para los botones del header/navbar
 */

/* HEADER NAVBAR BUTTON STYLES */
.navbar .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.025em;
    border-width: 2px;
}

.navbar .btn::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;
    z-index: 1;
}

.navbar .btn:hover::before {
    left: 100%;
}

.navbar .btn>* {
    position: relative;
    z-index: 2;
}

/* Botón de Iniciar Sesión */
.navbar .btn-outline-primary {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.navbar .btn-outline-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.navbar .btn-outline-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Botón de Registrarse */
.navbar .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 2px solid transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    position: relative;
}

.navbar .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.navbar .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.navbar .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse .d-flex {
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        gap: 0.75rem !important;
    }

    .navbar .btn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .navbar .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animación de pulso sutil para el botón de registro */
.navbar .btn-primary {
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    }

    50% {
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    }
}

/* Mejoras adicionales para iconos */
.navbar .btn i {
    transition: transform 0.2s ease;
}

.navbar .btn:hover i {
    transform: scale(1.1);
}

/* Efectos especiales para mejor UX */
.navbar .btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 1;
}

.navbar .btn-outline-primary:hover::after {
    width: 120%;
    height: 120%;
}

/* Estados adicionales para accesibilidad */
.navbar .btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mejora para navegación con teclado */
.navbar .btn:focus:not(:hover) {
    transform: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ========================================
   SEARCH SECTION BUTTON STYLES
   ======================================== */

/* Botón Aplicar Filtros */
#buscar .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0f5132 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#buscar .btn-primary::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.6s;
}

#buscar .btn-primary:hover::before {
    left: 100%;
}

#buscar .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a4b28 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

#buscar .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Botón Limpiar */
#buscar .btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(220, 53, 69, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#buscar .btn-outline-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.6s;
}

#buscar .btn-outline-danger:hover::before {
    left: 100%;
}

#buscar .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

#buscar .btn-outline-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Mejoras para iconos en botones de búsqueda */
#buscar .btn i {
    transition: transform 0.2s ease;
}

#buscar .btn:hover i {
    transform: scale(1.15);
}

/* Switch "Disponible 24hs" mejorado */
.form-check-input-lg {
    width: 3rem;
    height: 1.5rem;
    border-radius: 2rem;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check-input-lg:checked {
    background-color: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.form-check-input-lg:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.form-check-input-lg:checked::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Label mejorado para el switch */
.form-check-label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked+.form-check-label {
    color: #ffc107;
    font-weight: 700;
}

.form-check-label:hover {
    transform: translateY(-1px);
}

/* Responsive para botones de búsqueda */
@media (max-width: 768px) {
    #buscar .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        letter-spacing: 0.25px;
    }

    #buscar .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .form-check {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Efectos de hover para toda la sección de búsqueda */
.search-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-section:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* ========================================
   ENHANCED SEARCH SECTION STYLES
   ======================================== */

/* Actualización para botón success (Aplicar Filtros) */
#buscar .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

#buscar .btn-success>span,
#buscar .btn-success>i {
    position: relative;
    z-index: 2;
}

#buscar .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5) !important;
}

/* Actualización para botón outline-danger (Limpiar) */
#buscar .btn-outline-danger {
    border: 3px solid #ef4444 !important;
    color: #ef4444 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

#buscar .btn-outline-danger>span,
#buscar .btn-outline-danger>i {
    position: relative;
    z-index: 2;
}

#buscar .btn-outline-danger:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4) !important;
}

/* Mejoras para form-floating */
.search-section .form-floating .form-control:focus,
.search-section .form-floating .form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-2px);
}

/* Switch mejorado específico */
.search-section .form-check-input-lg {
    width: 3.5rem !important;
    height: 1.75rem !important;
    border: 3px solid #cbd5e1 !important;
}

.search-section .form-check-input-lg:checked {
    background-color: #fbbf24 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2) !important;
}

/* Switch extra grande para diseño vertical */
.form-check-input-xl {
    width: 4.5rem !important;
    height: 2.25rem !important;
    border-radius: 2.5rem !important;
    background-color: #e2e8f0 !important;
    border: 4px solid #cbd5e1 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 !important;
}

.form-check-input-xl:checked {
    background-color: #fbbf24 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.2) !important;
}

.form-check-input-xl:focus {
    border-color: #fbbf24 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.3) !important;
}

.form-check-input-xl:hover {
    border-color: #f59e0b !important;
    transform: scale(1.05) !important;
}

/* Animación de la bolita del switch XL */
.form-check-input-xl::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: calc(2.25rem - 8px) !important;
    height: calc(2.25rem - 8px) !important;
    background: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.form-check-input-xl:checked::after {
    transform: translateX(calc(4.5rem - 2.25rem)) !important;
    background: white !important;
}

/* Responsive específico para nueva estructura */
@media (max-width: 768px) {
    .search-section .d-flex.flex-column {
        gap: 1rem !important;
    }

    .search-section .btn {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.25rem !important;
    }
}
