/* ==========================================================================
   OnTruck — Componentes reutilizables
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botones — el verde #20B573 es el único color de CTA
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    text-align: center;
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease),
                background .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn--primary {
    background: var(--green-500);
    color: #fff;
    box-shadow: 0 10px 26px rgba(32, 181, 115, .32);
}

.btn--primary:hover {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 16px 34px rgba(32, 181, 115, .4);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--navy-900);
    background: var(--white);
    color: var(--ink);
}

.btn--ghost-light {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn--sm { padding: 11px 20px; font-size: .9375rem; }
.btn--lg { padding: 18px 38px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Enlace con flecha */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--blue-500);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform .22s var(--ease);
}

.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Etiquetas y badges
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-500);
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-500);
}

.on-navy .eyebrow { color: #6FC2FF; }
.on-navy .eyebrow::before { background: #6FC2FF; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: .8125rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.badge svg { width: 15px; height: 15px; flex: none; color: var(--green-500); }

.badge--light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.badge--green {
    background: var(--green-050);
    border-color: rgba(32, 181, 115, .3);
    color: var(--green-600);
}

.badge--blue {
    background: var(--blue-050);
    border-color: rgba(0, 104, 200, .25);
    color: var(--blue-600);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Píldora de edición (Pro / Dealer) */
.edition-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: var(--r-pill);
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.edition-tag__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.edition-tag--pro {
    background: rgba(32, 181, 115, .14);
    color: #4EE0A4;
}

.edition-tag--dealer {
    background: rgba(0, 104, 200, .18);
    color: #7ECBFF;
}

/* --------------------------------------------------------------------------
   Tarjetas
   -------------------------------------------------------------------------- */

.card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease),
                border-color .28s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 104, 200, .28);
    box-shadow: var(--shadow-md);
}

.card h3, .card h4 { margin-bottom: 10px; }

.card p { font-size: .9688rem; }

.card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--blue-050);
    color: var(--blue-500);
}

.card__icon svg { width: 24px; height: 24px; }

.card__icon--green { background: var(--green-050); color: var(--green-600); }

.card--navy {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.card--navy:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .24);
}

.card--navy h3, .card--navy h4 { color: #fff; }
.card--navy p { color: rgba(255, 255, 255, .74); }
.card--navy .card__icon { background: rgba(255, 255, 255, .1); color: #7ECBFF; }

.card--plain {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.card--plain:hover { transform: none; box-shadow: none; }

/* Tarjeta numerada (círculo azul del deck) */
.card--num { padding-top: 34px; }

.num-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--blue-500);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 104, 200, .3);
}

.num-badge--green {
    background: var(--green-500);
    box-shadow: 0 8px 20px rgba(32, 181, 115, .3);
}

.num-badge--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .35);
    color: #fff;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Lista de checks
   -------------------------------------------------------------------------- */

.checklist { display: grid; gap: 13px; }

.checklist li {
    position: relative;
    padding-left: 34px;
    font-size: 1rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .28em;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--green-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320B573' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.on-navy .checklist li::before,
.checklist--light li::before {
    background-color: rgba(32, 181, 115, .18);
}

/* --------------------------------------------------------------------------
   Timeline numerada (flujo de pasos)
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    gap: 22px;
    counter-reset: step;
}

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

.step {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-500);
    color: #fff;
    font-size: .9375rem;
    font-weight: 800;
    line-height: 1;
}

.on-navy .step__num,
.step__num--light {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.step__body h4 { margin-bottom: 4px; }
.step__body p { font-size: .9375rem; }

/* Proceso horizontal con línea */
.flow {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.flow__item { text-align: center; }

.flow__num {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-500);
    color: var(--blue-500);
    font-size: 1.25rem;
    font-weight: 800;
}

.on-navy .flow__num {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.flow__item h4 { margin-bottom: 8px; }
.flow__item p { font-size: .9375rem; }

/* --------------------------------------------------------------------------
   Barra de logos institucionales
   -------------------------------------------------------------------------- */

.logobar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 60px);
}

