/* Estilos para la sección de Recursos - REDISEÑO MODERNO */

/* Resetear estilos base para la nueva sección - AJUSTE PARA NAVBAR FIJO */
#recursos {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding-top: 120px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
}

/* Asegurar espacio suficiente para el navbar fijo */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ajuste para secciones que pueden quedar ocultas bajo el navbar */
section {
    scroll-margin-top: 80px !important;
}

/* Ajuste para enlaces de anclaje */
[id]:target {
    scroll-margin-top: 80px !important;
}

/* Header moderno */
#recursos h1, #recursos h2 {
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3) !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    position: relative !important;
}

#recursos h1::after, #recursos h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #17a2b8, #20c997) !important;
    border-radius: 2px !important;
}

/* Título específico para sección de videos */
.video-section-title {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    position: relative !important;
}

.video-section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #17a2b8, #20c997) !important;
    border-radius: 2px !important;
}

/* Cards modernas */
.resource-card, .video-card, .tool-card {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

.resource-card:hover, .video-card:hover, .tool-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* List group items - estilos antiguos deshabilitados */
#recursos .list-group-item {
    border: 1px solid rgba(255,255,255,0.2) !important;
    margin-bottom: 10px;
    border-radius: 1rem !important;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px) !important;
}

#recursos .list-group-item:hover {
    background-color: rgba(255,255,255,1) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Cards antiguas deshabilitadas */
#recursos .card {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 1rem !important;
}

#recursos .card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Animaciones flotantes */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.floating-shape {
    animation: float 6s ease-in-out infinite !important;
}

/* Cursor pointer */
.cursor-pointer {
    cursor: pointer !important;
}

/* Botones de favoritos */
.favorite-btn {
    border: none !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.favorite-btn:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    transform: scale(1.1) !important;
}

.favorite-btn.text-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

/* Filtros modernos */
.nav-pills .nav-link {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.nav-pills .nav-link:hover {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.nav-pills .nav-link.active {
    background: rgba(255,255,255,0.9) !important;
    color: #000 !important;
}

/* Barra de búsqueda moderna */
.search-container .input-group {
    border-radius: 25px !important;
    overflow: hidden;
    backdrop-filter: blur(15px) !important;
    background: rgba(255,255,255,0.95) !important;
}

.search-container:hover .input-group {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Video carousel moderno - DISEÑO HORIZONTAL COMPACTO */
#videoCarousel {
    overflow: visible !important;
}

.video-item {
    transition: all 0.3s ease !important;
    margin-bottom: 1rem !important;
}

.video-item .card {
    transition: all 0.3s ease !important;
    height: 100% !important;
    min-height: 420px !important;
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.video-item .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    border-color: rgba(23, 162, 184, 0.3) !important;
}

/* Video embed con mejor altura para previsualización */
.video-item .ratio {
    min-height: 220px !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    overflow: hidden !important;
}

.video-item .card:hover .ratio iframe {
    transform: scale(1.03) !important;
    transition: transform 0.3s ease !important;
}

/* Mejor proporción para el video embed */
.video-item .ratio-16x9 {
    --bs-aspect-ratio: 56.25% !important;
    min-height: 220px !important;
}

/* Contenido de la tarjeta optimizado */
.video-item .card-body {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
}

.video-item .card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    color: #17a2b8 !important;
}

.video-item .card-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #6c757d !important;
    margin-bottom: 0.75rem !important;
}

/* Badges y botones compactos */
.video-item .badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
}

.video-item .btn-sm {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 15px !important;
}

/* Responsive para el diseño mejorado */
@media (max-width: 767px) {
    /* Móviles: tarjetas más altas para mejor previsualización */
    .video-item .card {
        min-height: 380px !important;
    }
    
    .video-item .ratio {
        min-height: 200px !important;
    }
    
    .video-item .ratio-16x9 {
        min-height: 200px !important;
    }
    
    .video-item .card-body {
        padding: 1rem !important;
    }
    
    .video-item .card-title {
        font-size: 1rem !important;
    }
    
    .video-item .card-text {
        font-size: 0.85rem !important;
    }
    
    /* Título responsivo en móviles */
    #recursos h1, #recursos h2, .video-section-title {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 768px) {
    /* Tablets y desktop: diseño horizontal completo */
    .video-item .row {
        align-items: center !important;
    }
}

