/* ============================================
   Tracker de Hábitos — Landing Page
   Paleta: #f9f5f4 · #ffffff · #0d0200 · #fe3100 · #b21900
   ============================================ */

/* ── Reset & base ── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

.th-page {
    background-color: #f9f5f4;
    color: #0d0200;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.th-page img { max-width: 100%; height: auto; display: block; }
.th-page a { text-decoration: none; color: inherit; }

/* ── Container ── */
.th-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Primary CTA button ── */
.th-btn {
    display: inline-block;
    background-color: #fe3100;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 44px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.th-btn:hover {
    background-color: #0d0200;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13, 2, 0, 0.25);
}

/* ── Big CTA variant ── */
.th-btn--big {
    font-size: 18px;
    padding: 22px 64px;
    letter-spacing: 0.14em;
    box-shadow: 0 6px 20px rgba(254, 49, 0, 0.2);
}

.th-btn--big:hover {
    box-shadow: 0 12px 36px rgba(13, 2, 0, 0.3);
}

/* ── Ghost button ── */
.th-btn--ghost {
    background-color: transparent;
    color: #0d0200;
    border: 2px solid #0d020040;
}

.th-btn--ghost:hover {
    background-color: #0d020008;
    border-color: #0d0200;
    color: #0d0200;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 2, 0, 0.08);
}

/* ── Ghost button for dark sections ── */
.th-btn--dark-ghost {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    margin-top: 28px;
}

.th-btn--dark-ghost:hover {
    background-color: #fe3100;
    border-color: #fe3100;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(254, 49, 0, 0.3);
}

/* ── Hero actions (2 CTAs) ── */
.th-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Pill tag ── */
.th-tag {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fe3100;
    border: 1px solid #fe3100;
    border-radius: 100px;
    padding: 6px 18px;
    margin-bottom: 18px;
}

/* Tag light variant (for dark backgrounds) */
.th-tag--light {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════
   1. HERO — 2 columnas editorial premium
   ══════════════════════════════════════════════ */
.th-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Gradiente sutil en el fondo del hero */
.th-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(254, 49, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Símbolo decorativo hero — rombo inferior izquierdo */
.th-hero::after {
    content: '◆';
    position: absolute;
    bottom: 24px;
    left: 48px;
    font-size: 14px;
    color: rgba(254, 49, 0, 0.18);
    pointer-events: none;
    z-index: 0;
}

.th-hero .th-container {
    position: relative;
    z-index: 1;
}

.th-hero__layout {
    display: flex;
    align-items: center;
    gap: 64px;
}

.th-hero__content {
    flex: 1 1 50%;
    min-width: 0;
}

.th-hero__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}

.th-hero__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #0d0200b8;
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Trust micro-row with separators */
.th-hero__trust {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #0d020012;
}

.th-hero__trust-item {
    font-size: 14px;
    font-weight: 500;
    color: #0d020088;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.th-hero__trust-sep {
    color: #0d020030;
    font-size: 18px;
    line-height: 1;
}

/* Hero image column */
.th-hero__image {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-hero__mockup-link {
    display: block;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.th-hero__mockup-link:hover {
    transform: scale(1.06);
}

.th-hero__mockup {
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    object-fit: contain;
}

/* ══════════════════════════════════════════════
   2. SECCIÓN OSCURA UNIFICADA (Qué incluye + Preview)
   ══════════════════════════════════════════════ */
.th-dark-section {
    background: linear-gradient(180deg, #0d0200 0%, #150805 50%, #0d0200 100%);
    color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

/* Símbolos decorativos sección oscura */
.th-dark-section::before {
    content: '✦';
    position: absolute;
    top: 48px;
    right: 64px;
    font-size: 18px;
    color: rgba(254, 49, 0, 0.15);
    pointer-events: none;
}

.th-dark-section::after {
    content: '◇';
    position: absolute;
    bottom: 48px;
    left: 64px;
    font-size: 20px;
    color: rgba(254, 49, 0, 0.12);
    pointer-events: none;
}

/* Heading "Qué incluye" dentro de dark */
.th-dark-section .th-includes__heading {
    text-align: center;
    margin-bottom: 52px;
}

.th-dark-section .th-includes__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.15;
    color: #ffffff;
}

/* Cards grid */
.th-dark-section .th-includes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 0;
}

/* Dark card variant — fondo claro para contraste */
.th-card--dark {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.th-card--dark:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(254, 49, 0, 0.30),
        0 0 24px rgba(254, 49, 0, 0.12),
        0 0 0 1px rgba(254, 49, 0, 0.10);
}

/* Icon circle background */
.th-card--dark .th-card__icon {
    font-size: 28px;
    margin-bottom: 18px;
}

.th-card__icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(254, 49, 0, 0.10);
    border-radius: 14px;
    font-size: 26px;
}

.th-card--dark .th-card__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 10px;
    color: #0d0200;
}

.th-card--dark .th-card__text {
    font-size: 14.5px;
    color: #0d0200b3;
    line-height: 1.6;
}

/* Divider between cards and preview */
.th-dark-section__divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 80px auto;
    position: relative;
}

