.hero-section {
    background-image: url('/barbell.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section p,
.hero-section i,
.hero-section .text-white,
.hero-section .text-white-50 {
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* Estilos para botones btn-light en hero section */
.hero-section .btn-light {
    color: #000000 !important;
}

.hero-section .btn-light i {
    color: #000000 !important;
}

.hero-section .btn-light:hover {
    color: #000000 !important;
}

.hero-section .btn-light:hover i {
    color: #000000 !important;
}

.hero-section .btn-light:active,
.hero-section .btn-light:focus {
    color: #000000 !important;
}

.hero-section .btn-light:active i,
.hero-section .btn-light:focus i {
    color: #000000 !important;
}

/* Estilos para iconos dentro de badges */
.hero-section .badge i {
    color: inherit !important;
}

/* Estilos para el buscador de categorías */
#searchCategories {
    border-radius: 0.375rem 0 0 0.375rem;
    font-size: 16px !important; /* Previene zoom en móviles */
}

#searchCategories:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ced4da !important;
    font-size: 16px !important; /* Mantiene el tamaño en focus */
}

#clearSearch {
    border-radius: 0 0.375rem 0.375rem 0;
}

.category-card {
    transition: all 0.3s ease;
}

.category-card.hidden {
    display: none !important;
}

.category-card.fade-in {
    animation: fadeInUp 0.3s ease-out;
}

/* Animación para mostrar/ocultar categorías */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para tarjetas de grupos de heats */
.grupo-heat-card {
    transition: all 0.3s ease;
}

/* Estilos para botón Ver Heats - compatibilidad iOS/Safari */
#btnVerHeats {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

/* Modales de heats - Pantalla completa con header y footer fijos */
#selectHeatGroupModal .modal-dialog,
#detalleHeatsModal .modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
}

#selectHeatGroupModal .modal-content,
#detalleHeatsModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    border: none;
}

#selectHeatGroupModal .modal-header,
#detalleHeatsModal .modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background-color: #fff;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#selectHeatGroupModal .modal-body,
#detalleHeatsModal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    padding-top: calc(70px + 1rem);
    padding-bottom: calc(70px + 1rem);
}

#selectHeatGroupModal .modal-footer,
#detalleHeatsModal .modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background-color: #fff;
    border-top: 2px solid #dee2e6;
    padding: 1rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    #selectHeatGroupModal .modal-header,
    #detalleHeatsModal .modal-header {
        padding: 0.75rem;
    }
    
    #selectHeatGroupModal .modal-body,
    #detalleHeatsModal .modal-body {
        padding: 0.75rem;
        padding-top: calc(60px + 0.75rem);
        padding-bottom: calc(60px + 0.75rem);
    }
    
    #selectHeatGroupModal .modal-footer,
    #detalleHeatsModal .modal-footer {
        padding: 0.75rem;
    }
}

/* Ajustes adicionales para dispositivos muy pequeños */
@media (max-width: 576px) {
    #selectHeatGroupModal .modal-title,
    #detalleHeatsModal .modal-title {
        font-size: 0.95rem;
    }
}

/* Prevenir zoom en Safari iOS cuando se abre el modal */
@supports (-webkit-touch-callout: none) {
    #selectHeatGroupModal,
    #detalleHeatsModal {
        -webkit-text-size-adjust: 100%;
    }
}

