/* ==========================================================================
   PhotonCode - Portada clara (index.html)
   Fondo blanco, colores de marca (cian → violeta) y acentos pastel.
   Inspirada en sparkplugin.com, markage360.com, mandelo.agency, stric.com.br
   y widelab.co (analizadas con REA). Animaciones en home.js.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f6fb;
    --ink: #0d0c22;
    --ink-2: #45445e;
    --muted: #7b7a91;
    --line: rgba(13, 12, 34, 0.08);

    --brand: #6c47ff;
    --brand-2: #00a6ff;
    --brand-3: #c03cff;
    --grad: linear-gradient(115deg, #00a6ff 0%, #6c47ff 55%, #c03cff 100%);
    --grad-soft: linear-gradient(135deg, #e9f6ff 0%, #efeaff 55%, #fbe9ff 100%);

    --lav: #f0ecff;
    --sky: #e6f5ff;
    --mint: #e4f9ee;
    --peach: #fff0e6;
    --lemon: #f6fdd5;
    --pink: #ffe9f6;
    --lime: #d4ff3f;

    --radius: 28px;
    --shadow: 0 24px 60px rgba(34, 24, 110, 0.12);
    --shadow-sm: 0 10px 30px rgba(34, 24, 110, 0.08);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: 'Inter Tight', 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --wrap: min(1240px, calc(100% - 48px));
}

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

html {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

html.lenis {
    scroll-behavior: auto;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--bg);
    line-height: 1.55;
}

body.no-scroll {
    overflow: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

/* Los atributos width/height solo reservan la proporción; el alto lo calcula el ancho */
img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

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

.wrap {
    width: var(--wrap);
    margin: 0 auto;
}

/* El contenido entra con la intro (main.js añade body.ready) */
#content-wrapper {
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.ready #content-wrapper {
    opacity: 1;
}

/* ---------- Texto con degradado y utilidades ---------- */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.kicker .num {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--lav);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.section {
    position: relative;
    padding: clamp(80px, 11vw, 150px) 0;
}

.section-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
    margin-top: 18px;
    font-family: var(--display);
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.section-lead {
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    color: var(--ink-2);
    max-width: 520px;
}

/* ---------- Botones ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.btn i {
    font-size: 0.85em;
    transition: transform 0.4s var(--ease);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    color: #fff;
    background: var(--grad);
    background-size: 160% 100%;
    box-shadow: 0 14px 34px rgba(108, 71, 255, 0.35);
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 44px rgba(108, 71, 255, 0.45);
}

.btn-dark {
    color: #fff;
    background: var(--ink);
}

.btn-dark:hover {
    background: #26244a;
}

.btn-ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: rgba(108, 71, 255, 0.4);
}

.btn-whatsapp {
    color: #fff;
    background: #1fbf5c;
    box-shadow: 0 14px 34px rgba(31, 191, 92, 0.3);
}

.btn-whatsapp:hover {
    background: #17a74f;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding 0.4s var(--ease);
}

.header.is-scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
}

.header.is-scrolled .nav-menu {
    box-shadow: none;
}

.navbar-container {
    width: var(--wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.logo-svg {
    width: 34px;
    height: 34px;
}

.logo-text {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-text-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--bg-soft);
}

.nav-link.active {
    color: #fff;
    background: var(--ink);
}

.nav-link-cta-mobile {
    display: none;
}

.nav-actions .btn {
    padding: 13px 22px;
    font-size: 0.92rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(13, 12, 34, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    background: #cfe9ff;
}

.blob-2 {
    width: 460px;
    height: 460px;
    top: 260px;
    right: 260px;
    background: #e3d9ff;
}

.blob-3 {
    width: 380px;
    height: 380px;
    top: 120px;
    left: -160px;
    background: #ffe3f3;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-2);
}

.hero-badge b {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-title {
    margin: 26px 0 22px;
    font-family: var(--display);
    font-size: clamp(2.8rem, 6.4vw, 5.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero-title .line > span {
    display: inline-block;
}

/* Palabra que rota: "Diseñado para negocios / startups / crecer..." */
.rotator {
    position: relative;
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
    height: 1.08em;
}

.rotator > span {
    grid-area: 1 / 1;
    display: block;
    padding-right: 0.06em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Sin JS solo se ve la primera palabra; home.js toma el control con GSAP */
    opacity: 0;
}

.rotator > span.is-active {
    opacity: 1;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--ink-2);
    max-width: 560px;
}

.lead-line {
    display: block;
    margin-bottom: 10px;
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--ink);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: #1fbf5c;
}

/* Composición de la portada: laptop + celular + tarjetas flotantes */
.hero-visual {
    position: relative;
    height: clamp(420px, 44vw, 600px);
}

.hero-visual .laptop {
    position: absolute;
    right: -10%;
    top: 4%;
    width: 118%;
    max-width: none;
    filter: drop-shadow(0 40px 60px rgba(34, 24, 110, 0.22));
}

.hero-visual .phone {
    position: absolute;
    left: -4%;
    bottom: 0;
    width: 27%;
    filter: drop-shadow(0 30px 50px rgba(34, 24, 110, 0.3));
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    white-space: nowrap;
}

.float-card .ic {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
}

.float-card small {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
}

.float-card b {
    font-weight: 700;
}

.fc-1 {
    top: -2%;
    left: 12%;
}

.fc-1 .ic {
    background: var(--mint);
    color: #18a957;
}

.fc-2 {
    right: -2%;
    bottom: 22%;
}

.fc-2 .ic {
    background: var(--lav);
    color: var(--brand);
}

.fc-3 {
    left: 26%;
    bottom: 4%;
}

