/* ==========================================================
   1. GLOBAL
   ========================================================== */
:root {
    
    --fs-hero-title: 3.75rem;
    --fs-hero-subtitle: 1.5rem;
    --fs-section-title: 2rem;
    --fs-section-subtitle: 1.5rem;
    --fs-body: 1.125rem;
    --fs-nav-link: 1rem;

    
    --font-primary: 'Inter', sans-serif;
    --color-bg-dark: #0b1325;
    --color-bg-light: #f8fafc;
    --color-text-main: #334155;
    --color-accent: #2563eb;
}

/* ==========================================================
   2. RESET & BASE STYLES
   ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: #ffffff;
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #3b82f6;
    color: #ffffff;
}


.hidden { display: none !important; }
.relative-z10 { position: relative; z-index: 10; }
.ml-2 { margin-left: 0.5rem; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.icon-xs { width: 0.875rem; height: 0.875rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }

/* ==========================================================
   3. HEADER & NAVEGATION
   ========================================================== */
.hero-header-container {
    position: relative;
    background: linear-gradient(to bottom, #0b1325, #142340, #1e345e);
    color: #ffffff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.header-logo {
    height: 50px;
} 

.main-header {
    position: relative;
    z-index: 20;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-icon svg {
    color: #ffffff;
}

.header-logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav-link {
    font-size: var(--fs-nav-link);
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    letter-spacing: 0.025em;
    transition: color 0.2s;
}

.header-nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: #60a5fa;
}

.mobile-menu-btn {
    display: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 5rem;
    background-color: rgba(14, 24, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #60a5fa;
}

/* ==========================================================
   4. HERO SECTION
   ========================================================== */
.hero-section {
    position: relative;
    z-index: 10;
    padding-top: 1rem;
    padding-bottom: 12rem;
}

.hero-content {
    margin-top: 50px;
    max-width: 48rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.hero-title {
    font-size: var(--fs-hero-title);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #ffffff;
}

.hero-subtitle {
    font-size: var(--fs-hero-subtitle);
    color: #dbeafe;
    max-width: 42rem;
    font-weight: 400;
    line-height: 1.625;
}

.hero-action {
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-accent);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-cta-btn:hover {
    background-color: #3b82f6;
    box-shadow: 0 10px 20px -3px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-overlay-img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    object-fit: cover;
    z-index: 5;
    pointer-events: none;
}

/* ==========================================================
   5. ABOUT US SECTION
   ========================================================== */
.about-section {
    position: relative;
    background-color: var(--color-bg-light);
    padding: 4rem 0;
    z-index: 10;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.section-title {
    font-size: var(--fs-section-title);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    display: block;
    text-align: justify;
}

.section-subtitle {
    font-size: var(--fs-section-subtitle);
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: 0.025em;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #475569;
    line-height: 1.625;
    font-size: var(--fs-body);
    text-align: justify;
}

.col-media {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   6. CONTACT SECTION
   ========================================================== */
.contact-section {
    position: relative;
    background-color: var(--color-bg-light);
    padding: 4rem 0;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-col-media {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.contact-content {
    max-width: 48rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.contact-description {
    font-size: var(--fs-body);
    color: #475569;
    line-height: 1.625;
    max-width: 42rem;
    text-align: justify;
}

.contact-action {
    display: flex;
    justify-content: flex-start;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-accent);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-cta-btn:hover {
    background-color: #f59e0b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.container.relative-z2 {
    position: relative;
    z-index: 2;
}

/* ==========================================================
   7. FOOTER
   ========================================================== */
.main-footer {
    background-color: var(--color-bg-dark);
    color: #94a3b8;
    padding: 2rem 0;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-login-btn {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid #1e293b;
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-login-btn:hover {
    color: #cbd5e1;
    border-color: #334155;
}

.footer-login-btn .opacity-70 {
    opacity: 0.7;
}

/* ==========================================================
   8. MODALS & FORMS
   ========================================================== */
.hidden {
    display: none !important;
}

.modal-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.texto-privacidad {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.modal-content p {
    font-size: 14px;
}

.btn-cerrar {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

#form-contacto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#form-contacto input,
#form-contacto textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

#form-contacto button[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #494e4c 0%, #181a19 100%);
    color: white;
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}
/* ==========================================================
   9. SIMULATOR
   ========================================================== */
.dual-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "t1 t2"
        "s1 s2";
    gap: 2.5rem;
}

.sim-text-1 { grid-area: t1; }
.sim-card-1 { grid-area: s1; }
.sim-text-2 { grid-area: t2; }
.sim-card-2 { grid-area: s2; }

.sim-card-wrapper {
    background-color: #12182a;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(30, 41, 59, 0.8);
    color: #ffffff;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.sim-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
}

.sim-tab-group {
    display: flex;
    gap: 0.25rem;
    background-color: rgba(15, 23, 42, 0.9);
    padding: 0.25rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #1e293b;
}

.sim-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
}

.sim-btn:hover { color: #ffffff; }

.sim-btn-active {
    background-color: #1e293b;
    color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sim-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0f1d;
    padding: 0.5rem;
    border-radius: 0.75rem;
    height: 460px;
    overflow: hidden;
    box-sizing: border-box;
}

.sim-frame-desktop {
    width: 100%;
    transition: all 0.3s ease-in-out;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: 0;
}

.sim-frame-mobile {
    width: 260px;
    transition: all 0.3s ease-in-out;
    padding: 0.5rem;
    background-color: #0f172a;
    border-radius: 2rem;
    border: 4px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.sim-screen {
    background-color: #f3f4f6;
    color: #1e293b;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 420px;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.sim-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.sim-pill-bar {
    width: 2.5rem;
    height: 0.375rem;
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.sim-brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sim-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sim-brand-icon {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.25rem;
    background-color: #4f46e5;
    display: inline-block;
}

.sim-brand-text {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #0f172a;
}

.sim-brand-dots { display: flex; gap: 0.25rem; }

.sim-dot {
    width: 1rem;
    height: 0.25rem;
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.sim-hero-grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sim-hero-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sim-skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sim-line-full {
    height: 0.75rem;
    background-color: #0f172a;
    border-radius: 9999px;
    width: 100%;
}

.sim-line-75 {
    height: 0.75rem;
    background-color: #0f172a;
    border-radius: 9999px;
    width: 75%;
}

.sim-line-light {
    height: 0.5rem;
    background-color: #cbd5e1;
    border-radius: 9999px;
    width: 83.333%;
    margin-top: 0.25rem;
}

.sim-cta-box {
    height: 1.5rem;
    background-color: #4f46e5;
    border-radius: 0.5rem;
    width: 5rem;
    margin-top: 0.5rem;
}

.sim-media-box-desktop {
    height: 7rem;
    background: linear-gradient(to bottom right, #334155, #030712);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.sim-media-box-mobile {
    height: 5rem;
    background: linear-gradient(to bottom right, #334155, #030712);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.sim-glow-1 {
    position: absolute;
    top: -1rem; right: -1rem;
    width: 4rem; height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(4px);
}

.sim-glow-2 {
    position: absolute;
    bottom: -1rem; left: -1rem;
    width: 5rem; height: 5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(4px);
}

.sim-cards-grid-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.sim-cards-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.sim-card {
    padding: 0.625rem;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sim-card-line-top {
    height: 0.5rem;
    background-color: #0f172a;
    border-radius: 9999px;
    width: 50%;
}

.sim-card-line-bottom {
    height: 0.25rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    width: 100%;
}


@keyframes floatRocket {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.animate-rocket {
    animation: floatRocket 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.15); }
}

.animate-thruster {
    animation: pulseGlow 0.8s ease-in-out infinite alternate;
    transform-origin: top center;
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   10. MEDIA QUERIES (DESKTOP-FIRST: MAX-WIDTH)
   ========================================================== */
@media (max-width: 1024px) {
    :root {
        --fs-hero-title: 3rem;
        --fs-section-subtitle: 1.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-hero-title: 2.25rem;
        --fs-hero-subtitle: 1.25rem;
        --fs-section-title: 1.875rem;
        --fs-section-subtitle: 1.1rem;
    }

    
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }

    .hero-section { padding-bottom: 4rem; }
    .hero-content { margin-top: 20px; }
    .hero-header-container {
        min-height: 100svh;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    .hero-overlay-img {
        max-height: 35vh;
        object-fit: contain;
        bottom: env(safe-area-inset-bottom, 10px);
    }

    .about-section { padding: 2rem 0; }
    .grid-container { grid-template-columns: 1fr; gap: 2rem; }
    
    .dual-sim-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "t1"
            "s1"
            "t2"
            "s2";
        gap: 2rem;
    }

    .section-title,
    .about-description {
        display: none;
    }

    .section-subtitle {
        color: #475569;
    }

    
    .contact-section { padding: 2rem 0; }
    .contact-grid-container { grid-template-columns: 1fr; }
    .contact-wave-bg { display: none; }
    .contact-action { justify-content: center; text-align: center; }

    .contact-title,
    .contact-description {
        display: none;
    }
}


@media (max-width: 640px) {
    :root {
        --fs-hero-title: 1.875rem;
        --fs-hero-subtitle: 1rem;
        --fs-body: 1rem;
    }

    .sim-card-wrapper {
        padding: 1rem;
    }

    .footer-container {
        flex-direction: column;
    }
}