/* ── Reset & base ────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    background: #06111A;
    color: #E8EFF5;
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom cursor ───────────────────────────────── */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #0ECFB8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.2s;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(14, 207, 184, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.35s ease, width 0.3s, height 0.3s, opacity 0.2s;
    transform: translate(-50%, -50%);
}

body:hover .cursor {
    opacity: 1;
}

/* ── CSS Variables ───────────────────────────────── */
:root {
    --navy: #06111A;
    --navy2: #0A1C2A;
    --navy3: #0F2336;
    --teal: #0ECFB8;
    --teal2: #0AABA0;
    --teal-g: rgba(14, 207, 184, 0.08);
    --teal-b: rgba(14, 207, 184, 0.18);
    --white: #E8EFF5;
    --gray: #7A8D99;
    --gray2: #4A5D69;
    --border: rgba(14, 207, 184, 0.12);
    --shadow: 0 0 80px rgba(14, 207, 184, 0.06);
}

/* ── Typography ──────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

/* ── Noise overlay ───────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    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.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ── Grid bg ─────────────────────────────────────── */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(14, 207, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 207, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(6, 17, 26, 0.95), transparent);
    backdrop-filter: blur(2px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0em;
    color: var(--white);
}

.logo-a {
    width: 32px;
    height: 32px;
    background: var(--teal);
    clip-path: polygon(50% 0%, 0% 100%, 20% 100%, 50% 40%, 80% 100%, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 900;
    padding-top: 6px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--gray);
    font-size: 0.875rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-cta {
    background: var(--teal);
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: #0AABA0;
    transform: translateY(-1px);
}

/* ── Sections wrapper ────────────────────────────── */
section {
    position: relative;
    z-index: 2;
}

/* ══ HERO ══════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 140px 60px 80px;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--teal);
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 0.9s 0.35s forwards;
    max-width: 900px;
}

.hero-title .accent {
    color: var(--teal);
    display: block;
}

/* ── Hero Features List ──────────────────────────── */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 32px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 140px;
    /* Prevent layout jump */
}

.feature-item {
    font-family: 'Mulish', sans-serif;
    font-size: 1.1rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-20px);
    animation: itemSlideIn 0.5s forwards ease-out;
}

.feature-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--teal);
}

@keyframes itemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 44px;
    opacity: 0;
    animation: fadeUp 0.9s 0.65s forwards;
}

.btn-primary {
    background: var(--teal);
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(14, 207, 184, 0.2);
}

.btn-primary svg {
    transition: transform 0.2s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--gray);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 16px 36px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.hero-visual {
    position: absolute;
    right: 60px;
    top: 40%;
    /* Shifted up to balance with content */
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    opacity: 0;
    animation: fadeIn 1.2s 0.8s forwards;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-1 {
    inset: 0;
    animation: spin 20s linear infinite;
}

.ring-2 {
    inset: 30px;
    animation: spin 15s linear infinite reverse;
    border-color: rgba(14, 207, 184, 0.2);
}

.ring-3 {
    inset: 60px;
    animation: spin 25s linear infinite;
}

.ring-1::before,
.ring-2::before,
.ring-3::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--teal);
}

.ring-inner {
    position: absolute;
    inset: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 207, 184, 0.06) 0%, transparent 70%);
    border: 1px solid rgba(14, 207, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-line {
    position: absolute;
    left: 90px;
    right: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    top: 50%;
    animation: scan 3s ease-in-out infinite;
    box-shadow: 0 0 8px var(--teal);
}

.face-dots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.ring-inner::after {
    content: 'A';
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(14, 207, 184, 0.15);
    z-index: 0;
    background: linear-gradient(to bottom, var(--teal), transparent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.6;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(14, 207, 184, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

.dot.active {
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--teal);
}

.corner::before {
    width: 100%;
    height: 1.5px;
    top: 0;
}

.corner::after {
    width: 1.5px;
    height: 100%;
    left: 0;
}

.c-tl {
    top: 80px;
    left: 80px;
}

.c-tr {
    top: 80px;
    right: 80px;
    transform: scaleX(-1);
}

.c-bl {
    bottom: 80px;
    left: 80px;
    transform: scaleY(-1);
}

.c-br {
    bottom: 80px;
    right: 80px;
    transform: scale(-1);
}

/* Status badge */
.status-badge {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 207, 184, 0.08);
    border: 1px solid rgba(14, 207, 184, 0.25);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: blink 1.5s ease-in-out infinite;
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.9s 0.8s forwards;
}

.stat {
    padding: 24px 40px 0 0;
    border-right: 1px solid var(--border);
    margin-right: 40px;
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.04em;
}

.stat-num span {
    color: var(--teal);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ══ HOW IT WORKS ═══════════════════════════════════ */
#como {
    padding: 120px 60px;
    background: linear-gradient(to bottom, var(--navy), var(--navy2));
}

.section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    max-width: 600px;
    line-height: 1.05;
}

.section-title .accent {
    color: var(--teal);
}

.methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 64px;
    background: var(--border);
    border: 1px solid var(--border);
}

