/* ==========================================================================
 * Carletes Shop — estudio de desarrollo
 * Estilos compartidos + página principal
 * ========================================================================== */

:root {
    --ink: #07060d;
    --ink-2: #0d0b17;
    --ink-3: #151225;
    --paper: #f4f2ee;
    --paper-2: #eae7e0;
    --white: #ffffff;

    --text-on-dark: #f5f3fa;
    --muted-on-dark: #a7a3b8;
    --dim-on-dark: #75718a;
    --text-on-light: #100e19;
    --muted-on-light: #55516a;

    --violet: #8b5cf6;
    --violet-deep: #6236d9;
    --violet-soft: #c4b5fd;

    --line-dark: rgba(255, 255, 255, 0.1);
    --line-dark-2: rgba(255, 255, 255, 0.18);
    --line-light: rgba(16, 14, 25, 0.12);
    --line-light-2: rgba(16, 14, 25, 0.22);

    --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --radius: 24px;
    --radius-sm: 14px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text-on-dark);
    font: 400 1rem/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
    outline: 2px solid var(--violet-soft);
    outline-offset: 3px;
    border-radius: 6px;
}
.on-light :focus-visible { outline-color: var(--violet-deep); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    padding: 12px 18px; border-radius: 12px;
    background: #fff; color: var(--ink); font-weight: 600;
    transition: top 0.2s;
}
.skip:focus { top: 16px; }

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

/* ---------------------------------------------------------------- tipografía */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 0.74rem/1.2 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}
.on-light .label { color: var(--muted-on-light); }
.label--line::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.display {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.7rem, 7.4vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
}
.display span { color: var(--violet-soft); }

.h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.2rem, 5.2vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--dim-on-dark); }
.on-light .h2 em { color: #8d89a0; }

.lead {
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    line-height: 1.6;
    color: var(--muted-on-dark);
    max-width: 52ch;
}
.on-light .lead { color: var(--muted-on-light); }

/* ---------------------------------------------------------------- botones */
.btn {
    --h: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: var(--h);
    padding: 0 10px 0 22px;
    border-radius: 999px;
    font: 600 0.98rem/1 var(--body);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.4s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.4s var(--ease);
}
.btn__icon {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    transition: transform 0.4s var(--ease), background-color 0.25s;
}
.btn__icon svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__icon { background: var(--ink); color: #fff; }
.btn--light:hover { box-shadow: 0 18px 44px -18px rgba(139, 92, 246, 0.9), 0 0 0 5px rgba(255, 255, 255, 0.07); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .btn__icon { background: #fff; color: var(--ink); }
.btn--dark:hover { box-shadow: 0 18px 40px -18px rgba(16, 14, 25, 0.7); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: var(--line-dark-2); padding-right: 22px; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.32); }
.on-light .btn--ghost { background: transparent; color: var(--text-on-light); border-color: var(--line-light-2); }
.on-light .btn--ghost:hover { background: rgba(16, 14, 25, 0.05); }

.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500;
    color: var(--muted-on-dark);
    border-bottom: 1px solid var(--line-dark-2);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- nav */
.nav {
    position: fixed;
    inset: 14px 0 auto;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.6s var(--ease), opacity 0.4s;
}
.nav.is-hidden { transform: translateY(-130%); opacity: 0; }
.nav__bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
    padding: 0 8px 0 20px;
    border-radius: 999px;
    background: rgba(12, 10, 22, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}
.nav__brand { display: flex; align-items: center; min-height: 44px; }
.nav__brand svg { height: 22px; width: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
    display: inline-flex; align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted-on-dark);
    transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__cta { --h: 44px; padding-left: 18px; font-size: 0.9rem; }
.nav__cta .btn__icon { width: 30px; height: 30px; }
.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    place-items: center;
}
.nav__toggle span, .nav__toggle span::before {
    content: ""; display: block;
    width: 18px; height: 2px; border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease);
}
.nav__toggle span { position: relative; transform: translateY(-3px); }
.nav__toggle span::before { position: absolute; top: 6px; }
.menu-open .nav__toggle span { transform: translateY(0) rotate(45deg); }
.menu-open .nav__toggle span::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
    position: fixed; inset: 0; z-index: 90;
    padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
    background: rgba(7, 6, 13, 0.97);
    display: flex; flex-direction: column; gap: 28px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: grid; }
