/* ============================================
   TERCER TIEMPO — Landing Page
   ============================================ */

/* ---------- Reset & base ---------- */
.landing-page {
    --tt-navy: #0a2342;
    --tt-cyan: #08F7FE;
    --tt-teal: #17a2b8;
    --tt-dark: #001c3a;
    --tt-white: #ffffff;
    --tt-light: #f0f4f8;
    --tt-amber: #ffc107;
    color: var(--tt-white);
}

/* ---------- HERO ---------- */
.landing-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #0e3d6b 0%, var(--tt-dark) 70%);
    padding: 1rem 1rem 1rem;
}

#hero-logo { display:inline-block; 
    padding:8px; border-radius:24px; 
    background: rgba(255, 255, 255, 0.239); 
    -webkit-backdrop-filter: blur(4px);
     backdrop-filter: blur(4px); 
     border:1px solid rgba(255, 255, 255, 0.24); 
    width: 120px; height:120px; 
    object-fit:contain; 
    margin-bottom:1.5rem;
    }
/* Animated pitch‑lines background */
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 48%, rgba(0, 247, 255, 0.169) 50%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(8, 246, 254, 0.169) 50%, transparent 52%);
    background-size: 120px 120px;
    pointer-events: none;
    animation: pitchDrift 18s linear infinite;
}
@keyframes pitchDrift {
    to { background-position: 120px 120px; }
}

/* Glow circle behind icon */
.landing-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,247,254,.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(8,247,254,.12);
    border: 1px solid rgba(8,247,254,.3);
    border-radius: 999px;
    padding: .35rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--tt-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.hero-headline .highlight {
    color: var(--tt-cyan);
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,.78);
    max-width: 640px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--tt-white);
}

.hero-punchline {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255,255,255,.6);
    font-style: italic;
    margin-bottom: 2.4rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--tt-cyan), #00cfff);
    color: var(--tt-navy) !important;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: .85rem 2.2rem;
    font-size: 1.05rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(8,247,254,.35);
    text-decoration: none;
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8,247,254,.5);
    color: var(--tt-navy) !important;
}

.btn-cta-secondary {
    background: transparent;
    color: var(--tt-white) !important;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 12px;
    padding: .85rem 2.2rem;
    font-size: 1.05rem;
    transition: border-color .2s, background .2s;
    text-decoration: none;
}
.btn-cta-secondary:hover {
    border-color: var(--tt-cyan);
    background: rgba(8,247,254,.08);
    color: var(--tt-white) !important;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.35);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ADIÓS AL CAOS ---------- */
