/* =============================================================
   Traceab.ai — Landing moderna (estilo Overview)
   Hoja autónoma. No depende de Bootstrap.
   Paleta tomada del logo: lima #C7F915 + carbón #3B3B3B
   ============================================================= */

:root {
    --tl-lime:       #C7F915;
    --tl-lime-deep:  #A6D80C;
    --tl-ink:        #1b1f24;   /* títulos / botón oscuro */
    --tl-charcoal:   #3b3b3b;
    --tl-body:       #4a5560;   /* texto cuerpo */
    --tl-muted:      #8a94a0;
    --tl-line:       #e8ebee;
    --tl-bg:         #ffffff;
    --tl-bg-soft:    #f6f8f9;   /* secciones alternas */
    --tl-bg-dark:    #15181c;
    --tl-radius:     16px;
    --tl-radius-sm:  10px;
    --tl-shadow:     0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --tl-shadow-lg:  0 24px 48px -12px rgba(16,24,40,.18);
    --tl-ease:       cubic-bezier(.22,.61,.36,1);
    --tl-maxw:       1180px;
}

/* ---------- Reset suave dentro de la landing ---------- */
.tl * { box-sizing: border-box; }
.tl {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--tl-body);
    line-height: 1.6;
    background: var(--tl-bg);
    -webkit-font-smoothing: antialiased;
}
.tl img { max-width: 100%; display: block; }
.tl a { color: inherit; text-decoration: none; }
.tl h1, .tl h2, .tl h3, .tl h4 {
    color: var(--tl-ink);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .4em;
    font-weight: 800;
}
.tl p { margin: 0 0 1em; }

.tl-container { width: 100%; max-width: var(--tl-maxw); margin: 0 auto; padding: 0 24px; }
.tl-section { padding: 96px 0; }
.tl-section--soft { background: var(--tl-bg-soft); }
.tl-section--dark { background: var(--tl-bg-dark); color: #c3ccd6; }
.tl-section--dark h2, .tl-section--dark h3 { color: #fff; }

/* ---------- Tipografía de sección ---------- */
.tl-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--tl-charcoal); margin-bottom: 16px;
}
.tl-eyebrow::before {
    content: ""; width: 22px; height: 2px; background: var(--tl-lime-deep);
}
.tl-section--dark .tl-eyebrow { color: var(--tl-lime); }
.tl-h2 { font-size: clamp(28px, 4vw, 44px); }
.tl-lead { font-size: 19px; max-width: 640px; }
.tl-center { text-align: center; }
.tl-center .tl-lead { margin-left: auto; margin-right: auto; }
.tl-accent { color: var(--tl-lime-deep); }

/* ---------- Botones ---------- */
.tl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 15px; line-height: 1;
    padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .2s var(--tl-ease), box-shadow .2s var(--tl-ease),
                background-color .2s var(--tl-ease), color .2s var(--tl-ease);
    white-space: nowrap;
}
.tl-btn--primary { background: var(--tl-ink); color: #fff; }
.tl-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--tl-shadow-lg); }
.tl-btn--lime { background: var(--tl-lime); color: var(--tl-ink); }
.tl-btn--lime:hover { background: var(--tl-lime-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(166,216,12,.35); }
.tl-btn--ghost { background: transparent; color: var(--tl-ink); border-color: var(--tl-line); }
.tl-btn--ghost:hover { border-color: var(--tl-ink); transform: translateY(-2px); }
.tl-section--dark .tl-btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.tl-section--dark .tl-btn--ghost:hover { border-color: #fff; }

/* ---------- NAVBAR ---------- */
.tl-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--tl-line);
}
.tl-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.tl-nav__logo img { height: 50px; width: auto; }
.tl-nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.tl-nav__links a { font-size: 15px; font-weight: 600; color: var(--tl-charcoal); position: relative; }
.tl-nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--tl-lime-deep); transition: width .3s var(--tl-ease);
}
.tl-nav__links a:hover::after { width: 100%; }
.tl-nav__cta { display: flex; align-items: center; gap: 12px; }
.tl-nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.tl-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--tl-ink); margin: 4px 0; transition: .3s var(--tl-ease); }

