/* ===== Tokens ===== */
:root {
    --navy-900: #060912;
    --navy-800: #0a0e27;
    --navy-700: #0d142e;
    --navy-600: #131b3a;
    --cyan: #3dd7e0;
    --cyan-bright: #5cf0f5;
    --cyan-deep: #1aa7b0;
    --wa: #25d366;
    --wa-dark: #1da851;
    --text: #e8edff;
    --text-dim: #9aa6c9;
    --line: rgba(120, 160, 220, .14);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1140px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-glow: 0 0 0 1px rgba(61, 215, 224, .25), 0 18px 50px -18px rgba(61, 215, 224, .45);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--navy-800);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.12; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.text-gradient {
    background: linear-gradient(100deg, var(--cyan-bright), var(--cyan), #8a7bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
    --pad-y: .82em; --pad-x: 1.5em;
    display: inline-flex; align-items: center; gap: .55em; justify-content: center;
    padding: var(--pad-y) var(--pad-x);
    font: inherit; font-weight: 600; font-size: .98rem;
    border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: linear-gradient(120deg, var(--wa), var(--wa-dark));
    color: #04220f; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .85); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn--lg { --pad-y: 1.02em; --pad-x: 1.9em; font-size: 1.05rem; }
.btn--sm { --pad-y: .6em; --pad-x: 1.1em; font-size: .9rem; }
.ico-wa { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 14, 39, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', sans-serif; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; }
.brand__name { font-size: 1.18rem; font-weight: 500; color: var(--text-dim); letter-spacing: .3px; }
.brand__name strong { color: var(--text); font-weight: 700; }

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) { color: var(--text-dim); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--cyan); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 70px; overflow: hidden; }
.hero__glow {
    position: absolute; inset: -20% 30% auto -10%; height: 620px;
    background: radial-gradient(closest-side, rgba(61, 215, 224, .22), transparent 70%),
                radial-gradient(closest-side, rgba(124, 92, 255, .18), transparent 70%);
    background-position: 20% 30%, 80% 10%; background-repeat: no-repeat;
    filter: blur(10px); pointer-events: none; z-index: 0;
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 22px; letter-spacing: -.5px; }
.hero__subtitle { font-size: 1.12rem; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }
.hero__subtitle strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; color: var(--cyan); }
.hero__stats span { font-size: .85rem; color: var(--text-dim); }

/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.hero__card {
    position: relative; width: min(420px, 100%); aspect-ratio: 1;
    border-radius: 28px; padding: 18px;
    background: linear-gradient(160deg, rgba(61, 215, 224, .12), rgba(124, 92, 255, .08));
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero__bot { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.chip {
    position: absolute; background: rgba(10, 14, 39, .92); border: 1px solid var(--line);
    color: var(--text); font-size: .82rem; font-weight: 600;
    padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.chip--1 { top: 6%; left: -8%; }
.chip--2 { bottom: 16%; left: -6%; animation-delay: .8s; }
.chip--3 { top: 24%; right: -7%; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ===== Trust strip ===== */
.trust { border-block: 1px solid var(--line); background: var(--navy-700); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; padding-block: 26px; }
.trust__inner > span { color: var(--text-dim); font-size: .9rem; }
.trust__list { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.trust__list li { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text); opacity: .72; letter-spacing: .3px; }

/* ===== Sections ===== */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--navy-700); }
.section__head { max-width: 640px; margin: 0 auto clamp(38px, 5vw, 60px); text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section__head p { color: var(--text-dim); font-size: 1.05rem; }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(61, 215, 224, .45); box-shadow: var(--shadow-glow); }
.card__icon {
    width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.55rem;
    border-radius: 14px; margin-bottom: 18px;
    background: rgba(61, 215, 224, .1); border: 1px solid rgba(61, 215, 224, .25);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .98rem; }

/* ===== Beneficios ===== */
.benefits { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.benefits__media { display: flex; justify-content: center; }
.benefits__img {
    width: min(380px, 100%); border-radius: 24px; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, rgba(61, 215, 224, .1), transparent);
}
.benefits__content h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.benefits__lead { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 26px; }
.checklist { display: grid; gap: 14px; margin-bottom: 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.checklist span {
    flex: none; width: 24px; height: 24px; display: grid; place-items: center; margin-top: 2px;
    border-radius: 50%; background: rgba(37, 211, 102, .15); color: var(--wa);
    font-size: .8rem; font-weight: 700;
}

/* ===== Proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; padding: 30px 24px; border-radius: var(--radius);
    background: var(--navy-700); border: 1px solid var(--line);
}
.step__num {
    display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.5rem; color: var(--cyan); margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .96rem; }

/* ===== CTA ===== */
.cta { padding: clamp(64px, 9vw, 110px) 0; }
.cta__inner {
    text-align: center; max-width: 760px; margin-inline: auto;
    padding: clamp(40px, 6vw, 70px) 30px; border-radius: 26px;
    background:
        radial-gradient(closest-side at 50% 0%, rgba(61, 215, 224, .25), transparent 70%),
        linear-gradient(160deg, var(--navy-600), var(--navy-700));
    border: 1px solid rgba(61, 215, 224, .3); box-shadow: var(--shadow);
}
.cta__inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta__inner p { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 30px; }
.cta__note { display: block; margin-top: 18px; font-size: .9rem; color: var(--text-dim); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--navy-900); padding: 50px 0 36px; }
.footer__inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--text-dim); max-width: 420px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; }
.footer__links a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--cyan); }
.footer__copy { color: var(--text-dim); font-size: .85rem; opacity: .75; }