/* Efectos de hover mejorados */
.video-item:hover {
    z-index: 10;
}

.video-item .card:hover .ratio iframe {
    transform: scale(1.02) !important;
    transition: transform 0.3s ease !important;
}

/* Animaciones de entrada */
.video-item.aos-animate {
    animation: slideInUp 0.6s ease-out;
}

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

/* Responsive moderno */
@media (max-width: 768px) {
    .resource-card, .video-card, .tool-card {
        margin-bottom: 1.5rem !important;
    }
    
    .section-header .d-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .icon-container {
        margin-bottom: 1rem !important;
    }
    
    .search-container .input-group-lg {
        border-radius: 15px !important;
    }
    
    .filter-tabs .nav {
        justify-content: center !important;
    }
}

/* Badges modernos */
.badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Efectos de aparición */
.resource-card, .video-card, .tool-card {
    animation: fadeInUp 0.6s ease forwards !important;
}

@keyframes fadeInUp {
    0% {
        opacity: 0.3;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desactivar estilos antiguos que causan conflicto */
.list-group-item:hover {
    background-color: rgba(255,255,255,1) !important;
    text-decoration: none !important;
}

/* Stats modernas */
.stats-container .text-center {
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 1rem !important;
}

/* Footer genérico comentado para no interferir con footer-premium-section */
/*
footer {
    border-top: 4px solid #f9f9f9;
    margin-top: 0rem;
}
*/

/* ============================================================================== */
/* FOOTER PREMIUM - EXACTAMENTE IGUAL AL INDEX.PHP */
/* ============================================================================== */

/* Footer Premium Base */
.footer-premium-section {
    background: linear-gradient(135deg, #0c1426 0%, #1a2332 25%, #2d3748 50%, #1a2332 75%, #0c1426 100%);
    color: white;
    padding: 5rem 0 2rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0rem;
}

/* Background Effects */
.footer-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(23, 162, 184, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(40, 167, 69, 0.06) 0%, transparent 50%);
    animation: bgGradientMove 20s ease-in-out infinite;
}

@keyframes bgGradientMove {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    animation: particlesMove 40s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-550px, 0); }
}

.footer-wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.05), rgba(23, 162, 184, 0.05));
    clip-path: polygon(0 50%, 100% 80%, 100% 100%, 0% 100%);
}

.footer-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Brand Section Premium */
.footer-brand-section {
    padding-right: 1rem;
}

.brand-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.logo-glow-wrapper {
    position: relative;
}

.footer-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.5));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8));
}

.logo-glow-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid;
    border-image: linear-gradient(45deg, #007bff, #17a2b8, #28a745, #ffc107) 1;
    border-radius: 50%;
    opacity: 0.5;
    animation: logoRingRotate 4s linear infinite;
}

@keyframes logoRingRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-text {
    flex: 1;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #17a2b8;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    font-style: italic;
}

.brand-description p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.highlight-text {
    color: #17a2b8;
    font-weight: 600;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, currentColor, transparent);
    opacity: 0.6;
}

/* Social Media Premium */
.social-media-premium {
    margin-top: 2rem;
}

.social-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateX(8px);
    color: white;
    text-decoration: none;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(253, 29, 29, 0.2));
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.2);
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
}

