:root {
    --bg-dark: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #999;
    --accent: #FF9500;
    --accent-glow: rgba(255, 149, 0, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-main);
    line-height: 1.6; overflow-x: hidden;
}

/* --- BACKGROUND FX --- */
.mesh-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--card-border) 1px, transparent 1px), linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.1;
}
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: float 15s infinite ease-in-out; }
.orb-1 { width: 600px; height: 600px; background: #FF4D4D; top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: #FF9500; bottom: -100px; right: -100px; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 50px); } }

/* --- NAV --- */
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 2rem 5%; max-width: 1400px; margin: 0 auto; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.flavor-base { display:inline-block; width: 12px; height: 12px; background: #fff; border-radius: 50%; margin-right: -4px;}
.flavor-accent { display:inline-block; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); position:relative; top:-4px;}
.logo-text { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.btn-launch { text-decoration: none; color: #000; background: #fff; padding: 0.7rem 1.4rem; border-radius: 50px; font-weight: 700; font-size: 0.9rem; transition: transform 0.2s; }
.btn-launch:hover { transform: scale(1.05); }

/* --- HERO --- */
.hero { display: grid; grid-template-columns: 1fr; gap: 4rem; padding: 6rem 5% 4rem; max-width: 1400px; margin: 0 auto; align-items: center; }
@media(min-width: 900px) { .hero { grid-template-columns: 1.2fr 0.8fr; min-height: 80vh; } }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -2px; }
@media(min-width: 900px) { .hero h1 { font-size: 5rem; } }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 3rem; }
.cta-group { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media(min-width: 600px) { .cta-group { flex-direction: row; align-items: center; } }
.btn-primary { position: relative; text-decoration: none; background: var(--accent); color: #000; padding: 1rem 2.5rem; border-radius: 12px; font-weight: 700; font-size: 1.1rem; transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-secondary { text-decoration: none; color: #fff; padding: 1rem 2rem; border: 1px solid var(--card-border); border-radius: 12px; font-weight: 600; transition: background 0.2s; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* --- BENTO GRID (FEATURES) --- */
.bento-section { padding: 4rem 5%; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-label { font-size: 0.8rem; color: var(--accent); letter-spacing: 1px; font-weight: 700; margin-bottom: 0.5rem; display: block; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; }
.section-sub { color: var(--text-secondary); margin-top: 10px; font-size: 1.1rem; }

.bento-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media(min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); }
    .box-large { grid-column: span 2; grid-row: span 2; }
    .box-wide { grid-column: span 3; }
}

.bento-box {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 2.5rem; border-radius: 24px; position: relative; overflow: hidden;
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.bento-box:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }
.box-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.bento-box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.bento-box p { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }

/* Estilo especial para la caja grande (Wake Lock) */
.glow-orange { border-color: rgba(255, 149, 0, 0.3); background: linear-gradient(to bottom right, rgba(255, 149, 0, 0.05), transparent); }
.pill {
    position: absolute; top: 20px; right: 20px;
    background: var(--accent); color: black; font-size: 0.75rem; font-weight: 700;
    padding: 5px 12px; border-radius: 20px;
}

/* --- TECH STACK --- */
.stack-section { padding: 6rem 5%; max-width: 1000px; margin: 0 auto; }
.stack-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px; margin-top: 3rem;
}
.stack-card {
    background: #0A0A0A; border: 1px solid #222; padding: 2rem;
    border-radius: 16px; text-align: center; transition: 0.3s;
}
.stack-card:hover { border-color: var(--accent); }
.stack-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.stack-card h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.stack-card p { font-size: 0.85rem; color: #666; }

/* --- FOOTER --- */
.landing-footer { border-top: 1px solid var(--card-border); padding: 4rem 5%; text-align: center; margin-top: 4rem; }
.brand-link { display: inline-flex; align-items: center; gap: 5px; font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; margin: 1rem 0; }
.highlight { color: var(--accent); }
.copyright { font-size: 0.8rem; color: #555; }

/* --- PHONE MOCKUP UI --- */
.hero-visual { display: flex; justify-content: center; perspective: 1000px; }
.floating { animation: float-phone 6s ease-in-out infinite; }
@keyframes float-phone { 0%,100% {transform: translateY(0) rotateY(-10deg);} 50% {transform: translateY(-20px) rotateY(-5deg);} }
.phone-mockup { width: 320px; height: 640px; background: #000; border-radius: 45px; border: 10px solid #222; position: relative; overflow: hidden; box-shadow: 20px 20px 60px rgba(0,0,0,0.5); }
.screen-content { background: #F2F2F7; width: 100%; height: 100%; position: relative; font-family: -apple-system, sans-serif; display: flex; flex-direction: column; }
.ui-app-header { padding: 20px 20px 10px; background: rgba(242, 242, 247, 0.9); margin-top: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ui-logo-wrapper { display: flex; align-items: center; gap: 6px; }
.ui-logo-mark { position: relative; width: 16px; height: 16px; }
.ui-flavor-base { width: 10px; height: 10px; background: #000; border-radius: 50%; position: absolute; left: 0; top: 3px; }
.ui-flavor-accent { width: 10px; height: 10px; background: #FF9500; border-radius: 50%; position: absolute; right: 0; top: 0; }
.ui-logo-text { font-weight: 800; font-size: 1.1rem; color: #000; letter-spacing: -0.5px; }
.ui-dashboard { padding: 15px 15px 0; }
.ui-page-title { font-size: 28px; font-weight: 800; color: #000; letter-spacing: -1px; margin-bottom: 10px; }
.ui-search-bar { background: #E3E3E8; border-radius: 10px; padding: 8px 12px; color: #8E8E93; font-size: 13px; margin-bottom: 15px; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ui-card-img { height: 80px; width: 100%; background-size: cover; background-position: center; }
.ui-card-info { padding: 8px; }
.ui-card-title { font-size: 12px; font-weight: 700; color: #000; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-card-tag { font-size: 9px; color: #8E8E93; font-weight: 600; }
.ui-fab { position: absolute; bottom: 20px; right: 20px; width: 45px; height: 45px; background: #000; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
/* --- BENTO GRID (FEATURES) --- */
.bento-section { padding: 4rem 5%; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-label { font-size: 0.8rem; color: var(--accent); letter-spacing: 1px; font-weight: 700; margin-bottom: 0.5rem; display: block; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; }
.section-sub { color: var(--text-secondary); margin-top: 10px; font-size: 1.1rem; }

/* NUEVO GRID UNIFORME */
.bento-grid-uniform {
    display: grid; 
    grid-template-columns: 1fr; /* Móvil: 1 columna */
    gap: 20px;
}
@media(min-width: 768px) {
    .bento-grid-uniform { 
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
    }
}
@media(min-width: 1024px) {
    .bento-grid-uniform { 
        grid-template-columns: repeat(3, 1fr); /* PC: 3 columnas */
    }
}

.bento-box {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 2.5rem; border-radius: 24px; position: relative; overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.bento-box.glow-hover:hover { 
    transform: translateY(-5px); 
    background: rgba(255, 149, 0, 0.05); /* Brillo naranja sutil */
    border-color: rgba(255, 149, 0, 0.3);
}
.box-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.bento-box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.bento-box p { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; }

/* Badge de la barra de navegación */
.badge-beta {
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
    border: 1px solid var(--accent); padding: 4px 8px; border-radius: 4px;
    background: rgba(255, 149, 0, 0.1); font-weight: bold;
}