*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--tv-font);
    line-height: 1.6;
    color: var(--tv-text-main);
    background: var(--tv-bg-page);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.tv-container {
    width: min(calc(100% - 2rem), var(--tv-container));
    margin-inline: auto;
}

.tv-skip {
    position: fixed;
    z-index: 9999;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: var(--tv-radius-sm);
    color: var(--tv-brand-navy-950);
    background: var(--tv-white);
    transform: translateY(-160%);
}

.tv-skip:focus {
    transform: translateY(0);
}

/* Header */

.tv-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: var(--tv-header-height);
    border-bottom: 1px solid rgba(228, 233, 239, .88);
    background: rgba(var(--tv-white-rgb), .95);
    backdrop-filter: blur(16px);
}

.tv-nav {
    min-height: var(--tv-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tv-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--tv-brand-navy-950);
    font-size: 1.2rem;
    font-weight: 800;
}

.tv-brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: .8rem;
}

.tv-menu {
    display: flex;
    align-items: center;
    gap: 1.7rem;
}

.tv-menu a {
    color: var(--tv-text-soft);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 650;
}

.tv-menu a:hover,
.tv-menu a:focus-visible {
    color: var(--tv-brand-navy-950);
}

.tv-nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Botones */

.tv-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--tv-radius-pill);
    text-decoration: none;
    font-weight: 760;
    transition:
        transform var(--tv-transition),
        background var(--tv-transition),
        border-color var(--tv-transition),
        box-shadow var(--tv-transition);
}

.tv-btn:hover {
    transform: translateY(-1px);
}

.tv-btn-primary {
    color: var(--tv-brand-navy-950);
    background: var(--tv-brand-cyan-500);
    box-shadow: 0 10px 28px rgba(var(--tv-brand-cyan-rgb), .22);
}

.tv-btn-primary:hover {
    background: var(--tv-brand-cyan-400);
    box-shadow: 0 14px 34px rgba(var(--tv-brand-cyan-rgb), .30);
}

.tv-btn-secondary {
    color: var(--tv-brand-navy-950);
    border-color: var(--tv-border-strong);
    background: var(--tv-white);
}

.tv-btn-secondary:hover {
    border-color: var(--tv-brand-cyan-500);
}

/* Hero */

.tv-hero {
    position: relative;
    overflow: hidden;
    color: var(--tv-text-on-dark);
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(var(--tv-brand-cyan-rgb), .20),
            transparent 31%
        ),
        radial-gradient(
            circle at 92% 82%,
            rgba(var(--tv-brand-cyan-rgb), .12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(--tv-brand-navy-950),
            var(--tv-brand-navy-900)
        );
}

.tv-hero-inner {
    min-height: 650px;
    padding: clamp(4rem, 8vw, 7rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
}

.tv-eyebrow {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.25rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(var(--tv-brand-cyan-rgb), .28);
    border-radius: var(--tv-radius-pill);
    color: var(--tv-brand-cyan-100);
    background: rgba(var(--tv-brand-cyan-rgb), .08);
    font-size: .88rem;
    font-weight: 720;
}

.tv-eyebrow-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--tv-brand-cyan-500);
    box-shadow: 0 0 0 5px rgba(var(--tv-brand-cyan-rgb), .11);
}

.tv-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.tv-hero h1 span {
    color: var(--tv-brand-cyan-400);
}

.tv-hero-copy {
    max-width: 660px;
    margin: 1.6rem 0 0;
    color: rgba(var(--tv-white-rgb), .78);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.tv-hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.tv-hero-actions--center {
    justify-content: center;
}

.tv-hero .tv-btn-secondary,
.tv-cta .tv-btn-secondary {
    color: var(--tv-white);
    border-color: rgba(var(--tv-white-rgb), .20);
    background: rgba(var(--tv-white-rgb), .07);
}

/* Mockup */

.tv-product-card {
    padding: 1rem;
    border: 1px solid rgba(var(--tv-white-rgb), .13);
    border-radius: var(--tv-radius-xl);
    background: rgba(var(--tv-white-rgb), .075);
    box-shadow: var(--tv-shadow-lg);
    backdrop-filter: blur(10px);
}

.tv-product-window {
    overflow: hidden;
    border-radius: calc(var(--tv-radius-xl) - .45rem);
    color: var(--tv-text-main);
    background: var(--tv-white);
}

.tv-window-top {
    height: 52px;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--tv-border);
    background: var(--tv-bg-soft);
}

.tv-window-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tv-border-strong);
}

.tv-dashboard-demo {
    padding: 1.2rem;
}

.tv-demo-title {
    width: 42%;
    height: 14px;
    margin-bottom: 1.1rem;
    border-radius: var(--tv-radius-pill);
    background: var(--tv-brand-navy-900);
}

.tv-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

.tv-demo-stat {
    min-height: 105px;
    padding: 1rem;
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-md);
    background: var(--tv-bg-soft);
}

.tv-demo-stat span {
    color: var(--tv-text-muted);
    font-size: .8rem;
}