.social-link.email:hover {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.social-icon-wrapper i {
    font-size: 1.2rem;
    z-index: 2;
}

.icon-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.social-link:hover .icon-ripple {
    width: 60px;
    height: 60px;
}

.social-label {
    font-weight: 500;
    flex: 1;
}

/* Footer Links Section */
.footer-links-section {
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #17a2b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-title {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.3rem;
    flex: 1;
}

.title-underline {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #17a2b8);
    border-radius: 2px;
    margin-left: auto;
}

.quick-links-grid {
    display: grid;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-link:hover {
    color: white;
    text-decoration: none;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    width: 35px;
    height: 35px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17a2b8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-link:hover .link-icon {
    background: rgba(0, 123, 255, 0.3);
    transform: scale(1.1);
}

.link-text {
    flex: 1;
    font-weight: 500;
}

.link-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.quick-link:hover .link-arrow {
    color: #17a2b8;
    transform: translateX(3px);
}

/* Contact Section Premium */
.footer-contact-section {
    padding-left: 1rem;
}

.contact-info-premium {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #17a2b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.icon-pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: contactPulse 2s ease-in-out infinite;
}

@keyframes contactPulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

.contact-value:hover {
    color: #17a2b8;
    text-decoration: none;
}

.location-link:hover {
    color: #28a745;
}

.phone-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.call-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
}

.phone-link:hover .call-indicator {
    opacity: 1;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.days {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.hours {
    color: #17a2b8;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(40, 167, 69, 0.2);
    color: #20c997;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.open i {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Footer Separator */
.footer-separator {
    margin: 4rem 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.separator-diamond {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #007bff, #17a2b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    animation: diamondSpin 8s linear infinite;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

@keyframes diamondSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
}

.copyright-info {
    text-align: center;
}

.copyright-main {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.copyright-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.legal-link:hover {
    color: #17a2b8;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-premium-section {
        padding: 4rem 0 2rem 0;
    }
    
    .brand-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand-section,
    .footer-links-section,
    .footer-contact-section {
        padding: 0;
    }
    
    .social-links {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-separator {
        margin: 3rem 0 1.5rem 0;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .schedule-row {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
}

/* Estilos adicionales para estados de negocio */
.status-badge.closed {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.status-badge.opening-soon {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.status-badge.open {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #20c997 !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

/* Overflow fixes mantenidos */
body {
    overflow-x: hidden;
}

img, iframe, .container, .row {
    max-width: 100%;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.card, .container, .row {
    max-width: 100%;
    overflow: hidden;
}

/* Evitar el desbordamiento horizontal */
body {
    overflow-x: hidden;
}

/* Asegurar que las imágenes y otros elementos no excedan el ancho de la pantalla */
img, iframe, .container, .row {
    max-width: 100%;
    box-sizing: border-box;
}

/* Solución para elementos que causan desbordamiento */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Asegurar que las filas no excedan el ancho */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Asegurar que las tarjetas y otros elementos no se desborden */
.card, .container, .row {
    max-width: 100%;
    overflow: hidden;
}

/* ===== Fix overflow horizontal en móviles ===== */

/* Quitar ancho fijo en tarjetas del carrusel */
#servicios-carousel .card {
    width: 100%;
    max-width: 300px;
}

/* Corregir el ancho de columnas en el carrusel */
#servicios-carousel > .col-12,
#servicios-carousel > .col-sm-6,
#servicios-carousel > .col-md-6,
#servicios-carousel > .col-lg-3 {
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* Evitar que paddings + gaps sumen scroll extra */
#servicios-carousel {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 1rem; /* mantener espacio entre tarjetas */
}

/* Seguridad extra */
html, body {
    overflow-x: hidden !important;
}


/* En móviles: 1 tarjeta por fila */
@media (max-width: 767px) {
  #servicios-carousel > .col-12,
  #servicios-carousel > .col-sm-6,
  #servicios-carousel > .col-md-6,
  #servicios-carousel > .col-lg-3 {
      min-width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
  }
}

/* En tablets: 2 tarjetas por fila */
@media (min-width: 768px) and (max-width: 991px) {
  #servicios-carousel > .col-12,
  #servicios-carousel > .col-sm-6,
  #servicios-carousel > .col-md-6,
  #servicios-carousel > .col-lg-3 {
      min-width: 50% !important;
      max-width: 50% !important;
      flex: 0 0 50% !important;
  }
}

/* En escritorio: 3 o 4 tarjetas por fila */
@media (min-width: 992px) {
  #servicios-carousel > .col-12,
  #servicios-carousel > .col-sm-6,
  #servicios-carousel > .col-md-6,
  #servicios-carousel > .col-lg-3 {
      min-width: 25% !important;
      max-width: 25% !important;
      flex: 0 0 25% !important;
  }
}

.search-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(13, 202, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 202, 240, 0); }
}

/* Navegación de secciones - MEJORADA PARA VISIBILIDAD */
.section-navigation {
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.nav-section-btn {
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px !important;
    padding: 0.75rem !important;
    font-weight: 500 !important;
}

.nav-section-btn i {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
}

.nav-section-btn small {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.75rem !important;
    margin-top: 0.25rem !important;
}

.nav-section-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.8) !important;
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 30px rgba(255,255,255,0.2) !important;
    text-decoration: none !important;
    animation: pulseHover 1.5s ease-in-out infinite !important;
}

.nav-section-btn:hover i {
    transform: scale(1.2) rotate(5deg) !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    animation: iconBounce 0.6s ease-out !important;
}

.nav-section-btn:hover small {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    transform: translateY(-2px) !important;
}

.nav-section-btn:hover::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(45deg, rgba(23,162,184,0.2), rgba(255,255,255,0.1)) !important;
    border-radius: inherit !important;
    z-index: -1 !important;
    animation: gradientShift 2s ease-in-out infinite !important;
}

.nav-section-btn.active {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    border-color: rgba(255,255,255,0.9) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
}

.nav-section-btn.active small {
    color: #666 !important;
}

.nav-section-btn.active i {
    filter: brightness(0.8) !important;
}

/* Indicador de progreso - MEJORADO */
.progress-indicator {
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.progress-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.4) !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    position: relative !important;
}

.progress-dot::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease !important;
}

.progress-dot.active {
    background: rgba(23, 162, 184, 0.9) !important;
    border-color: rgba(23, 162, 184, 1) !important;
    box-shadow: 0 0 20px rgba(23, 162, 184, 0.7) !important;
    transform: scale(1.3) !important;
}

.progress-dot.active::before {
    background: white !important;
    width: 8px !important;
    height: 8px !important;
}

.progress-dot:hover {
    background: rgba(255,255,255,0.8) !important;
    border-color: rgba(255,255,255,1) !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 25px rgba(255,255,255,0.6), 0 0 40px rgba(23,162,184,0.4) !important;
    animation: dotPulse 1s ease-in-out infinite !important;
}

.progress-dot:hover::before {
    background: rgba(23,162,184,1) !important;
    width: 10px !important;
    height: 10px !important;
    animation: innerGlow 1.2s ease-in-out infinite !important;
}

.progress-dot:hover::after {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    right: -8px !important;
    bottom: -8px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    animation: rippleEffect 2s ease-out infinite !important;
}

/* Efectos hover para tarjetas de tienda */
#tienda-section .card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
}

/* Animaciones para efectos hover */
@keyframes pulseHover {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 30px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.3);
    }
}

