/* ============================================================
   ClickBox Home Page — v2
   ============================================================ */

/* ══════════════════════════════════════════
   TIPOGRAFÍA QANDARU — activa vía global.css (@font-face declarado ahí)
   Pacifico carga como respaldo desde Google Fonts
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* La clase .cb-font-qandaru ya está definida en global.css con Qandaru */

/* ── Variables ── */
:root {
    --cbh-green:    #51d728;
    --cbh-green-d:  #3fb31e;
    --cbh-purple:   #2a1db5;
    --cbh-purple-b: #3b2de0;
    --cbh-dark:     #060927;
    --cbh-dark2:    #0d1240;
    --cbh-white:    #ffffff;
    --cbh-gray:     #f4f5fb;
    --cbh-text:     #1a1a3e;
    --cbh-muted:    #5a5a8a;
    --cbh-ease:     cubic-bezier(.4,0,.2,1);
    --cbh-max:      1200px;
}

/* ── Reset/base ── */
.cb-home *, .cb-home *::before, .cb-home *::after { box-sizing: border-box; }
.cb-home { font-family: 'Montserrat', sans-serif; color: var(--cbh-text); }

/* ── Container ── */
.cb-container {
    max-width: var(--cbh-max);
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Accent color ── */
.cb-accent { color: var(--cbh-purple-b); }

/* ── Section head ── */
.cb-section-head { text-align: center; margin-bottom: 56px; }
.cb-section-head--light .cb-section-title,
.cb-section-head--light .cb-section-sub { color: var(--cbh-white); }

.cb-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 14px;
}

.cb-section-sub {
    font-size: 1.0625rem;
    color: var(--cbh-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Eyebrow ── */
.cb-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cbh-purple-b);
    background: rgba(91,74,255,.1);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.cb-eyebrow--light { color: var(--cbh-green); background: rgba(81,215,40,.15); }

/* ── Buttons ── */
.cb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .25s var(--cbh-ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.cb-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s; }
.cb-btn:hover svg { transform: translateX(4px); }

.cb-btn--sm  { font-size: 0.875rem; padding: 9px 20px; }
.cb-btn--lg  { font-size: 1rem;     padding: 14px 32px; }
.cb-btn--xl  { font-size: 1.125rem; padding: 18px 42px; }

.cb-btn--green {
    background: var(--cbh-green);
    color: #ffffff;
}
.cb-btn--green:hover {
    background: var(--cbh-green-d);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(81,215,40,.4);
    color: #ffffff;
}

.cb-btn--purple {
    background: var(--cbh-purple-b);
    color: #ffffff;
}
.cb-btn--purple:hover {
    background: var(--cbh-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59,45,224,.4);
    color: #ffffff;
}

.cb-btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,.6);
    color: #ffffff;
}
.cb-btn--outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.cb-btn--outline-purple {
    background: transparent;
    border-color: var(--cbh-purple-b);
    color: var(--cbh-purple-b);
}
.cb-btn--outline-purple:hover {
    background: var(--cbh-purple-b);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,45,224,.35);
}

/* Pulse animation en el CTA */
@keyframes cb-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(81,215,40,.55); }
    50%      { box-shadow: 0 0 0 14px rgba(81,215,40,0); }
}
.cb-btn--pulse { animation: cb-pulse 2.4s infinite; }
.cb-btn--pulse:hover { animation: none; }

/* ── Image placeholders ── */
.cb-img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    text-align: center;
    color: rgba(255,255,255,.65);
    font-size: 0.9375rem;
}
.cb-img-ph svg  { width: 80px; height: 80px; opacity: .7; }
.cb-img-ph small { font-size: 0.75rem; opacity: .6; }

