/* style.css */
:root {
    --primary-blue: #0A66C2; 
    --primary-red: #E3000F;
    --bg-white: #FFFFFF;
    --bg-light-grey: #F5F5F7; 
    --text-dark: #1D1D1F; 
    --text-grey: #86868B; 
    --apple-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: var(--apple-font); background-color: var(--bg-white);
    color: var(--text-dark); line-height: 1.5; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hardwe Acceleration & Fluidity Optimizations */
.reveal-text, .hero-video-wrapper, .product-card, .product-image, .animated-5g, .btn-hover-effect {
    will-change: transform, opacity;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: transparent;
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000; display: flex; align-items: center; transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border 0.3s ease;
}
.nav-content {
    max-width: 1000px; margin: 0 auto; width: 100%; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.02em; cursor: pointer; }

/* Yellow/Rainbow Animation for 5G */
.animated-5g {
    color: var(--text-dark); font-weight: 800; display: inline-block;
}

/* Color Animation for BPW300 */
.animated-bpw {
    background: linear-gradient(to right, #8A2BE2, #FF1493, #E3000F, #FF8C00, #FFD700);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShiftText 1.5s linear infinite alternate;
    display: inline-block;
}

@keyframes gradientShiftText {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    text-decoration: none; color: var(--text-dark); font-size: 0.9rem; font-weight: 500;
    opacity: 0.8; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.btn-nav {
    font-size: 0.85rem; background: var(--text-dark); color: #fff;
    padding: 0.4rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 500; transition: all 0.3s;
}
.btn-nav:hover { background: #333; }
.mobile-toggle { display: none; cursor: pointer; }

/* Typography */
.section-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.03em; color: var(--text-dark); }
.section-subtitle { font-size: 1.3rem; color: var(--text-grey); font-weight: 400; margin-bottom: 3rem; letter-spacing: -0.01em; }
.text-center { text-align: center; }

/* Ideal Team Section Color Animation */
.team-title-glow {
    background: linear-gradient(to right,
        #1D1D1F 0%,
        #1D1D1F 30%,
        #ff9500 45%,
        #ffcc00 55%,
        #34c759 70%,
        #34c759 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0; /* Starts showing #1D1D1F */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Encuentranos Text Transition */
.encuentranos-glow {
    background: linear-gradient(to right,
        #34c759 0%,
        #34c759 30%,
        #0A84FF 70%,
        #0A84FF 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0; /* Starts green */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Porque elegir Ubicar4G Text Transition */
.why-us-glow {
    background: linear-gradient(to right,
        #1A0033 0%,     /* Azul casi morado oscuro */
        #5C2D91 30%,    /* Morado oscuro */
        #DDA0DD 60%,    /* Morado rosadito (Plum) */
        #FFB6C1 100%    /* Rosado más claro */
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShiftText 5s linear infinite alternate;
    display: inline-block;
}

/* Section Spacing */
section { padding: 8rem 2rem; position: relative; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.container-sm { max-width: 900px; }
.section-light { background-color: var(--bg-white); }
.section-light-grey { background-color: var(--bg-light-grey); }

/* GSAP REVEAL HELPERS */
.reveal-wrapper { overflow: hidden; position: relative; }
.reveal-wrapper-inline { overflow: hidden; display: inline-block; }
.reveal-text { display: inline-block; transform: translateY(110%); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.pb-4 { padding-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.2rem; border-radius: 999px; font-size: 1.05rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none; outline: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}
.btn-primary { background-color: var(--primary-blue); color: #fff; }
.btn-primary:hover { background-color: #08539e; }
.btn-secondary { background-color: #E5E5EA; color: var(--text-dark); }
.btn-secondary:hover { background-color: #D1D1D6; }
.btn-lg { padding: 1.2rem 2.8rem; font-size: 1.15rem; }
.btn-hover-effect:active { transform: scale(0.96); }
.btn-hover-effect:hover { transform: scale(1.03); }

/* Floating WhatsApp */
.floating-wa {
    position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px;
    background-color: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 1000; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-wa:hover { transform: scale(1.15); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3); }

/* Hero Section (Revamped for Extreme Fluidity & Impact) */
.hero {
    min-height: 100vh; padding-top: 120px; padding-bottom: 2rem;
    display: flex; align-items: center; justify-content: flex-start; flex-direction: column;
}
.hero-content { width: 100%; max-width: 1200px; text-align: center; }
.hero-brand-title {
    font-size: 8rem; font-weight: 800; letter-spacing: -0.06em; line-height: 1;
    color: var(--text-dark); margin-bottom: 3rem;
}
.hero-video-wrapper {
    width: 100%; max-width: 900px; margin: 0 auto;
    aspect-ratio: 16/9; background-color: #000;
    border-radius: 40px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    opacity: 0; transform: translateY(50px) scale(0.95); /* Handled by GSAP */
}
.hero-showcase-video { width: 100%; height: 100%; object-fit: cover; }
.hero-text-content { margin-top: 4rem; }
.hero-subtitle { font-size: 2.8rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.03em; }
.hero-desc { font-size: 1.3rem; color: var(--text-grey); margin-top: 1.2rem; max-width: 700px; margin-inline: auto; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; }

/* Featured Section */
.featured-content { display: flex; flex-direction: column; gap: 3rem; align-items: center; margin-top: 3rem; }
.featured-image-wrapper {
    width: 100%; max-width: 900px;
    background: #fff; border-radius: 40px; aspect-ratio: 16/9;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03); display: flex; justify-content: center; align-items: center;
    padding: 3rem; overflow: hidden;
}
.image-inner { width: 100%; height: 100%; position: relative; }
.featured-image { width: 100%; height: 100%; object-fit: contain; }
.featured-features {
    display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
    width: 100%; border-top: 1px solid #E5E5EA; padding-top: 4rem;
}
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 160px; gap: 1.2rem; }
.feature-icon {
    width: 60px; height: 60px; background: #fff; color: var(--text-dark); border-radius: 18px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.feature-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.feature-item h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); }

/* Catalog Section */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.product-card {
    background: #fff; border-radius: 32px; padding: 2.5rem 2rem; display: flex; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
    border: 1px solid rgba(0,0,0,0.02);
}
.product-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); }
.product-image-container { height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; overflow: hidden; position: relative; }
/* Scale handled smoothly via GSAP or pure CSS depending on implementation. Decided CSS hover is slickest */
.product-image { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-image { transform: scale(1.1); }
.product-info { display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.product-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.product-desc { color: var(--text-grey); margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.6; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-weight: 700; font-size: 1.3rem; }
.currency { font-size: 0.8rem; color: var(--text-grey); font-weight: 500; }
.btn-product {
    padding: 0.7rem 1.4rem; background: var(--bg-light-grey); color: var(--text-dark);
    border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s;
}
.btn-product:hover { background: var(--primary-blue); color: #fff; }

/* Why Us Section */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 4rem; max-width: 900px; margin-inline: auto; }
.pillar-box {
    padding: 3.5rem 2.5rem; background: #fff; border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.02); text-align: left;
    transition: transform 0.4s ease;
}
.pillar-box:hover { transform: translateY(-5px); }
.pillar-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.pillar-title { font-size: 1.4rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.pillar-desc { color: var(--text-grey); font-size: 1.05rem; line-height: 1.6; }

/* How It Works Section */
.steps-container { position: relative; max-width: 800px; margin: 5rem auto 0; }
.animated-path-container { position: absolute; top: 40px; left: 0; right: 0; height: 40px; z-index: 1; }
.animated-line { width: 100%; height: 100%; }
.steps-flex { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.step-box { background: transparent; display: flex; flex-direction: column; align-items: center; width: 33%; }
.step-icon {
    width: 80px; height: 80px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.step-title { font-size: 1.15rem; font-weight: 600; color: var(--text-dark); }

/* Contact Forms */
.contact-container { background: #fff; padding: 6rem 4rem; border-radius: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.03); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 4rem; }
.contact-email { color: var(--primary-blue); text-decoration: none; font-size: 1.4rem; font-weight: 500; transition: opacity 0.3s; }
.contact-email:hover { opacity: 0.7; }

/* Location & Map */
.location-container { margin-top: 6rem; }
.map-wrapper {
    position: relative; width: 100%; height: 450px; border-radius: 44px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    background: #e5e5ea; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    padding: 3px;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}
.map-wrapper:hover {
    transform: translateY(-8px) translateZ(0); box-shadow: 0 30px 80px rgba(10, 132, 255, 0.15);
}

.map-inner {
    position: relative; width: 100%; height: 100%; border-radius: 41px;
    overflow: hidden; background: #e5e5ea; z-index: 1;
    transform: translateZ(0);
}
.google-map-iframe { width: 100%; height: 100%; object-fit: cover; }
.map-overlay {
    position: absolute; bottom: 2rem; right: 2rem; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1.6rem; border-radius: 999px; color: var(--text-dark);
    font-weight: 600; font-size: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease; text-decoration: none; display: inline-flex; z-index: 5;
}
.map-wrapper:hover .map-overlay { background: var(--primary-blue); color: #fff; transform: scale(1.05); }
.address-text { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-top: 1.5rem; }

/* Footer */
.footer { background: var(--bg-light-grey); color: var(--text-grey); padding: 5rem 2rem 3rem; }
.footer-container { display: flex; flex-direction: column; gap: 2rem; max-width: 1200px; margin: 0 auto;}
.footer-top { border-bottom: 1px solid #E5E5EA; padding-bottom: 2rem; }
.footer-brand { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.9rem; }

/* Responsive Adjustments */

/* Promo Modal */
.promo-modal {
    position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
    visibility: visible; opacity: 1;
}
.promo-modal.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.modal-overlay {
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); /* Removed backdrop filter to prevent lag */
}
.modal-content {
    position: relative; z-index: 2; max-width: 90%; max-height: 90vh; border-radius: 28px; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4); will-change: transform, opacity;
}
.promo-image { max-width: 100%; max-height: 85vh; object-fit: contain; display: block; }
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.85); border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 16px rgba(0,0,0,0.15); backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; color: #1D1D1F; z-index: 10;
}
.modal-close:hover { transform: scale(1.15); background: #fff; }
.modal-close:active { transform: scale(0.95); }
.modal-close svg { width: 22px; height: 22px; }

/* Filter Buttons */
.product-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.filter-btn {
    padding: 0.6rem 1.4rem; background: var(--bg-light-grey); border: 2px solid transparent; border-radius: 999px;
    font-size: 0.95rem; font-weight: 600; color: var(--text-grey); cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--text-dark); background: #eaeaed; }
.filter-btn.active { background: #fff; color: var(--primary-blue); border-color: var(--primary-blue); box-shadow: 0 4px 15px rgba(10, 102, 194, 0.15); }

/* Accessory Badge and Specs */
.product-badge {
    position: absolute; top: 1.5rem; left: 1.5rem; background: var(--primary-red); color: #fff; display: inline-block;
    padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 2;
}
.product-category { font-size: 0.8rem; color: var(--primary-blue); font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.product-specs { list-style: none; margin-bottom: 2rem; padding: 0; flex-grow: 1; }
.product-specs li { font-size: 0.9rem; color: var(--text-grey); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.product-specs li svg { color: var(--primary-blue); flex-shrink: 0; }
.product-card { position: relative; } /* For badge */
.accessory-container { background: var(--bg-light-grey); border-radius: 20px; }
.accessory-icon { color: var(--text-dark); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .accessory-icon { transform: scale(1.1); }

@media (max-width: 992px) {
    .hero-brand-title { font-size: 6rem; }
    .hero-video-wrapper { border-radius: 20px; }
    .featured-features { gap: 2rem; justify-content: space-around; }
    .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        opacity: 0;
        pointer-events: none;
        z-index: 999;
        text-align: center;
    }
    .nav-links a { font-size: 1.2rem; padding: 0.5rem 0; display: block;}
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .btn-nav { display: none; }
    .mobile-toggle { display: block; color: var(--text-dark); }
    .hero-brand-title { font-size: 4rem; margin-bottom: 2rem; }
    .hero-subtitle { font-size: 2rem; }
    .hero-desc { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 1rem;}
    .hero-buttons .btn { width: 100%; }
    .section-title { font-size: 2.5rem; }
    .animated-path-container { display: none; }
    .steps-flex { flex-direction: column; gap: 3rem; align-items: center; }
    .step-box { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    section { padding: 6rem 1.5rem; }
    .contact-container { padding: 4rem 1.5rem; }
}