.fc-3 .ic {
    background: #e5f7ea;
    color: #1fbf5c;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.mini-bars i {
    width: 7px;
    border-radius: 3px;
    background: var(--grad);
}

/* ---------- Marquesina de tecnologías ---------- */
.tech {
    position: relative;
    z-index: 1;
    margin-top: clamp(50px, 7vw, 90px);
    text-align: center;
}

.tech-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.tech-marquee {
    display: flex;
    margin-top: 22px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tech-track {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
    padding-right: 14px;
    animation: marquee 34s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.tech-item i {
    font-size: 1.15rem;
    color: var(--brand);
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

/* ==========================================================================
   Cifras
   ========================================================================== */
.stats {
    padding: clamp(50px, 7vw, 90px) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px);
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat-num {
    font-family: var(--display);
    font-size: clamp(2.8rem, 5.6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat p {
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 0.98rem;
    max-width: 220px;
}

/* ==========================================================================
   Manifiesto: el texto se colorea palabra por palabra con el scroll
   ========================================================================== */
.manifesto {
    padding: clamp(70px, 10vw, 140px) 0;
    text-align: center;
}

.manifesto-text {
    margin: 26px auto 0;
    max-width: 1100px;
    font-family: var(--display);
    font-size: clamp(2rem, 4.6vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.manifesto-text .word {
    opacity: 0.16;
}

.manifesto-text .accent .word,
.manifesto-text .accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Showreel en video dentro de un navegador
   ========================================================================== */
.reel {
    padding-bottom: clamp(80px, 10vw, 140px);
}

.reel-head {
    text-align: center;
    margin-bottom: 40px;
}

.reel-head .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.reel-frame {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 40px 100px rgba(34, 24, 110, 0.2);
    transform-origin: 50% 0%;
}

.reel-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.reel-dots {
    display: flex;
    gap: 6px;
}

.reel-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.reel-dots i:nth-child(2) {
    background: #febc2e;
}

.reel-dots i:nth-child(3) {
    background: #28c840;
}

.reel-url {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    padding: 6px 14px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

.reel-frame video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0c0c12;
}

.reel-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.reel-chips span {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-2);
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services {
    background: var(--bg-soft);
    border-radius: 48px;
    margin: 0 clamp(8px, 1.4vw, 20px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card.c-lav { background: var(--lav); }
.service-card.c-sky { background: var(--sky); }
.service-card.c-mint { background: var(--mint); }
.service-card.c-peach { background: var(--peach); }

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #fff;
    font-size: 1.3rem;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.service-index {
    font-family: var(--display);
    font-weight: 700;
    color: rgba(13, 12, 34, 0.3);
}

.service-card h3 {
    margin-top: 26px;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.service-card p {
    margin-top: 12px;
    color: var(--ink-2);
    max-width: 460px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags span {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
}

.service-media {
    position: relative;
    margin-top: auto;
    padding-top: 28px;
}

.service-media img {
    width: 100%;
    transition: transform 0.8s var(--ease);
}

.service-card:hover .service-media img {
    transform: scale(1.04) translateY(-6px);
}

/* Mini interfaz: chat de WhatsApp con bot */
.chat-ui {
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.chat-head .av {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1fbf5c;
    color: #fff;
}

.chat-head small {
    display: block;
    color: #1fbf5c;
    font-size: 0.74rem;
}

.msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.msg.in {
    background: var(--bg-soft);
    border-bottom-left-radius: 4px;
}

.msg.out {
    justify-self: end;
    background: #dcf8e6;
    border-bottom-right-radius: 4px;
}

.msg.typing {
    display: inline-flex;
    gap: 4px;
    padding: 12px 14px;
}

.msg.typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1.2s infinite ease-in-out;
}

.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Mini interfaz: curso en línea */
.course-ui {
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    max-width: 420px;
}

.course-cover {
    height: 120px;
    border-radius: 14px;
    background: var(--grad);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
}

.course-ui h4 {
    margin-top: 14px;
    font-size: 1rem;
}

.progress {
    height: 8px;
    margin: 10px 0 14px;
    border-radius: 99px;
    background: var(--bg-soft);
    overflow: hidden;
}

.progress i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
}

.lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.86rem;
    color: var(--ink-2);
    border-top: 1px solid var(--line);
}

.lesson i {
    color: #1fbf5c;
}

.lesson.next i {
    color: var(--brand);
}

/* ==========================================================================
   Soluciones por industria (galería horizontal)
   ========================================================================== */
.industries {
    overflow: hidden;
}

/* En escritorio la sección se fija y debe caber en una pantalla */
@media (min-width: 961px) {
    .industries {
        min-height: 100vh;
        padding: 110px 0 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .industries .section-head {
        margin-bottom: clamp(24px, 4vh, 44px);
    }

    .industries .section-title {
        font-size: clamp(2rem, 3.8vw, 3.4rem);
    }

    /* La tarjeta debe caber completa en la pantalla mientras la sección está fijada */
    .industries .project {
        width: min(820px, calc((100vh - 360px) * 1.45 + 28px), 78vw);
    }
}

.industry-track {
    display: flex;
    gap: 24px;
    padding: 0 max(24px, calc((100vw - 1240px) / 2));
    width: max-content;
}

.industry-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 10px;
    width: min(820px, 82vw);
    min-height: 500px;
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: 36px;
    overflow: hidden;
}

.industry-card.i-barber { background: linear-gradient(140deg, #fff3e8 0%, #ffe2cc 100%); }
.industry-card.i-food { background: linear-gradient(140deg, #ecfbf2 0%, #cff3df 100%); }
.industry-card.i-clinic { background: linear-gradient(140deg, #eaf7ff 0%, #d1ecff 100%); }
.industry-card.i-home { background: linear-gradient(140deg, #f3efff 0%, #e1d7ff 100%); }

.industry-tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 700;
}

.industry-card h3 {
    margin: 18px 0 12px;
    font-family: var(--display);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.industry-card p {
    color: var(--ink-2);
}

.industry-card ul {
    list-style: none;
    margin: 18px 0 26px;
    display: grid;
    gap: 8px;
    font-weight: 500;
}

.industry-card li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--brand);
    font-weight: 800;
}

.industry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industry-actions .btn {
    padding: 13px 20px;
    font-size: 0.92rem;
}

.industry-phone {
    justify-self: center;
    width: min(260px, 100%);
    filter: drop-shadow(0 30px 40px rgba(34, 24, 110, 0.25));
    transform: rotate(4deg);
    transition: transform 0.8s var(--ease);
}

.industry-card:hover .industry-phone {
    transform: rotate(0deg) translateY(-8px);
}

/* Tarjetas de proyecto: portada real del sitio y video al pasar el cursor */
.project {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    width: min(760px, 78vw);
    padding: 14px;
    border-radius: 34px;
    background: rgb(var(--tone));
    color: #fff;
    box-shadow: 0 30px 80px rgba(var(--tone), 0.28);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 90px rgba(var(--glow), 0.35);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.project-media img,
.project-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), opacity 0.6s ease;
}

.project-media video {
    opacity: 0;
}

.project.is-playing .project-media video {
    opacity: 1;
}

.project:hover .project-media img,
.project:hover .project-media video {
    transform: scale(1.04);
}

.project-live {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1fbf5c;
    box-shadow: 0 0 0 4px rgba(31, 191, 92, 0.25);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    50% { box-shadow: 0 0 0 7px rgba(31, 191, 92, 0); }
}

/* El texto va encima del video para que la tarjeta quepa completa en pantalla */
.project-body {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 70px 26px 24px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--tone), 0.78) 45%, rgba(var(--tone), 0.96) 100%);
}

.project-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(var(--glow), 1);
}

.project h3 {
    margin: 6px 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    max-width: 420px;
}

.project-go {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.project:hover .project-go {
    background: rgb(var(--glow));
    color: #fff;
}

.project-cta {
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    width: min(420px, 78vw);
    padding: 40px;
    background: var(--grad);
    --glow: 108, 71, 255;
}

.project-cta-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 2.4rem;
    font-weight: 300;
}

.project-cta p {
    color: rgba(255, 255, 255, 0.85);
}

.project-cta:hover .project-go {
    background: var(--ink);
}

/* ==========================================================================
   Cómo trabajamos (bento)
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2.6vw, 34px);
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.bento-card.b-wide { grid-column: span 4; }
.bento-card.b-tall { grid-column: span 2; }
.bento-card.b-third { grid-column: span 2; }

.bento-card.b-dark {
    background: var(--ink);
    color: #fff;
    border-color: transparent;
}

.bento-card.b-dark p { color: rgba(255, 255, 255, 0.72); }
.bento-card.b-grad { background: var(--grad-soft); border-color: transparent; }

.bento-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.b-dark .bento-label { color: #8fd8ff; }

.bento-card h4 {
    margin: 12px 0 10px;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.bento-card p {
    color: var(--ink-2);
    font-size: 0.97rem;
}

.bento-metric {
    margin-top: auto;
    padding-top: 26px;
    font-family: var(--display);
    font-size: clamp(3.4rem, 6vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.bento-metric small {
    display: block;
    margin-top: 8px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.b-dark .bento-metric small { color: rgba(255, 255, 255, 0.55); }

/* Diagrama: nodos conectados */
.nodes {
    margin-top: auto;
    padding-top: 26px;
}

.nodes svg {
    width: 100%;
    height: auto;
}

/* Barras de crecimiento */
.grow-bars {
    margin-top: auto;
    padding-top: 26px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
}

.grow-bars i {
    flex: 1;
    border-radius: 10px 10px 4px 4px;
    background: var(--grad);
    transform-origin: bottom;
}

/* Fragmento de código */
.code {
    margin-top: auto;
    padding: 18px;
    border-radius: 18px;
    background: #12112a;
    color: #cfd2ff;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    overflow: hidden;
}

.code .k { color: #c792ff; }
.code .f { color: #7fd6ff; }
.code .s { color: #b8f28d; }
.code .c { color: #7b7a91; }

/* ==========================================================================
   Valores
   ========================================================================== */
.values-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(40px, 6vw, 70px);
}

.values-head .section-lead {
    margin: 18px auto 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.value-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 26px;
    border-radius: var(--radius);
    color: var(--ink);
    transition: transform 0.6s var(--ease);
}

.value-card:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.value-card.v1 { background: #e9e2ff; }
.value-card.v2 { background: #d9f1ff; }
.value-card.v3 { background: #ffe4d3; }
.value-card.v4 { background: #e6fbcf; }
.value-card.v5 { background: #ffdff1; }

.value-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    font-size: 1.25rem;
}

.v1 .value-icon { color: #6c47ff; }
.v2 .value-icon { color: #0094e6; }
.v3 .value-icon { color: #f26b1d; }
.v4 .value-icon { color: #4c9a12; }
.v5 .value-icon { color: #d9258f; }

.value-tag {
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}

.value-card h4 {
    margin: 8px 0;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--ink-2);
}

/* ==========================================================================
   Proceso: línea de tiempo que se llena con el scroll
   ========================================================================== */
.process {
    background: var(--ink);
    color: #fff;
    border-radius: 48px;
    margin: 0 clamp(8px, 1.4vw, 20px);
    overflow: hidden;
}

.process-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
}

.process-side {
    position: sticky;
    top: 120px;
    align-self: start;
}

.process .kicker { color: #8fd8ff; }
.process .kicker .num { background: rgba(255, 255, 255, 0.1); }

.process-side .section-title span {
    display: block;
}

.process-side p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 460px;
}

.process-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.process-ctas small {
    flex-basis: 100%;
    color: rgba(255, 255, 255, 0.55);
}

.steps {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 44px;
}

.steps-line {
    position: absolute;
    left: 16px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.steps-line i {
    position: absolute;
    inset: 0;
    background: var(--grad);
    transform-origin: top;
    transform: scaleY(0);
    border-radius: inherit;
}

.step {
    position: relative;
    padding: 26px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-num {
    position: absolute;
    left: -44px;
    top: 26px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.step.is-on .step-num {
    background: var(--brand);
    border-color: var(--brand);
}

.step h4 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.97rem;
}

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(30px, 6vw, 90px);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 22px;
    background: var(--bg-soft);
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-item.is-open {
    background: var(--lav);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 22px 24px;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 600;
}

.faq-q i {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    font-size: 0.85rem;
    transition: transform 0.4s var(--ease);
}

.faq-item.is-open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease);
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a > div {
    overflow: hidden;
}

.faq-a p {
    padding: 0 24px 22px;
    color: var(--ink-2);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta {
    padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}

.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 30px;
    padding: clamp(36px, 6vw, 80px);
    border-radius: 44px;
    background: var(--grad);
    color: #fff;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: auto, 22px 22px;
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    font-family: var(--display);
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.cta-card p {
    position: relative;
    margin-top: 18px;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.cta-card .btn-light {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 14px 34px rgba(13, 12, 34, 0.2);
}

.cta-phones {
    position: relative;
    height: 100%;
    min-height: 320px;
}

.cta-phones img {
    position: absolute;
    width: 52%;
    filter: drop-shadow(0 30px 40px rgba(13, 12, 34, 0.35));
}

.cta-phones img:first-child {
    left: 4%;
    top: 6%;
    transform: rotate(-8deg);
}

.cta-phones img:last-child {
    right: 2%;
    top: 0;
    transform: rotate(7deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    position: relative;
    padding: 70px 0 34px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.footer-big {
    font-family: var(--display);
    font-size: clamp(3rem, 11vw, 10rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(180deg, var(--ink) 0%, rgba(13, 12, 34, 0.15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

.footer-desc {
    margin-top: 16px;
    color: var(--ink-2);
    max-width: 340px;
}

.footer h4 {
    margin-bottom: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer ul a {
    color: var(--ink-2);
    transition: color 0.2s ease;
}

.footer ul a:hover {
    color: var(--brand);
}

.footer ul i {
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

/* ==========================================================================
   Intro y barrido entre páginas (versión clara)
   ========================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 45% at 50% 50%, rgba(108, 71, 255, 0.1) 0%, transparent 70%),
        #ffffff;
}

.intro-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 22px);
    visibility: hidden;
}

.intro-mark {
    display: block;
    flex: none;
    width: clamp(64px, 7vw, 92px);
    height: clamp(64px, 7vw, 92px);
    filter: drop-shadow(0 10px 26px rgba(108, 71, 255, 0.3));
}

.intro-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.intro-mark .intro-ring {
    transform-origin: 50px 50px;
    animation: introRingSpin 1.6s linear infinite;
}

@keyframes introRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.intro-word {
    display: inline-flex;
    overflow: hidden;
    padding: 0.06em 0.04em 0.1em;
    font-family: var(--display);
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: var(--ink);
}

.intro-word .intro-char {
    display: inline-block;
}

.intro-word .intro-char.is-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-veil {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: var(--grad);
    clip-path: circle(0% at 100% 0%);
    pointer-events: none;
}

.page-veil.is-active {
    pointer-events: auto;
}

.page-veil-mark {
    display: block;
    width: clamp(64px, 7vw, 92px);
    height: clamp(64px, 7vw, 92px);
    opacity: 0;
}

.page-veil-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.page-veil-mark .veil-ring {
    transform-origin: 50px 50px;
    animation: introRingSpin 1.2s linear infinite;
}

html.veil-in .page-veil {
    clip-path: circle(150% at 0% 100%);
}

html.veil-in .page-veil-mark {
    opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-menu .nav-link {
        padding: 10px 12px;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 960px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 100px 24px 40px;
        border-radius: 0;
        border: 0;
        background: rgba(255, 255, 255, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-family: var(--display);
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--ink);
    }

    .nav-link-cta-mobile {
        display: inline-flex;
        margin-top: 16px;
        color: #fff;
        background: var(--grad);
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-grid,
    .section-head,
    .process-grid,
    .faq-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: clamp(340px, 80vw, 520px);
        margin-top: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .bento-card.b-wide,
    .bento-card.b-tall,
    .bento-card.b-third {
        grid-column: span 6;
    }

    .process-side {
        position: static;
    }

    /* En pantallas chicas la galería se desliza con el dedo */
    .industry-track {
        width: auto;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .industry-track::-webkit-scrollbar {
        display: none;
    }

    .industry-card,
    .project {
        flex: none;
        scroll-snap-align: center;
    }

    .project-media {
        aspect-ratio: 4 / 5;
    }

    .project-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px;
    }

    .cta-phones {
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    :root {
        --wrap: calc(100% - 32px);
    }

    .industry-track {
        padding: 0 16px;
    }

    .industry-card {
        grid-template-columns: 1fr;
        width: 84vw;
        min-height: 0;
    }

    .industry-phone {
        width: 70%;
        margin-top: 10px;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .value-card {
        min-height: 280px;
    }

    .value-card:last-child {
        grid-column: span 2;
        min-height: 220px;
    }

    .float-card {
        font-size: 0.75rem;
        padding: 8px 12px 8px 8px;
    }

    .float-card .ic {
        width: 30px;
        height: 30px;
    }

    .fc-2 {
        right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card,
    .value-card:last-child {
        grid-column: auto;
        min-height: 0;
    }

    .value-tag {
        margin-top: 20px;
    }

    .btn {
        padding: 15px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #preloader,
    .page-veil {
        display: none !important;
    }

    .manifesto-text .word {
        opacity: 1;
    }
}

/* ==========================================================================
   v6 · Estilo limpio tipo Apple
   Grises de Apple (#1d1d1f / #6e6e73 / #f5f5f7), sin manchas de color en la
   portada, tarjetas neutras y el color de marca solo en acentos.
   ========================================================================== */
:root {
    --ink: #1d1d1f;
    --ink-2: #6e6e73;
    --muted: #86868b;
    --bg-soft: #f5f5f7;
    --line: rgba(0, 0, 0, 0.08);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.blob { opacity: 0.35; }
.hero-bg { opacity: 0.5; }
.hero-badge { box-shadow: none; }

/* Servicios y valores en gris claro, el color queda en el icono */
/* Tarjetas en tonos pastel (servicios y valores conservan sus colores) */
.services {
    background: #fff;
}

.service-card .tags span {
    background: #fff;
}

.value-card {
    min-height: 320px;
}

/* Portada: composición más limpia sin tarjetas flotantes */
.hero-visual .laptop { top: 10%; }
.hero-visual .phone { bottom: 4%; }

/* ---------- Marquesina de logos ---------- */
.logo-marquee {
    display: flex;
    margin-top: 26px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(30px, 4vw, 56px);
    padding-right: clamp(30px, 4vw, 56px);
    animation: marquee 60s linear infinite;
}

.logo-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #86868b;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo-item:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-block;
    flex: none;
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
    transition: background 0.3s ease;
}

.logo-item:hover .brand-mark {
    background: rgb(var(--bc));
}

/* ---------- Proyectos: texto + laptop y celular ---------- */
.showcase-card {
    position: relative;
    flex: none;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 20px;
    width: min(1080px, 86vw);
    min-height: min(560px, 62vh);
    padding: clamp(28px, 3.6vw, 52px);
    border-radius: 40px;
    background: var(--card);
    overflow: hidden;
}

.showcase-tag {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgb(var(--accent-rgb));
}

.showcase-card h3 {
    margin: 10px 0 12px;
    font-family: var(--display);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

.showcase-card p {
    color: var(--ink-2);
    max-width: 340px;
}

.showcase-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 20px 0 28px;
    font-weight: 500;
    font-size: 0.95rem;
}

.showcase-card li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--accent-rgb));
}

.showcase-card .btn {
    padding: 13px 22px;
    font-size: 0.92rem;
}

.showcase-devices {
    position: relative;
    height: 100%;
    min-height: 320px;
}

.dev-laptop {
    position: absolute;
    top: 50%;
    right: -14%;
    width: 112%;
    max-width: none;
    transform: translateY(-54%);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.18));
    transition: transform 0.9s var(--ease);
}

.dev-phone {
    position: absolute;
    left: 2%;
    bottom: -4%;
    width: 27%;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
    transition: transform 0.9s var(--ease);
}

.showcase-card:hover .dev-laptop {
    transform: translateY(-57%) scale(1.02);
}

.showcase-card:hover .dev-phone {
    transform: translateY(-10px) rotate(-3deg);
}

/* ---------- Marcas ---------- */
.brands {
    background: var(--bg-soft);
    border-radius: 48px;
    margin: 0 clamp(8px, 1.4vw, 20px);
}

.brands-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(40px, 6vw, 70px);
}

.brands-head .section-lead {
    margin: 18px auto 0;
}

.brand-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.brand-group {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 30px;
    background: #fff;
}

.brand-group-head h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-group-head p {
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 0.95rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.brand-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 10px;
    border-radius: 20px;
    background: var(--bg-soft);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.4s ease, transform 0.5s var(--ease);
}

.brand-cell .brand-mark {
    width: 34px;
    height: 34px;
    background: rgb(var(--bc));
}

.brand-cell:hover {
    background: #ebebf0;
    transform: translateY(-4px);
}

.brands-note {
    margin-top: 28px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- Cómo trabajamos ---------- */
.how-head {
    text-align: center;
    max-width: 900px;
    margin-bottom: clamp(40px, 6vw, 70px);
}

.how-head .section-lead {
    margin: 18px auto 0;
}

.how-hero {
    position: relative;
    width: min(1240px, calc(100% - 48px));
    height: min(78vh, 720px);
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    transform-origin: 50% 30%;
}

.how-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.how-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 70%);
}

.how-hero-copy {
    position: absolute;
    left: clamp(28px, 5vw, 70px);
    bottom: clamp(28px, 5vw, 70px);
    z-index: 2;
    max-width: 520px;
    color: #fff;
}

.how-hero-copy span,
.tile-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a78bfa;
}

.how-hero-copy h3 {
    margin: 12px 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.how-hero-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
    padding: clamp(26px, 3vw, 38px);
    border-radius: 36px;
    background: var(--bg-soft);
    overflow: hidden;
}

.tile-label {
    color: #6c47ff;
}

.tile h4 {
    margin: 12px 0 8px;
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.tile p {
    color: var(--ink-2);
    font-size: 0.98rem;
}

.tile-big {
    margin: auto 0 18px;
    font-family: var(--display);
    font-size: clamp(5rem, 10vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.tile-metric h4 {
    margin-top: 0;
}

.ring {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 26px auto 22px;
}

.ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke-width: 9;
}

.ring-bg {
    stroke: #e3e3e8;
}

.ring-fg {
    stroke: url(#node-grad);
    stroke: #6c47ff;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tile-media {
    color: #fff;
    background: #000;
    justify-content: flex-end;
}

.tile-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}

.tile-over {
    position: relative;
    z-index: 2;
}

.tile-media .tile-label { color: #c4b5fd; }
.tile-media p { color: rgba(255, 255, 255, 0.8); max-width: 480px; }

.tile-wide {
    grid-column: span 1;
}

.tile-code {
    background: #1d1d1f;
    color: #f5f5f7;
}

.tile-code p { color: #a1a1a6; }
.tile-code .tile-label { color: #7dd3fc; }

.code-type {
    margin-top: auto;
    padding: 18px;
    border-radius: 18px;
    background: #2c2c2e;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.8;
    color: #d6d3ff;
    white-space: pre-wrap;
    min-height: 120px;
}

.code-type code::after {
    content: "▌";
    color: #7dd3fc;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.live-chart {
    position: relative;
    margin-top: auto;
    padding-top: 30px;
}

.live-chart svg {
    width: 100%;
    height: 150px;
}

.chart-line {
    fill: none;
    stroke: #6c47ff;
    stroke-width: 3.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.live-dot {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #18a957;
}

.live-dot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.6s ease-in-out infinite;
}

.tile-devices-img {
    position: relative;
    margin-top: auto;
    height: 220px;
}

.tile-devices-img img:first-child {
    position: absolute;
    right: -24%;
    bottom: -10px;
    width: 120%;
    max-width: none;
}

.tile-devices-img img:last-child {
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 32%;
}

/* Proceso con video */
.process-video {
    position: relative;
    margin-top: 28px;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.process-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-video span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.process-video span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.6s ease-in-out infinite;
}

@media (max-width: 960px) {
    .showcase-card,
    .brand-groups,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card {
        width: 86vw;
        min-height: 0;
    }

    .showcase-devices {
        min-height: 240px;
    }

    .how-hero {
        height: 70vh;
        border-radius: 28px;
    }

    .tile {
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-cell {
        padding: 16px 6px;
        font-size: 0.78rem;
    }

    .brands {
        border-radius: 32px;
    }
}

/* Cómo trabajamos: cada tarjeta con su tono pastel */
.tile-metric { background: linear-gradient(150deg, #efe9ff 0%, #e0d5ff 100%); }
.tile-ring { background: linear-gradient(150deg, #e6f5ff 0%, #cfe9ff 100%); }
.tile-ring .ring-bg { stroke: rgba(255, 255, 255, 0.8); }
.tile-chart { background: linear-gradient(150deg, #e9faf0 0%, #cdf2dc 100%); }
.tile-devices { background: linear-gradient(150deg, #fff2e6 0%, #ffe0c8 100%); }

/* ==========================================================================
   Nube de marcas: logos en figuras (círculo, cuadro, hexágono, rombo) que
   flotan alrededor del titular y siguen al mouse (home.js: initBrandCloud)
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand-cloud {
    position: relative;
    min-height: 860px;
    margin: clamp(40px, 6vw, 80px) 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 45% 40% at 50% 50%, rgba(108, 71, 255, 0.07) 0%, transparent 70%);
}

.cloud-field {
    position: absolute;
    inset: 0;
}

.cloud-tile {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    display: grid;
    place-items: center;
    translate: -50% -50%;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 16, 60, 0.1), 0 2px 6px rgba(20, 16, 60, 0.05);
    animation: cloudFloat 6s ease-in-out infinite;
    animation-delay: var(--d);
    transition: box-shadow 0.4s ease;
}

.cloud-tile .brand-mark {
    width: 44%;
    height: 44%;
    background: rgb(var(--bc));
    transition: transform 0.5s var(--ease);
}

.cloud-tile:hover {
    box-shadow: 0 24px 50px rgba(var(--bc), 0.3), 0 2px 6px rgba(20, 16, 60, 0.05);
}

.cloud-tile:hover .brand-mark {
    transform: scale(1.15);
}

.cloud-circle { border-radius: 50%; }
.cloud-square { border-radius: 26%; }

.cloud-hex {
    background: #f4f3f8;
    box-shadow: none;
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.cloud-diamond {
    background: #f6f5fa;
    box-shadow: none;
    border-radius: 18%;
    rotate: 45deg;
    width: calc(var(--s) * 0.78);
    height: calc(var(--s) * 0.78);
}

.cloud-diamond .brand-mark {
    rotate: -45deg;
    width: 54%;
    height: 54%;
}

@keyframes cloudFloat {
    0%, 100% { translate: -50% -50%; }
    50% { translate: -50% calc(-50% - 14px); }
}

.cloud-copy {
    position: relative;
    z-index: 2;
    width: min(640px, calc(100% - 48px));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cloud-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
}

.cloud-title {
    margin: 14px 0 18px;
    font-family: var(--display);
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.cloud-lead {
    color: var(--ink-2);
    font-size: 1.08rem;
    max-width: 540px;
}

.cloud-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 26px 0 30px;
}

.cloud-stats span {
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.cloud-stats b {
    color: var(--ink);
    margin-right: 4px;
}

.brand-cloud .brands-note {
    margin-top: 22px;
}

/* En celular: los logos forman un mosaico arriba del texto */
@media (max-width: 900px) {
    .brand-cloud {
        min-height: 0;
        padding: 70px 0;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .cloud-field {
        position: relative;
        inset: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 14px 12px;
        padding: 0 16px;
    }

    .cloud-tile {
        position: relative;
        left: auto;
        top: auto;
        translate: 0 0;
        width: 64px;
        height: 64px;
        animation-name: cloudFloatMobile;
    }

    .cloud-diamond {
        width: 50px;
        height: 50px;
        margin: 0 6px;
    }

    .cloud-tile:nth-child(n + 13) {
        display: none;
    }
}

@keyframes cloudFloatMobile {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
    .cloud-tile {
        animation: none;
    }
}

/* ---------- Nube de marcas v2: figura interior que deriva, rota y se aparta del mouse ---------- */
.brand-cloud {
    min-height: 940px;
    overflow: hidden;
    overflow: clip;
}

.cloud-tile {
    background: none;
    box-shadow: none;
    animation: none;
    translate: -50% -50%;
    cursor: pointer;
}

.cloud-shape {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 16, 60, 0.1), 0 2px 6px rgba(20, 16, 60, 0.05);
    transition: box-shadow 0.4s ease, background 0.4s ease;
    will-change: transform;
}

.cloud-shape.cloud-hex,
.cloud-shape.cloud-diamond {
    background: #f4f3f8;
    box-shadow: none;
}

.cloud-shape.cloud-diamond {
    width: 78%;
    height: 78%;
}

.cloud-tile:hover .cloud-shape {
    background: rgba(var(--bc), 0.1);
    box-shadow: 0 24px 50px rgba(var(--bc), 0.35);
}

.cloud-tile:hover .brand-mark {
    transform: scale(1.18);
}

.cloud-name {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    translate: -50% 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, translate 0.4s var(--ease);
}

.cloud-tile:hover .cloud-name {
    opacity: 1;
    translate: -50% 0;
}

/* Halo que sigue al mouse dentro de la sección */
.cloud-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 71, 255, 0.16) 0%, rgba(0, 166, 255, 0.08) 40%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.brand-cloud:hover .cloud-glow {
    opacity: 1;
}

@media (max-width: 900px) {
    .brand-cloud {
        min-height: 0;
    }

    .cloud-tile {
        translate: 0 0;
    }

    .cloud-name,
    .cloud-glow {
        display: none;
    }
}

/* ---------- Lo que hacemos (debajo de la portada) ---------- */
.what {
    padding: clamp(60px, 8vw, 110px) 0;
}

.what-head {
    max-width: 760px;
    margin-bottom: clamp(30px, 4vw, 50px);
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.what-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 26px;
    border-radius: 32px;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.what-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.w-web { background: linear-gradient(150deg, #efe9ff 0%, #e0d5ff 100%); }
.w-book { background: linear-gradient(150deg, #fff2e6 0%, #ffe0c8 100%); }
.w-ai { background: linear-gradient(150deg, #e9faf0 0%, #cdf2dc 100%); }
.w-sys { background: linear-gradient(150deg, #e6f5ff 0%, #cfe9ff 100%); }

.what-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
}

.what-media img {
    width: 104%;
    max-width: none;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.8s var(--ease);
}

.what-media-phone img {
    width: 56%;
    margin-top: 22%;
}

.what-card:hover .what-media img {
    transform: scale(1.06) translateY(-6px);
}

.what-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.what-chat {
    display: grid;
    gap: 8px;
    width: 84%;
    font-size: 0.8rem;
    line-height: 1.35;
}

.what-chat span {
    max-width: 85%;
    padding: 9px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    animation: chatIn 8s ease infinite backwards;
}

.what-chat .out {
    justify-self: end;
    background: #dcf8e6;
}

.what-chat span:nth-child(2) { animation-delay: 0.9s; }
.what-chat span:nth-child(3) { animation-delay: 1.8s; }
.what-chat span:nth-child(4) { animation-delay: 2.7s; }

@keyframes chatIn {
    0% { opacity: 0; transform: translateY(10px); }
    6%, 85% { opacity: 1; transform: none; }
    95%, 100% { opacity: 0; transform: none; }
}

.what-copy {
    padding: 20px 12px 0;
}

.what-copy h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.what-copy p {
    margin-top: 6px;
    color: var(--ink-2);
    font-size: 0.95rem;
}

.what-go {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 0.85rem;
    transform: rotate(-45deg);
    transition: transform 0.5s var(--ease), background 0.3s ease, color 0.3s ease;
}

.what-card:hover .what-go {
    transform: rotate(0);
    background: var(--ink);
    color: #fff;
}

@media (max-width: 1000px) {
    .what-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .what-grid {
        grid-template-columns: 1fr;
    }

    .what-media {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .what-chat span {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- Portada: laptop y celular que recorren los proyectos ---------- */
.hero-visual .dev-lap {
    position: absolute;
    right: -6%;
    top: 6%;
    width: 104%;
    filter: drop-shadow(0 40px 60px rgba(34, 24, 110, 0.22));
}

.dev-lap-lid {
    position: relative;
    padding: 2.2% 2.2% 3%;
    border-radius: 22px 22px 6px 6px;
    background: linear-gradient(180deg, #1d1d22, #0c0c10);
    box-shadow: inset 0 0 0 1.5px #3a3a42;
}

.dev-cam {
    position: absolute;
    top: 0.9%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #2c2c34;
}

.dev-screen {
    position: relative;
    overflow: hidden;
    background: #0b0b0f;
}

.dev-lap .dev-screen {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
}

.dev-lap-base {
    position: relative;
    width: 114%;
    height: 14px;
    margin-left: -7%;
    border-radius: 2px 2px 16px 16px;
    background: linear-gradient(180deg, #e9e9ee 0%, #c9c9d1 60%, #a9a9b3 100%);
}

.dev-lap-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 6px;
    translate: -50% 0;
    border-radius: 0 0 8px 8px;
    background: #b5b5bf;
}

.hero-visual .dev-ph {
    position: absolute;
    left: -2%;
    bottom: 2%;
    z-index: 2;
    width: 24%;
    padding: 2.2%;
    border-radius: 40px;
    background: #0c0c10;
    box-shadow: inset 0 0 0 1.5px #3a3a42, 0 30px 50px rgba(34, 24, 110, 0.3);
}

.dev-ph .dev-screen {
    aspect-ratio: 9 / 19.5;
    border-radius: 30px;
}

.dev-island {
    position: absolute;
    z-index: 2;
    top: 2.4%;
    left: 50%;
    width: 32%;
    height: 3.2%;
    translate: -50% 0;
    border-radius: 999px;
    background: #000;
}

.dev-screen .feed {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    max-width: none;
    opacity: 0;
    will-change: transform, opacity;
}

.dev-screen .feed.is-on {
    opacity: 1;
}

/* Etiqueta del proyecto que se está mostrando */
.reel-chip {
    position: absolute;
    z-index: 3;
    right: 4%;
    bottom: -2%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(20, 16, 60, 0.12);
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.reel-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--chip, #c8a96a);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--chip, #c8a96a) 25%, transparent);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.reel-chip-text span {
    color: var(--muted, #6e6e73);
}

.reel-chip-bars {
    display: flex;
    gap: 4px;
}

.reel-chip-bars i {
    position: relative;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(20, 16, 60, 0.12);
}

.reel-chip-bars i::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00a6ff, #6c47ff);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}

@media (max-width: 900px) {
    .hero-visual .dev-lap {
        right: -4%;
        width: 96%;
    }

    .hero-visual .dev-ph {
        width: 28%;
        border-radius: 26px;
    }

    .dev-ph .dev-screen {
        border-radius: 20px;
    }

    .reel-chip {
        right: 50%;
        bottom: -6%;
        translate: 50% 0;
        font-size: 0.82rem;
    }

    .reel-chip-bars {
        display: none;
    }
}

/* ---------- Proceso en versión clara (combina con el resto del sitio) ---------- */
.process {
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(0, 166, 255, 0.12), transparent 70%),
        radial-gradient(60% 60% at 100% 100%, rgba(108, 71, 255, 0.14), transparent 70%),
        linear-gradient(160deg, #f6f3ff 0%, #eef6ff 100%);
    color: var(--ink);
}

.process .kicker { color: var(--brand); }
.process .kicker .num { background: rgba(108, 71, 255, 0.12); }

.process-side p {
    color: var(--ink-2);
}

.process-ctas small {
    color: var(--muted, #6e6e73);
}

.process .steps-line {
    background: rgba(20, 16, 60, 0.1);
}

.process .step {
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(34, 24, 110, 0.07);
    backdrop-filter: blur(8px);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.process .step:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(34, 24, 110, 0.12);
}

.process .step-num {
    background: #fff;
    border-color: rgba(20, 16, 60, 0.15);
    color: var(--ink);
    font-weight: 700;
}

.process .step.is-on .step-num {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(108, 71, 255, 0.14);
}

.process .step p {
    color: var(--ink-2);
}

.step-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1ecff;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.step-get {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f5fb;
    color: var(--ink-2);
    font-size: 0.9rem;
}

.step-get b {
    color: var(--ink);
}

.steps-more {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.4s var(--ease), gap 0.4s var(--ease);
}

.steps-more:hover {
    transform: translateY(-3px);
    gap: 14px;
}

/* ---------- Nube de marcas: versión limpia ---------- */
/* Sin halo (se notaba su borde) */
.cloud-glow {
    display: none !important;
}

/* Sin el cuadro que aparecía detrás de cada logo al pasar el mouse */
.cloud-tile:hover {
    box-shadow: none;
}

.cloud-shape.cloud-hex,
.cloud-shape.cloud-diamond {
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 16, 60, 0.08);
}

.cloud-tile:hover .cloud-shape.cloud-hex {
    box-shadow: none;
}

/* Los logos se desvanecen al acercarse a los bordes en lugar de cortarse */
.brand-cloud .cloud-field {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.brand-cloud {
    background: none;
}

/* Botón "ver más" de cada sección hacia su página */
.section-more {
    margin-top: 22px;
}

.how-head .section-more,
.values-head .section-more {
    display: inline-flex;
}

/* Tarjeta final del carrusel: invitación a crear un sitio nuevo */
.showcase-new {
    color: #fff;
}

.showcase-new .showcase-tag {
    color: rgba(255, 255, 255, 0.85);
}

.showcase-new h3,
.showcase-new p,
.showcase-new li {
    color: #fff;
}

.showcase-new li::before {
    background: #fff;
}

.showcase-new-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.new-plus {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    color: #6c47ff;
    font-size: 3rem;
    box-shadow: 0 30px 60px rgba(20, 16, 60, 0.25);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-new:hover .new-plus {
    transform: rotate(90deg) scale(1.06);
}

.new-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    animation: newSpin 22s linear infinite;
}

.new-ring.r1 { width: 240px; height: 240px; }
.new-ring.r2 { width: 360px; height: 360px; animation-direction: reverse; animation-duration: 34s; border-color: rgba(255, 255, 255, 0.25); }

@keyframes newSpin {
    to { transform: rotate(360deg); }
}
