/*
 * DURAPP.NET — Sistema de Diseño Cinematográfico v3.0
 * Estética: Luxury Tech / Editorial Oscura
 * Firmado: Satoshi + Plus Jakarta Sans, Efectos de cristal líquido, Animaciones cinemáticas
 * ============================================ */

/* ============================================
   FONTS — Cargo pesado para tipografía premium
   ============================================ */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

/* ============================================
   VARIABLES — Sistema de diseño expansivo
   ============================================ */
:root {
    /* === Paleta Core Oscura === */
    --bg-deep: #02050a;
    --bg-base: #05080f;
    --bg-surface: rgba(12, 18, 34, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.015);
    --bg-card-solid: #0a0f1a;

    /* === Brand — Azul Eléctrico + Terracota === */
    --brand-blue: #2d7ee9;
    --brand-blue-glow: rgba(45, 126, 233, 0.3);
    --brand-blue-subtle: rgba(45, 126, 233, 0.08);
    --accent: #e87a5a;
    --accent-glow: rgba(232, 122, 90, 0.35);
    --accent-subtle: rgba(232, 122, 90, 0.1);

    /* === Gradientes Premium === */
    --gradient-brand: linear-gradient(135deg, #2d7ee9 0%, #e87a5a 100%);
    --gradient-blue: linear-gradient(135deg, #1a4fa0 0%, #2d7ee9 100%);
    --gradient-accent: linear-gradient(135deg, #c45a3a 0%, #e87a5a 100%);
    --gradient-dark: linear-gradient(180deg, rgba(45, 126, 233, 0.08) 0%, transparent 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(45,126,233,0.12) 0%, transparent 60%);

    /* === Textos — Jerarquía tipográfica === */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;

    /* === Bordes — Definición sutil === */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-brand: rgba(45, 126, 233, 0.25);

    /* === Sombras — Profundidad multicapa === */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 40px rgba(45, 126, 233, 0.15);
    --shadow-glow-accent: 0 0 40px rgba(232, 122, 90, 0.12);

    /* === Tipografía === */
    --font-display: 'Satoshi', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* === Radios === */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* === Efectos === */
    --blur-glass: blur(24px);
    --blur-heavy: blur(48px);

    /* === Transiciones === */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.25s var(--ease-out-expo);
    --transition-base: 0.45s var(--ease-out-expo);
    --transition-smooth: 0.65s var(--ease-out-expo);
    --transition-premium: 0.9s var(--ease-out-expo);
}

/* ============================================
   LIGHT THEME — Contraparte elegante
   ============================================ */
[data-theme="light"] {
    --bg-deep: #f5f6fa;
    --bg-base: #f0f2f8;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --bg-glass-hover: rgba(0, 0, 0, 0.02);

    --brand-blue: #2563eb;
    --brand-blue-glow: rgba(37, 99, 235, 0.15);
    --brand-blue-subtle: rgba(37, 99, 235, 0.05);
    --accent: #ea6a45;
    --accent-glow: rgba(234, 106, 69, 0.15);
    --accent-subtle: rgba(234, 106, 69, 0.05);

    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 60%);

    --text-primary: #0a0f1a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;

    --border-glass: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 80px rgba(0, 0, 0, 0.10);
    --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.08);
    --shadow-glow-accent: 0 0 40px rgba(234, 106, 69, 0.06);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100dvh;
    position: relative;
}

/* === Fondo atmosférico === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        var(--gradient-hero),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(45,126,233,0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 70%, rgba(232,122,90,0.02) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(45,126,233,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === Textura noise === */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   UTILITY — Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-padding {
    padding: clamp(6rem, 12vw, 12rem) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-blue);
    padding: 0.5rem 1.25rem;
    background: var(--brand-blue-subtle);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-blue);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

/* ============================================
   TYPOGRAPHY — Sistema tipográfico premium
   ============================================ */
.text-display {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-size: clamp(2.2rem, 9vw, 6rem);
}

.text-hero {
    font-size: clamp(2.5rem, 10vw, 7rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.text-display-2 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

.text-muted {
    color: var(--text-tertiary);
}

/* ============================================
   NAVEGACIÓN — Glassmorphism Cinemática
   ============================================ */
.nav-glass {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 1240px;
    z-index: 1000;
    background: var(--bg-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-smooth);
    will-change: transform;
}

.nav-glass.scrolled {
    top: 0.75rem;
    background: color-mix(in srgb, var(--bg-base) 85%, transparent);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem clamp(1rem, 2.5vw, 2rem);
    gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px var(--brand-blue-glow);
    transition: box-shadow var(--transition-base);
}

.nav-logo:hover .nav-logo-icon {
    box-shadow: 0 0 30px var(--brand-blue-glow);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.nav-logo-accent { color: var(--brand-blue); }

/* Links de navegación */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--brand-blue-subtle);
}

.nav-link-dot {
    width: 4px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.nav-link.active .nav-link-dot {
    opacity: 1;
    transform: scale(1);
}

/* Acciones de navegación */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle-public {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-glass);
}

.theme-toggle-public:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
    background: var(--bg-glass-hover);
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

/* Mobile menu */
.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO — Cinematográfico
   ============================================ */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10rem 1.5rem 6rem;
    overflow: hidden;
}