.cb-img-ph--hero     { background: rgba(255,255,255,.07); border: 2px dashed rgba(255,255,255,.25); width: 100%; aspect-ratio: 4/3; max-width: 480px; }
.cb-img-ph--card     { background: linear-gradient(135deg,#1a0ea8,#3b2de0); width: 100%; height: 220px; border-radius: 12px 12px 0 0; color: rgba(255,255,255,.55); }
.cb-img-ph--about    { background: linear-gradient(135deg,#1a0ea8,#3b2de0); width: 100%; aspect-ratio: 3/4; border-radius: 20px; color: rgba(255,255,255,.55); }
.cb-img-ph--portfolio{ background: linear-gradient(135deg,#060927,#2a1db5); width: 100%; aspect-ratio: 16/9; border-radius: 16px; color: rgba(255,255,255,.5); }
.cb-img-ph--portfolio-sm { background: linear-gradient(135deg,#1a0ea8,#3b2de0); width: 100%; height: 200px; border-radius: 12px; color: rgba(255,255,255,.5); }
.cb-img-ph--rocket   { background: transparent; border: 2px dashed rgba(255,255,255,.2); width: 240px; height: 280px; color: rgba(255,255,255,.4); }

/* ── Tags ── */
.cb-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(59,45,224,.1);
    color: var(--cbh-purple-b);
    border: 1px solid rgba(59,45,224,.2);
}

/* ── Counter ── */
.cb-counter { font-size: 2.5rem; font-weight: 900; line-height: 1; }

/* ── Scroll reveal ── */
[data-reveal] {
    opacity: 0;
    transition: opacity .7s var(--cbh-ease), transform .7s var(--cbh-ease);
}
[data-reveal="fade-up"]    { transform: translateY(50px); }
[data-reveal="fade-right"] { transform: translateX(-60px); }
[data-reveal="fade-left"]  { transform: translateX(60px); }
[data-reveal="zoom"]       { transform: scale(.8); }

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */

/* Resplandor pulsante en "with us!" — muy tenue */
@keyframes cb-glow-pulse {
    0%, 100% {
        text-shadow:
            0 0 18px rgba(81,215,40,.18),
            0 0 35px rgba(81,215,40,.08);
    }
    50% {
        text-shadow:
            0 0 32px rgba(81,215,40,.55),
            0 0 65px rgba(81,215,40,.28),
            0 0 100px rgba(81,215,40,.12);
    }
}

.cb-hero {
    position: relative;
    min-height: 72vh;           /* banner alto pero no 100vh */
    display: flex;
    align-items: center;
    background: var(--cbh-dark);
    overflow: hidden;
}

/* ── Imagen de fondo ── */
.cb-hero__bg-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cb-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Oculta img cuando src está vacío */
.cb-hero__bg-img[data-placeholder="true"][src=""] { display: none; }

.cb-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cb-hero__overlay {
    position: absolute;
    inset: 0;
    /* overlay más suave para que la imagen de fondo se vea */
    background: linear-gradient(
        105deg,
        rgba(4,7,32,.88) 0%,
        rgba(10,12,48,.75) 45%,
        rgba(4,7,32,.55) 100%
    );
    z-index: 2;
}

/* ── Layout ── */
.cb-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    padding: 72px 56px;
    width: 100%;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 32px;
    align-items: center;
}

/* ── Título ── */
.cb-hero__title {
    margin: 0;
    line-height: 1;
}

/* "Experience" — blanco, muy pesado, grande */
.cb-hero__line1 {
    display: block;
    font-size: clamp(3.8rem, 8vw, 7.5rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.02em;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

/* "success" — idéntico a Experience */
.cb-hero__line2 {
    display: block;
    font-size: clamp(3.8rem, 8vw, 7.5rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.02em;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* "with us!" — Qandaru brush, verde, siempre en 1 línea */
.cb-hero__line3,
.cb-hero__line3.cb-font-qandaru {
    display: block !important;
    font-family: 'Qandaru', 'Pacifico', cursive !important;
    font-size: clamp(3.5rem, 8.5vw, 7.5rem) !important;
    font-weight: 400 !important;
    color: #51d728 !important;
    line-height: .95 !important;
    font-style: normal !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    -webkit-text-stroke: 0 !important;
    animation: cb-glow-pulse 3.5s ease-in-out infinite !important;
}

/* ── Línea divisoria cyan brillante ── */
.cb-hero__divider {
    width: 100%;
    height: 2px;
    margin: 20px 0 18px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #00c8ff 15%,
        #00e5ff 50%,
        #00c8ff 85%,
        transparent 100%
    );
    box-shadow:
        0 0  6px rgba(0,200,255,.9),
        0 0 16px rgba(0,200,255,.5),
        0 0 32px rgba(0,200,255,.25);
    position: relative;
    border-radius: 2px;
}

/* ── Subtítulo "Contenido visual que eleva tu marca" ── */
.cb-hero__sub {
    font-size: clamp(1.5rem, 3vw, 2.25rem);   /* más grande, como en referencia */
    font-style: italic;
    color: rgba(255,255,255,.95);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: .01em;
    font-family: 'Montserrat', sans-serif;
}

/* ── Columna imagen derecha ── */
.cb-hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100%;
}

/* Animaciones para la imagen derecha del hero */
@keyframes cb-hero-img-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-18px) scale(1.02); }
}

@keyframes cb-hero-img-glow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0,180,255,.25)) drop-shadow(0 0 60px rgba(81,215,40,.1)); }
    50%       { filter: drop-shadow(0 0 50px rgba(0,180,255,.5))  drop-shadow(0 0 100px rgba(81,215,40,.2)); }
}

.cb-hero__img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    object-position: center;
    display: block;
    animation:
        cb-hero-img-float 4.5s ease-in-out infinite,
        cb-hero-img-glow  4.5s ease-in-out infinite;
    transform-origin: center bottom;
}