.th-dark-section__divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: rgba(254, 49, 0, 0.25);
    background: #0d0200;
    padding: 0 12px;
}

/* Preview layout inside dark section */
.th-dark-section .th-preview__layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.th-dark-section .th-preview__text {
    flex: 0 0 400px;
}

.th-preview__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.th-preview__desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.58);
}

/* Slider continuo CSS-only */
.th-slider {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    position: relative;
}

.th-slider__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: th-slide 45s linear infinite;
    transition: transform 0.4s ease;
}

.th-slider__track:hover {
    animation-play-state: paused;
}

/* Slider navigation arrows */
.th-slider__nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.th-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.th-slider__arrow:hover {
    background: #fe3100;
    border-color: #fe3100;
    color: #ffffff;
    transform: scale(1.08);
}

.th-slider__img {
    flex-shrink: 0;
    width: 480px;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.th-slider__img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.65);
}

@keyframes th-slide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   MARQUEE / DIVISOR CON FRASE MOTIVACIONAL
   ══════════════════════════════════════════════ */
.th-marquee {
    background-color: #0d0200;
    padding: 28px 0;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-top: 1px solid rgba(254, 49, 0, 0.15);
    border-bottom: 1px solid rgba(254, 49, 0, 0.15);
}

.th-marquee__track {
    display: flex;
    width: max-content;
    animation: th-marquee-scroll 20s linear infinite;
}

.th-marquee__text {
    flex-shrink: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f9f5f4;
    padding: 0 60px;
    white-space: nowrap;
}

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

/* ══════════════════════════════════════════════
   3. PRECIO Y COMPRA — protagonista y conversión
   ══════════════════════════════════════════════ */
.th-pricing {
    padding: 110px 0 130px;
    text-align: center;
    position: relative;
}

/* Decorative top border */
.th-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #fe3100;
    border-radius: 2px;
}

/* Símbolo decorativo pricing — estrella inferior derecha */
.th-pricing::after {
    content: '✦';
    position: absolute;
    bottom: 40px;
    right: 64px;
    font-size: 16px;
    color: rgba(254, 49, 0, 0.14);
    pointer-events: none;
}

/* 2-column layout for pricing */
.th-pricing__layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 56px;
    text-align: left;
}

.th-pricing__visual {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.th-pricing__mockup {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    filter: drop-shadow(0 24px 48px rgba(13, 2, 0, 0.10));
}

.th-pricing__card-wrap {
    flex: 1;
    text-align: center;
}

.th-pricing__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.08;
    margin-bottom: 52px;
}

.th-pricing__box {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 72px 56px;
    max-width: 540px;
    margin: 0 auto;
    box-shadow:
        0 20px 64px rgba(13, 2, 0, 0.10),
        0 4px 12px rgba(13, 2, 0, 0.04);
    border-top: 3px solid #fe3100;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.th-pricing__box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 24px 72px rgba(254, 49, 0, 0.15),
        0 8px 24px rgba(254, 49, 0, 0.08);
}