.method {
    background: var(--navy2);
    padding: 48px 40px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.method:hover::before {
    transform: scaleX(1);
}

.method:hover {
    background: var(--navy3);
}

.method-icon {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    transition: border-color 0.3s, background 0.3s;
}

.method:hover .method-icon {
    border-color: var(--teal);
    background: var(--teal-g);
}

.method h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.method p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 300;
}

/* ══ ECOSISTEMA SECTION ══════════════════════════════ */
#panel {
    padding: 120px 60px;
    background: var(--navy2);
}

.ecosystem-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 64px 0;
}

.eco-item {
    background: var(--navy3);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.eco-item:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
}

.eco-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.eco-info {
    padding: 20px;
}

.eco-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.eco-info p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.panel-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.panel-feature-item h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.panel-feature-item p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ══ PROCESO ════════════════════════════════════════ */
#proceso {
    padding: 120px 60px;
    background: var(--navy);
}

.steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    margin-top: 64px;
    background: var(--border);
    border: 1px solid var(--border);
}

.step {
    background: var(--navy2);
    padding: 40px 28px;
    position: relative;
}

.step:hover {
    background: var(--navy3);
}

.step-n {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(14, 207, 184, 0.1);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.78rem;
    color: var(--gray);
    line-height: 1.6;
}

.step-time {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--teal);
    border: 1px solid rgba(14, 207, 184, 0.2);
    padding: 3px 10px;
    border-radius: 2px;
}

/* ══ CONTACTO ═══════════════════════════════════════ */
#contacto {
    padding: 120px 60px;
    background: var(--navy);
    text-align: center;
}

.contact-box {
    max-width: 640px;
    margin: 0 auto;
}

.contact-box p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 48px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.clients-subtle {
    margin-top: 80px;
    opacity: 0.6;
}

.clients-subtle p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray2);
    margin-bottom: 16px;
}

.clients-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.contact-info {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-detail {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-detail span {
    color: var(--white);
}

/* ══ FOOTER ════════════════════════════════════════ */
footer {
    padding: 28px 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray2);
    position: relative;
    z-index: 2;
}

footer .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--gray);
}

footer .brand span {
    color: var(--teal);
}

/* ══ ANIMATIONS ════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scan {

    0%,
    100% {
        top: 30%;
        opacity: 0.3;
    }

    50% {
        top: 70%;
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Rotating text ───────────────────────────────── */
.rotating-wrapper {
    position: relative;
    height: 1.25em;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--teal);
    margin-top: 10px;
}

#rotatingWord {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 1.1;
    display: block;
    white-space: nowrap;
    animation: wordFade 0.6s ease;
}

@keyframes wordFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Client Marquee ──────────────────────────────── */
.clients-marquee {
    padding: 60px 0;
    background: rgba(10, 28, 42, 0.3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-top: -1px;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.marquee-content p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal);
    opacity: 0.5;
}

.marquee-list {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}

.marquee-list span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.marquee-list span:hover {
    opacity: 1;
    color: var(--teal);
    transform: scale(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    #hero {
        padding: 120px 24px 60px;
        align-items: center;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin: 0 auto;
        line-height: 1.1;
    }

    .rotating-wrapper {
        justify-content: center;
        height: 1.25em;
        margin-top: 5px;
    }

    .hero-sub {
        margin: 28px auto 0;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
        width: 100%;
    }

    .stat {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    #como,
    #panel,
    #proceso,
    #contacto {
        padding: 80px 24px;
    }

    .methods,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero-features {
        align-items: center;
        text-align: center;
    }

    .feature-item {
        font-size: 1rem;
        justify-content: center;
    }

    .ecosystem-gallery {
        grid-template-columns: 1fr;
    }

    .panel-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cursor,
    .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}