/* ========================================
   MOBILE OPTIMIZATIONS - STRUCTURE & LIGHTNESS
   ======================================== */
@media (max-width: 900px) {

    /* Global Section Spacing & Structure - DEFINITIVE BALANCE */
    section,
    .experience,
    .transformation,
    .about,
    .locations,
    .treatments,
    .tourism,
    .mission-section,
    .options-section,
    .specs-section,
    .destination-section,
    .accommodation-section,
    .payment-section {
        padding: 6rem 0 !important;
        /* Unified spacing for rhythm */
        margin: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Header & Navigation Optimization */
    .header {
        padding: 0.8rem 0;
        backdrop-filter: blur(20px);
        background: rgba(5, 5, 5, 0.8);
    }

    .header .logo {
        font-size: 1.2rem;
    }

    .nav-cta {
        display: none !important;
        /* Hide CTA in header on mobile to avoid crowding */
    }

    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto;
    }

    /* Mobile Menu Overlay - Brutal & Precise */
    .mobile-menu-overlay {
        padding: 2rem;
    }

    .mobile-nav-link {
        font-size: 2.2rem;
        margin: 1rem 0;
        font-family: var(--font-heading);
        font-weight: 600;
        letter-spacing: -1px;
    }

    .mobile-lang-switcher {
        margin: 2rem 0;
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .mobile-lang-btn {
        padding: 0.6rem 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        color: #fff;
        font-size: 0.9rem;
    }

    .mobile-lang-btn.active {
        background: var(--color-gold-main);
        color: #000;
        border-color: var(--color-gold-main);
    }

    .menu-cta {
        width: 100%;
        max-width: none;
        margin-top: 1rem !important;
        font-size: 1.1rem;
    }

    /* Hero Optimization - Brutal Impact & Balanced */
    .hero {
        padding-top: 10rem !important;
        padding-bottom: 5rem !important;
        min-height: auto;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        z-index: 10;
        position: relative;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        padding-right: 0;
    }

    .hero h1 {
        font-size: 3.2rem !important;
        line-height: 0.95;
        margin-bottom: 1.5rem;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
        text-align: center;
        opacity: 0.7;
    }

    .hero-text {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
        text-align: center;
        line-height: 1.6;
    }

    .cta-group {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .cta-group .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 1.2rem 2rem;
        justify-content: center;
    }

    /* Tooth Positioning - Fixed Visibility & Impact */
    .hero-image-container {
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-top: 3rem;
        margin-bottom: -2rem;
        /* Pull text up towards it slightly */
        order: -1;
        /* Place tooth ABOVE the main title for mobile impact */
        display: flex;
        justify-content: center;
        pointer-events: auto;
        z-index: 5;
    }

    .hero-tooth {
        width: 75% !important;
        max-width: 320px;
        filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.4));
        animation: floatSmooth 5s ease-in-out infinite;
    }

    /* Experience & Cards Grid */
    .cards-grid,
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card,
    .treatment-card {
        padding: 3rem 2rem;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    /* Transformation Timeline - Brutal Vertical Flow */
    .timeline::before {
        left: 2rem;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 5rem;
        margin-bottom: 5rem;
        text-align: left !important;
    }

    .timeline-number {
        left: 0;
        top: 0;
        transform: none;
    }

    .timeline-icon {
        display: none;
        /* Hide icons on mobile for cleaner look */
    }

    .timeline-content {
        max-width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .timeline-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Global Headers Centering */
    .section-header,
    .locations .section-header {
        text-align: center !important;
        margin-bottom: 3rem;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .section-title,
    .location-title {
        font-size: 2.5rem !important;
        text-align: center;
    }

    .section-desc {
        text-align: center;
        font-size: 1rem;
        max-width: 100%;
    }

    /* Structural Order - Visual Cleanliness */
    .about-grid,
    .transformation-grid,
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    /* Force text below image for standard flow */
    .about-content,
    .transformation-content {
        order: 2;
        text-align: center;
    }

    .about-image,
    .transformation-image {
        order: 1;
        margin: 0 auto 2rem;
        max-width: 100%;
    }

    .feature-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .check-item {
        justify-content: center;
    }

    /* Locations Specific Clean-up */
    .locations-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .location-tab {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        width: calc(50% - 0.4rem);
        /* 2 per row */
    }

    .location-card {
        padding: 2.5rem 1.5rem;
    }

    /* -------------------------------------------
       DENTAL TOURISM PAGE SPECIFIC FIXES
       ------------------------------------------- */

    /* Dental Tourism Hero - ULTIMATE IPHONE STABILITY */
    .tourism-hero {
        margin-top: 0 !important;
        padding-top: 280px !important;
        /* Ultimate safety for ALL iPhone models & dynamic islands */
        padding-bottom: 10rem !important;
        min-height: 100vh !important;
        height: auto !important;
        background-image: url('../assets/img/fotosantamarta.jpg') !important;
        /* RE-DECLARE FOR ABSOLUTE SAFETY */
        background-attachment: scroll !important;
        /* MANDATORY FOR IPHONE VISIBILITY */
        background-position: center top !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        position: relative !important;
        z-index: 1 !important;
        overflow: visible !important;
    }

    .tourism-hero .hero-content {
        padding-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .tourism-hero .hero-title {
        font-size: 3.2rem !important;
        line-height: 1.0 !important;
        margin-bottom: 2rem !important;
        letter-spacing: -2px !important;
        text-shadow: 0 5px 20px rgba(0, 0, 0, 1) !important;
        text-transform: uppercase !important;
        color: #fff !important;
    }

    .header-row {
        display: none !important;
        /* Hide redundant grid headers on mobile */
    }

    .hero-badg {
        margin-bottom: 2rem;
        font-size: 0.75rem;
        padding: 0.6rem 1.5rem;
        background: rgba(197, 160, 89, 0.1);
        border: 1px solid var(--color-gold-main);
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
    }

    .mission-lead {
        font-size: 1.6rem;
        padding-left: 1.5rem;
    }

    /* Options Cards - Brutal Luxury & Glassmorphism */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 4rem;
        padding: 0 0.5rem;
    }

    .option-card {
        padding: 3rem 1.5rem;
        background: rgba(15, 15, 15, 0.8) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(197, 160, 89, 0.2) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .option-card.premium {
        transform: none !important;
        border: 1px solid var(--color-gold-main) !important;
        background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, rgba(5, 5, 5, 0.95) 100%) !important;
    }

    .card-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem;
    }

    .card-price-tag {
        font-size: 1.2rem;
        letter-spacing: 3px;
        background: var(--gradient-gold);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700;
    }

    /* Specs Grid - ULTIMATE BRUTAL CARDS */
    .specs-grid-container {
        display: block !important;
        width: 100% !important;
        margin-top: 4rem !important;
        background: transparent !important;
        border: none !important;
    }

    .specs-row {
        background: rgba(10, 10, 10, 0.95) !important;
        border: 2px solid rgba(197, 160, 89, 0.4) !important;
        border-radius: 12px !important;
        margin-bottom: 3.5rem !important;
        padding: 2.5rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7) !important;
        position: relative !important;
    }

    .specs-row .col-feature {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        color: var(--color-gold-main) !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 3px !important;
        border-bottom: 1px solid rgba(197, 160, 89, 0.3) !important;
        padding-bottom: 1.2rem !important;
        margin-bottom: 1rem !important;
        display: block !important;
        width: 100% !important;
    }

    .spec-col:not(.col-feature) {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1.2rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 1.15rem !important;
        color: #eee !important;
    }

    .spec-col:last-child {
        border-bottom: none !important;
    }

    .spec-col::before {
        content: attr(data-mobile-label) !important;
        font-weight: 700 !important;
        color: var(--color-gold-main) !important;
        font-size: 0.7rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        opacity: 0.8;
    }

    /* Price Card Highlight */
    .price-row {
        border: 2px solid var(--color-gold-main) !important;
        background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(0, 0, 0, 1)) !important;
    }

    .price-highlight,
    .price-standard {
        font-size: 2.2rem !important;
        color: var(--color-gold-main) !important;
        font-weight: 900 !important;
        text-align: right !important;
        font-family: var(--font-heading) !important;
    }

    /* Destination Section - IMPACT */
    .destination-section {
        padding: 8rem 0 !important;
        background-attachment: scroll !important;
        background-position: center !important;
        background-size: cover !important;
        z-index: 1 !important;
    }

    /* Destination Section - BRUTAL BACKGROUNDS */
    .destination-section::before {
        background-attachment: scroll !important;
        /* Fixed background fix */
        animation: none !important;
        /* Stability on mobile */
    }

    .destination-content {
        padding: 4rem 2rem !important;
        border: 3px solid var(--color-gold-main) !important;
        background: rgba(5, 5, 5, 0.9) !important;
        backdrop-filter: blur(20px) !important;
    }

    .destination-content .section-heading {
        font-size: 3rem !important;
        letter-spacing: -1px;
    }

    .accommodation-section {
        padding: 6rem 0 !important;
    }

    /* Accommodation Bento Grid - ABSOLUTE VISIBILITY FIX */
    .accommodation-section {
        padding: 6rem 0 !important;
        background: #000 !important;
    }

    .split-feature {
        display: flex !important;
        flex-direction: column !important;
        gap: 5rem !important;
    }

    .split-visual {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .bento-grid {
        display: block !important;
        /* Linear stack is safest for mobile photos */
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .bento-item {
        margin-bottom: 2rem !important;
        height: 350px !important;
        /* Large and clear */
        display: block !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        position: relative !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
        overflow: hidden !important;
    }

    .bento-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: brightness(1) contrast(1.1) !important;
    }

    .bento-overlay {
        display: none !important;
        /* Remove overlay to maximize clarity */
    }

    /* Payment Steps */
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    /* Payment Experience - Pure Luxury */
    .payment-section {
        padding: 6rem 0 !important;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pm-card {
        padding: 2.5rem 1.5rem;
        background: rgba(15, 15, 15, 0.9);
        border-left: 4px solid var(--color-gold-main);
        text-align: left;
    }
}