/* ============================================
   VARIABLES & PALETA PATHRIMONEY
   ============================================ */
:root {
    /* Colores Pathrimoney - Dark Mode */
    --bg-primary: #0f172a;
    --bg-secondary: #1a1f35;
    --bg-tertiary: #252d47;
    
    --navy: #1B2A4A;
    --blue: #2E5090;
    --slate: #64748B;
    --slate-light: #94a3b8;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #2E5090 0%, #1B2A4A 100%);
    --gradient-accent: linear-gradient(135deg, #00D9FF 0%, #0099CC 100%);
    
    /* Tipografía */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET & FUNDAMENTOS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   BACKGROUND MODERNO (GRADIENTES GEOMÉTRICOS)
   ============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: -1;
    overflow: hidden;
}

/* Gradient mesh moderno */
.background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(46, 80, 144, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(46, 80, 144, 0.05) 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5%, 5%);
    }
}

/* Grid subtil de fondo */
.background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 116, 139, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0;
    pointer-events: none;
}

.gradient-orb {
    display: none;
}

#particles-canvas {
    display: none;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(46, 80, 144, 0.3));
}

.logo:hover {
    filter: drop-shadow(0 0 20px rgba(46, 80, 144, 0.4));
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(26, 31, 53, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--slate-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: #e2e8f0;
    background: rgba(46, 80, 144, 0.2);
}

.lang-btn.active {
    color: #00D9FF;
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.lang-separator {
    color: rgba(148, 163, 184, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 40px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    overflow: visible;
}

.headline {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    /* Room for descenders (g, y, p) — background-clip: text can clip them otherwise */
    line-height: 1.15;
    margin-bottom: 24px;
    padding-block: 0.06em 0.14em;
    overflow: visible;
    background: linear-gradient(135deg, #e2e8f0 0%, #00D9FF 50%, #2E5090 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* iOS/Safari: paint gradient through descenders */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    letter-spacing: -1px;
}

.subheadline {
    font-size: 18px;
    color: var(--slate-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1.2s ease-out;
}

/* ============================================
   CTA SECTION - REMOVED
   ============================================ */

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
}

.feature-card {
    padding: 32px 24px;
    background: rgba(26, 31, 53, 0.6);
    border: 1px solid rgba(46, 80, 144, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: fadeInUp 1.6s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(26, 31, 53, 0.9);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.1), inset 0 0 20px rgba(46, 80, 144, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: inline-block;
    color: #00D9FF;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.feature-card p {
    font-size: 14px;
    color: var(--slate-light);
    line-height: 1.6;
}

/* ============================================
   DECORACIÓN - REMOVED
   ============================================ */

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 40px;
    margin-top: 80px;
    text-align: center;
    color: var(--slate-light);
    animation: fadeInUp 1.8s ease-out;
}

.footer p {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links {
    display: none;
}

.dot {
    display: none;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 217, 255, 0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    .header {
        margin-bottom: 60px;
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        gap: 30px;
    }

    .headline {
        font-size: clamp(28px, 7vw, 48px);
    }

    .subheadline {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .decoration-number {
        display: none;
    }

    .gradient-orb {
        width: 300px !important;
        height: 300px !important;
        filter: blur(80px);
    }

    .gradient-orb-1 {
        width: 300px;
        height: 300px;
    }

    .gradient-orb-2 {
        width: 250px;
        height: 250px;
    }

    .gradient-orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    .header {
        margin-bottom: 40px;
    }

    .logo {
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
    }

    .headline {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 16px;
    }

    .subheadline {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 14px;
        width: 100%;
    }

    .cta-section {
        margin-bottom: 40px;
    }

    .language-toggle {
        gap: 6px;
        padding: 6px 10px;
    }

    .lang-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
}