/* Efecto de entrada hero */
.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--brand-blue-subtle), var(--accent-subtle));
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    animation: fadeInDown 0.8s ease-out;
}

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

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* === Partículas flotantes hero === */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0.25;
    animation: particle-float 20s infinite linear;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 18s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-duration: 22s; animation-delay: 3s; width: 3px; height: 3px; opacity: 0.15; }
.hero-particle:nth-child(3) { left: 45%; top: 30%; animation-duration: 25s; animation-delay: 6s; width: 5px; height: 5px; opacity: 0.2; }
.hero-particle:nth-child(4) { left: 65%; top: 70%; animation-duration: 20s; animation-delay: 2s; width: 3px; height: 3px; }
.hero-particle:nth-child(5) { left: 80%; top: 25%; animation-duration: 24s; animation-delay: 8s; opacity: 0.15; }
.hero-particle:nth-child(6) { left: 90%; top: 55%; animation-duration: 19s; animation-delay: 4s; }
.hero-particle:nth-child(7) { left: 5%; top: 80%; animation-duration: 21s; animation-delay: 7s; width: 3px; height: 3px; }
.hero-particle:nth-child(8) { left: 55%; top: 85%; animation-duration: 23s; animation-delay: 5s; opacity: 0.15; }

@keyframes particle-float {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: var(--opacity, 0.25); }
    25% { transform: translateY(-30vh) translateX(20px) scale(1.2); }
    50% { transform: translateY(-60vh) translateX(-10px) scale(0.8); opacity: 0.1; }
    75% { transform: translateY(-85vh) translateX(15px) scale(1.1); }
    100% { transform: translateY(-110vh) translateX(0) scale(1); opacity: var(--opacity, 0.25); }
}

/* Orbes glow */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-orb-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 70%);
}

.hero-orb-2 {
    bottom: 0%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
}

/* Hero título con efecto de letras (animado por GSAP) */
.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line span {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

/* === Indicador de scroll === */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.5;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* ============================================
   TRUST BAR
   ============================================ */
.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 500px;
    margin: 3.5rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-glass);
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.trust-item {
    text-align: center;
}

.trust-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.3rem;
}

.trust-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   BOTONES PREMIUM
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 25px var(--brand-blue-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--brand-blue-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-subtle);
    transform: translateY(-2px);
}

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.8rem; }
.btn-lg { padding: 1.1rem 3rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   FEATURES — Tarjetas de valor
   ============================================ */
.features-section {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-blue-subtle), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-brand);
    box-shadow: var(--shadow-glow-blue);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-blue-subtle), var(--accent-subtle));
    border: 1px solid var(--border-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* ============================================
   APPS GRID — Catálogo Premium
   ============================================ */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
    position: relative;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-brand);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

.app-card-image {
    height: 220px;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
    margin: 1rem;
    border-radius: var(--radius-lg);
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-premium);
}

.app-card:hover .app-card-image img {
    transform: scale(1.08);
}

.app-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    background: linear-gradient(135deg, var(--bg-deep), var(--bg-card-solid));
}

.app-card-badge-wrap {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.app-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--accent));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.app-card-badge .badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.app-card-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: block;
}

.app-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.app-card-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.app-card-footer {
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}

/* ============================================
   STATS — Contadores
   ============================================ */
.stats-section {
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-brand);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-blue);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================
   CONTACT — Sección CTA
   ============================================ */
.contact-section {
    padding-bottom: 8rem;
}

.contact-card {
    padding: clamp(3rem, 6vw, 5rem);
    text-align: center;
    background: linear-gradient(135deg, var(--brand-blue-subtle), var(--accent-subtle));
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--brand-blue-glow) 0%, transparent 60%);
    pointer-events: none;
}

.contact-card h2 {
    position: relative;
    z-index: 1;
}

.contact-desc {
    max-width: 550px;
    margin: 1rem auto 2.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--brand-blue-subtle), var(--accent-subtle));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.empty-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.empty-desc {
    color: var(--text-tertiary);
    max-width: 400px;
    font-weight: 300;
}

/* ============================================
   FOOTER — Premium
   ============================================ */
footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-deep);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.footer-logo-accent { color: var(--brand-blue); }

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
    font-weight: 300;
}

.footer-link:hover {
    color: var(--brand-blue);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    color: var(--brand-blue);
    border-color: var(--border-brand);
    background: var(--brand-blue-subtle);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    font-weight: 300;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Laptop */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-orb-1 { width: 80vw; height: 80vw; }
    .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-card { padding: 2rem 1rem; }
    .app-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .scroll-indicator { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background: color-mix(in srgb, var(--bg-base) 95%, transparent);
        backdrop-filter: var(--blur-heavy);
        -webkit-backdrop-filter: var(--blur-heavy);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.6s var(--ease-out-expo);
        z-index: -1;
    }

    .nav-links.mobile-open { right: 0; }

    .nav-link {
        font-size: 1.6rem;
        font-family: var(--font-display);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s var(--ease-out-expo);
    }

    .nav-links.mobile-open .nav-link {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.08s * var(--i, 1));
    }

    .nav-toggle { display: flex; }
    .nav-actions { z-index: 1; }

    .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }

    .stats-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { max-width: 100%; }
    .footer-social { justify-content: center; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }

    .contact-card { padding: 2.5rem 1.5rem; }
    .contact-actions { flex-direction: column; align-items: center; }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-trust { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-orb-1 { width: 100vw; height: 100vw; }
    .feature-card { padding: 1.5rem; }
}