.menu nav a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
    font: 500 clamp(1.8rem, 8vw, 2.6rem)/1.1 var(--display);
    letter-spacing: -0.02em;
}
.menu nav a small { font: 500 0.75rem var(--mono); color: var(--dim-on-dark); }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    height: 330vh;
    background: var(--ink);
}
.hero__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 78% 8%, rgba(98, 54, 217, 0.28), transparent 60%),
        radial-gradient(900px 600px at 10% 100%, rgba(59, 72, 170, 0.22), transparent 60%),
        linear-gradient(180deg, #0a0816 0%, #07060d 100%);
    cursor: default;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grain {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 28px;
    opacity: var(--text, 1);
    transform: translateY(calc((1 - var(--text, 1)) * -40px));
    pointer-events: auto;
}
.hero--forming .hero__inner { pointer-events: none; }

.hero__masthead {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.hero__wordmark { width: clamp(220px, 32vw, 440px); height: auto; opacity: 0.94; }
.status {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.03);
    font: 500 0.72rem/1 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}
.status i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: ping 2.4s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

.hero__composition {
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 380px);
    align-items: end;
    gap: clamp(28px, 5vw, 80px);
    padding-bottom: clamp(24px, 5vh, 56px);
}
.hero__title { margin: 0; font: inherit; }
.hero__title .display { display: block; }
.hero__eyebrow { display: flex; margin-bottom: 22px; }
.hero__note {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line-dark);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.hero__note p { color: var(--muted-on-dark); margin-bottom: 22px; }
.hero__note p strong { color: #fff; font-weight: 600; }
.hero__note .btn { width: 100%; }
.hero__note .text-link { margin-top: 16px; }

.hero__footer {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.9rem;
    color: var(--muted-on-dark);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; }
.hero__scroll span {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line-dark-2);
    animation: bob 2.2s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(4px); } }

/* logo sólido que aparece al final de la coreografía */
.hero__lockup {
    position: absolute;
    left: 50%;
    top: 47%;
    width: min(80vw, 1180px);
    height: auto;
    transform: translate(-50%, -50%);
    opacity: var(--solid, 0);
    filter: drop-shadow(0 0 calc(var(--solid, 0) * 40px) rgba(196, 181, 253, 0.35));
    pointer-events: none;
    z-index: 3;
}
.hero__caption {
    position: absolute;
    left: 50%; top: calc(47% + min(80vw, 1180px) * 0.137 / 2 + 34px);
    transform: translate(-50%, calc((1 - var(--caption, 0)) * 16px));
    opacity: var(--caption, 0);
    z-index: 3;
    text-align: center;
    width: max-content;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}
.hero__caption p {
    font: 500 clamp(0.72rem, 1.1vw, 0.86rem)/1.4 var(--mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d9d4ee;
}
.hero__hint {
    position: absolute; left: 50%; bottom: 26px; z-index: 3;
    transform: translateX(-50%);
    font: 500 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--dim-on-dark);
    opacity: var(--caption, 0);
    pointer-events: none;
    white-space: nowrap;
}
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.shake-ring {
    position: fixed; z-index: 50; pointer-events: none;
    width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 1px solid rgba(196, 181, 253, 0.8);
    animation: ring 0.9s var(--ease) forwards;
}
@keyframes ring { to { transform: scale(26); opacity: 0; } }

/* sin WebGL o con movimiento reducido: hero normal */
.hero--static { height: auto; }
.hero--static .hero__stage { position: relative; height: auto; min-height: 100svh; }
.hero--static .hero__inner { min-height: 100svh; opacity: 1; transform: none; }
.hero--static .hero__lockup, .hero--static .hero__caption, .hero--static .hero__hint, .hero--static .hero__canvas { display: none; }

/* ---------------------------------------------------------------- secciones */
.section { position: relative; padding-block: clamp(90px, 13vw, 170px); }
.on-light { background: var(--paper); color: var(--text-on-light); }
.section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 5vw, 80px);
    margin-bottom: clamp(48px, 7vw, 88px);
}
.section__head .label { margin-bottom: 26px; }
.section__meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-light);
}