/* Badge solid variant */
.th-pricing__badge--solid {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #fe3100;
    border: none;
    border-radius: 100px;
    padding: 8px 22px;
    margin-bottom: 24px;
}

.th-pricing__old-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #0d020045;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.th-pricing__price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    margin-bottom: 14px;
    color: #0d0200;
}

.th-pricing__currency {
    font-size: 34px;
    vertical-align: super;
}

.th-pricing__note {
    font-size: 14px;
    color: #0d0200a0;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════ */
.th-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.th-lightbox--open {
    display: flex;
}

.th-lightbox__close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.th-lightbox__close:hover { opacity: 1; }

.th-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    cursor: default;
}

/* ── Back link ── */
.th-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d020099;
    transition: color 0.2s ease;
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 8px 16px;
    border-radius: 100px;
}

.th-back:hover { color: #fe3100; }

/* ── Side navigation menu ── */
.th-sidenav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.th-sidenav__link {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(13, 2, 0, 0.35);
    text-decoration: none;
    padding: 4px 10px;
    border-right: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-align: right;
}

.th-sidenav__link:hover {
    color: #fe3100;
    transform: translateX(-4px);
}

.th-sidenav__link.active {
    color: #fe3100;
    border-right-color: #fe3100;
}

/* Dark section override for sidenav */
.th-sidenav--dark .th-sidenav__link {
    color: rgba(255, 255, 255, 0.4);
}
.th-sidenav--dark .th-sidenav__link:hover,
.th-sidenav--dark .th-sidenav__link.active {
    color: #fe3100;
}

@media (max-width: 1024px) {
    .th-sidenav { display: none; }
}

/* ── Footer mínimo ── */
.th-footer {
    text-align: center;
    padding: 32px 0;
    font-size: 13px;
    color: #0d020066;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Mobile ── */
@media (max-width: 768px) {
    .th-hero {
        min-height: auto;
        padding: 80px 0 48px;
    }
    .th-hero::before { display: none; }

    .th-hero__layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .th-hero__actions { justify-content: center; }
    .th-hero__trust { justify-content: center; }
    .th-hero__title { font-size: 48px; }
    .th-hero__subtitle {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    .th-hero__mockup { max-width: 100%; }

    .th-dark-section { padding: 72px 0 80px; }
    .th-dark-section .th-includes__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .th-dark-section__divider { margin: 56px auto; }

    .th-dark-section .th-preview__layout {
        flex-direction: column;
        gap: 36px;
        padding: 0 24px;
    }

    .th-dark-section .th-preview__text {
        flex: none;
        text-align: center;
    }

    .th-preview__title { font-size: 34px; }

    .th-slider__img {
        width: 300px;
        height: 200px;
    }

    .th-marquee__text {
        font-size: 20px;
        letter-spacing: 0.15em;
        padding: 0 36px;
    }

    .th-pricing { padding: 72px 0 80px; }
    .th-pricing__layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .th-pricing__visual { flex: none; }
    .th-pricing__mockup { max-width: 260px; }
    .th-pricing__title { font-size: 36px; }
    .th-pricing__box { padding: 48px 24px; }
    .th-pricing__price { font-size: 56px; }

    .th-back { top: 16px; left: 16px; }

    .th-lightbox { padding: 20px; }
}

/* ── Tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .th-hero__layout { gap: 40px; }
    .th-hero__title { font-size: 60px; }
    .th-hero__mockup { max-width: 420px; }

    .th-dark-section .th-includes__grid { grid-template-columns: repeat(2, 1fr); }
    .th-dark-section .th-preview__text { flex: 0 0 280px; }
    .th-preview__title { font-size: 38px; }
    .th-slider__img {
        width: 380px;
        height: 250px;
    }

    .th-pricing__layout { gap: 40px; }
    .th-pricing__mockup { max-width: 280px; }
}