/* ════════════════════════════════════════
   INTRO
════════════════════════════════════════ */
.cb-intro {
    padding: 100px 0;
    background: var(--cbh-white);
    text-align: center;
}

.cb-intro__inner {
    max-width: 1180px;  /* ancho suficiente para 2 líneas de texto */
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cb-intro__text {
    font-size: clamp(1.375rem, 2.4vw, 1.875rem); /* tamaño consistente */
    font-weight: 400;
    line-height: 1.5;
    color: var(--cbh-text);
    margin: 0;
}

.cb-intro__text strong { color: var(--cbh-purple-b); font-weight: 700; }

/* ════════════════════════════════════════
   BRANDS MARQUEE
════════════════════════════════════════ */
.cb-brands {
    padding: 72px 0;
    background: var(--cbh-gray);
    overflow: hidden;
}

.cb-brands__grid {
    display: flex;
    align-items: center;
    gap: 48px;
}

.cb-brands__label {
    flex-shrink: 0;
    min-width: 260px;
    line-height: 1.05;
}

/* Línea 1: "Marcas que han" — negro bold */
.cb-brands__label-l1 {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 800;
    color: var(--cbh-text);
    line-height: 1.02;
    letter-spacing: -.01em;
}

/* Línea 2: "confiado" — morado, más grande y pesado */
.cb-brands__label-l2 {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.3rem, 3.2vw, 3.2rem);
    font-weight: 900;
    color: var(--cbh-purple-b);
    line-height: 1;
    letter-spacing: -.02em;
    margin: 2px 0 8px;
}

/* Línea 3: "en nosotros" — blanco sobre pill verde */
.cb-brands__label-l3 {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2.15rem);
    font-weight: 800;
    color: #fff;
    background: var(--cbh-green);
    padding: 6px 26px 8px;
    border-radius: 50px;
    line-height: 1.15;
    letter-spacing: .01em;
    box-shadow: 0 8px 24px rgba(81,215,40,.35);
}

.cb-brands__track-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.cb-brands__track {
    display: flex;
    width: max-content;
    animation: cb-brands-scroll 30s linear infinite;
}

.cb-brands__track:hover { animation-play-state: paused; }

.cb-brands__group {
    display: flex;
    align-items: center;
    gap: 0;
}

.cb-brand-logo {
    flex-shrink: 0;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d8d8ec;
}

/* Imagen del logo */
.cb-brand-logo img {
    height: 48px;
    width: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
    /* Grayscale por defecto — aspecto profesional y uniforme */
    filter: grayscale(100%) opacity(.55);
    transition: filter .4s ease, transform .3s ease;
}

/* Al hover: muestra el color real del logo */
.cb-brand-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

/* Si la imagen falla al cargar, muestra un placeholder */
.cb-brand-logo img::after {
    content: attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 48px;
    background: #eef0f8;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cbh-muted);
    text-align: center;
}

@keyframes cb-brands-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════
   SERVICIOS — CARRUSEL
════════════════════════════════════════ */
.cb-services {
    padding: 100px 0 60px;
    background: var(--cbh-white);
}

/* Carrusel */
.cb-carousel {
    position: relative;
    padding-bottom: 64px;
}

.cb-carousel__viewport {
    overflow: hidden;
    padding: 16px 0 8px;
    /* Máscara lateral para efecto elegante */
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.cb-carousel__track {
    display: flex;
    gap: 24px;
    transition: transform .55s var(--cbh-ease);
    will-change: transform;
    padding: 0 48px;
}

/* ============================================================
   SERVICE CARDS — imagen de fondo + título grande a la izquierda
   ============================================================ */
.cb-service-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    aspect-ratio: 16 / 11;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(26,14,168,.10);
    transition: transform .4s var(--cbh-ease), box-shadow .4s var(--cbh-ease);
}

