/* =========================================================
   METRIK — POLISH V3
   Cargar DESPUÉS de style.css
   Ajustes de proporción, legibilidad, transiciones y responsive.
========================================================= */

:root {
    --section-space: 96px;
    --section-space-mobile: 68px;

    --text: #1d2433;
    --text-secondary: #626d80;
    --text-muted: #8a94a6;

    --dark-copy: #b4bccb;
    --dark-muted: #98a2b3;

    --fs-xs: 11px;
    --fs-sm: 12px;
    --fs-ui: 13px;
    --fs-body: 15px;
}

html {
    scroll-padding-top: 88px;
}

body {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

section[id] {
    scroll-margin-top: 88px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(247, 248, 252, .78);
    border-bottom: 1px solid rgba(228, 231, 236, .76);
    backdrop-filter: blur(20px) saturate(140%);
}

.hero,
.problems-section,
.platforms-section,
.audit-section,
.compare-section,
.activation-section,
.audience-section,
.final-section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

/* =========================================================
   ESCALA TIPOGRÁFICA GENERAL
========================================================= */

.main-nav a {
    font-size: 14px;
}

.eyebrow {
    margin-bottom: 22px;
    font-size: 11px;
    line-height: 1;
}

.section-heading h2 {
    font-size: clamp(35px, 3.75vw, 50px);
    line-height: 1.1;
}

.section-heading > p,
.audit-description,
.platform-description,
.activation-card-description,
.audience-heading > p,
.faq-heading > p {
    font-size: var(--fs-body);
    line-height: 1.7;
}

/* =========================================================
   HERO — CONSERVAR DISEÑO, ALTURA CONTROLADA
========================================================= */

.hero {
    min-height: calc(88svh - 76px);
    padding-top: 64px;
    padding-bottom: 72px;
    background:
        radial-gradient(circle at 84% 20%, rgba(146, 56, 245, .09), transparent 31%),
        radial-gradient(circle at 18% 82%, rgba(244, 63, 122, .045), transparent 30%),
        linear-gradient(180deg, #f8f9fd 0%, #f4f6fb 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    background-image:
        linear-gradient(rgba(101, 84, 232, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 84, 232, .10) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 45%, #000 76%, transparent 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(46px, 5vw, 68px);
}

.hero-description {
    max-width: 540px;
    font-size: 16px;
}

.dashboard-window {
    box-shadow: 0 32px 72px rgba(36, 42, 66, .12);
    animation-duration: 10s;
}

.floating-card-engagement {
    animation-duration: 8s;
}

.floating-card-growth {
    animation-duration: 9s;
}

/* =========================================================
   PROBLEMA
========================================================= */

.problems-section {
    background: #fff;
}

.problems-section .section-heading {
    max-width: 1050px;
}

.problems-title-main,
.problems-title-secondary {
    display: block;
    font-weight: 700;
}

.problems-title-main {
    color: var(--text) !important;
    white-space: nowrap;
}

.problems-title-secondary {
    margin-top: 5px;
    color: var(--text-secondary) !important;
}

.problems-grid {
    gap: 12px;
    margin-top: 46px;
}

.problem-card {
    min-height: 280px;
    padding: 22px;
    border-radius: 16px;
    box-shadow: none;
}

.problem-icon {
    margin-top: 32px;
}

.problem-card h3 {
    font-size: 17px;
}

.problem-card p {
    font-size: 13px;
    line-height: 1.65;
}

.problem-number {
    font-size: 11px;
}

.problem-status {
    font-size: 9px;
}

.problems-footer {
    margin-top: 38px;
}

.problems-footer p {
    font-size: 13px;
}

/* =========================================================
   PLATAFORMAS
========================================================= */

.platforms-section {
    background:
        radial-gradient(circle at 80% 15%, rgba(146, 56, 245, .11), transparent 28%),
        linear-gradient(180deg, #141827 0%, #10131f 100%);
}

.platforms-glow-one,
.platforms-glow-two {
    opacity: .38;
}

.platforms-heading > p,
.platform-description {
    color: var(--dark-copy);
}

.platform-experience {
    margin-top: 52px;
}

.platform-current-label {
    font-size: 12px;
}

.platform-available {
    color: #abb3c1;
    font-size: 10px;
}

.platform-copy h3 {
    font-size: clamp(31px, 3vw, 43px);
}

.platform-feature {
    background: rgba(255, 255, 255, .025);
}

.platform-feature strong {
    font-size: 14px;
}

.platform-feature p {
    color: #abb3c2;
    font-size: 12px;
    line-height: 1.55;
}

.feature-check {
    font-size: 12px;
}

.platform-app-window {
    box-shadow: 0 34px 76px rgba(0, 0, 0, .28);
}

.platform-app-badge,
.app-sidebar-item,
.app-content-header span,
.app-stat-card > span,
.app-stat-card small,
.app-analysis-header span,
.performance-pill,
.app-live-status {
    font-size: 9px;
}

.platform-app-name,
.app-content-header strong {
    font-size: 12px;
}

.app-stat-card strong {
    font-size: 16px;
}

/* =========================================================
   AUDITORÍA → COMPARADOR
   El color inferior de Auditoría y el superior de Comparador
   es exactamente el mismo para evitar el corte visual.
========================================================= */

.audit-section {
    padding-bottom: 92px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8f9fd 66%,
            #f1f3f8 100%
        );
}

.audit-background-shape,
.audit-orbit-one {
    opacity: .42;
}

.audit-orbit-two {
    display: none;
}

.audit-window {
    box-shadow: 0 30px 68px rgba(31, 38, 60, .11);
}

.audit-description {
    font-size: 15px;
}

.audit-platforms > span {
    font-size: 10px;
}

.audit-platform-pill {
    font-size: 11px;
}

.audit-profile-type,
.audit-window-platform,
.audit-profile-status,
.audit-main-stat span,
.audit-main-stat small,
.audit-card-heading span,
.audit-secondary-stats span,
.audit-performance-badge {
    font-size: 9px;
}

.audit-profile-info strong {
    font-size: 12px;
}

.audit-main-stat strong {
    font-size: 17px;
}

.audit-secondary-stats strong {
    font-size: 13px;
}

.audit-benefit-number {
    font-size: 10px;
}

.audit-benefit strong {
    font-size: 14px;
}

.audit-benefit p {
    font-size: 12px;
    line-height: 1.62;
}

.audit-benefit:hover {
    padding-left: 4px;
}

.audit-next-link {
    font-size: 13px;
}

.audit-floating-card div > span {
    font-size: 9px;
}

.audit-floating-card strong {
    font-size: 11px;
}

.compare-section {
    padding-top: 92px;
    background:
        linear-gradient(
            180deg,
            #f1f3f8 0%,
            #eef1f8 20%,
            #f6f7fb 58%,
            #ffffff 100%
        );
}

.compare-section::before {
    display: none !important;
}

.compare-glow-left,
.compare-glow-right {
    opacity: .48;
}

/* Siempre mostrar la etiqueta circular del Comparador */
.compare-heading .eyebrow {
    display: inline-flex !important;
    margin-inline: auto;
}

.compare-board {
    margin-top: 50px;
    box-shadow: 0 30px 70px rgba(31, 38, 60, .09);
}

.compare-profile-text > span {
    font-size: 9px;
}

.compare-profile-text strong {
    font-size: 14px;
}

.compare-profile-text small {
    font-size: 9px;
}

.compare-profile-growth {
    font-size: 10px;
}

.compare-label {
    color: #5f6a7d;
    font-size: 11px;
}

.compare-value strong {
    font-size: 17px;
}

.compare-value-heading span {
    font-size: 8px;
}

.compare-insight span {
    font-size: 9px;
}

.compare-insight strong {
    font-size: 12px;
}

.compare-bottom {
    margin-top: 48px;
}

.compare-small-label {
    font-size: 10px;
}

.compare-benefits article > span {
    font-size: 9px;
}

.compare-benefits strong {
    font-size: 13px;
}

.compare-benefits p {
    font-size: 11px;
    line-height: 1.6;
}

/* =========================================================
   ENGAGEMENT + SORTEOS
========================================================= */

.activation-section {
    background:
        radial-gradient(circle at 18% 14%, rgba(101, 84, 232, .12), transparent 25%),
        linear-gradient(180deg, #131725 0%, #0f121d 100%);
}

.activation-glow-one,
.activation-glow-two {
    display: none;
}

.activation-heading > p {
    color: var(--dark-copy);
}

.activation-grid {
    margin-top: 50px;
}

.activation-card {
    padding: 27px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, .16);
}

.activation-card-label {
    color: #a6afbf;
    font-size: 11px;
}

.activation-card-description {
    color: #b7bfce;
    font-size: 13px;
}

.engagement-main > div:first-child > span,
.giveaway-input-block > span,
.giveaway-progress-heading span {
    font-size: 10px;
}

.engagement-main small,
.engagement-posts span,
.engagement-posts small,
.giveaway-url > span,
.giveaway-checks div {
    font-size: 10px;
}

.engagement-posts strong {
    font-size: 12px;
}

.giveaway-url button,
.giveaway-winner-button {
    font-size: 11px;
}

.activation-card-footer > span {
    color: #a7afbe;
    font-size: 11px;
}

.activation-card-footer a {
    color: #cbc4ff;
    font-size: 12px;
    line-height: 1.4;
}

.activation-card-footer a:hover {
    color: #ffffff;
}

/* =========================================================
   PARA QUIÉN
========================================================= */

.audience-section {
    background: #fff;
}

.audience-layout {
    align-items: start;
}

.audience-grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e7e9ef;
    border-radius: 18px;
    background: #e7e9ef;
}

.audience-card {
    min-height: 220px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.audience-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
    background: #fbfbfe;
}

.audience-card::before {
    width: 180px;
    height: 180px;
    top: -120px;
    right: -110px;
    opacity: .35;
}

.audience-card:hover::before {
    opacity: .8;
}

.audience-card h3 {
    font-size: 17px;
}

.audience-card p {
    font-size: 13px;
    line-height: 1.65;
}

.audience-number {
    font-size: 10px;
}

.audience-tags span {
    font-size: 10px;
}

/* =========================================================
   FAQ + CTA
========================================================= */

.final-section {
    background: linear-gradient(180deg, #f7f8fb 0%, #fff 100%);
}

.faq-layout {
    gap: 8%;
}

.faq-question {
    padding: 19px 0;
}

.faq-question > span:first-child {
    font-size: 15px;
}

.faq-answer p {
    padding-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
}

.final-cta {
    min-height: 405px;
    margin-top: 76px;
    padding: 62px 68px;
}

.final-cta-label {
    font-size: 11px;
}

.final-cta-content > p {
    color: #aeb6c5;
    font-size: 14px;
}

.final-secondary-link {
    color: #b9c0cd;
    font-size: 13px;
}

.final-metric > span,
.final-metric small {
    font-size: 10px;
}

/* =========================================================
   FOOTER — prioridad alta de legibilidad
========================================================= */

.site-footer {
    padding-top: 64px;
    padding-bottom: 30px;
}

.footer-main {
    gap: 8%;
    padding-bottom: 50px;
}

.footer-brand > p {
    max-width: 370px;
    margin-top: 18px;
    color: #b0b8c7;
    font-size: 14px;
    line-height: 1.7;
}

.footer-platforms {
    gap: 8px;
}

.footer-platforms span {
    padding: 7px 11px;
    border-color: rgba(255, 255, 255, .11);
    color: #b2bac8;
    font-size: 11px;
}

.footer-links {
    gap: 44px;
}

.footer-links > div {
    gap: 12px;
}

.footer-column-title {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: .075em;
}

.footer-links a {
    color: #b0b8c7;
    font-size: 13px;
    line-height: 1.5;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    color: #8e98aa;
    font-size: 11px;
}

/* =========================================================
   POPUP
========================================================= */

.nl-popup-consent,
.nl-popup-error {
    font-size: 12px;
}

/* =========================================================
   MOVIMIENTO Y TOUCH
========================================================= */

.problem-card,
.platform-feature,
.activation-card,
.audience-card,
.compare-benefits article,
.btn,
.audit-window,
.platform-app-window,
.compare-board {
    transition-timing-function: var(--ease-smooth);
}

.audit-floating-card,
.final-metric-one,
.final-metric-two,
.final-metric-three {
    animation-duration: 10s;
}

/* Hover solo para dispositivos que realmente tienen hover */
@media (hover: hover) and (pointer: fine) {
    .problem-card:hover,
    .reveal-card.is-visible:hover {
        transform: translateY(-5px) scale(1.006);
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    :root {
        --section-space: 82px;
    }

    .hero {
        min-height: auto;
        padding-top: 62px;
        padding-bottom: 76px;
    }

    .audit-section {
        padding-bottom: 80px;
    }

    .compare-section {
        padding-top: 80px;
    }

    .footer-brand > p {
        max-width: 430px;
    }

    .final-cta {
        padding: 52px;
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 640px) {

    :root {
        --section-space: var(--section-space-mobile);
    }

    body {
        font-size: 15px;
    }

    .hero {
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .section-heading h2 {
        font-size: clamp(31px, 9vw, 40px);
    }

    .section-heading > p,
    .audit-description,
    .platform-description,
    .activation-card-description,
    .audience-heading > p,
    .faq-heading > p {
        font-size: 14px;
    }

    /* El primer renglón debe seguir siendo el titular oscuro */
    .problems-title-main {
        color: var(--text) !important;
        font-weight: 700 !important;
        white-space: normal;
    }

    .problems-title-secondary {
        color: var(--text-secondary) !important;
        font-weight: 700;
    }

    .problems-grid,
    .platform-experience,
    .activation-grid,
    .compare-board {
        margin-top: 42px;
    }

    /* Reveal más visible en móvil */
    .reveal-card {
        opacity: 0;
        transform: translateY(24px) scale(.985);
        transition:
            opacity .72s var(--ease-soft),
            transform .72s var(--ease-soft),
            box-shadow .5s var(--ease-smooth),
            background .5s var(--ease-smooth);
    }

    .reveal-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Evita hover pegado en pantallas táctiles */
    .reveal-card.is-visible:hover,
    .problem-card:hover {
        transform: translateY(0) scale(1);
    }

    .problem-card {
        transition:
            transform .3s var(--ease-smooth),
            box-shadow .3s var(--ease-smooth),
            background .3s ease;
    }

    .problem-card:active {
        transform: translateY(-2px) scale(.992);
        box-shadow: 0 15px 34px rgba(35, 42, 68, .08);
    }

    .problem-card:active .problem-icon {
        transform: translateY(-1px) scale(1.03);
        color: #fff;
        background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    }

    .compare-heading .eyebrow {
        display: inline-flex !important;
    }

    .compare-label {
        font-size: 9px;
    }

    .compare-value strong {
        font-size: 13px;
    }

    .activation-card-footer {
        gap: 10px;
    }

    .activation-card-footer > span {
        font-size: 11px;
    }

    .activation-card-footer a {
        font-size: 12px;
    }

    .audience-grid {
        border-radius: 15px;
    }

    .footer-main {
        gap: 40px;
    }

    .footer-links {
        gap: 32px 22px;
    }

    .footer-brand > p {
        font-size: 14px;
    }

    .footer-column-title {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-platforms span {
        font-size: 11px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    .final-cta {
        margin-top: 58px;
        padding: 38px 24px;
    }
}

/* =========================================================
   LOGO REAL METRIK
========================================================= */

.logo-image-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    line-height: 0;
}

.metrik-logo-image {
    width: 138px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.site-header .metrik-logo-image {
    mix-blend-mode: multiply;
}

.footer-logo-surface {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 11px;
    background: #fff;
}

.metrik-logo-image-footer {
    width: 144px;
    border-radius: 7px;
}

.footer-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #b0b8c7;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: color .35s ease, transform .4s var(--ease-smooth);
}

.footer-link-button:hover {
    color: #fff;
    transform: translateX(3px);
}

/* =========================================================
   COOKIE CONSENT
========================================================= */

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 1200;
    padding: 18px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition:
        opacity .38s ease,
        transform .52s var(--ease-smooth);
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent-card {
    width: min(1180px, 100%);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(101, 84, 232, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(21, 27, 43, .18);
    backdrop-filter: blur(18px) saturate(135%);
}

.cookie-consent-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 22px 24px;
}

.cookie-consent-copy {
    max-width: 720px;
}

.cookie-consent-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cookie-consent h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.cookie-consent p {
    margin-top: 6px;
    color: #647084;
    font-size: 12.5px;
    line-height: 1.65;
}

.cookie-consent p a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions,
.cookie-preferences-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .35s var(--ease-smooth),
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

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

/* Aceptar y rechazar tienen el mismo peso visual */
.cookie-btn-equal {
    border: 1px solid rgba(101, 84, 232, .34);
    background: rgba(101, 84, 232, .095);
    color: #5143c7;
}

.cookie-btn-equal:hover {
    background: rgba(101, 84, 232, .15);
    border-color: rgba(101, 84, 232, .48);
}

.cookie-btn-settings {
    border: 1px solid #e0e4eb;
    background: #fff;
    color: #596579;
}

.cookie-btn-settings:hover {
    border-color: #ccd2dc;
    background: #f8f9fc;
}

.cookie-preferences[hidden] {
    display: none !important;
}

.cookie-preferences {
    padding: 23px 24px 24px;
}

.cookie-preferences-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8ebf1;
}

.cookie-preferences-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e3e6ec;
    border-radius: 50%;
    background: #f8f9fc;
    color: #667185;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.cookie-category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.cookie-category {
    min-height: 108px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px;
    border: 1px solid #e5e8ee;
    border-radius: 13px;
    background: #fbfcfe;
}

.cookie-category strong,
.cookie-category small {
    display: block;
}

.cookie-category strong {
    color: #303a4c;
    font-family: var(--font-heading);
    font-size: 12px;
}

.cookie-category small {
    margin-top: 5px;
    color: #7b8698;
    font-size: 10.5px;
    line-height: 1.5;
}

.cookie-category input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.cookie-preferences-actions {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .cookie-consent-main {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .cookie-consent-actions {
        justify-content: flex-start;
    }

    .cookie-category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .metrik-logo-image {
        width: 122px;
    }

    .metrik-logo-image-footer {
        width: 132px;
    }

    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent-card {
        border-radius: 16px;
    }

    .cookie-consent-main,
    .cookie-preferences {
        padding: 18px;
    }

    .cookie-consent-actions,
    .cookie-preferences-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        min-height: 44px;
    }

    .cookie-consent p {
        font-size: 12px;
    }
}