/* ==========================================================================
   Landing page — tema "Deportivo Oscuro"
   Sistema de apartado de canchas sintéticas
   ========================================================================== */

:root {
    --lp-bg: #0F172A;
    --lp-bg-alt: #111C33;
    --lp-surface: #1E293B;
    --lp-surface-border: #2E3D52;
    --lp-primary: #22C55E;
    --lp-primary-hover: #16A34A;
    --lp-primary-soft: rgba(34, 197, 94, 0.12);
    --lp-text: #F1F5F9;
    --lp-text-muted: #94A3B8;
    --lp-container: 1160px;
    --lp-nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--lp-surface-border) var(--lp-bg-alt);
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--lp-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--lp-surface-border);
    border-radius: 999px;
    border: 2px solid var(--lp-bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lp-primary);
}

#inicio,
#como-funciona,
#beneficios,
#contacto {
    scroll-margin-top: var(--lp-nav-height);
}

* {
    box-sizing: border-box;
}

body.landing-page {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.landing-page a {
    color: inherit;
    text-decoration: none;
}

.landing-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-page img {
    max-width: 100%;
}

.landing-container {
    width: 100%;
    max-width: var(--lp-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-primary);
    background: var(--lp-primary-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.landing-section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.landing-section-subtitle {
    font-size: 1rem;
    color: var(--lp-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: filter .15s ease, transform .1s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(180deg, var(--lp-primary) 0%, var(--lp-primary-hover) 100%);
    color: #06210F;
    box-shadow: 0 10px 24px -10px rgba(34, 197, 94, 0.6);
}

.btn--primary:hover {
    filter: brightness(1.07);
}

.btn--ghost {
    background: transparent;
    border-color: var(--lp-surface-border);
    color: var(--lp-text);
}

.btn--ghost:hover {
    border-color: var(--lp-primary);
    color: var(--lp-primary);
}

.btn--lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}

.landing-nav.is-scrolled {
    border-bottom-color: var(--lp-surface-border);
    background: rgba(15, 23, 42, 0.92);
}

.landing-nav__inner {
    max-width: var(--lp-container);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    margin-right: auto;
}

.landing-brand__icon {
    width: 30px;
    height: 30px;
    color: var(--lp-primary);
    flex-shrink: 0;
}

.landing-nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.landing-nav__links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-text-muted);
    transition: color .15s ease;
    position: relative;
    padding-bottom: 5px;
}

.landing-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: var(--lp-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.16,.84,.44,1);
}

.landing-nav__links a:hover {
    color: var(--lp-text);
}

.landing-nav__links a:hover::after {
    transform: scaleX(1);
}

.landing-nav__links a.is-active {
    color: var(--lp-primary);
}

.landing-nav__links a.is-active::after {
    transform: scaleX(1);
}

.landing-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--lp-surface-border);
    border-radius: 8px;
    cursor: pointer;
}

.landing-nav__toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--lp-text);
    transition: transform .2s ease, opacity .2s ease;
}

.landing-nav__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.landing-nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.landing-nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
    .landing-nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--lp-bg-alt);
        border-bottom: 1px solid var(--lp-surface-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .landing-nav__links.is-open {
        max-height: 320px;
    }

    .landing-nav__links a {
        width: 100%;
        padding: 0.9rem 1.5rem;
        border-top: 1px solid var(--lp-surface-border);
    }

    .landing-nav__links a::after {
        display: none;
    }

    .landing-nav__links a.is-active {
        background: var(--lp-primary-soft);
        border-left: 3px solid var(--lp-primary);
        padding-left: calc(1.5rem - 3px);
    }

    .landing-nav__actions {
        display: none;
    }

    .landing-nav__toggle {
        display: flex;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding: 5.5rem 0 6rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 197, 94, 0.18), transparent 45%),
        radial-gradient(circle at 88% 0%, rgba(34, 197, 94, 0.12), transparent 40%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--lp-primary);
    background: var(--lp-primary-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.hero h1 span {
    color: var(--lp-primary);
}

.hero p {
    font-size: 1.0625rem;
    color: var(--lp-text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2.25rem;
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
}

.hero__trust strong {
    color: var(--lp-text);
}

/* Mockup visual del hero: tarjeta de reserva */
.hero__visual {
    position: relative;
}

.hero-card {
    position: relative;
    background: var(--lp-surface);
    border: 1px solid var(--lp-surface-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6);
}

.hero-card__pitch {
    position: relative;
    height: 170px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(90deg, #1a7a3f 0px, #1a7a3f 28px, #19713c 28px, #19713c 56px);
    border: 2px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.hero-card__pitch::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.55);
}

.hero-card__pitch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-card__perks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.hero-card__perk {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-text);
}

.hero-card__perk svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--lp-primary);
}

.hero-floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-surface-border);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.6);
    font-size: 0.8125rem;
    font-weight: 700;
    animation: lp-float 4.5s ease-in-out infinite;
}

.hero-floating--confirm {
    top: -18px;
    right: -10px;
    color: var(--lp-primary);
}

.hero-floating--confirm .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-primary);
    box-shadow: 0 0 0 4px var(--lp-primary-soft);
}

.hero-floating--rating {
    bottom: -16px;
    left: -14px;
    color: #FBBF24;
    animation-delay: .4s;
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 940px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero p {
        max-width: 100%;
    }

    .hero__visual {
        max-width: 420px;
        margin: 2.5rem auto 0;
    }
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
    border-top: 1px solid var(--lp-surface-border);
    border-bottom: 1px solid var(--lp-surface-border);
    background: var(--lp-bg-alt);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.75rem 0;
    text-align: center;
}

.stat__value {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--lp-primary);
    line-height: 1;
}

.stat__label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
    font-weight: 600;
}

@media (max-width: 700px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */

.section {
    padding: 6rem 0;
}

.section--alt {
    background: var(--lp-bg-alt);
}

/* Cómo funciona */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--lp-surface-border) 0 10px, transparent 10px 18px);
}

.step {
    position: relative;
    text-align: center;
}

.step__num {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-surface-border);
    color: var(--lp-primary);
    position: relative;
    z-index: 1;
}

.step__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.step__text {
    font-size: 0.9rem;
    color: var(--lp-text-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .steps::before {
        display: none;
    }
}

/* Beneficios */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-surface-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
}

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

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--lp-text-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* CTA banner */
.cta-banner {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.4)), var(--lp-surface);
    border: 1px solid rgba(34, 197, 94, 0.3);
    overflow: hidden;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.cta-banner p {
    color: var(--lp-text-muted);
    max-width: 460px;
    margin: 0 auto 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.landing-footer {
    border-top: 1px solid var(--lp-surface-border);
    padding: 3.5rem 0 2rem;
    background: var(--lp-bg-alt);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer__brand p {
    color: var(--lp-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 0.9rem;
    max-width: 260px;
}

.footer__col h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-text-muted);
    margin: 0 0 1rem;
}

.footer__col ul li {
    margin-bottom: 0.65rem;
}

.footer__col ul li a {
    font-size: 0.875rem;
    color: var(--lp-text);
    opacity: 0.85;
    transition: color .15s ease, opacity .15s ease;
}

.footer__col ul li a:hover {
    color: var(--lp-primary);
    opacity: 1;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--lp-surface-border);
    font-size: 0.8125rem;
    color: var(--lp-text-muted);
}

@media (max-width: 800px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        transform: none !important;
    }

    .hero-floating {
        animation: none !important;
    }
}
