:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
    --amber: #fbbf24;
    --white: #f8fafc;
    --text-muted: #94a3b8;
    --link-orange: #f97316;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--slate-950);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-emerald { color: var(--emerald); }
.grain-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: url('https://grainy-gradients.vercel.app/noise.svg'); opacity: 0.03; pointer-events: none; z-index: 9999; }

/* NAVBAR */
.navbar {
    height: 85px; display: flex; align-items: center; position: fixed; width: 100%; top: 0;
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(15px);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; font-family: 'Outfit'; }
.logo-box { background: var(--emerald); padding: 5px; border-radius: 8px; display: flex; color: var(--slate-950); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--emerald); }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.btn-text { color: var(--white); text-decoration: none; font-size: 0.9rem; }

/* BUTTONS */
.btn { border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-emerald { background: var(--emerald); color: var(--slate-950); padding: 12px 24px; box-shadow: 0 10px 20px var(--emerald-glow); }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 15px 30px var(--emerald-glow); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.w-100 { width: 100%; }

/* --- HERO CON IMAGEN DE FONDO (MODIFICADO) --- */
.hero { 
    padding: 180px 0 100px; 
    position: relative;
    background-image: url('img/background.png'); /* Asegúrate de que la imagen esté en esta ruta */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax Premium */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Capa de oscurecimiento para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de negro a transparente para resaltar el texto */
    background: linear-gradient(
        to right, 
        var(--slate-950) 1%, 
        rgba(2, 6, 23, 0.7) 5%
    );
    z-index: 1;
}

/* Asegurar que el contenido esté sobre la capa de fondo */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.badge-new { background: rgba(16, 185, 129, 0.1); color: var(--emerald); padding: 5px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--emerald); display: inline-block; margin-bottom: 1.5rem; }
h1 { font-family: 'Outfit'; font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.hero-info p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 550px; }
.hero-trust { margin-top: 3rem; display: flex; gap: 2rem; color: var(--text-muted); font-size: 0.85rem; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--emerald); width: 18px; }

/* MOCKUP UI */
.main-panel { 
    background: rgba(15, 23, 42, 0.8); /* Más transparente para el efecto glass */
    border: 1px solid var(--slate-800); 
    border-radius: 30px; 
    padding: 2rem; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.5); 
    backdrop-filter: blur(10px); /* Efecto cristal sobre la imagen de fondo */
}
.panel-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--slate-800); padding-bottom: 1rem; margin-bottom: 1.5rem; font-size: 0.8rem; font-weight: 700; }
.status { color: var(--emerald); }
.tables-container { display: flex; flex-direction: column; gap: 1rem; }
.table-ui { background: var(--slate-800); padding: 1.5rem; border-radius: 20px; border: 1px solid transparent; }
.table-ui.active { border-color: var(--emerald); background: rgba(16, 185, 129, 0.05); }
.table-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.5rem; }
.badge-active { color: var(--emerald); font-size: 0.7rem; text-transform: uppercase; }
.table-timer { font-size: 2.5rem; font-family: monospace; font-weight: 700; color: var(--white); }
.table-meta { font-size: 0.9rem; color: var(--text-muted); }

/* BENTO GRID */
.features { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 3rem; font-family: 'Outfit'; margin-bottom: 1rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.f-item { background: var(--slate-900); border: 1px solid var(--slate-800); padding: 2.5rem; border-radius: 32px; transition: 0.4s; }
.f-item:hover { border-color: var(--emerald); transform: translateY(-5px); }
.f-item.tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.f-item i { color: var(--emerald); margin-bottom: 1.5rem; width: 40px; height: 40px; }
.f-item h3 { margin-bottom: 1rem; font-size: 1.3rem; font-family: 'Outfit'; }
.f-item p { color: var(--text-muted); font-size: 0.95rem; }
.active-glow { background: linear-gradient(145deg, var(--slate-900), rgba(16, 185, 129, 0.05)); border-color: var(--emerald); }

/* SYNC SECTION */
.sync-section { padding: 100px 0; background: rgba(16, 185, 129, 0.02); }
.sync-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.sync-img { position: relative; justify-self: center; display: flex; justify-content: center; align-items: center; }
.sync-media-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.sync-phone-frame { width: 470px; height: 1000px; padding: 6px; border-radius: 36px; background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)); border: 1px solid rgba(255, 255, 255, 0); box-shadow: 0 25px 60px rgba(0,0,0,0.45); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.sync-phone-image { width: 105%; height: 102%; object-fit: cover; border-radius: 24px; display: block; }