/* ---------- HERO ---------- */
.tl-hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.tl-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.tl-hero h1 { font-size: clamp(36px, 5.4vw, 62px); }
.tl-hero__sub { font-size: 20px; max-width: 560px; margin-bottom: 28px; }
.tl-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.tl-hero__note { font-size: 14px; color: var(--tl-muted); }
.tl-hero__media {
    position: relative; border-radius: var(--tl-radius); overflow: hidden;
    box-shadow: var(--tl-shadow-lg); background: #000; aspect-ratio: 16/10;
}
.tl-hero__media video, .tl-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-hero__chip {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    background: rgba(21,24,28,.78); color: #fff; backdrop-filter: blur(6px);
    border: 1px solid rgba(199,249,21,.4);
    padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.tl-hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tl-lime); box-shadow: 0 0 0 0 rgba(199,249,21,.6); animation: tl-pulse 2s infinite; }
@keyframes tl-pulse { 0%{box-shadow:0 0 0 0 rgba(199,249,21,.55)} 70%{box-shadow:0 0 0 12px rgba(199,249,21,0)} 100%{box-shadow:0 0 0 0 rgba(199,249,21,0)} }

/* ---------- Tira de credibilidad ---------- */
.tl-trust { padding: 36px 0; border-top: 1px solid var(--tl-line); border-bottom: 1px solid var(--tl-line); }
.tl-trust__label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-muted); margin-bottom: 18px; }
.tl-trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.tl-trust__row span { font-size: 18px; font-weight: 800; color: #b6bdc6; letter-spacing: -.01em; }

/* ---------- Grid de tarjetas (pilares) ---------- */
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tl-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tl-card {
    background: var(--tl-bg); border: 1px solid var(--tl-line); border-radius: var(--tl-radius);
    padding: 30px; transition: transform .3s var(--tl-ease), box-shadow .3s var(--tl-ease), border-color .3s var(--tl-ease);
}
.tl-card:hover { transform: translateY(-6px); box-shadow: var(--tl-shadow-lg); border-color: transparent; }
.tl-card__icon {
    width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #f2fbcf, #e2f7a6); color: #5b6a08; margin-bottom: 18px;
}
.tl-card__icon svg { width: 26px; height: 26px; }
.tl-card h3 { font-size: 20px; }
.tl-card p { font-size: 15px; margin: 0; }

/* ---------- Cómo funciona (pasos) ---------- */
.tl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tl-step { position: relative; text-align: center; padding: 0 8px; }
.tl-step__num {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 18px;
    background: #fff; color: var(--tl-ink); border: 2px solid var(--tl-lime);
    box-shadow: 0 6px 18px rgba(166,216,12,.25);
}
.tl-step h4 { font-size: 17px; margin-bottom: 6px; }
.tl-step p { font-size: 14px; margin: 0; }
.tl-step:not(:last-child)::after {
    content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
    height: 2px; background: repeating-linear-gradient(90deg, var(--tl-line) 0 6px, transparent 6px 12px);
}

/* ---------- Banda de estadísticas (oscura) ---------- */
.tl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tl-stat { text-align: center; }
.tl-stat__num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--tl-lime); letter-spacing: -.02em; line-height: 1; }
.tl-stat__lbl { font-size: 14px; color: #aeb7c1; margin-top: 8px; }

/* ---------- Lista de features con check ---------- */
.tl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tl-checks li { position: relative; padding-left: 34px; font-size: 16px; color: var(--tl-body); }
.tl-checks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--tl-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f24' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.tl-section--dark .tl-checks li { color: #cdd5de; }

/* ---------- Split (texto + media) ---------- */
.tl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tl-split__media { border-radius: var(--tl-radius); overflow: hidden; box-shadow: var(--tl-shadow); border: 1px solid var(--tl-line); }
.tl-split__media img { width: 100%; }

/* ---------- Tarjetas de precio / planes ---------- */
.tl-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tl-plan {
    background: #fff; border: 1px solid var(--tl-line); border-radius: var(--tl-radius);
    padding: 32px; display: flex; flex-direction: column; transition: transform .3s var(--tl-ease), box-shadow .3s var(--tl-ease);
}
.tl-plan:hover { transform: translateY(-6px); box-shadow: var(--tl-shadow-lg); }
.tl-plan--featured { border-color: var(--tl-lime-deep); box-shadow: 0 0 0 3px rgba(199,249,21,.25), var(--tl-shadow); position: relative; }
.tl-plan__tag { position: absolute; top: -13px; left: 32px; background: var(--tl-lime); color: var(--tl-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tl-plan h3 { font-size: 21px; margin-bottom: 4px; }
.tl-plan__desc { font-size: 14px; color: var(--tl-muted); min-height: 40px; }
.tl-plan__price { font-size: 38px; font-weight: 800; color: var(--tl-ink); letter-spacing: -.02em; margin: 14px 0 2px; }
.tl-plan__price small { font-size: 15px; font-weight: 600; color: var(--tl-muted); }
.tl-plan__hr { height: 1px; background: var(--tl-line); margin: 22px 0; border: 0; }
.tl-plan .tl-checks li { font-size: 14.5px; }
.tl-plan .tl-btn { margin-top: auto; width: 100%; }

/* ---------- Sección de videos ---------- */
.tl-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tl-vid {
    position: relative; border-radius: var(--tl-radius); overflow: hidden;
    background: #000; box-shadow: var(--tl-shadow); aspect-ratio: 16/9; cursor: pointer;
}
.tl-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-vid__bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.tl-vid__title { font-size: 15px; font-weight: 700; }
.tl-vid__sound {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
    background: rgba(21,24,28,.7); border: 1px solid rgba(199,249,21,.4); color: #fff;
    padding: 7px 12px; border-radius: 999px; transition: background .2s var(--tl-ease);
}
.tl-vid__sound:hover { background: rgba(166,216,12,.85); color: var(--tl-ink); }
.tl-vid__hint {
    position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
    pointer-events: none; transition: opacity .4s var(--tl-ease);
}
.tl-vid__hint span {
    background: rgba(21,24,28,.6); color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
}
.tl-vid.is-on .tl-vid__hint { opacity: 0; }

/* ---------- Banda CTA final ---------- */
.tl-cta {
    background: linear-gradient(135deg, #1b1f24, #2b3037);
    border-radius: 24px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.tl-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(199,249,21,.25), transparent 70%); }
.tl-cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); }
.tl-cta p { color: #b8c0c9; max-width: 560px; margin: 0 auto 28px; }
.tl-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.tl-footer { background: var(--tl-bg-dark); color: #9aa3ad; padding: 64px 0 32px; }
.tl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tl-footer img { height: 46px; margin-bottom: 16px; }
.tl-footer h5 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.tl-footer a { display: block; color: #9aa3ad; font-size: 15px; padding: 5px 0; transition: color .2s var(--tl-ease); }
.tl-footer a:hover { color: var(--tl-lime); }
.tl-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 14px; }

/* ---------- Animación reveal on scroll ---------- */
.tl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--tl-ease), transform .7s var(--tl-ease); }
.tl-reveal.is-visible { opacity: 1; transform: none; }
.tl-reveal[data-delay="1"] { transition-delay: .08s; }
.tl-reveal[data-delay="2"] { transition-delay: .16s; }
.tl-reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .tl-hero__grid, .tl-split, .tl-videos { grid-template-columns: 1fr; }
    .tl-grid, .tl-grid--4, .tl-steps, .tl-stats, .tl-plans { grid-template-columns: 1fr 1fr; }
    .tl-step:not(:last-child)::after { display: none; }
    .tl-footer__grid { grid-template-columns: 1fr 1fr; }
    .tl-nav__links, .tl-nav__cta .tl-btn--ghost { display: none; }
    .tl-nav__toggle { display: block; }
    .tl-nav__links.is-open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
        gap: 0; background: #fff; border-bottom: 1px solid var(--tl-line); padding: 8px 24px 20px;
    }
    .tl-nav__links.is-open li { padding: 10px 0; border-bottom: 1px solid var(--tl-line); }
    .tl-section { padding: 64px 0; }
}
@media (max-width: 560px) {
    .tl-grid, .tl-grid--4, .tl-steps, .tl-stats, .tl-plans, .tl-footer__grid { grid-template-columns: 1fr; }
    .tl-cta { padding: 44px 24px; }
}

/* ---------- Respetar reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .tl-reveal { opacity: 1 !important; transform: none !important; }
    .tl *, .tl *::before, .tl *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