/* reveals */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- servicios */
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}
.service {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 360px;
    padding: 30px 30px 26px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    background: var(--paper);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.45s var(--ease);
}
.service::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: var(--ink);
    clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
    transition: clip-path 0.7s var(--ease);
}
.service:hover { color: #fff; }
.service:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.service__tag { font: 500 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-light); transition: color 0.4s; }
.service__num { font: 500 0.78rem var(--mono); color: var(--muted-on-light); transition: color 0.4s; }
.service__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line-light);
    color: var(--violet-deep);
    margin: 42px 0 26px;
    transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.6s var(--ease);
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font: 500 1.6rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.service p { color: var(--muted-on-light); font-size: 0.98rem; transition: color 0.4s; }
.service__foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--line-light);
    font-weight: 500; font-size: 0.92rem;
    transition: border-color 0.4s;
}
.service__foot span { transition: transform 0.5s var(--ease); }
.service:hover .service__tag, .service:hover .service__num, .service:hover p { color: var(--muted-on-dark); }
.service:hover .service__icon { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; transform: rotate(-8deg) scale(1.05); }
.service:hover .service__foot { border-color: var(--line-dark); }
.service:hover .service__foot span { transform: rotate(45deg); }

/* ---------------------------------------------------------------- proyecto destacado */
.project { background: var(--ink); overflow: hidden; }
.project__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(30px, 5vw, 70px);
    padding: clamp(28px, 5vw, 64px);
    border-radius: clamp(24px, 3vw, 40px);
    border: 1px solid var(--line-dark);
    background:
        radial-gradient(700px 500px at 88% 20%, rgba(229, 50, 31, 0.28), transparent 60%),
        radial-gradient(520px 420px at 70% 100%, rgba(255, 138, 61, 0.16), transparent 60%),
        linear-gradient(160deg, #110d10 0%, #09080c 100%);
    overflow: hidden;
    isolation: isolate;
}
.project__card::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 80% 40%, #000, transparent 70%);
}
.project__logo { width: clamp(120px, 14vw, 170px); height: auto; margin: 30px 0 30px; }
.project__title { font: 500 clamp(2rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; margin-bottom: 20px; text-wrap: balance; }
.project__title span {
    background: linear-gradient(95deg, #ff5a3c 0%, #ff8a3d 45%, #f2e71e 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project__copy { color: var(--muted-on-dark); max-width: 50ch; margin-bottom: 30px; }
.project__stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-dark);
    margin-bottom: 28px;
}
.project__stats div { padding: 18px 12px 0 0; }
.project__stats b { display: block; font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.project__stats span { font-size: 0.8rem; color: var(--muted-on-dark); line-height: 1.35; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    color: #e5e3ee;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ff7a45; }
.project__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.project__visual { position: relative; display: grid; place-items: center; min-height: 560px; }

/* teléfono */
.phone {
    position: relative;
    width: min(290px, 78vw);
    aspect-ratio: 290 / 600;
    border-radius: 48px;
    padding: 11px;
    background: linear-gradient(145deg, #2b2a30, #0d0d10 40%, #1c1b20);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 120px -40px rgba(229, 50, 31, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    transform: rotate(-4deg);
    transition: transform 0.8s var(--ease);
}
.project__card:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone__screen {
    position: relative;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #3a0c07 0%, #140606 60%, #0a0506 100%);
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 20px 22px;
    color: #fff;
    text-align: center;
    font-family: var(--body);
}
.phone__island { width: 90px; height: 26px; border-radius: 20px; background: #000; margin-bottom: 18px; }
.phone__time { font: 600 0.8rem var(--body); opacity: 0.75; margin-bottom: 14px; }
.phone__alert {
    font: 700 0.72rem var(--mono); letter-spacing: 0.18em;
    padding: 6px 12px; border-radius: 999px;
    background: #e5321f;
    animation: blink 1s steps(2) infinite;
    margin-bottom: 18px;
}
@keyframes blink { 50% { background: #9e1f11; } }
.phone__ring { position: relative; width: 170px; height: 170px; margin-bottom: 16px; }
.phone__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.phone__ring circle { fill: none; stroke-width: 9; }
.phone__ring .track { stroke: rgba(255, 255, 255, 0.1); }
.phone__ring .bar { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s linear; }
.phone__count { position: absolute; inset: 0; display: grid; place-content: center; }
.phone__count b { font: 600 3.4rem/1 var(--display); letter-spacing: -0.03em; }
.phone__count small { font-size: 0.72rem; opacity: 0.7; }
.phone__zone { font-size: 0.78rem; opacity: 0.8; margin-bottom: 14px; }
.phone__tips { width: 100%; display: grid; gap: 7px; margin-top: auto; }
.phone__tips li { font-size: 0.74rem; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); text-align: left; display: flex; gap: 8px; align-items: center; }
.phone__tips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f2e71e; flex: none; }

.float-card {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(20, 18, 26, 0.78);
    border: 1px solid var(--line-dark-2);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    line-height: 1.3;
    animation: float 6s ease-in-out infinite;
    max-width: 230px;
}
.float-card img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.float-card b { display: block; font-size: 0.82rem; }
.float-card span { color: var(--muted-on-dark); }
.float-card--a { top: 13%; left: -2%; }
.float-card--b { bottom: 14%; right: -3%; animation-delay: -3s; }
.float-card .stars { color: #f2c94c; letter-spacing: 1px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- proceso */
.process { background: var(--ink-2); overflow: hidden; }
.stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.process__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 7vw, 110px);
}
.process__sticky { position: sticky; top: calc(var(--nav-h) + 50px); align-self: start; }
.process__sticky .label { margin-bottom: 26px; }
.process__sticky .lead { margin-top: 24px; }
.process__counter { margin-top: 44px; display: flex; align-items: baseline; gap: 10px; font-family: var(--display); }
.process__counter b { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; }
.process__counter span { color: var(--dim-on-dark); font-size: 1.4rem; }
.steps { position: relative; display: grid; gap: 18px; }
.step {
    position: relative;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line-dark);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.5s, background-color 0.5s, transform 0.6s var(--ease);
}
.step.is-active { border-color: rgba(196, 181, 253, 0.35); background: rgba(139, 92, 246, 0.07); }
.step__top { display: flex; justify-content: space-between; margin-bottom: 40px; }
.step h3 { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); letter-spacing: -0.02em; margin-bottom: 14px; }
.step p { color: var(--muted-on-dark); max-width: 46ch; }
.step__foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; font-size: 0.92rem; color: #e7e4f2; }

/* ---------------------------------------------------------------- confianza */
.trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.trust__item {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line-light);
    display: flex; flex-direction: column;
    min-height: 280px;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.trust__item:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(16, 14, 25, 0.45); }
.trust__big { font: 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; margin-bottom: auto; color: var(--violet-deep); }
.trust__item h3 { font: 600 1.12rem/1.25 var(--body); margin: 28px 0 8px; }
.trust__item p { color: var(--muted-on-light); font-size: 0.95rem; }

.audience {
    margin-top: clamp(70px, 9vw, 120px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-light-2);
}
.audience__item { padding: 26px 22px 0 0; }
.audience__item + .audience__item { padding-left: 22px; border-left: 1px solid var(--line-light); }
.audience__item .label { margin-bottom: 18px; }
.audience__item h3 { font: 500 1.45rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.audience__item p { color: var(--muted-on-light); font-size: 0.95rem; }

/* ---------------------------------------------------------------- nosotros */
.about { background: var(--ink); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.founder {
    position: relative;
    border-radius: clamp(24px, 3vw, 36px);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    background: var(--ink-3);
    position: sticky;
    top: calc(var(--nav-h) + 40px);
}
.founder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; filter: saturate(0.92) contrast(1.04); }
.founder__tag {
    padding: 18px 20px;
    border-top: 1px solid var(--line-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.founder__tag b { display: block; font: 500 1.2rem var(--display); }
.founder__tag span { font-size: 0.85rem; color: var(--muted-on-dark); }
.founder__tag a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: background-color 0.2s; flex: none; }
.founder__tag a:hover { background: var(--violet-deep); }
.founder__tag svg { width: 20px; height: 20px; }

.timeline { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.timeline li .label { padding-top: 5px; }
.timeline h3 { font: 500 1.3rem/1.2 var(--display); margin-bottom: 6px; letter-spacing: -0.01em; }
.timeline p { color: var(--muted-on-dark); }
.timeline li.is-now .label { color: var(--violet-soft); }
.quote { margin-top: 36px; font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--display); letter-spacing: -0.01em; color: #fff; max-width: 34ch; }
.quote span { color: var(--dim-on-dark); }

/* ---------------------------------------------------------------- faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); }
.faq__intro .label { margin-bottom: 26px; }
.faq__intro .lead { margin: 24px 0 32px; }
.faq__list { border-top: 1px solid var(--line-light-2); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
    list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 24px 0;
    min-height: 44px;
    cursor: pointer;
    font: 500 clamp(1.08rem, 1.6vw, 1.3rem)/1.3 var(--display);
    letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
    position: relative; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-light-2);
    transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.faq__plus::before, .faq__plus::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 1.5px; background: currentColor;
    transform: translate(-50%, -50%);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq__item[open] .faq__plus { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(180deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .faq__plus { border-color: var(--ink); }
.faq__answer { padding: 0 60px 26px 0; color: var(--muted-on-light); max-width: 64ch; }
.faq__answer a { color: var(--violet-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- cta */
.cta { background: var(--ink); overflow: hidden; text-align: center; }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__inner .label { margin-bottom: 30px; }
.cta__title { font: 500 clamp(3rem, 9vw, 8rem)/0.92 var(--display); letter-spacing: -0.045em; margin-bottom: 30px; text-wrap: balance; }
.cta__title span { color: var(--violet-soft); }
.cta__inner .lead { margin: 0 auto 40px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__mail { margin-top: 30px; }
.cta__glow {
    position: absolute; left: 50%; top: 55%;
    width: min(900px, 120vw); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(98, 54, 217, 0.35), transparent 62%);
    pointer-events: none;
}

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding-block: 70px 30px; }
.footer__logo { width: 100%; height: auto; opacity: 0.96; margin-bottom: 60px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer__grid p { color: var(--muted-on-dark); max-width: 36ch; font-size: 0.95rem; }
.footer__address { font-style: normal; }
.footer__grid h4 { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-on-dark); margin-bottom: 14px; }
.footer__grid li a { display: inline-flex; min-height: 36px; align-items: center; color: #dedbe8; font-size: 0.95rem; transition: color 0.2s; }
.footer__grid li a:hover { color: var(--violet-soft); }
.footer__bottom {
    margin-top: 60px; padding-top: 22px;
    border-top: 1px solid var(--line-dark);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--dim-on-dark);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .nav__links { display: none; }
    .nav__toggle { display: grid; }
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project__card { grid-template-columns: 1fr; }
    .project__visual { min-height: 600px; }
    .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audience__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .audience__item:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line-light); }
    .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .hero__composition { grid-template-columns: 1fr; gap: 24px; }
    .hero__footer .label { display: none; }
    .section__head, .process__grid, .about__grid, .faq__grid { grid-template-columns: 1fr; }
    .process__sticky { position: relative; top: 0; }
    .process__counter { display: none; }
    .project__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project__stats div:nth-child(n+3) { padding-top: 22px; }
    .founder { max-width: 420px; position: relative; top: 0; }
}

@media (max-width: 640px) {
    :root { --nav-h: 68px; }
    .nav { inset: 10px 0 auto; }
    .nav__bar { height: 56px; padding-left: 16px; }
    .nav__cta { display: none; }
    .hero__inner { padding-top: calc(var(--nav-h) + 24px); }
    .hero__wordmark { width: 200px; }
    .hero__masthead .status { display: none; }
    .hero__note { padding: 20px; }
    .hero__note p { margin-bottom: 16px; font-size: 0.95rem; }
    .hero__footer { font-size: 0.82rem; }
    .hero__footer > p { display: none; }
    .hero__lockup { width: 90vw; }
    .hero__caption { top: calc(47% + 90vw * 0.137 / 2 + 26px); }
    .services { grid-template-columns: 1fr; }
    .service { min-height: 0; }
    .service__icon { margin: 28px 0 20px; }
    .project__visual { min-height: 520px; }
    .float-card--a { left: 0; top: 4%; }
    .float-card--b { right: 0; bottom: 6%; }
    .trust, .audience { grid-template-columns: 1fr; }
    .audience__item, .audience__item + .audience__item { padding-left: 0; border-left: 0; }
    .audience__item + .audience__item { margin-top: 26px; border-top: 1px solid var(--line-light); }
    .step { padding: 24px; }
    .timeline li { grid-template-columns: 1fr; gap: 8px; }
    .faq__answer { padding-right: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .btn { white-space: normal; }
}

@media (hover: none) {
    .service::before { display: none; }
    .service:hover { color: inherit; }
    .service:hover p, .service:hover .service__tag, .service:hover .service__num { color: var(--muted-on-light); }
    .service:hover .service__foot { border-color: var(--line-light); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
