:root {
    color-scheme: dark;
    --bg: #050505;
    --surface: rgba(16, 16, 20, 0.92);
    --surface-strong: rgba(30, 30, 36, 0.85);
    --accent: #5c6cff;
    --accent-soft: rgba(92, 108, 255, 0.25);
    --text: #f4f4f7;
    --text-dim: rgba(244, 244, 247, 0.68);
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    font-size: 16px;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at top, rgba(92, 108, 255, 0.1), transparent 55%),
        radial-gradient(circle at bottom right, rgba(92, 108, 255, 0.08), transparent 60%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

main {
    width: min(1100px, 90vw);
    margin: 0 auto;
    padding: 0 0 6rem;
}

/* ===== NAVBAR NUEVA ===== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1100px, 90vw);
    margin: 1rem auto 0;
    padding: 0.9rem 1.25rem;
    backdrop-filter: blur(16px);
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.top-bar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    border-color: rgba(255,255,255,0.08);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--accent);
}

.menu-toggle { display: none; }

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    user-select: none;
}

.menu-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 108, 255, 0.25);
}

.navigation {
    display: flex;
    gap: 2rem;
}

.navigation a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.navigation a:hover::after { width: 100%; }

/* ===== HERO Y SECCIONES (igual que antes) ===== */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 7rem 0 5rem;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.subtitle { color: var(--text-dim); max-width: 32rem; }

.hero .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-soft);
    border: 1px solid rgba(92, 108, 255, 0.4);
    color: var(--accent);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }

.cta, .ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none;
    font-weight: 500; transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta { background: var(--accent); color: #07070c; box-shadow: 0 16px 32px rgba(92, 108, 255, 0.25); }
.cta:hover { transform: translateY(-2px) scale(1.01); }

.ghost { border: 1px solid var(--border); color: var(--text); }
.ghost:hover { transform: translateY(-2px); border-color: rgba(244, 244, 247, 0.2); }

.hero-visual {
    position: relative; min-height: 320px; border-radius: 30px;
    background: linear-gradient(160deg, rgba(92, 108, 255, 0.35), rgba(16, 16, 24, 0.95));
    overflow: hidden; border: 1px solid rgba(92, 108, 255, 0.2); box-shadow: var(--shadow);
}

.hero-visual .orb {
    position: absolute; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 108, 255, 0.9), rgba(92, 108, 255, 0));
    top: 20%; right: 15%; filter: blur(0.5px); animation: float 6s ease-in-out infinite;
}

.hero-visual .grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; mix-blend-mode: screen; opacity: 0.35;
}

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.section { margin: 5rem 0; }
.section h2 { font-size: 2.1rem; margin-bottom: 1.2rem; }
.section p { color: var(--text-dim); }

.services .service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}

.services article {
    padding: 1.8rem; border-radius: 24px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.services article:hover { transform: translateY(-4px); border-color: rgba(92, 108, 255, 0.35); }

.section-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.collection .product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}

.product-card {
    position: relative; padding: 2rem; border-radius: 24px; background: var(--surface-strong);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 1rem;
}

.product-card .badge {
    position: absolute; top: 1.5rem; right: 1.5rem; font-size: 0.65rem; letter-spacing: 0.15em;
    text-transform: uppercase; background: var(--accent); color: #050505;
    padding: 0.35rem 0.7rem; border-radius: 999px;
}

.price { font-size: 1.5rem; font-weight: 600; color: var(--text); }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.process .timeline {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}

.step {
    padding: 2rem; border-radius: 24px;
    background: linear-gradient(160deg, rgba(92, 108, 255, 0.08), rgba(10, 10, 14, 0.8));
    border: 1px solid rgba(92, 108, 255, 0.2); box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(92, 108, 255, 0.25);
    border: 1px solid rgba(92, 108, 255, 0.45);
    color: var(--accent); font-weight: 600; margin-bottom: 1.2rem;
}

.contact {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}

.contact-card {
    padding: 2.5rem; border-radius: 28px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}

.contact-form { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-form label { display: grid; gap: 0.6rem; font-size: 0.9rem; color: var(--text); }

input, textarea, button { font: inherit; }
input, textarea {
    width: 100%; padding: 0.9rem 1rem; border-radius: 18px;
    border: 1px solid rgba(244, 244, 247, 0.1);
    background: rgba(255, 255, 255, 0.04); color: var(--text);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
    outline: none; border-color: rgba(92, 108, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(92, 108, 255, 0.15);
}

button {
    width: fit-content; padding: 0.9rem 1.6rem; border-radius: 999px;
    background: var(--accent); color: #07070c; border: none; font-weight: 600; cursor: pointer;
    box-shadow: 0 16px 28px rgba(92, 108, 255, 0.2); transition: transform 0.2s ease;
}
button:hover { transform: translateY(-2px); }

.contact-info {
    display: grid; gap: 1.4rem; padding: 2.5rem; border-radius: 28px;
    background: linear-gradient(170deg, rgba(92, 108, 255, 0.12), rgba(10, 10, 14, 0.7));
    border: 1px solid rgba(92, 108, 255, 0.3); box-shadow: var(--shadow);
}

.info-block .title {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
}

.footer { padding: 2.5rem 0 4rem; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .menu-icon { display: block; }

    .navigation {
        position: absolute;
        top: 70px;
        right: 5%;
        background: rgba(10, 10, 15, 0.97);
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 1.6rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .menu-toggle:checked + .menu-icon + .navigation {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero { padding-top: 5rem; }
}