.tv-demo-stat strong {
    display: block;
    margin-top: .35rem;
    color: var(--tv-brand-navy-950);
    font-size: 1.55rem;
}

.tv-demo-chart {
    position: relative;
    height: 150px;
    margin-top: .8rem;
    overflow: hidden;
    border-radius: var(--tv-radius-md);
    background:
        linear-gradient(
            180deg,
            rgba(var(--tv-brand-cyan-rgb), .18),
            rgba(var(--tv-brand-cyan-rgb), .015)
        );
}

.tv-demo-chart::before {
    content: "";
    position: absolute;
    inset: 32% 5% 20%;
    border-top: 4px solid var(--tv-brand-cyan-500);
    border-radius: 50%;
    transform: rotate(-7deg);
}

/* Secciones */

.tv-section {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.tv-section-soft {
    background: var(--tv-bg-soft);
}

.tv-section-dark {
    color: var(--tv-text-on-dark);
    background: var(--tv-brand-navy-950);
}

.tv-section-heading {
    max-width: 730px;
    margin-bottom: 2.8rem;
}

.tv-section-kicker {
    display: block;
    margin-bottom: .65rem;
    color: var(--tv-brand-teal-600);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.tv-section h2,
.tv-cta h2 {
    margin: 0;
    color: var(--tv-brand-navy-950);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.tv-section-dark h2,
.tv-cta h2 {
    color: var(--tv-white);
}

.tv-section-heading p {
    margin: 1rem 0 0;
    color: var(--tv-text-muted);
    font-size: 1.05rem;
}

.tv-section-dark .tv-section-heading p {
    color: rgba(var(--tv-white-rgb), .68);
}

/* Funciones */

.tv-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tv-feature {
    min-height: 210px;
    padding: 1.5rem;
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-lg);
    background: var(--tv-white);
    box-shadow: var(--tv-shadow-sm);
}

.tv-feature-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: .9rem;
    color: var(--tv-brand-navy-950);
    background: var(--tv-brand-cyan-100);
    font-weight: 900;
}

.tv-feature h3 {
    margin: 0 0 .5rem;
    color: var(--tv-brand-navy-950);
    font-size: 1.07rem;
}

.tv-feature p {
    margin: 0;
    color: var(--tv-text-muted);
    font-size: .94rem;
}

/* Control */

.tv-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
}

.tv-check-list {
    display: grid;
    gap: 1rem;
}

.tv-check {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: .9rem;
    align-items: start;
}

.tv-check-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--tv-brand-cyan-400);
    background: rgba(var(--tv-brand-cyan-rgb), .13);
    font-weight: 900;
}

.tv-check strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--tv-white);
}

.tv-check p {
    margin: 0;
    color: rgba(var(--tv-white-rgb), .64);
}

/* FAQ */

.tv-faq {
    max-width: 860px;
}

.tv-faq details {
    border-bottom: 1px solid var(--tv-border);
}

.tv-faq summary {
    padding: 1.25rem 0;
    cursor: pointer;
    color: var(--tv-brand-navy-950);
    font-weight: 760;
}

.tv-faq details p {
    margin: 0 0 1.3rem;
    color: var(--tv-text-muted);
}

/* CTA */

.tv-cta {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    text-align: center;
}

.tv-cta-box {
    padding: clamp(2.5rem, 7vw, 5rem);
    border-radius: var(--tv-radius-xl);
    color: var(--tv-white);
    background:
        radial-gradient(
            circle at top,
            rgba(var(--tv-brand-cyan-rgb), .18),
            transparent 45%
        ),
        var(--tv-brand-navy-950);
}

.tv-cta p {
    max-width: 620px;
    margin: 1rem auto 1.8rem;
    color: rgba(var(--tv-white-rgb), .70);
}

/* Footer */

.tv-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--tv-border);
    background: var(--tv-bg-soft);
}

.tv-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tv-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.tv-footer a {
    color: var(--tv-text-muted);
    text-decoration: none;
    font-size: .9rem;
}

.tv-footer a:hover {
    color: var(--tv-brand-navy-950);
}

/* Responsive */

@media (max-width: 980px) {
    .tv-menu {
        display: none;
    }

    .tv-hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .tv-product-card {
        max-width: 650px;
    }

    .tv-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --tv-header-height: 68px;
    }

    .tv-container {
        width: min(calc(100% - 1.25rem), var(--tv-container));
    }

    .tv-brand-text {
        display: none;
    }

    .tv-nav-actions .tv-btn-secondary {
        display: none;
    }

    .tv-hero-inner {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .tv-hero-actions {
        display: grid;
    }

    .tv-hero-actions .tv-btn {
        width: 100%;
    }

    .tv-feature-grid,
    .tv-two-column {
        grid-template-columns: 1fr;
    }

    .tv-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .tv-nav-actions .tv-btn-primary {
        font-size: .85rem;
    }

    .tv-demo-grid {
        grid-template-columns: 1fr;
    }

    .tv-product-card {
        padding: .55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