/* ===== Floating WhatsApp ===== */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(120deg, var(--wa), var(--wa-dark)); color: #04220f;
    padding: 13px 18px 13px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem;
    box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .75);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float::after {
    content: ""; position: absolute; inset: -4px; border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: rgba(10, 14, 39, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
        transform: translateY(-130%); transition: transform .32s ease; visibility: hidden;
    }
    .nav__menu.is-open { transform: none; visibility: visible; }
    .nav__menu li { width: 100%; }
    .nav__menu a:not(.btn) { display: block; padding: 10px 4px; }
    .nav__menu .btn { width: 100%; margin-top: 6px; }

    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions, .hero__stats { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__card { width: min(330px, 80%); }

    .grid--3 { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr; gap: 36px; }
    .benefits__content { text-align: center; }
    .checklist li { text-align: left; }
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .grid--3, .steps { grid-template-columns: 1fr; }
    .hero__stats { gap: 22px; }
    .wa-float__txt { display: none; }
    .wa-float { padding: 14px; }
    .chip--1 { left: 0; } .chip--2 { left: 2%; } .chip--3 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== Experience / real clients ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.experience-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(19, 27, 58, .96), rgba(13, 20, 46, .96));
    box-shadow: 0 16px 42px -30px rgba(0, 0, 0, .9);
}
.experience-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.project-type,
.project-status,
.project-card__kind,
.private-label {
    font-size: .78rem;
    font-weight: 600;
}
.project-type,
.project-card__kind {
    color: var(--cyan);
    background: rgba(61, 215, 224, .08);
    border: 1px solid rgba(61, 215, 224, .22);
    border-radius: 999px;
    padding: 6px 10px;
}
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-dim);
}
.project-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wa);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, .1);
}
.experience-card h3 {
    font-size: 1.35rem;
    margin-bottom: 7px;
}
.experience-card__subtitle {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: .95rem;
}
.project-list {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}
.project-list li {
    position: relative;
    padding-left: 17px;
    color: var(--text-dim);
    font-size: .93rem;
}
.project-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .66em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 17px;
}
.metric-row span {
    flex: 1 1 120px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    color: var(--text-dim);
    font-size: .82rem;
}
.metric-row strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-size: .76rem;
    font-weight: 600;
}

/* ===== Portfolio ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--navy-700);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 215, 224, .42);
    box-shadow: var(--shadow-glow);
}
.project-card__visual {
    min-height: 145px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background:
        radial-gradient(circle at 25% 30%, rgba(61, 215, 224, .22), transparent 36%),
        linear-gradient(150deg, rgba(61, 215, 224, .09), rgba(124, 92, 255, .07));
    border-bottom: 1px solid var(--line);
}
.project-card--app .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(138, 123, 255, .28), transparent 36%),
        linear-gradient(150deg, rgba(124, 92, 255, .12), rgba(61, 215, 224, .07));
}
.project-card--automation .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(37, 211, 102, .22), transparent 36%),
        linear-gradient(150deg, rgba(37, 211, 102, .09), rgba(61, 215, 224, .06));
}
.project-card--web .project-card__visual {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 121, 198, .18), transparent 36%),
        linear-gradient(150deg, rgba(255, 121, 198, .07), rgba(124, 92, 255, .08));
}
.project-card__icon {
    align-self: center;
    font-size: 3rem;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25));
}
.project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px 22px 21px;
}
.project-card__body h3 {
    font-size: 1.22rem;
    margin-bottom: 9px;
}
.project-card__body > p {
    color: var(--text-dim);
    font-size: .93rem;
    margin-bottom: 18px;
}
.project-card__body .tag-list {
    margin-bottom: 18px;
}
.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 4px;
}
.text-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: .91rem;
    transition: color .2s ease, transform .2s ease;
}
.text-link:hover {
    color: var(--cyan-bright);
}
.private-label {
    color: var(--text-dim);
}

/* ===== Small refinements for the updated content ===== */
.hero__stats strong { white-space: nowrap; }
.benefits__content .eyebrow,
.cta__inner .eyebrow { margin-bottom: 12px; }

@media (max-width: 980px) {
    .experience-grid,
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .experience-grid,
    .portfolio-grid { grid-template-columns: 1fr; }
    .experience-card__top { align-items: flex-start; }
    .project-card__visual { min-height: 125px; }
}
