/* --- Lighter iOS Variables --- */
:root {
    --ios-blue: #0A57A4;
    --spain-red: #E61A22;
    --spain-yellow: #FFD700;
    --wa-green: #25D366;
    
    /* FROSTED WHITE GLASS */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* THE MAGIC FIX FOR SMOOTH SCROLLING MENU LINKS */
html {
    scroll-behavior: smooth;
}

body { background-color: #000; color: var(--text-main); overflow-x: hidden; }

/* --- VIBRANT IOS WALLPAPER (ANIMATED MESH) --- */
/* --- VIBRANT IOS WALLPAPER (ANIMATED MESH) --- */
.ios-wallpaper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; background: #061933; overflow: hidden; transform: translateZ(0);
}

.orb { 
    position: absolute; border-radius: 50%; 
    filter: blur(120px); opacity: 0.8; 
    will-change: transform; 
}

/* Sped up to 8s, 12s, and 10s so you can clearly see the movement */
.orb-blue { 
    width: 80vw; height: 80vw; background: var(--ios-blue); 
    top: -20%; left: -10%; 
    animation: orb-drift-1 8s ease-in-out infinite alternate; 
}
.orb-red { 
    width: 60vw; height: 60vw; background: var(--spain-red); 
    bottom: -10%; right: -10%; opacity: 0.6; 
    animation: orb-drift-2 12s ease-in-out infinite alternate; 
}
.orb-yellow { 
    width: 50vw; height: 50vw; background: var(--spain-yellow); 
    top: 30%; left: 40%; opacity: 0.5; 
    animation: orb-drift-3 10s ease-in-out infinite alternate; 
}

/* Increased the movement distance dramatically and used translate3d for GPU boosting */
@keyframes orb-drift-1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(15vw, 15vh, 0) scale(1.1); }
    100% { transform: translate3d(-10vw, -10vh, 0) scale(0.9); }
}
@keyframes orb-drift-2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-15vw, -10vh, 0) scale(1.15); }
    100% { transform: translate3d(15vw, 15vh, 0) scale(0.85); }
}
@keyframes orb-drift-3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20vw, -15vh, 0) scale(0.8); }
    100% { transform: translate3d(-15vw, 10vh, 0) scale(1.2); }
}   

/* --- THE APPLE GLASS CLASS --- */
.ios-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transform: translateZ(0);
}

/* --- DESKTOP LAYOUT --- */
.app-container { display: flex; max-width: 1400px; margin: 0 auto; padding: 40px 20px; gap: 40px; }

/* Floating Left Sidebar */
.floating-nav {
    width: 260px; height: calc(100vh - 80px);
    position: sticky; top: 40px; border-radius: 32px;
    display: flex; flex-direction: column; padding: 30px 20px;
}

.brand-logo { text-align: center; margin-bottom: 40px; }
.logo-img { width: 100%; max-width: 120px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }

.nav-links { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nav-links a {
    display: flex; align-items: center; gap: 15px;
    color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1.1rem;
    padding: 12px 20px; border-radius: 20px; transition: all 0.2s;
}
.nav-links a .icon { width: 22px; height: 22px; }
.nav-links a:hover, .nav-links a.active { background: var(--glass-highlight); font-weight: 600; }

.nav-links a.wa-link { color: var(--wa-green); }
.nav-links a.wa-link:hover { background: rgba(37, 211, 102, 0.15); box-shadow: 0 0 15px rgba(37, 211, 102, 0.3); }

.nav-action { margin-top: auto; }

/* --- BUTTONS --- */
.btn-primary { display: block; text-align: center; background: #FFFFFF; color: #000000; text-decoration: none; padding: 14px; border-radius: 20px; font-weight: 600; }
.btn-primary-large { display: inline-block; text-align: center; background: #FFFFFF; color: #000000; text-decoration: none; padding: 18px 40px; border-radius: 30px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: transform 0.2s; }
.btn-primary-large:hover { transform: scale(1.02); }
.btn-glass-action { display: block; text-align: center; background: rgba(255,255,255,0.2); color: white; text-decoration: none; padding: 14px; border-radius: 20px; font-weight: 600; border: 1px solid rgba(255,255,255,0.4); transition: background 0.2s; }
.btn-glass-action:hover { background: rgba(255,255,255,0.3); }

/* --- MAIN CONTENT --- */
.content-area { flex: 1; min-width: 0; }
.mobile-header { display: none; }

.section-pad { margin-top: 80px; }
/* Added scroll-margin-top so smooth scrolling doesn't hide headers under the top edge */
section { scroll-margin-top: 40px; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 30px; letter-spacing: -0.5px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
/* --- HERO --- */
.hero { display: flex; align-items: center; gap: 40px; padding-top: 20px; }
.hero-text { flex: 1.2; }
.ios-pill { display: inline-block; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-text h1 { font-size: 4.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.5; align-items: stretch; /* This stretches them equally */ }

/* --- CSS SLIDER WITH ARROWS --- */
.hero-visual { flex: 0.8; }
.slider-container { border-radius: 32px; padding: 10px; position: relative; display: flex; flex-direction: column; gap: 15px; }

/* Arrow Styles */
.slider-arrow {
    position: absolute; top: 45%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4); color: white;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-track { display: flex; overflow-x: hidden; scroll-snap-type: x mandatory; border-radius: 24px; gap: 10px; width: 100%; }
.slide { flex: 0 0 100%; height: 300px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; border-radius: 24px; border: 1px dashed rgba(255,255,255,0.5); text-align: center; font-weight: 600; color: rgba(255,255,255,0.8); }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 10px; }
.slider-dots .dot { width: 8px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.slider-dots .dot.active { background: #FFFFFF; width: 24px; border-radius: 10px; }

/* --- MODULES (Cards) --- */
.feature-module, .step-module, .review-module { padding: 25px; border-radius: 28px; }
.icon-circle { width: 50px; height: 50px; background: var(--glass-highlight); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.step-badge { width: 40px; height: 40px; background: #FFFFFF; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; }
h3 { margin-bottom: 10px; font-size: 1.3rem; }
p { color: var(--text-muted); line-height: 1.5; }
.stars { margin-bottom: 15px; font-size: 1.2rem; }
.review-module p { font-style: italic; margin-bottom: 15px; }
.review-module h4 { color: var(--spain-yellow); }

/* --- PRICING --- */
.popular-module { border: 2px solid #FFFFFF; background: rgba(255,255,255,0.25); transform: scale(1.02); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #FFFFFF; color: #000; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.price { font-size: 3.5rem; font-weight: 800; margin: 15px 0 25px 0; letter-spacing: -1px; }

/* The Spring that pushes the button down */
.features-list { 
    list-style: none; 
    text-align: left; 
    margin-bottom: 30px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.features-list li { 
    padding: 12px 0; 
    color: rgba(255,255,255,0.9); 
    font-size: 0.95rem; 
    font-weight: 500; 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}   

.check-icon { 
    width: 20px !important; 
    height: 20px !important; 
    fill: none !important; 
    stroke: var(--spain-yellow) !important; 
    stroke-width: 3 !important; 
    stroke-linecap: round !important; 
    stroke-linejoin: round !important; 
    flex-shrink: 0 !important; 
    margin-top: 2px !important;
}

/* Card glass effect */
.price-module { 
    background: rgba(10, 15, 30, 0.6) !important; 
    padding: 40px 30px; 
    border-radius: 32px; 
    text-align: center; 
    position: relative; 
    display: flex;
    height: 100%; 
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* MASSIVE PAYMENT IMAGE FORCE-OVERRIDE */
.safe-payments img {
    width: 100% !important;
    max-width: 280px !important; /* Forces the image to be huge */
    height: auto !important;
    object-fit: contain !important;
    margin-top: 10px !important;
}


/* --- FAQS & FOOTER --- */
.faq-wrapper { display: flex; flex-direction: column; gap: 15px; max-width: 900px; }
.faq-module { border-radius: 24px; padding: 5px 20px; }
.faq-module summary { font-size: 1.1rem; font-weight: 600; padding: 15px 0; list-style: none; cursor: pointer; outline: none; display: flex; justify-content: space-between; align-items: center; }
.faq-module summary::-webkit-details-marker { display: none; }
.faq-module summary::after { content: '+'; font-size: 1.5rem; color: #FFF; }
.faq-module[open] summary::after { content: '-'; }
.faq-module p { padding-bottom: 20px; color: var(--text-muted); }

.footer-module { padding: 30px; border-radius: 32px; text-align: center; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.footer-links a { color: var(--text-main); text-decoration: none; margin-left: 20px; }
.copy { font-size: 0.85rem; color: var(--text-muted); }

/* --- NEW HERO TRUST ELEMENTS --- */
.hero-title {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.text-gradient {
    /* Uses the vibrant Spain colors to make the keywords pop */
    background: linear-gradient(135deg, var(--spain-yellow) 0%, #FFF 40%, var(--spain-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: rgba(255, 215, 0, 0.4); /* Subtle yellow border */
    color: var(--text-main);
}
.icon-sm { width: 16px; height: 16px; color: var(--spain-yellow); }

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 600px;
}
.hero-desc strong { color: #FFF; font-weight: 700; }

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Flexbox for icons inside buttons */
.btn-flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Updated Primary Button to match the bold image style */
.btn-primary-large {
    background: linear-gradient(135deg, var(--spain-red) 0%, #ff4b4b 100%);
    color: #FFF;
    border: none;
    box-shadow: 0 10px 25px rgba(230, 26, 34, 0.4);
}
.btn-primary-large:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(230, 26, 34, 0.6); }

/* Checkmarks Row */
.hero-checks {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.hero-checks span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}
.hero-checks svg { color: var(--text-main); } /* White checks */

/* Trustpilot Badge */
.trustpilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 0.95rem;
}
.stars-tp { display: flex; gap: 4px; }

/* --- CSS for Real Slider Images --- */
.slide {
    /* Remove the old background color and border */
    background: transparent !important;
    border: none !important;
    overflow: hidden; /* Ensures the image respects the border-radius */
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the slide perfectly without stretching */
    border-radius: 24px; /* Matches the container's rounded corners */
}

/* --- COMPATIBILITY MARQUEE (100% Pure iOS Glass) --- */
.marquee-container {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    display: flex;
    border-radius: 32px;
}

.marquee-track {
    display: inline-flex;
    gap: 15px;
    padding: 0 20px; /* Gives the pills a tiny bit of breathing room from the glass edge */
    animation: scrollX 40s linear infinite;
}

/* Pauses the scrolling when a user hovers over it to read */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: default;
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--spain-yellow);
    transform: translateY(-2px);
    border-color: var(--spain-yellow);
}

/* Hardware accelerated animation for smooth sliding */
@keyframes scrollX {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 7.5px)); } 
}

/* --- APP SHOWCASE SECTION (CORE & MOBILE FULL) --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* The Floating Animation */
@keyframes float-bob {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.intro-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); 
    animation: float-bob 4s ease-in-out infinite;
    will-change: transform;
}

.intro-content {
    padding: 40px;
    border-radius: 32px;
}

.intro-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.intro-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-desc strong {
    color: #FFFFFF;
    font-weight: 700;
}

/* --- FLASH OFFER SECTION --- */
.flash-offer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    border-radius: 40px;
    /* A special, more vibrant gradient for the oferta section */
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(10, 87, 164, 0.25));
    border: 1px solid rgba(255, 100, 200, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 30px rgba(255, 0, 128, 0.1);
    gap: 40px;
}

.flash-text { flex: 1; }

.flash-badge {
    display: inline-block;
    background: linear-gradient(90deg, #FF0080, #FF4B4B);
    color: #FFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
}

.flash-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.pink-gradient {
    background: linear-gradient(90deg, #FF0080, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flash-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.5;
}

.flash-subtitle strong { color: #FFF; font-weight: 700; }

/* WhatsApp Flash Button */
.btn-flash-wa {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}
.btn-flash-wa:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Timer Styles */
.flash-timer-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(0,0,0,0.3) !important; /* Darker glass for contrast */
    border: 1px solid rgba(255, 0, 128, 0.3) !important;
}

.timer-number {
    font-size: 3rem;
    font-weight: 900;
    color: #FFF;
    line-height: 1;
}

.timer-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

.timer-separator {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-top: -20px;
}


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .app-container { flex-direction: column; padding: 20px; padding-bottom: 120px; } 
    
    .mobile-header { display: flex; justify-content: center; align-items: center; padding: 10px 0 30px 0; }
    
    .floating-nav {
        top: auto; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
        width: 95%; height: auto; padding: 10px;
        flex-direction: row; justify-content: center; align-items: center;
        border-radius: 30px; z-index: 9999;
    }
    
    .brand-logo, .nav-action { display: none; } 
    .nav-links { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; }
    .nav-links a { flex-direction: column; gap: 4px; padding: 6px; font-size: 0.7rem; }
    .nav-links a .icon { width: 22px; height: 22px; }
    .nav-links a:hover, .nav-links a.active { background: transparent; color: #FFFFFF; font-weight: 700; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 0; }
    .hero-text h1 { font-size: 3.2rem; }
    
    /* Hide arrows on mobile (users can just swipe) */
    .slider-arrow { display: none; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .popular-module { transform: scale(1); }
    .footer-grid { flex-direction: column; gap: 20px; }
    .footer-links a { margin: 0 10px; }
    .hero-title { font-size: 3.2rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-flex { width: 100%; }
    .hero-checks { justify-content: center; gap: 15px; }
    .trustpilot-badge { width: 100%; justify-content: center; }

    /* App Showcase Mobile Overrides */
    .intro-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 30px; 
        width: 100%;
    }
    
    .intro-visual { 
        order: -1; 
        width: 100%; 
        display: block !important; 
        text-align: center;
    }
    
    .intro-img {
        width: 100% !important; 
        max-width: 500px !important; 
        height: auto !important; 
        margin: 0 auto;
        display: block;
    }
    
    .intro-content { 
        padding: 30px 20px; 
        width: 100%; 
        box-sizing: border-box; 
    }
    
    .intro-title { 
        font-size: 2.2rem; 
    }

    /* Flash Offer Mobile Overrides */
    .flash-offer-container {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 30px;
    }
    
    .flash-title { font-size: 2.5rem; }
    
    .btn-flash-wa {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        padding: 16px;
    }
    
    .flash-timer-container {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .timer-box { width: 80px; height: 80px; }
    .timer-number { font-size: 2.2rem; }
    .timer-separator { font-size: 2rem; margin-top: -15px; }
}

/* --- MULTI-DEVICE PRICING TABS --- */
.pricing-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pricing-tabs {
    display: inline-flex;
    padding: 8px;
    border-radius: 40px;
    gap: 5px;
}

.tab-btn {
    background: transparent;
    color: var(--text-main);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--spain-red) 0%, #ff4b4b 100%);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(230, 26, 34, 0.4);
}

/* Tab Logic */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Tab Fix */
@media (max-width: 1024px) {
    .pricing-tabs { flex-direction: column; width: 100%; border-radius: 24px; padding: 10px; }
    .tab-btn { width: 100%; padding: 12px; }
}


/* --- 4-COLUMN GRID & ANIMATED DEVICE CARDS --- */
.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    align-items: stretch; 
}

.device-card {
    padding: 35px 20px;
    text-align: center;
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.device-card:hover {
    transform: translateY(-10px);
    border-color: var(--spain-yellow);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

/* Floating & Glowing Icon Magic */
.animated-icon-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    filter: blur(18px);
    opacity: 0.5;
    animation: pulse-glow 3s infinite alternate;
}

.icon-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 2;
    animation: float-icon 4s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

/* Adding slight delays so they don't all bounce at the exact same time */
.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 1s; }
.delay-4 { animation-delay: 1.5s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0% { transform: scale(0.85); opacity: 0.3; }
    100% { transform: scale(1.15); opacity: 0.7; }
}

/* Setup colors for the glows */
.glow-red { background: var(--spain-red); }
.glow-blue { background: var(--ios-blue); }
.glow-green { background: var(--wa-green); }
.glow-yellow { background: var(--spain-yellow); }

/* Minimal Step Cards for the Install Section */
.step-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3s ease;
}
.step-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

/* Responsive Rules for the 4 Grid */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* --- MOBILE TITLE SQUASH FIX --- */
@media (max-width: 768px) {
    /* The [style] selector forces the browser to ignore the inline HTML sizes */
    .section-title, 
    .section-title[style] { 
        font-size: 2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    
    .hero-title, 
    .hero-title[style] {
        font-size: 2.5rem !important;
    }

    .flash-title,
    .flash-title[style] {
        font-size: 2.2rem !important;
    }
}


/* ==============================================
   COMPARISON TABLE (TV Tradicional vs Telefuerte)
   ============================================== */
.compare-section {
    position: relative;
    z-index: 1;
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* Makes it swipeable on tiny mobile screens */
    padding-bottom: 20px;
}

.compare-wrapper {
    min-width: 700px; /* Forces table to stay readable on mobile via scroll */
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 10px;
}

.compare-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}

.compare-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.compare-row:last-child { 
    border-bottom: none; 
}

.compare-cell {
    padding: 24px 20px;
    font-size: 1rem;
    color: var(--text-muted);
}

/* The Traditional TV Column */
.compare-cell:nth-child(2) {
    text-align: center;
}

/* The Telefuerte Highlighted Column */
.compare-cell.highlight {
    background: rgba(10, 15, 30, 0.6); /* Dark glass effect */
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    color: #FFF;
    font-weight: 600;
    position: relative;
}

/* Header Row Styling */
.compare-row.header {
    border-bottom: none;
}
.compare-row.header .compare-cell {
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    padding-bottom: 30px;
}
.compare-row.header .compare-cell:nth-child(2) {
    color: rgba(255,255,255,0.6);
}

/* Lift the Highlighted Column so it looks like a floating card */
.compare-row.header .highlight {
    color: var(--spain-yellow);
    font-size: 1.2rem;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    padding-top: 30px;
}

.compare-row:last-child .highlight {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding-bottom: 30px;
}

/* SVG Icon alignment */
.check-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==============================================
   PREMIUM FOOTER (FLOATING GLASS CARD)
   ============================================== */
.premium-footer {
    padding: 50px 40px 30px;
    /* Margins on all sides create the floating effect so it's not cut at the bottom */
    margin: 60px 20px 20px 20px; 
    border-radius: 32px; /* Rounded corners on all 4 sides */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start; /* Forces the logo and titles to align perfectly at the top */
}

.footer-col .logo-img {
    max-width: 160px;
    margin-top: 0; /* Aligns with titles */
    margin-bottom: 20px;
    display: block;
}

.footer-col h4 {
    color: #FFF;
    font-size: 1.15rem;
    margin-top: 0; /* Removes default gap so it aligns with the logo */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1; 
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--spain-yellow);
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px dashed rgba(255,255,255,0.2);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==============================================
   SALES NOTIFICATION POPUP (DESKTOP: BOTTOM | MOBILE: TOP)
   ============================================== */
.sales-popup {
    /* Desktop Default: Bottom Slide-Up */
    position: fixed;
    left: 25px;
    bottom: -150px; /* Hidden below screen */
    top: auto; 
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 20px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sales-popup.show {
    bottom: 25px; /* Slides up to sit perfectly above the edge */
    opacity: 1;
}

.cart-icon-wrapper {
    width: 42px;
    height: 42px;
    background: rgba(37, 211, 102, 0.2); 
    border: 1px solid var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wa-green);
    flex-shrink: 0;
}

.sales-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sales-title {
    color: #FFF;
    font-size: 0.95rem;
    font-weight: 700;
}

.sales-user {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sales-plan {
    color: var(--wa-green);
    font-size: 0.85rem;
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #FFF;
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    .premium-footer { margin: 40px 15px 15px 15px; padding: 40px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    
    /* Mobile Override: Top Slide-Down */
    .sales-popup { 
        left: 15px; 
        right: 15px; 
        bottom: auto; /* Kills the desktop bottom positioning */
        top: -150px;  /* Hides it above the screen */
    }
    
    .sales-popup.show { 
        bottom: auto; 
        top: 85px; /* Drops down just below your mobile top nav */
    }
}