/* landing.css - Estilo "Clean Tech" Minimalista & Serio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;       /* Único color de acento fuerte */
    --primary-dark: #3730a3;
    --text-main: #0f172a;     /* Casi negro, muy serio */
    --text-muted: #64748b;    /* Gris técnico */
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;        /* Gris muy pálido para secciones alternas */
    --border: #e2e8f0;
    --radius: 8px;            /* Bordes menos redondeados, más "duros" */
    --container-width: 1200px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Animaciones Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Top Bar --- */
.top-bar {
    background: #0f172a; /* Slate 900 */
    color: #cbd5e1;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 25px; }
.top-bar a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.top-bar a:hover { color: white; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.navbar.scrolled { padding: 15px 0; background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-soft); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }

.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--text-main); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 6px; /* Bordes más rectos */
    font-weight: 600; text-decoration: none; transition: all 0.3s ease;
    cursor: pointer; font-size: 0.95rem; letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--text-main); /* Negro elegante */
    color: white;
    border: 1px solid var(--text-main);
}
.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    background: transparent;
}
.btn-outline:hover { border-color: var(--text-main); }

/* --- Mobile Menu --- */
.hamburger-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); }
.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2000; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); visibility: hidden; }
.mobile-menu-overlay.active { right: 0; visibility: visible; }
.mobile-menu-content { position: absolute; top: 0; right: 0; width: 100%; max-width: 320px; height: 100%; background: white; padding: 40px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); } 
.close-menu-btn { background: none; border: none; font-size: 24px; cursor: pointer; float: right; margin-bottom: 20px;}
.mobile-links { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.mobile-link { font-size: 1.2rem; font-weight: 600; color: var(--text-main); text-decoration: none; }

/* --- Hero Section (Orbit Effect) --- */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    /* Grid sutil de fondo */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ORBIT SYSTEM */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    z-index: 1; /* Detrás del texto */
    pointer-events: none;
    opacity: 0.6;
}

.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background: var(--text-main);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(15, 23, 42, 0.2);
}

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
}

.ring-1 { width: 400px; height: 400px; animation: spin 40s linear infinite; }
.ring-2 { width: 700px; height: 700px; animation: spin 60s linear infinite reverse; }
.ring-3 { width: 1100px; height: 1100px; border-style: dashed; opacity: 0.3; animation: spin 100s linear infinite; }

.orbit-planet {
    position: absolute;
    top: 50%;
    margin-top: -20px; /* Mitad de altura */
    margin-left: -20px; /* Mitad de ancho */
    width: 40px; height: 40px;
    background: white;
    border: 1px solid var(--text-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Posicionar planetas en el anillo */
.ring-1 .planet-1 { left: 100%; transform: translateX(-50%); animation: counter-spin 40s linear infinite; }
.ring-1 .planet-2 { left: 0%; transform: translateX(-50%); animation: counter-spin 40s linear infinite; }

.ring-2 .planet-3 { left: 50%; top: 0; transform: translateY(-50%); animation: counter-spin 60s linear infinite reverse; }
.ring-2 .planet-4 { left: 50%; top: 100%; transform: translateY(-50%); animation: counter-spin 60s linear infinite reverse; }

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter-spin { 100% { transform: translateX(-50%) rotate(-360deg); } }


.badge-new {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; background: white; color: var(--text-main);
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 30px;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: 4.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px;
    letter-spacing: -2px; color: var(--text-main);
    text-shadow: 0 0 80px rgba(255,255,255,0.8); /* Para que se lea sobre las líneas */
    position: relative;
}

.hero p {
    font-size: 1.35rem; color: var(--text-muted); margin-bottom: 50px;
    max-width: 650px; margin-left: auto; margin-right: auto;
    font-weight: 400;
    position: relative;
    background: rgba(255,255,255,0.7); /* Lectura */
    backdrop-filter: blur(2px);
}

/* --- Sections Common --- */
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- Features (Clean Cards) --- */
.features { padding: 120px 0; background: var(--bg-body); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.feature-card {
    background: white;
    padding: 50px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--text-main);
}

.icon-box {
    font-size: 32px; color: var(--text-main); margin-bottom: 25px;
    display: inline-block;
    padding: 15px; background: var(--bg-alt); border-radius: 8px;
    transition: 0.3s;
}
.feature-card:hover .icon-box { background: var(--text-main); color: white; }

.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; }
.feature-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.feature-card ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.95rem; }

/* --- Stats (Minimal) --- */
.stats { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; text-align: center; }
.stat-item h3 { font-size: 3.5rem; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.stat-item p { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* --- Browser Mockup (3D Tilt) --- */
.preview-section { margin-top: -60px; padding-bottom: 120px; perspective: 1500px; z-index: 20; position: relative;}
.browser-mockup {
    background: white; border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    transform: rotateX(5deg);
    transition: transform 0.6s ease-out;
}
.browser-mockup:hover { transform: rotateX(0deg) scale(1.02); }

/* --- Footer --- */
.footer { background: var(--bg-alt); padding: 80px 0 30px; border-top: 1px solid var(--border); }
.footer h2 { color: var(--text-main); margin-bottom: 10px; }
.footer p { color: var(--text-muted); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px;}

/* --- Trusted By --- */
.trusted-by { padding: 40px 0; border-bottom: 1px solid var(--border); background: #fafafa; }
.trusted-logos { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; opacity: 0.5; grayscale: 100%; }
.trusted-logos i { font-size: 28px; }

/* --- How It Works --- */
.how-it-works { padding: 100px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.step-card h3 { font-weight: 700; margin-top: 15px; }
.step-number { font-size: 3rem; font-weight: 900; opacity: 0.1; line-height: 1; }

/* --- Testimonials --- */
.testimonials { padding: 100px 0; background: #0f172a; color: white; }
.testimonials h2 { color: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: #1e293b; padding: 30px; border-radius: var(--radius); border: 1px solid #334155; }
.user-info { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.user-avatar { width: 40px; height: 40px; background: #475569; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold;}

/* --- FAQ --- */
.faq-section { padding: 100px 0; max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-question { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { display: none; margin-top: 10px; color: var(--text-muted); }

/* --- Pricing --- */
.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card { background: white; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius); }
.pricing-card:hover { border-color: var(--text-main); }
.pricing-header h3 { font-size: 1.5rem; font-weight: 800; }
.price { font-size: 3rem; font-weight: 900; margin: 20px 0; }
.pricing-features { list-style: none; margin-bottom: 30px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .top-bar { display: none; }
    .desktop-menu { display: none; }
    .hamburger-btn { display: block; }
    .hero h1 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .preview-section { transform: none; margin-top: 0; padding-bottom: 60px; }
    .browser-mockup { transform: none; }
    .hero { padding: 120px 0 80px; }
    
    .orbit-system { opacity: 0.3; transform: translate(-50%, -50%) scale(0.6); } /* Reducir en movil */
}