.cb-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(26,14,168,.28);
    text-decoration: none;
    color: inherit;
}

/* Imagen de fondo absoluta */
.cb-service-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform .7s var(--cbh-ease);
}
.cb-service-card:hover .cb-service-card__bg {
    transform: scale(1.08);
}

/* Overlay oscuro solo en izquierda para legibilidad del título */
.cb-service-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(6,9,39,.88) 0%,
        rgba(6,9,39,.62) 40%,
        rgba(6,9,39,.25) 70%,
        rgba(6,9,39,.05) 100%
    );
    transition: opacity .4s;
}

/* Contenido — título centrado vertical, anclado a la izquierda */
.cb-service-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 40px;
    gap: 18px;
}

.cb-service-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -.01em;
    max-width: 65%;
    text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

.cb-service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--cbh-green);
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(81,215,40,.12);
    border: 1.5px solid rgba(81,215,40,.4);
    backdrop-filter: blur(6px);
    transition: gap .3s, background .3s, border-color .3s, color .3s;
}
.cb-service-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform .3s;
}
.cb-service-card:hover .cb-service-card__cta {
    gap: 14px;
    background: var(--cbh-green);
    border-color: var(--cbh-green);
    color: #fff;
}
.cb-service-card:hover .cb-service-card__cta svg {
    transform: translateX(4px);
}

/* Línea de neón inferior — pulsa al hover */
.cb-service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cbh-green), var(--cbh-purple-b), transparent);
    z-index: 3;
    opacity: 0;
    transition: opacity .4s;
    box-shadow: 0 0 14px var(--cbh-green);
}
.cb-service-card:hover::after { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
    .cb-service-card {
        aspect-ratio: 16 / 10;
    }
    .cb-service-card__content { padding: 28px 32px; }
}
@media (max-width: 600px) {
    .cb-service-card {
        flex: 0 0 calc(100% - 16px);
        aspect-ratio: 4 / 3;
    }
    .cb-service-card__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        max-width: 80%;
    }
}

/* Controles del carrusel */
.cb-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
}

.cb-carousel__btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--cbh-purple-b);
    background: transparent;
    color: var(--cbh-purple-b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, color .25s, transform .25s;
    flex-shrink: 0;
}

.cb-carousel__btn svg { width: 18px; height: 18px; }
.cb-carousel__btn:hover { background: var(--cbh-purple-b); color: #fff; transform: scale(1.1); }
.cb-carousel__btn:disabled { opacity: .35; pointer-events: none; }

.cb-carousel__dots { display: flex; gap: 8px; align-items: center; }

.cb-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(59,45,224,.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s, width .3s;
}

.cb-carousel__dot.is-active {
    background: var(--cbh-purple-b);
    width: 22px;
    border-radius: 4px;
    transform: none;
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.cb-about {
    padding: 100px 0;
    background: var(--cbh-gray);
}

.cb-about__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.cb-about__img-col { position: relative; }

/* Wrapper de la imagen (relativo para posicionar badges) */
.cb-about__img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Foto del equipo */
.cb-about__photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom center;
}

/* ── Badges flotantes (píldoras verdes) ── */
@keyframes cb-badge-bob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.cb-about__pill {
    position: absolute;
    background: var(--cbh-green);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(81,215,40,.4);
    white-space: nowrap;
    cursor: default;
    transition: box-shadow .3s, transform .3s;
}

.cb-about__pill:hover {
    box-shadow: 0 10px 32px rgba(81,215,40,.6);
    transform: translateY(-3px) !important;
}

/* Posiciones basadas en la imagen de referencia */
.cb-about__pill--1 {
    left: -12px;
    top: 52%;
    animation: cb-badge-bob 3.4s ease-in-out infinite;
}

.cb-about__pill--2 {
    right: -8px;
    top: 40%;
    animation: cb-badge-bob 4s ease-in-out infinite .6s;
}

.cb-about__pill--3 {
    left: -12px;
    top: 72%;
    white-space: normal;
    max-width: 160px;
    text-align: center;
    animation: cb-badge-bob 3.7s ease-in-out infinite 1s;
}

.cb-about__content { display: flex; flex-direction: column; gap: 16px; }

.cb-about__content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    color: var(--cbh-text);
}

.cb-about__content p {
    font-size: 1rem;
    color: var(--cbh-muted);
    line-height: 1.7;
    margin: 0;
}

