/**
 * Mi Torneo — Landing Page CSS
 * Conversión fiel del diseño Kinetic Arena (Tailwind → CSS puro)
 * Sin dependencia de Tailwind en producción.
 */

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

.ctm-landing-page {
    background-color: #081425;
    color: #d8e3fb;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}
.ctm-landing-page a { text-decoration: none; color: inherit; }
.ctm-landing-page * { outline: none; }

/* Material Symbols config */
.ctm-landing-page .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ─── NAV ─────────────────────────────────────────────────────── */
.ctm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(8, 20, 37, 0.60);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.ctm-nav-left { display: flex; align-items: center; gap: 32px; }

.ctm-logo {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: #bded4d;
    font-style: italic;
}

.ctm-nav-links { display: flex; align-items: center; gap: 24px; }
.ctm-nav-links a {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    color: #6b7fa3;
    transition: color .2s;
}
.ctm-nav-links a:hover { color: #bded4d; }

.ctm-nav-actions { display: flex; align-items: center; gap: 12px; }

.ctm-btn-login {
    background: #a2d031;
    color: #263500;
    padding: 8px 22px;
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    transition: background .2s, transform .1s;
}
.ctm-btn-login:hover  { background: #bded4d; }
.ctm-btn-login:active { transform: scale(.95); }

.ctm-btn-register {
    background: #bded4d;
    color: #263500;
    padding: 8px 22px;
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    transition: opacity .2s, transform .1s;
}
.ctm-btn-register:hover  { opacity: .9; }
.ctm-btn-register:active { transform: scale(.95); }

/* ─── HERO SPLIT ─────────────────────────────────────────────── */
.ctm-hero {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Cada zona expandible */
.ctm-split {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ctm-split:hover { flex-grow: 1.4; }

/* Divisor sutil entre zonas */
.ctm-split-player {
    border-right: 1px solid rgba(68, 73, 54, 0.2);
}

/* ── Fondo imagen ── */
.ctm-split-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scale(1.1);
    transition: transform 1s ease-out, opacity .7s;
}
.ctm-split:hover .ctm-split-bg { transform: scale(1.0); }

.ctm-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .40;
    transition: opacity .7s;
}
.ctm-split:hover .ctm-split-img { opacity: .60; }

/* Gradiente de overlay por zona */
.ctm-split-overlay {
    position: absolute;
    inset: 0;
}
.ctm-split-overlay-player {
    background: linear-gradient(to right, #081425 0%, rgba(8,20,37,.4) 50%, transparent 100%);
}
.ctm-split-overlay-org {
    background: linear-gradient(to left, #081425 0%, rgba(8,20,37,.6) 50%, transparent 100%);
}

/* ── Contenido hero ── */
.ctm-split-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ctm-split-content-player { padding: 0 64px; }
.ctm-split-content-org    { padding: 0 64px; align-items: flex-end; }

.ctm-split-inner      { max-width: 520px; }
.ctm-split-inner-right { max-width: 520px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }

/* Mode badge */
.ctm-mode-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.ctm-mode-badge-player {
    background: rgba(189, 237, 77, 0.10);
    border: 1px solid rgba(189, 237, 77, 0.20);
    color: #bded4d;
}
.ctm-mode-badge-org {
    background: rgba(25, 84, 42, 0.30);
    border: 1px solid rgba(152, 213, 158, 0.20);
    color: #98d59e;
}

/* Hero title */
.ctm-hero-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 18px;
    text-transform: uppercase;
    transition: transform .5s;
}
.ctm-hero-title-right { text-align: right; }
.ctm-split:hover .ctm-hero-title       { transform: translateX(8px); }
.ctm-split:hover .ctm-hero-title-right { transform: translateX(-8px); }

.ctm-lime     { color: #bded4d; }
.ctm-secondary { color: #98d59e; }
.ctm-italic   { font-style: italic; }
.ctm-glow     { text-shadow: 0 0 20px rgba(189, 237, 77, 0.4); }

/* Hero body */
.ctm-hero-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #c4c9b0;
    margin: 0 0 32px;
    transition: color .5s;
    max-width: 440px;
}
.ctm-split:hover .ctm-hero-body { color: #d8e3fb; }
.ctm-text-right { text-align: right; }

/* CTA buttons — aparecen en hover */
.ctm-split-btns {
    display: flex;
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s, transform .7s;
}
.ctm-split-btns-right { flex-direction: row-reverse; }
.ctm-split:hover .ctm-split-btns {
    opacity: 1;
    transform: translateY(0);
}

/* Botón lime (CTA primario) */
.ctm-cta-lime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #bded4d 0%, #a2d031 100%);
    color: #263500;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    padding: 14px 26px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(189, 237, 77, 0.30);
    transition: transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.ctm-cta-lime:hover  { transform: scale(1.05); box-shadow: 0 14px 36px rgba(189,237,77,.45); }
.ctm-cta-lime:active { transform: scale(.95); }

/* Botón secondary (verde) */
.ctm-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #98d59e;
    color: #003916;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .06em;
    padding: 14px 26px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(152, 213, 158, 0.20);
    transition: transform .15s;
    white-space: nowrap;
}
.ctm-cta-secondary:hover  { transform: scale(1.05); }
.ctm-cta-secondary:active { transform: scale(.95); }

/* Botón ghost (borde) */
.ctm-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(42, 53, 72, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .06em;
    padding: 14px 26px;
    border-radius: 12px;
    border: 1px solid rgba(68, 73, 54, 0.30);
    transition: background .2s;
    white-space: nowrap;
}
.ctm-cta-ghost:hover { background: #2a3548; }

/* ── Centro logo ── */
.ctm-center-logo {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctm-center-glow {
    position: absolute;
    inset: -20px;
    background: rgba(162, 208, 49, 0.20);
    filter: blur(80px);
    border-radius: 50%;
    opacity: .5;
}
.ctm-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 30px rgba(162, 208, 49, 0.30));
}

/* ── Motion trail (decorativo, izquierda) ── */
.ctm-motion-trail {
    position: absolute;
    top: 25%;
    right: -48px;
    width: 256px;
    height: 4px;
    background: linear-gradient(to right, transparent, rgba(189,237,77,.40), transparent);
    transform: rotate(45deg);
    filter: blur(8px);
    transition: transform 1s;
    z-index: 5;
}
.ctm-split:hover .ctm-motion-trail { transform: rotate(45deg) translateX(100%); }

/* ── Widget decorativo (derecha) ── */
.ctm-dash-widget {
    position: absolute;
    bottom: 80px;
    left: 40px;
    width: 192px;
    background: rgba(31, 42, 60, 0.40);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(68, 73, 54, 0.20);
    border-radius: 12px;
    padding: 16px;
    display: none;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    opacity: .40;
    transition: opacity 1s, transform 1s;
    z-index: 5;
}
.ctm-split:hover .ctm-dash-widget { opacity: 1; transform: translateY(-16px); }
.ctm-dash-widget-bar {
    width: 10px;
    border-radius: 3px 3px 0 0;
    background: rgba(152, 213, 158, 0.60);
}
.ctm-bar-1 { height: 28%; }
.ctm-bar-2 { height: 55%; }
.ctm-bar-3 { height: 100%; background: #98d59e; }
.ctm-bar-4 { height: 42%; }

/* ─── STATS — overlapping editorial ─────────────────────────── */
.ctm-stats {
    position: relative;
    z-index: 20;
    margin-top: -5rem;
    padding: 0 32px 48px;
}
.ctm-stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ctm-stat-card {
    background: rgba(31, 42, 60, 0.80);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
    transition: transform .2s;
}
.ctm-stat-card:hover { transform: translateY(-4px); }
.ctm-stat-num {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #bded4d;
    line-height: 1;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.ctm-stat-lbl {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #c4c9b0;
    margin: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.ctm-footer {
    background: #040e1f;
    width: 100%;
    padding: 40px 32px;
    border-top: 1px solid rgba(31, 42, 60, 0.15);
}
.ctm-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.ctm-footer-brand { display: flex; flex-direction: column; gap: 6px; }
.ctm-footer-logo {
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #a2d031;
    font-style: italic;
    letter-spacing: -0.02em;
}
.ctm-footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    letter-spacing: .04em;
    color: #64748b;
    margin: 0;
}
.ctm-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.ctm-footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    letter-spacing: .04em;
    color: #64748b;
    opacity: .8;
    transition: color .2s, opacity .2s;
}
.ctm-footer-links a:hover { color: #bded4d; opacity: 1; }
.ctm-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ctm-footer-social .material-symbols-outlined {
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: color .2s;
}
.ctm-footer-social .material-symbols-outlined:hover { color: #bded4d; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ctm-split-content-player,
    .ctm-split-content-org { padding: 0 40px; }
    .ctm-center-logo { width: 150px; height: 150px; }
    .ctm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ctm-nav { padding: 12px 20px; }
    .ctm-nav-links { display: none; }
    .ctm-btn-login { display: none; }

    .ctm-hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .ctm-split { min-height: 50vh; flex-grow: 1 !important; }
    .ctm-split:hover { flex-grow: 1 !important; }
    .ctm-split-content-player,
    .ctm-split-content-org { padding: 80px 24px 48px; align-items: flex-start; }
    .ctm-split-inner-right { text-align: left; align-items: flex-start; }
    .ctm-hero-title-right { text-align: left; }
    .ctm-text-right { text-align: left; }
    .ctm-split-btns-right { flex-direction: row; }
    .ctm-split-btns { opacity: 1; transform: none; }
    .ctm-center-logo { display: none; }

    .ctm-stats { margin-top: 0; }
    .ctm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
    .ctm-stat-card { padding: 20px; }
    .ctm-stat-num { font-size: 1.8rem; }

    .ctm-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .ctm-footer-links { gap: 16px; }
}

@media (max-width: 480px) {
    .ctm-stats-grid { grid-template-columns: 1fr 1fr; }
    .ctm-cta-lime, .ctm-cta-secondary, .ctm-cta-ghost { font-size: .72rem; padding: 12px 18px; }
}

/* ─── Widget decorativo: visible en desktop ──────────────────── */
@media (min-width: 768px) {
    .ctm-dash-widget { display: flex; }
}