/*configuracion de la laptop*/
.sync-laptop-frame { width: 950px; height: 680px; padding: 10px; border-radius: 24px; background: linear-gradient(145deg, rgba(15, 23, 42, 0), rgba(30, 41, 59, 0)); border: 1px solid rgba(255, 255, 255, 0.027); box-shadow: 0 20px 45px rgba(0, 0, 0, 0); display: flex; justify-content: center; align-items: center; overflow: hidden; margin-left: -180px; }

.sync-laptop-image { width: 100%; height: 100%; display: block; border-radius: 1px; }
.sync-list { list-style: none; margin-top: 2rem; }
.sync-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; font-weight: 500; }
.sync-list i { color: var(--emerald); }

/* FAQ */
.faq { padding: 100px 0; }

.faq-list { max-width: 800px; margin: 0 auto; }
details { background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 15px; margin-bottom: 1rem; padding: 1.5rem; cursor: pointer; transition: 0.3s; }
summary { display: flex; justify-content: space-between; align-items: center; font-weight: 600; list-style: none; }
details p { margin-top: 1rem; color: var(--text-muted); font-size: 0.95rem; }
details[open] { border-color: var(--emerald); }

/* FOOTER */
footer { padding: 100px 0 40px; border-top: 1px solid var(--slate-900); background: #010410; }
.footer-top { display: flex; justify-content: center; align-items: center; margin-bottom: 5rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.4rem; width: 100%; }
.footer-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-logo-img { width: 220px; height: auto; display: block; max-width: 100%; }
.social-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; color: var(--text-muted); }
.social-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.95rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; background: rgba(255,255,255,0.03); color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.social-links a:hover { color: var(--link-orange); border-color: rgba(249,115,22,0.4); transform: translateY(-1px); }
.footer-form-container h4 { margin-bottom: 1.5rem; font-family: 'Outfit'; font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
input { background: var(--slate-900); border: 1px solid var(--slate-800); padding: 15px; border-radius: 10px; color: white; width: 100%; outline: none; transition: 0.3s; }
input:focus { border-color: var(--emerald); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--slate-900); padding-top: 30px; font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 2rem; align-items: center; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-links ul { 
    list-style: none; 
    padding: 0; 
    text-decoration: none;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-top { gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* --- ESTILOS DEL CARRUSEL --- */
.captures {
    padding: 100px 0;
    overflow: hidden; 
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: rgba(16, 185, 129, 0.02);
}

.carousel-track {
    display: flex;
    width: max-content; 
    gap: 20px;
    animation: scrollInfinite 40s linear infinite; 
}

.carousel-track img {
    width: 450px; 
    height: auto;
    border-radius: 15px;
    border: 1px solid var(--slate-800);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    user-select: none;
}

.carousel-track img:hover {
    transform: scale(1.02);
    border-color: var(--emerald);
}

.carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero-grid, .bento-grid, .sync-grid, .footer-top, .form-row { grid-template-columns: 1fr; }
    .hero-mockup { display: none; }
    .hero { background-attachment: scroll; } /* Mejor rendimiento en móviles */
}

@media (max-width: 768px) {
    .carousel-track img {
        width: 300px;
    }
}
.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}
.social-links a:hover {
    color: var(--link-orange);
}