.cb-about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }

/* ════════════════════════════════════════
   WORK PROCESS — diseño exacto del mockup
════════════════════════════════════════ */

/* ── Animación de ENTRADA para cada paso ── */
@keyframes cb-step-in {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Float continuo DESPUÉS de la entrada ──
   Parte de opacity:1 explícito para que nunca desaparezca */
@keyframes cb-float-soft {
    0%,100% { opacity: 1; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(-9px); }
}

.cb-process {
    padding: 100px 0 110px;
    background: #040718;   /* casi negro, igual al diseño */
    position: relative;
    overflow: hidden;
}

/* ── Cabecera ── */
.cb-process__head {
    text-align: center;
    margin-bottom: 72px;
}

.cb-process__title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1;
}

.cb-process__title-green { color: var(--cbh-green); }

.cb-process__subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.72);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Grid de 4 columnas ── */
.cb-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* ── Cada paso — estado base: invisible ── */
.cb-process__step {
    text-align: center;
    padding: 0 8px;
    opacity: 0;
    transform: translateY(48px);
    will-change: transform, opacity;
}

/* FASE 1 — Entrada al viewport (animation-fill-mode:both mantiene el estado final) */
.cb-process__step.is-revealed {
    animation: cb-step-in .65s var(--cbh-ease) both;
}

/* Delays escalonados para la entrada */
.cb-process__step--1.is-revealed { animation-delay: 0s; }
.cb-process__step--2.is-revealed { animation-delay: .12s; }
.cb-process__step--3.is-revealed { animation-delay: .24s; }
.cb-process__step--4.is-revealed { animation-delay: .36s; }

/* FASE 2 — Float continuo.
   Se aplica cuando AMBAS clases están presentes, lo que tiene más
   especificidad y garantiza opacity:1. NO se quita is-revealed. */
.cb-process__step.is-revealed.cb-floats {
    opacity: 1;                     /* nunca desaparece */
    animation: cb-float-soft 4s ease-in-out infinite;
}

/* Duraciones distintas para que cada paso flote a su ritmo */
.cb-process__step--1.is-revealed.cb-floats { animation-duration: 3.6s; }
.cb-process__step--2.is-revealed.cb-floats { animation-duration: 4.1s; animation-delay: .4s; }
.cb-process__step--3.is-revealed.cb-floats { animation-duration: 3.9s; animation-delay: .2s; }
.cb-process__step--4.is-revealed.cb-floats { animation-duration: 4.4s; animation-delay: .7s; }

/* ── Número grande ── */
.cb-process__num {
    font-size: clamp(5rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    margin: 0 0 16px;
    display: block;
    font-style: normal;
}

/* ── Título del paso ── */
.cb-process__step-title {
    font-size: clamp(1.1rem, 1.8vw, 1.375rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #ffffff;           /* blanco por defecto — pasos 1 y 3 */
    margin: 0 0 14px;
    line-height: 1.25;
}

/* Pasos 2 y 4 — número Y título en verde */
.cb-process__step--green .cb-process__num {
    color: var(--cbh-green);
}
.cb-process__step--green .cb-process__step-title {
    color: var(--cbh-green);
}

/* ── Descripción ── */
.cb-process__step p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin: 0;
}

/* ════════════════════════════════════════
   PORTFOLIO
════════════════════════════════════════ */
.cb-portfolio {
    padding: 100px 0;
    background: var(--cbh-white);
}

/* Contenedor responsive 16:9 para el iframe de YouTube */
.cb-portfolio__video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;   /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 24px 72px rgba(0,0,0,.22);
}

.cb-portfolio__video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 16px;
}

/* ════════════════════════════════════════
   CTA FINAL — fondo blanco + cohete animado
════════════════════════════════════════ */

/* Animación flotante del cohete */
@keyframes cb-rocket-float {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%       { transform: translateY(-22px) rotate(-8deg); }
}

/* Estela de luz bajo el cohete */
@keyframes cb-rocket-glow {
    0%, 100% { opacity: .5; transform: scaleX(1); }
    50%       { opacity: .9; transform: scaleX(1.15); }
}

.cb-cta {
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.cb-cta__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 38% 62%;   /* más espacio para el texto */
    align-items: center;
    min-height: 480px;
}

/* ── Cohete ── */
.cb-cta__rocket-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cb-cta__rocket-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    animation: cb-rocket-float 3.8s ease-in-out infinite;
    filter: drop-shadow(0 20px 32px rgba(59,45,224,.15));
}

