/* ============================================
   Avirato Payments — componentes de las páginas v2.3
   (404, Gana dinero, Tokenización, ampliaciones de producto y sector)
   ============================================ */

/* <picture> de picture_tag(): no añade caja propia, el <img> se maqueta como antes */
picture {
    display: contents;
}

.btn--secondary-pill {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn--secondary-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ---------- Menú: Gana dinero ---------- */
.nav__link--earn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav__link {
        white-space: nowrap;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .nav__list {
        gap: 1.1rem;
    }

    .nav__link {
        font-size: 0.8125rem;
    }
}

.nav__badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

/* ---------- Consentimientos de formularios ---------- */
.form-consent {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-consent__note {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.75;
}

/* ---------- Botones sobre fondo oscuro ---------- */
.btn--on-dark {
    background: #fff;
    color: var(--ink);
}

.btn--on-dark:hover {
    background: var(--primary-100);
    color: var(--ink);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

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

/* ---------- Héroe de landings (vídeo o imagen de fondo) ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: calc(5rem + 72px) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.lp-hero__inner {
    position: relative;
    z-index: 1;
}

.lp-hero__content {
    max-width: 620px;
}

.lp-hero__tag {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lp-hero__title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 1.25rem;
}

.lp-hero__text {
    font-size: 1.125rem;
    line-height: 1.65;
    margin: 0 0 2rem;
}

.lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.lp-hero__checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.9375rem;
}

.lp-hero__checks li::before {
    content: '✓';
    margin-right: 0.4rem;
    font-weight: 700;
}

/* Variante oscura con vídeo: texto en blanco sobre degradado azul marino */
.lp-hero--video {
    background: #0a193c;
    color: #fff;
}

.lp-hero--video .lp-hero__tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lp-hero--video .lp-hero__title {
    color: #fff;
}

.lp-hero--video .lp-hero__text,
.lp-hero--video .lp-hero__checks {
    color: rgba(255, 255, 255, 0.92);
}

.lp-hero--video .lp-hero__text strong {
    color: #fff;
}

.lp-hero--video .lp-hero__checks li::before {
    color: #12eee0;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--hero-poster) center / cover no-repeat;
}

.hero-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Degradado más denso que el del brief en la zona del texto para asegurar contraste ≥ 4,5:1 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 60, 0.86) 0%, rgba(10, 25, 60, 0.7) 45%, rgba(10, 25, 60, 0.35) 75%, rgba(10, 25, 60, 0.2) 100%);
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .hero-media video {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-overlay {
        background: rgba(10, 25, 60, 0.74);
    }
}

/* Home: mismo contenido del héroe, en blanco sobre el vídeo V3 */
.hero.hero--video {
    background-color: #0a193c;
    overflow: hidden;
}

/* El H1 de la home ocupa casi todo el ancho: degradado más uniforme (contraste mínimo medido 6,5:1) */
@media (min-width: 768px) {
    .hero.hero--video .hero-overlay {
        background: linear-gradient(90deg, rgba(10, 25, 60, 0.86) 0%, rgba(10, 25, 60, 0.78) 50%, rgba(10, 25, 60, 0.66) 80%, rgba(10, 25, 60, 0.55) 100%);
    }
}

.hero.hero--video .hero__container {
    position: relative;
    z-index: 1;
}

.hero.hero--video .hero__title,
.hero.hero--video .hero__title-line,
.hero.hero--video .gradient-text {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.hero.hero--video .hero__description,
.hero.hero--video .hero__description strong,
.hero.hero--video .hero__highlights li {
    color: rgba(255, 255, 255, 0.94);
}

.hero.hero--video .hero__highlights li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312eee0' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* Variante clara con imagen: texto oscuro sobre la zona blanca de la foto */
.lp-hero--image {
    background: #f5f5f4;
    color: var(--ink);
}

.lp-hero--image .lp-hero__tag {
    background: #fff;
    border: 1px solid var(--line);
    color: #344054;
}

.lp-hero--image .lp-hero__text {
    color: #475467;
}

.lp-hero--image {
    display: flex;
    flex-direction: column;
}

.lp-hero__image {
    order: 2;
    margin: 2rem 1.25rem 0;
}

.lp-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@media (min-width: 960px) {
    .lp-hero--image {
        min-height: 560px;
        flex-direction: row;
        align-items: center;
    }

    .lp-hero--image .lp-hero__content {
        max-width: 500px;
    }

    .lp-hero__image {
        position: absolute;
        inset: 0;
        margin: 0;
        z-index: 0;
    }

    .lp-hero__image img {
        height: 100%;
        object-fit: cover;
        object-position: 70% center;
        border-radius: 0;
    }
}

/* Vídeo dentro de la figura del héroe (producto y sector) */
.hero-figure-video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-figure-video__fallback {
    display: none !important;
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .hero-figure-video {
        display: none;
    }

    .hero-figure-video__fallback {
        display: block !important;
    }
}

/* ---------- Cifras ---------- */
.lp-stats {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

@media (min-width: 768px) {
    .proof-stats--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin: 0 auto;
    }

    .proof-stats--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Texto + imagen ---------- */
.lp-split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 960px) {
    .lp-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3.5rem;
    }

    .lp-split--reverse .lp-split__media {
        order: -1;
    }
}

.lp-split__media {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(16, 24, 40, 0.12);
}

.lp-split__media img {
    display: block;
    width: 100%;
    height: auto;
}

.lp-split__actions {
    margin-top: 1.5rem;
}

/* ---------- Pasos numerados ---------- */
.lp-steps {
    list-style: none;
    counter-reset: lp-step;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1.25rem;
}

.lp-steps__item {
    counter-increment: lp-step;
    position: relative;
    padding-left: 3.25rem;
}

.lp-steps__item::before {
    content: counter(lp-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.lp-steps__title {
    font-size: 1.0625rem;
    margin: 0 0 0.3rem;
    line-height: 1.35;
}

.lp-steps__text {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

.lp-steps__text a {
    color: var(--blue);
    text-decoration: underline;
}

.lp-steps--grid {
    margin-top: 0;
}

@media (min-width: 900px) {
    .lp-steps--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* ---------- Calculadora ---------- */
.lp-calc {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
}

.lp-calc__title.ttp-section__title--center {
    margin-bottom: 2rem;
}

.lp-calc__form {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .lp-calc__form {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-calc__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #344054;
}

.lp-calc__field input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.lp-calc__field input:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.lp-calc__result {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--mist);
    text-align: center;
}

.lp-calc__result-label {
    display: block;
    font-size: 0.875rem;
    color: #475467;
}

.lp-calc__result-value {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.03em;
    color: var(--ink);
}

.lp-calc__note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #667085;
    text-align: center;
}

.lp-calc__cta {
    margin: 1.5rem 0 0;
    text-align: center;
}

/* ---------- Bandas de texto ---------- */
.lp-band__inner {
    max-width: 820px;
    text-align: center;
}

.lp-band__inner .ttp-section__text {
    margin: 0 auto;
}

.lp-rich-text a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Tarjetas con icono ---------- */
.lp-cards {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .lp-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lp-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-cards--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.lp-card {
    display: block;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.lp-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.lp-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--primary-100);
    color: var(--blue);
}

.lp-card__title {
    font-size: 1.0625rem;
    margin: 0 0 0.4rem;
}

.lp-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475467;
}

/* ---------- Chips ---------- */
.lp-chips {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.lp-chips li {
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #344054;
}

/* ---------- Prueba social ---------- */
.lp-proof {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

@media (min-width: 768px) {
    .lp-proof {
        grid-template-columns: auto 1fr;
        gap: 2.5rem;
    }
}

.lp-proof__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.lp-proof__title {
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    margin: 0 0 0.5rem;
}

.lp-proof__text {
    margin: 0;
    color: #475467;
    line-height: 1.65;
}

/* ---------- FAQ ---------- */
.lp-faq {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.lp-faq__item {
    border-bottom: 1px solid var(--line);
}

.lp-faq__item summary {
    position: relative;
    padding: 1.15rem 2.5rem 1.15rem 0;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.lp-faq__item summary::-webkit-details-marker {
    display: none;
}

.lp-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: #667085;
}

.lp-faq__item[open] summary::after {
    content: '–';
}

.lp-faq__item p {
    margin: 0;
    padding: 0 0 1.25rem;
    color: #475467;
    line-height: 1.65;
}

.lp-faq__item p a {
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Formulario de partners ---------- */
.lp-form-section .cta__title {
    margin-bottom: 2rem;
}

.lp-form__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: #667085;
    text-align: right;
}

.lp-form__status {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--error);
    text-align: right;
}

.lp-form__success {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    outline: none;
}

.lp-form__success p {
    margin: 0;
}

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

/* ---------- Comparativa ---------- */
.lp-table-wrap {
    max-width: 920px;
    margin: 0 auto;
    overflow-x: auto;
}

.lp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    font-size: 0.9375rem;
}

.lp-table th,
.lp-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.lp-table tr:last-child th,
.lp-table tr:last-child td {
    border-bottom: 0;
}

.lp-table thead th {
    background: var(--mist);
    font-weight: 700;
    color: var(--ink);
}

.lp-table tbody th {
    font-weight: 600;
    color: #344054;
    width: 30%;
}

.lp-table td {
    color: #475467;
}

.lp-table td:nth-child(2) {
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Avisos y enlaces destacados ---------- */
.lp-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--primary-100);
    color: var(--ink);
    font-size: 0.9375rem;
    text-align: center;
}

.lp-notice a {
    font-weight: 700;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-highlight-link {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: var(--primary-100);
    color: var(--ink);
    text-decoration: none;
}

.lp-highlight-link strong {
    color: var(--blue);
}

.platform-feature__link--secondary {
    margin-top: 0.35rem;
    font-weight: 500;
    opacity: 0.85;
}

/* ---------- Banda "Gana dinero" en la home ---------- */
.earn-band {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--paper);
}

.earn-band__card {
    display: grid;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eaecf0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

@media (min-width: 900px) {
    .earn-band__card {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }
}

.earn-band__body {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.earn-band__body .section-tag {
    align-self: flex-start;
    margin-bottom: 0;
}

.earn-band__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0.75rem 0;
}

.earn-band__text {
    margin: 0 0 0.75rem;
    color: #475467;
}

.earn-band__example {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--mist);
    color: #344054;
}

.earn-band__cta {
    align-self: flex-start;
}

.earn-band__media {
    margin: 0;
    min-height: 240px;
}

.earn-band__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 404 ---------- */
.error-page {
    position: relative;
    padding: calc(5rem + 72px) 0 6rem;
    background: var(--mist);
    overflow: hidden;
    isolation: isolate;
}

.error-page__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.error-page__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    margin: 0.75rem 0 1rem;
}

.error-page__text {
    font-size: 1.125rem;
    color: var(--dark-500);
    margin-bottom: 2rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