@keyframes iconBounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(1.3) rotate(10deg);
    }
    70% {
        transform: scale(1.1) rotate(-5deg);
    }
    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(45deg, rgba(23,162,184,0.2), rgba(255,255,255,0.1));
    }
    50% {
        background: linear-gradient(45deg, rgba(255,255,255,0.15), rgba(23,162,184,0.25));
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(1.6);
    }
}

@keyframes innerGlow {
    0%, 100% {
        background: rgba(23,162,184,1);
        box-shadow: 0 0 10px rgba(23,162,184,0.8);
    }
    50% {
        background: rgba(255,255,255,1);
        box-shadow: 0 0 15px rgba(255,255,255,0.9);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes floatingGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(23,162,184,0.6));
        transform: translateY(0px);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
        transform: translateY(-3px);
    }
}

/* Efecto hover para el contenedor principal */
.section-navigation:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    background: rgba(255,255,255,0.2) !important;
    animation: floatingGlow 3s ease-in-out infinite !important;
}

/* Efectos adicionales para estados activos */
.nav-section-btn.active:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(23,162,184,0.1)) !important;
    color: #333 !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 2px 10px rgba(23,162,184,0.2) !important;
}

.nav-section-btn.active:hover i {
    color: #17a2b8 !important;
    transform: scale(1.3) rotate(10deg) !important;
    filter: drop-shadow(0 4px 12px rgba(23,162,184,0.5)) !important;
}