/* Halo de luz verde bajo el cohete */
.cb-cta__rocket-col::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(81,215,40,.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: cb-rocket-glow 3.8s ease-in-out infinite;
    pointer-events: none;
}

/* ── Texto ── */
.cb-cta__text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px 0 48px 16px;
}

.cb-cta__title {
    margin: 0;
    line-height: 1.05;
    white-space: nowrap;   /* impide el salto de línea */
}

/* "LLEVA TU MARCA" — morado, tamaño calibrado para 1 línea */
.cb-cta__title-purple {
    display: block;
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--cbh-purple-b);
}

/* "AL SIGUIENTE NIVEL" — negro, ligeramente más grande */
.cb-cta__title-dark {
    display: block;
    font-size: clamp(1.8rem, 3.6vw, 3.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #0a0a1a;
}

.cb-cta__sub {
    font-size: 1.1875rem;
    color: #3a3a5c;
    margin: 0;
    line-height: 1.55;
}

/* Botón CTA — borde verde, texto verde → hover fondo verde + texto blanco */
.cb-btn--cta-green {
    background: transparent;
    background-color: transparent;
    border: 2.5px solid var(--cbh-green);
    color: var(--cbh-green);
    font-weight: 800;
    letter-spacing: .06em;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .25s ease;
}

.cb-btn--cta-green:hover,
.cb-btn--cta-green:focus {
    background:       var(--cbh-green) !important;
    background-color: var(--cbh-green) !important;
    color:            #ffffff !important;
    border-color:     var(--cbh-green) !important;
    box-shadow:       0 8px 32px rgba(81,215,40,.45);
    transform:        translateY(-2px);
    text-decoration:  none;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
.cb-br-desktop { display: block; }

@media (max-width: 1100px) {
    .cb-hero__inner { padding: 60px 40px; gap: 24px; }
    .cb-about__grid { gap: 48px; }
}

@media (max-width: 900px) {
    .cb-process__grid  { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .cb-process__step  { min-width: 200px; flex: 0 0 calc(50% - 32px); }
    .cb-process__connector { display: none; }
}

@media (max-width: 768px) {
    .cb-container { padding: 0 20px; }
    .cb-br-desktop { display: none; }

    /* Hero: columna única, solo texto */
    .cb-hero {
        min-height: auto;
        padding: 0;
    }

    .cb-hero__inner {
        grid-template-columns: 1fr;
        padding: 60px 24px 50px;
        text-align: left;
        gap: 0;
    }

    .cb-hero__visual { display: none; }   /* imagen se oculta en móvil */

    .cb-hero__line1,
    .cb-hero__line2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }

    .cb-hero__line3,
    .cb-hero__line3.cb-font-qandaru {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        white-space: normal !important;   /* en móvil puede romper si no cabe */
    }

    .cb-hero__divider { margin: 14px 0 12px; }

    .cb-intro { padding: 64px 0; }
    .cb-intro__inner { padding: 0 20px; }

    .cb-brands__grid { flex-direction: column; gap: 28px; }
    .cb-brands__label { text-align: center; }

    /* video portfolio ya es responsive por defecto */

    .cb-about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    /* Badges en móvil: más cerca de la imagen */
    .cb-about__pill--1 { left: 4px; }
    .cb-about__pill--2 { right: 4px; }
    .cb-about__pill--3 { left: 4px; }

    .cb-process__grid { grid-template-columns: 1fr; }
    .cb-process__step { opacity: 1; transform: none; }

    /* CTA móvil: columna única, cohete arriba, texto abajo */
    .cb-cta__inner {
        grid-template-columns: 1fr;
        padding: 0 20px;
        min-height: auto;
    }
    .cb-cta__rocket-col { padding-top: 40px; }
    .cb-cta__rocket-img { max-width: 280px; margin: 0 auto; }
    .cb-cta__rocket-col::after { display: none; }
    .cb-cta__text-col {
        align-items: center;
        text-align: center;
        padding: 24px 0 56px;
    }
    .cb-cta__title { white-space: normal; }  /* en móvil sí puede romper */
    .cb-cta__title-purple,
    .cb-cta__title-dark { font-size: clamp(1.6rem, 7vw, 2.4rem); }

    .cb-section-head { margin-bottom: 36px; }
}

@media (max-width: 480px) {
    .cb-btn--xl  { font-size: 1rem; padding: 16px 28px; }
}
