/* ========================================
   OPTIMIZACIÓN MÓVIL GENzgolfx
   Comprime información y mejora navegación
   ======================================== */

/* RESET GENERAL PARA MÓVIL */
@media screen and (max-width: 768px) {
    
    /* === COMPRESIÓN GLOBAL === */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin: 0.5rem 0 !important;
    }
    
    h2 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin: 0.4rem 0 !important;
    }
    
    h3 {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin: 0.3rem 0 !important;
    }
    
    p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0.3rem 0 !important;
    }
    
    /* === HEADER COMPRIMIDO === */
    header {
        height: auto !important;
        min-height: unset !important;
        padding: 0.8rem 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: var(--black, #000) !important;
    }
    
    .hero-section {
        min-height: 50vh !important; /* Era 100vh */
        padding: 1.5rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .hero-content {
        padding: 1rem 0 !important;
        max-height: none !important;
    }
    
    /* === NAVEGACIÓN COMPACTA === */
    nav {
        padding: 0 !important;
    }
    
    nav ul {
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    nav a {
        padding: 0.5rem !important;
        font-size: 13px !important;
    }
    
    .logo {
        height: 35px !important;
        width: auto !important;
    }
    
    /* === BOTONES COMPACTOS === */
    .btn, button, .cta-button, a.btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 14px !important;
        margin: 0.3rem 0 !important;
        min-height: 40px !important;
    }
    
    /* === CARDS COMPACTAS === */
    .card, .ecosystem-card, .event-card, .course-card, .product-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
    }
    
    .card h3, .card-title {
        font-size: 16px !important;
        margin-bottom: 0.3rem !important;
    }
    
    .card p, .card-text {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    .card img {
        max-height: 150px !important;
        object-fit: cover !important;
    }
    
    /* === GRIDS COMPACTOS === */
    .grid, .ecosystem-grid, .cards-grid {
        gap: 0.8rem !important;
        grid-template-columns: 1fr !important;
    }
    
    /* === SECCIONES COMPACTAS === */
    section {
        padding: 2rem 1rem !important;
        margin: 0 !important;
    }
    
    .section-title {
        font-size: 22px !important;
        margin: 0 0 1rem 0 !important;
    }
    
    .section-subtitle {
        font-size: 14px !important;
        margin: 0 0 0.5rem 0 !important;
    }
    
    /* === ESPACIADOS REDUCIDOS === */
    .container, .content-wrapper {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* === FORMULARIOS COMPACTOS === */
    input, textarea, select {
        padding: 0.7rem !important;
        font-size: 14px !important;
        margin: 0.4rem 0 !important;
    }
    
    label {
        font-size: 13px !important;
        margin-bottom: 0.2rem !important;
    }
    
    .form-group {
        margin-bottom: 0.8rem !important;
    }
    
    /* === TABLAS RESPONSIVE === */
    table {
        font-size: 12px !important;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
    
    /* === IMÁGENES OPTIMIZADAS === */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .background-image {
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* === FOOTER COMPACTO === */
    footer {
        padding: 1.5rem 1rem !important;
    }
    
    .social-icons {
        gap: 1rem !important;
        margin: 0.8rem 0 !important;
    }
    
    .social-icons a {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* === MANIFESTO/VALORES COMPACTOS === */
    .manifesto-item, .value-card {
        padding: 0.8rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* === STATS/NÚMEROS COMPACTOS === */
    .stat-box, .metric-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .stat-number {
        font-size: 28px !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
    
    /* === CREW/TEAM COMPACTO === */
    .crew-profile, .team-member {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* === MODAL OPTIMIZADO === */
    .modal-content {
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
    
    /* === TABS/PESTAÑAS COMPACTAS === */
    .tabs {
        gap: 0.5rem !important;
    }
    
    .tab {
        padding: 0.5rem 1rem !important;
        font-size: 13px !important;
    }
    
    /* === BREADCRUMBS PEQUEÑOS === */
    .breadcrumb {
        font-size: 12px !important;
        padding: 0.5rem 0 !important;
    }
    
    /* === BADGES/ETIQUETAS PEQUEÑAS === */
    .badge, .tag, .label {
        padding: 0.2rem 0.5rem !important;
        font-size: 11px !important;
    }
    
    /* === ACCORDION COMPACTO === */
    .accordion-header {
        padding: 0.8rem !important;
        font-size: 14px !important;
    }
    
    .accordion-content {
        padding: 0.8rem !important;
    }
    
    /* === CALENDARIO COMPACTO === */
    .calendar-day {
        padding: 0.5rem !important;
        font-size: 12px !important;
    }
    
    /* === ELIMINAR ESPACIOS INNECESARIOS === */
    .spacer, .divider {
        margin: 0.5rem 0 !important;
        height: 1px !important;
    }
    
    br {
        display: none !important;
    }
    
    /* === ICONOS PROPORCIONADOS === */
    .icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* === MEJORA DE SCROLL === */
    html {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* === QUITAR SOMBRAS EXCESIVAS === */
    .card, .button, .modal {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* === HAMBURGER MENU OPTIMIZADO === */
    .hamburger {
        padding: 0.5rem !important;
    }
    
    .mobile-menu {
        padding: 1rem !important;
    }
    
    .mobile-menu a {
        padding: 0.8rem !important;
        font-size: 16px !important;
    }
    
    /* === FIXED BOTTOM NAVIGATION (si existe) === */
    .bottom-nav {
        height: 60px !important;
        padding: 0.5rem !important;
    }
    
    .bottom-nav-item {
        font-size: 11px !important;
    }
}

/* === EXTRA SMALL DEVICES (320px) === */
@media screen and (max-width: 375px) {
    body {
        font-size: 13px !important;
    }
    
    h1 {
        font-size: 22px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    .hero-section {
        min-height: 45vh !important;
        padding: 1rem !important;
    }
    
    section {
        padding: 1.5rem 0.8rem !important;
    }
}