.landing-pain {
    background: linear-gradient(135deg, #0c1e35 0%, #112d4e 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(8,247,254,.06);
}

.pain-inner {
    max-width: 620px;
    margin: 0 auto;
}

.pain-headline {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: var(--tt-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pain-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.pain-lead strong {
    color: var(--tt-cyan);
}

.pain-columns {
    text-align: left;
    display: inline-block;
}

.pain-list.pain-bad {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pain-list.pain-bad li {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    padding: .45rem 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-style: italic;
}

.pain-x {
    color: #ff5c5c;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-style: normal;
}

.pain-solution {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tt-white);
    background: rgba(8,247,254,.08);
    border: 1px solid rgba(8,247,254,.2);
    border-radius: 12px;
    padding: .9rem 1.2rem;
    margin-top: .5rem;
}

.pain-check {
    color: var(--tt-cyan);
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------- FEATURES ---------- */
.landing-features {
    background: var(--tt-dark);
    padding: 1.5rem 1rem;
    text-align: center;
}

.features-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--tt-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgb(8, 246, 254);
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(8,247,254,.35);
    box-shadow: 0 8px 32px rgba(8,247,254,.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.feature-icon.cyan  { background: rgba(8,247,254,.12); color: var(--tt-cyan); }
.feature-icon.amber { background: rgba(255,193,7,.12);  color: var(--tt-amber); }
.feature-icon.green { background: rgba(40,167,69,.12);   color: #28a745; }
.feature-icon.blue  { background: rgba(13,110,253,.12);  color: #0d6efd; }
.feature-icon.pink  { background: rgba(220,53,69,.12);   color: #dc3545; }
.feature-icon.purple{ background: rgba(111,66,193,.12);  color: #6f42c1; }

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.feature-card p {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    margin: 0;
    line-height: 1.6;
}

/* ---------- SOCIAL PROOF / STATS ---------- */
.landing-stats {
    background: linear-gradient(135deg, #0e2a47 0%, var(--tt-dark) 100%);
    padding: 4rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(8,247,254,.08);
    border-bottom: 1px solid rgba(8,247,254,.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item .stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--tt-cyan), #00cfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: .95rem;
    color: rgba(255,255,255,.5);
    margin-top: .2rem;
}

/* ---------- ACTIVE TOURNAMENTS  ---------- */
.landing-torneos {
    background: var(--tt-light);
    padding: 5rem 1rem;
    text-align: center;
}

.torneos-section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--tt-navy);
    margin-bottom: .5rem;
}

.torneos-section-sub {
    color: #5a6a7e;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.torneo-landing-card {
    background: var(--tt-white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.torneo-landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

.torneo-landing-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e3eaf2;
    position: relative;
}
.torneo-landing-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
}

.torneo-landing-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
    background: var(--tt-white);
    border: 3px solid var(--tt-white);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    margin-top: -36px;
    position: relative;
    z-index: 1;
}

.torneo-landing-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.torneo-landing-body h5 {
    font-weight: 700;
    color: var(--tt-navy);
    margin: .8rem 0;
    font-size: 1.1rem;
}

.torneo-landing-body .btn {
    margin-top: auto;
}

.btn-torneo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--tt-navy);
    color: var(--tt-white) !important;
    border: none;
    border-radius: 10px;
    padding: .65rem 1.4rem;
    font-weight: 600;
    font-size: .95rem;
    transition: background .2s, transform .2s;
    text-decoration: none;
    width: 100%;
}
.btn-torneo:hover {
    background: #0d3a6e;
    transform: translateY(-1px);
    color: var(--tt-white) !important;
}

/* ---------- CTA BOTTOM ---------- */
.landing-cta-bottom {
    background: linear-gradient(135deg, var(--tt-navy) 0%, #0e3d6b 100%);
    padding: 5rem 1rem;
    text-align: center;
}

.cta-bottom-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-bottom-sub {
    color: rgba(255,255,255,.6);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ---------- SHOWCASE CAROUSEL ---------- */
.landing-showcase {
    background: linear-gradient(180deg, var(--tt-dark) 0%, #0e2a47 100%);
    padding: 5rem 1rem;
    text-align: center;
}

.showcase-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--tt-white);
    margin-bottom: .5rem;
}

.showcase-sub {
    color: rgba(255,255,255,.5);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.showcase-carousel-wrapper {
    max-width: 350px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(8,247,254,.15);
    box-shadow: 0 8px 40px rgba(0,0,0,.3);
}

.showcase-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    background: #0a1929;
}

#showcaseCarousel .carousel-indicators {
    margin-bottom: .5rem;
}
#showcaseCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    opacity: 1;
    transition: background .2s;
}
#showcaseCarousel .carousel-indicators button.active {
    background: var(--tt-cyan);
}

#showcaseCarousel .carousel-control-prev,
#showcaseCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    opacity: .7;
    transition: opacity .2s;
}
#showcaseCarousel .carousel-control-prev { left: .75rem; }
#showcaseCarousel .carousel-control-next { right: .75rem; }
#showcaseCarousel .carousel-control-prev:hover,
#showcaseCarousel .carousel-control-next:hover {
    opacity: 1;
}

#showcaseCarousel .carousel-control-prev-icon,
#showcaseCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    animation: lbFadeIn .25s ease;
}
@keyframes lbFadeIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
    z-index: 10000;
}
.lightbox-close:hover {
    opacity: 1;
}

/* ---------- HOW IT WORKS ---------- */
.landing-how {
    background: var(--tt-dark);
    padding: 5rem 1rem;
    text-align: center;
}

.how-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--tt-white);
    margin-bottom: 3rem;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    counter-reset: step;
}

.how-step {
    position: relative;
    padding-top: 1rem;
}

.how-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tt-cyan), #00cfff);
    color: var(--tt-navy);
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(8,247,254,.25);
}

.how-step h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.how-step p {
    color: rgba(255,255,255,.55);
    font-size: .92rem;
    line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .landing-hero {
        min-height: 85vh;
        padding: 2rem 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 320px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
    }
    .feature-card {
        padding: 0.2rem;
    }
    .feature-card h4 {
        font-size: .85rem;
    }
    .feature-card p {
        font-size: .65rem;
    }
    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin-bottom: .6rem;
    }
    .landing-features {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }
    .landing-features .container {
        padding: 0;
        max-width: 100%;
    }
    .feature-grid {
        gap: 0.3rem;
        padding: 0;
    }
    .feature-card {
        border-radius: 10px;
    }
    .landing-showcase {
        padding-top: 0.5rem;
    }
    .landing-how {
        padding: 2rem 1rem;
    }
    .landing-hero {
        min-height: auto;
        padding: 1rem 1rem 2rem;
    }
    .how-steps {
        gap: 0.5rem;
    }
    .how-step {
        padding-top: 0;
    }
    .how-step p {
        margin-bottom: 0;
    }
    .how-step-number {
        margin-bottom: 0.4rem;
    }
    .how-title {
        margin-bottom: 1.5rem;
    }
    .torneo-landing-cover {
        height: 140px;
    }
}

/* Break out of base.html's .container wrapper */
.landing-page {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: -1.5rem;
    padding-top: 0;
}

/* Remove parent <main> gap when landing is inside */
main:has(.landing-page) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminate gap between navbar and hero on landing */
.landing-hero {
    margin-top: 0;
}

.landing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.6);
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 1rem;
        right: 1rem;
    }
}