/* Efectos hover para móviles */
@media (hover: none) and (pointer: coarse) {
    .nav-section-btn:active {
        background: rgba(255,255,255,0.3) !important;
        transform: scale(0.98) !important;
        transition: all 0.1s ease !important;
    }
    
    .progress-dot:active {
        transform: scale(1.2) !important;
        transition: all 0.1s ease !important;
    }
}

/* Animaciones adicionales para mejor UX */
.nav-section-btn {
    position: relative !important;
    overflow: hidden !important;
}

.nav-section-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    transition: all 0.6s ease !important;
    transform: translate(-50%, -50%) !important;
    z-index: 0 !important;
}

.nav-section-btn:hover::after {
    width: 200% !important;
    height: 200% !important;
}

.nav-section-btn > * {
    position: relative !important;
    z-index: 1 !important;
}

/* Responsive para navegación - MEJORADO */
@media (max-width: 768px) {
    .section-navigation {
        padding: 1rem !important;
        margin: 0 1rem !important;
    }
    
    .section-navigation .row {
        gap: 0.75rem !important;
    }
    
    .nav-section-btn {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
        min-height: 70px !important;
    }
    
    .nav-section-btn i {
        font-size: 1.2rem !important;
    }
    
    .progress-indicator {
        margin-top: 1.5rem !important;
    }
    
    .progress-dot {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Reducir efectos hover en móviles para mejor rendimiento */
    .nav-section-btn:hover {
        animation: none !important;
    }
    
    .section-navigation:hover {
        animation: none !important;
    }
}

/* Asegurar visibilidad en todos los dispositivos */
@media (max-width: 576px) {
    .nav-section-btn {
        min-height: 60px !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    .nav-section-btn span {
        font-size: 0.8rem !important;
    }
    
    .nav-section-btn small {
        font-size: 0.65rem !important;
    }
}

/* Efectos hover para el Navbar Principal - SIEMPRE FIJO */

/* Navbar más transparente */
.navbar {
    background: rgba(108, 117, 125, 0.3) !important; /* Muy transparente */
    backdrop-filter: blur(10px) !important;
}





.navbar {
    background: rgba(255, 255, 255, 0.1) !important; /* Casi transparente */
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Mantener transparencia constante */
.navbar.scrolled {
    background: rgba(108, 117, 125, 0.5) !important; /* Misma transparencia */
    backdrop-filter: blur(10px) !important; /* Solo aumentar el blur */
}
.navbar {
    transition: all 0.4s ease !important;
    backdrop-filter: blur(6px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    transform: translateY(0) !important;
}

.navbar:hover {
    backdrop-filter: blur(10px) !important;
    background: rgba(108, 117, 125, 0.85) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    transform: translateY(0) !important;
}

/* Efectos hover para el logo */
.navbar-brand {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.navbar-brand:hover {
    transform: scale(1.05) !important;
    text-decoration: none !important;
}

.navbar-brand:hover span:first-child {
    animation: logoSpin 0.6s ease-out !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3) !important;
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
}

.navbar-brand:hover .text-info {
    color: #20c997 !important;
    text-shadow: 0 2px 10px rgba(32, 201, 151, 0.4) !important;
    animation: textGlow 1.5s ease-in-out infinite !important;
}

.navbar-brand img {
    transition: all 0.3s ease !important;
}

.navbar-brand:hover img {
    transform: rotate(360deg) scale(1.1) !important;
    filter: drop-shadow(0 4px 8px rgba(23, 162, 184, 0.3)) !important;
}

/* Efectos hover para los nav-links */
.nav-link {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
}

.nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: all 0.6s ease !important;
    z-index: 1 !important;
}

.nav-link:hover::before {
    left: 100% !important;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
    text-decoration: none !important;
}

.nav-link:hover i {
    transform: scale(1.2) translateY(-1px) !important;
    color: #17a2b8 !important;
    filter: drop-shadow(0 2px 4px rgba(23, 162, 184, 0.5)) !important;
    animation: iconFloat 2s ease-in-out infinite !important;
}

.nav-link:hover span {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Efectos hover para el botón de ayuda */
.btn-info {
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

.btn-info::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.6s ease !important;
    z-index: 0 !important;
}

.btn-info:hover::before {
    width: 300% !important;
    height: 300% !important;
}

.btn-info:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(23, 162, 184, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-info:hover i {
    animation: helpIconBounce 0.8s ease-out !important;
    color: white !important;
}

/* Menú Hamburguesa ELEGANTE Y MODERNO - SOLO MÓVILES */
.elegant-toggler {
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Ocultar completamente en desktop */
@media (min-width: 992px) {
    .elegant-toggler {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Solo mostrar en tablets y móviles */
@media (max-width: 991px) {
    .elegant-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.elegant-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.3) !important;
}

.hamburger-container {
    position: relative !important;
    width: 24px !important;
    height: 18px !important;
    transform: rotate(0deg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hamburger-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.hamburger-line {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 1px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.hamburger-line-1 {
    top: 0 !important;
}

.hamburger-line-2 {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.hamburger-line-3 {
    bottom: 0 !important;
}

/* Efectos Hover del menú hamburguesa */
.elegant-toggler:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(23, 162, 184, 0.5) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 20px rgba(23, 162, 184, 0.2) !important;
}

.elegant-toggler:hover .hamburger-line {
    background: #17a2b8 !important;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5) !important;
}

.elegant-toggler:hover .hamburger-line-1 {
    animation: lineFloat1 2s ease-in-out infinite !important;
}

.elegant-toggler:hover .hamburger-line-2 {
    animation: lineFloat2 2s ease-in-out infinite 0.2s !important;
}

.elegant-toggler:hover .hamburger-line-3 {
    animation: lineFloat3 2s ease-in-out infinite 0.4s !important;
}

/* Estado ACTIVO (menú abierto) */
.elegant-toggler[aria-expanded="true"] {
    background: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.elegant-toggler[aria-expanded="true"] .hamburger-container {
    transform: rotate(180deg) !important;
}

.elegant-toggler[aria-expanded="true"] .hamburger-line-1 {
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    background: #dc3545 !important;
    width: 20px !important;
    left: 2px !important;
}

.elegant-toggler[aria-expanded="true"] .hamburger-line-2 {
    opacity: 0 !important;
    transform: translateY(-50%) scale(0) !important;
}

.elegant-toggler[aria-expanded="true"] .hamburger-line-3 {
    top: 50% !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    background: #dc3545 !important;
    width: 20px !important;
    left: 2px !important;
}

/* Efecto de pulso cuando está activo */
.elegant-toggler[aria-expanded="true"]:hover {
    animation: togglerPulse 1.5s ease-in-out infinite !important;
}

/* Animaciones keyframes para el menú hamburguesa */
@keyframes lineFloat1 {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(-1px) scaleX(1.1); }
}

@keyframes lineFloat2 {
    0%, 100% { transform: translateY(-50%) scaleX(1); }
    50% { transform: translateY(-50%) scaleX(0.9); }
}

@keyframes lineFloat3 {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(1px) scaleX(1.1); }
}

@keyframes togglerPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 8px rgba(220, 53, 69, 0.1);
    }
}

/* Efectos especiales en mobile */
@media (max-width: 991px) {
    .elegant-toggler {
        width: 44px !important;
        height: 44px !important;
    }
    
    .hamburger-container {
        width: 20px !important;
        height: 15px !important;
    }
    
    /* Vibración sutil en touch */
    .elegant-toggler:active {
        animation: mobileVibration 0.3s ease-out !important;
    }
}

@keyframes mobileVibration {
    0%, 100% { transform: scale(1.05) translateX(0); }
    25% { transform: scale(1.05) translateX(-1px); }
    75% { transform: scale(1.05) translateX(1px); }
}

/* Separador vertical hover */
.vr {
    transition: all 0.3s ease !important;
}

.navbar:hover .vr {
    background: linear-gradient(to bottom, transparent, #17a2b8, transparent) !important;
    opacity: 0.8 !important;
    animation: separatorGlow 2s ease-in-out infinite !important;
}

/* Animaciones keyframes para el navbar */
@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(32, 201, 151, 0.4);
    }
    50% {
        text-shadow: 0 2px 20px rgba(32, 201, 151, 0.8);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: scale(1.2) translateY(-1px);
    }
    50% {
        transform: scale(1.3) translateY(-3px);
    }
}

@keyframes helpIconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes separatorGlow {
    0%, 100% {
        opacity: 0.5;
        filter: blur(1px);
    }
    50% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* Asegurar que el navbar siempre esté fijo */
.navbar-fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    transform: translateY(0) !important;
}

/* Asegurar que el menú desktop funcione correctamente */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: static !important;
        overflow: visible !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .nav-item {
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .nav-link {
        border-radius: 0.375rem !important;
        margin: 0 !important;
        padding: 0.5rem 0.75rem !important;
        background: transparent !important;
        border: 1px solid transparent !important;
    }
}

/* Responsive para navbar - MENU ELEGANTE */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(108, 117, 125, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 0 20px 20px !important;
        margin-top: 15px !important;
        padding: 20px !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .navbar-collapse::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(23,162,184,0.1), transparent) !important;
        transition: all 0.8s ease !important;
    }
    
    .navbar-collapse.show::before {
        left: 100% !important;
    }
    
    .navbar-nav {
        gap: 8px !important;
    }
    
    .nav-item {
        opacity: 0 !important;
        transform: translateX(-30px) !important;
        transition: all 0.4s ease !important;
    }
    
    .navbar-collapse.show .nav-item {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .navbar-collapse.show .nav-item:nth-child(1) {
        transition-delay: 0.1s !important;
    }
    
    .navbar-collapse.show .nav-item:nth-child(2) {
        transition-delay: 0.15s !important;
    }
    
    .navbar-collapse.show .nav-item:nth-child(3) {
        transition-delay: 0.2s !important;
    }
    
    .navbar-collapse.show .nav-item:nth-child(4) {
        transition-delay: 0.25s !important;
    }
    
    .nav-link {
        border-radius: 12px !important;
        margin: 4px 0 !important;
        padding: 12px 16px !important;
        background: rgba(255,255,255,0.05) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .nav-link:hover {
        transform: translateX(15px) scale(1.02) !important;
        background: rgba(23, 162, 184, 0.2) !important;
        border-color: rgba(23, 162, 184, 0.4) !important;
        box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
    }
    
    .nav-link i {
        transition: all 0.3s ease !important;
        margin-right: 12px !important;
    }
    
    .nav-link:hover i {
        transform: scale(1.2) rotate(10deg) !important;
        color: #17a2b8 !important;
    }
    
    .btn-info {
        margin-top: 15px !important;
        border-radius: 25px !important;
        padding: 12px 24px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .btn-info::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 0 !important;
        height: 0 !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 50% !important;
        transform: translate(-50%, -50%) !important;
        transition: all 0.6s ease !important;
    }
    
    .btn-info:hover::before {
        width: 300% !important;
        height: 300% !important;
    }
    
    /* Reducir animaciones en móviles */
    .navbar-brand:hover span:first-child {
        animation: none !important;
    }
    
    .navbar-brand:hover img {
        animation: none !important;
    }
    
    /* Asegurar que el navbar móvil esté siempre fijo */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        transform: translateY(0) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    /* Efectos touch para móviles - NAVBAR SIEMPRE FIJO */
    .nav-link:active {
        transform: scale(0.95) !important;
        background: rgba(23, 162, 184, 0.3) !important;
    }
    
    .btn-info:active {
        transform: scale(0.98) !important;
    }
    
    /* Asegurar posición fija en touch devices */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}


/* ============================================================================== */
/* BOTÓN BACK TO TOP ELEGANTE Y MODERNO */
/* ============================================================================== */

.back-to-top-elegant {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1060 !important;
    transition: all 0.4s ease !important;
}

.btn-back-elegant {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3), 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: scale(0.9) !important;
    opacity: 0.9 !important;
}

.btn-back-elegant:hover {
    transform: scale(1) translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(23, 162, 184, 0.4), 0 8px 20px rgba(0,0,0,0.3) !important;
    background: linear-gradient(135deg, #20c997, #17a2b8) !important;
    opacity: 1 !important;
}

.btn-back-elegant:active {
    transform: scale(0.95) translateY(-1px) !important;
    transition: all 0.1s ease !important;
}

/* Inner container */
.btn-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Progress ring */
.progress-ring {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg) !important;
}

.progress-svg {
    width: 100% !important;
    height: 100% !important;
}

.progress-circle-bg {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.2) !important;
    stroke-width: 2 !important;
}

.progress-circle {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.8) !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 150.8 !important;
    stroke-dashoffset: 150.8 !important;
    transition: stroke-dashoffset 0.1s ease !important;
}

/* Arrow icon */
.arrow-container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.arrow-icon {
    font-size: 1.2rem !important;
    color: white !important;
    transition: all 0.3s ease !important;
    font-weight: bold !important;
}

.btn-back-elegant:hover .arrow-icon {
    transform: translateY(-2px) scale(1.1) !important;
    animation: arrowBounce 1.5s ease-in-out infinite !important;
}

/* Pulse ring effect */
.pulse-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: rgba(23, 162, 184, 0.3) !important;
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 0 !important;
    transition: all 0.6s ease !important;
}

.btn-back-elegant:hover .pulse-ring {
    transform: translate(-50%, -50%) scale(1.8) !important;
    opacity: 0.3 !important;
    animation: pulseExpand 2s ease-out infinite !important;
}

/* Tooltip */
.btn-tooltip {
    position: absolute !important;
    right: 70px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    backdrop-filter: blur(10px) !important;
}

.btn-tooltip::after {
    content: '' !important;
    position: absolute !important;
    left: 100% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border: 6px solid transparent !important;
    border-left-color: rgba(0, 0, 0, 0.8) !important;
}

.btn-back-elegant:hover .btn-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(-10px) !important;
}

/* Animaciones para Back to Top */
@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(-2px) scale(1.1);
    }
    50% {
        transform: translateY(-5px) scale(1.15);
    }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 0.9;
        transform: translateY(0) scale(0.9);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 0.9;
        transform: translateY(0) scale(0.9);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
}

/* Estados de animación */
.back-to-top-elegant.showing {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.back-to-top-elegant.hiding {
    animation: fadeOutDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* Responsive para Back to Top */
@media (max-width: 768px) {
    .back-to-top-elegant {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .btn-back-elegant {
        width: 48px !important;
        height: 48px !important;
        transform: scale(0.85) !important;
    }
    
    .btn-back-elegant:hover {
        transform: scale(0.95) translateY(-2px) !important;
    }
    
    .btn-tooltip {
        display: none !important;
    }
    
    .progress-ring {
        width: 48px !important;
        height: 48px !important;
    }
    
    .progress-svg {
        width: 48px !important;
        height: 48px !important;
    }
    
    .pulse-ring {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Estados especiales */
.btn-back-elegant.reaching-top {
    animation: reachingTop 0.8s ease-out !important;
}

@keyframes reachingTop {
    0% {
        transform: scale(0.9);
        background: linear-gradient(135deg, #17a2b8, #138496);
    }
    50% {
        transform: scale(1.1);
        background: linear-gradient(135deg, #28a745, #20c997);
    }
    100% {
        transform: scale(0.9);
        background: linear-gradient(135deg, #17a2b8, #138496);
    }
}