/* Varios logos institucionales traen su fondo de color incrustado: en escala
   de grises se convierten en bloques grises, así que van a color. */
.logobar img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: .88;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.logobar img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logobar--sm img { height: 34px; }

/* Sobre navy los logos institucionales van en pastilla blanca: varios traen
   fondo blanco incrustado y no se pueden invertir sin destruirlos. */
.logobar--light { gap: 20px; }

.logobar--light img {
    height: 52px;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    background: #fff;
    opacity: 1;
    filter: none;
}

.logobar--light img:hover { filter: none; }

.logobar-label {
    margin-bottom: 26px;
    text-align: center;
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Media: marcos y capturas
   -------------------------------------------------------------------------- */

.media-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.media-frame img,
.media-frame video {
    width: 100%;
    display: block;
}

.media-frame--flat { box-shadow: var(--shadow-md); }

.media-frame--browser {
    border: 1px solid var(--line);
    background: var(--white);
    padding-top: 34px;
}

.media-frame--browser::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 34px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.media-frame--browser::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 15px;
    width: 44px;
    height: 9px;
    border-radius: 99px;
    background:
        radial-gradient(circle 4.5px at 4.5px 4.5px, #FF5F57 100%, transparent 0),
        radial-gradient(circle 4.5px at 22px 4.5px, #FEBC2E 100%, transparent 0),
        radial-gradient(circle 4.5px at 39.5px 4.5px, #28C840 100%, transparent 0);
}

/* Mockup de celular (los PNG ya traen su propio marco) */
.phone {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
    filter: drop-shadow(0 26px 48px rgba(7, 27, 52, .22));
}

.phone--sm { max-width: 190px; }

.phone-video {
    width: 100%;
    max-width: 330px;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Imagen con recorte */
.figure {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.figure--tall img { aspect-ratio: 3 / 4; }
.figure--wide img { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   Estadísticas
   -------------------------------------------------------------------------- */

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

.stat__value {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--ink);
}

.stat__label {
    margin-top: 6px;
    font-size: .9375rem;
    line-height: 1.4;
}

.on-navy .stat__value { color: #fff; }
.on-navy .stat__label { color: rgba(255, 255, 255, .68); }

.stat--accent .stat__value { color: var(--green-500); }

/* --------------------------------------------------------------------------
   Cita destacada
   -------------------------------------------------------------------------- */

.quote {
    position: relative;
    padding: 34px 34px 34px 40px;
    border-left: 4px solid var(--green-500);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: var(--surface);
    font-size: clamp(1.05rem, .98rem + .45vw, 1.375rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
}

.on-navy .quote {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.quote cite {
    display: block;
    margin-top: 14px;
    font-size: .875rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Aviso legal / nota al pie de sección
   -------------------------------------------------------------------------- */

.note {
    font-size: .8125rem;
    line-height: 1.55;
    color: var(--muted);
}

.on-navy .note { color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   Animación de entrada
   Se aplica solo cuando hay JavaScript (html.js): sin JS el contenido se ve
   siempre, nunca queda invisible.
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Ítem del checklist aún no disponible: reloj en vez de check + píldora */
.checklist li.is-soon::before {
    background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230068C8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.on-navy .checklist li.is-soon::before,
.checklist--light li.is-soon::before {
    background-color: rgba(0, 104, 200, .22);
}

.tag-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 9px;
    border: 1px solid rgba(0, 104, 200, .28);
    border-radius: var(--r-pill);
    background: var(--blue-050);
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--blue-600);
    white-space: nowrap;
    vertical-align: 1px;
}

.tag-soon svg { width: 11px; height: 11px; flex: none; }

/* Píldora "Muy pronto" sobre fondo navy */
.on-navy .tag-soon {
    border-color: rgba(111, 194, 255, .38);
    background: rgba(111, 194, 255, .14);
    color: #6FC2FF;
}

/* En títulos de tarjeta y eyebrows, que no herede el tamaño del h3 */
.card h3 .tag-soon,
.section-head .tag-soon,
.split__text .tag-soon { font-size: .625rem; vertical-align: 2px; }
