/* =========================================
   VARIABLES Y TOKENS DE DISEÑO (ATACHE_WEB - LUXURY MODULAR GLASS)
========================================= */
:root {
    /* Paleta Premium Dark */
    --bg-dark: #050505;
    --bg-light: #ffffff;

    /* Acentos Luxury y Metálicos (Intensidad Aumentada) */
    --primary-color: #3b82f6;
    --accent-color: #c5a059;

    /* Textos */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-dark: #000000;

    /* Sistema Glassmorphism "Modular" */
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-bg-hover: rgba(30, 30, 30, 0.6);
    --glass-blur: blur(30px);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8);
    --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Tipografía y Espaciados */
    --font-family: 'Inter', sans-serif;
    --transition-fast: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 100px;
}

/* =========================================
   RESET Y BASE CON FONDOS RADIANTES INTENSOS
========================================= */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    /* Solo dejamos la textura estática aquí */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18h-2v-2h2v2zm0 4h-2v2h2v-2zm-4-4h-2v-2h2v2zm0 4h-2v2h2v-2zm8-4h-2v-2h2v2zm0 4h-2v2h2v-2z' fill='rgba(255,255,255,0.02)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 0;
}

/* =========================================
   ANIMATED BACKGROUND GLOWS
========================================= */
.bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-blue {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: floating-glow-1 10s infinite alternate ease-in-out;
    filter: blur(100px);
}

.glow-gold {
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: floating-glow-2 12s infinite alternate ease-in-out;
    filter: blur(100px);
}

@keyframes floating-glow-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(20%, 15%) scale(1.3) rotate(15deg);
    }

    100% {
        transform: translate(-10%, 25%) scale(1.1) rotate(-10deg);
    }
}

@keyframes floating-glow-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-25%, -20%) scale(1.4) rotate(-20deg);
    }

    100% {
        transform: translate(15%, -30%) scale(1.2) rotate(10deg);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* =========================================
   TEXTO MASIVO DE FONDO
========================================= */
.massive-bg-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 800;
    letter-spacing: -10px;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    line-height: 0.8;
}

/* =========================================
   GLASSMORPHISM MODULAR 
========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), var(--glass-inner-glow);
    position: relative;
    overflow: hidden;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.panel-modular {
    padding: 4rem;
    margin-bottom: 2rem;
}

/* =========================================
   BOTONES Y ETIQUETAS
========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.ui-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    position: relative;
    cursor: pointer;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background: var(--bg-light);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-active .toggle-thumb {
    transform: translateX(20px);
}

/* =========================================
   FLOATING NAVBAR
========================================= */
.navbar-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 4rem;
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 10;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    text-transform: capitalize;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    max-width: 700px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    z-index: 10;
}

/* =========================================
   SECCIONES GENERALES (ESPACIADO EQUILIBRADO)
========================================= */
.section {
    /* Hemos ajustado el padding para que sea perfectamente uniforme en todas las secciones */
    padding: 6rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* MÓDULOS DE PRECIOS/CARACTERÍSTICAS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.feature-card {
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.f-tag {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.feature-card h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.f-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.f-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.f-list i {
    color: var(--bg-light);
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 50%;
    margin-top: 2px;
}

/* =========================================
   NUEVO VISUAL: ECOSISTEMA INTEGRAL
========================================= */
.ecosystem-panel {
    width: 100%;
    /* Se remueve el margin-top extra para mantener la consistencia 100% equilibrada */
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    z-index: 10;
}

.eco-content {
    flex: 1;
}

.eco-content h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.eco-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.eco-visual {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.eco-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.eco-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.eco-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.eco-box:nth-child(even) i {
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.1);
}

.eco-box span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   CARACTERÍSTICAS TECNOLÓGICAS (SPLIT)
========================================= */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    z-index: 10;
}

.split-card {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s-num {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.split-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.split-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* =========================================
   FOOTER MODULAR
========================================= */
.footer {
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 10;
}

.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 4rem;
    border-radius: 40px;
}

/* =========================================
   ANIMACIONES
========================================= */
.reveal,
.fade-up,
.zoom-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active.reveal,
.active.fade-up,
.active.zoom-in {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVO
========================================= */
/* =========================================
   RESPONSIVO (OPTIMIZADO PARA IPHONE 15 / MÓVIL PREMIUM)
========================================= */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .massive-bg-text {
        font-size: 25vw;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .ecosystem-panel {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {

    /* Ajustes Globales Móvil */
    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Navbar Móvil */
    .navbar {
        padding: 0.5rem 1rem;
        gap: 1rem;
        width: 95%;
    }

    .nav-links {
        display: none;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Hero Móvil */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-container {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
        border-radius: var(--radius-md);
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    /* Grid de Características (Problema vs Solución) */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card {
        padding: 2.5rem 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .f-list {
        margin-bottom: 2rem;
    }

    /* Ecosistema Móvil */
    .ecosystem-panel {
        gap: 2.5rem;
    }

    .eco-content h2 {
        font-size: 2rem;
    }

    .eco-content p {
        font-size: 1rem;
    }

    .eco-visual {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .eco-box {
        padding: 1.5rem;
    }

    /* Tecnología / Split Grid */
    .split-card {
        padding: 2.5rem 1.5rem;
    }

    .split-card h3 {
        font-size: 1.8rem;
    }

    /* Footer Móvil */
    .cta-box {
        padding: 4rem 1.5rem;
        border-radius: var(--radius-md);
        margin: 0 1rem;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .footer {
        padding-top: 0;
    }

    /* Fondo Masivo Móvil (Evitar desbordamiento) */
    .massive-bg-text {
        font-size: 30vw;
        top: 50%;
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
}