:root {
    --bg-base: #040608;
    --bg-surface: rgba(15, 18, 22, 0.7);
    
    /* Colores por Rol */
    --clr-natione: #53fc18;
    --clr-gioyis: #00e5ff;
    --clr-cali: #ff4500;
    --clr-jessy: #b026ff;
    
    --text-primary: #f8fafc;
    --text-secondary: #8b9bb4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de fondo Gamer */
.bg-vignette {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center 30%, transparent 10%, var(--bg-base) 80%);
    pointer-events: none;
}

.gamer-ambient {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.bg-prop {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
}

.prop-1 { top: 15%; left: 5%; font-size: 12rem; transform: rotate(15deg); }
.prop-2 { bottom: 20%; right: 8%; font-size: 15rem; transform: rotate(-10deg); }
.prop-3 { top: 40%; right: 15%; font-size: 8rem; transform: rotate(-25deg); }
.prop-4 { bottom: -5%; left: 20%; font-size: 14rem; transform: rotate(10deg); }

.hud-circle {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hud-1 { top: -10%; right: -5%; width: 40vw; height: 40vw; border-style: double; border-width: 4px; }
.hud-2 { bottom: -15%; left: -10%; width: 35vw; height: 35vw; }

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    z-index: 1;
}

/* Header */
.studio-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge-live {
    font-family: 'Chakra Petch', sans-serif;
    background: rgba(255, 0, 0, 0.15);
    color: #ff3333;
    border: 1px solid #ff3333;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

.brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    font-size: 1.1rem;
}

.brand-bio strong { color: var(--text-primary); }

.cta-discord {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #5865F2;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
    transition: all 0.3s;
}

.cta-discord:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6);
}

/* Roster Section */
.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 1.2rem;
}

.team-card {
    background: var(--bg-surface);
    position: relative;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    border-top: 3px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card::before {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 20px; height: 20px;
    background: rgba(255,255,255,0.1);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top, var(--theme-color) 0%, transparent 60%);
    opacity: 0.05;
    pointer-events: none;
    transition: opacity 0.3s;
}

.team-card:hover { transform: translateY(-5px); }
.team-card:hover .card-glow { opacity: 0.15; }

/* Watermarks */
.watermark-icon {
    position: absolute;
    bottom: -15%;
    right: -10%;
    font-size: 6rem;
    color: var(--theme-color);
    opacity: 0.04;
    z-index: 0;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.4s ease;
}

.team-card:hover .watermark-icon {
    opacity: 0.1;
    transform: rotate(0deg) scale(1.1);
}

/* Avatar content */
.avatar-wrapper, .card-content {
    z-index: 1;
    position: relative;
}

.theme-natione { --theme-color: var(--clr-natione); border-top-color: var(--clr-natione); }
.theme-gioyis { --theme-color: var(--clr-gioyis); border-top-color: var(--clr-gioyis); }
.theme-cali { --theme-color: var(--clr-cali); border-top-color: var(--clr-cali); }
.theme-jessy { --theme-color: var(--clr-jessy); border-top-color: var(--clr-jessy); }

.avatar-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #111418;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    object-fit: cover;
    transition: border-color 0.3s;
}

.avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: linear-gradient(135deg, #111418, #0a0c0e);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: border-color 0.3s;
}

.theme-natione .avatar-img { border-color: rgba(83, 252, 24, 0.3); }
.theme-gioyis .avatar-icon { color: var(--clr-gioyis); border-color: rgba(0, 229, 255, 0.3); }
.theme-cali .avatar-icon { color: var(--clr-cali); border-color: rgba(255, 69, 0, 0.3); }
.theme-jessy .avatar-icon { color: var(--clr-jessy); border-color: rgba(176, 38, 255, 0.3); }

.stream-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--theme-color);
    white-space: nowrap;
}

.member-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    color: #fff;
}

.member-role {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    color: var(--theme-color);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Links */
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Base unificada para botones principales */
.btn-kick, .btn-twitch {
    width: 100%;
    max-width: 400px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

/* Kick Variables */
.btn-kick {
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid var(--clr-natione);
    color: #fff;
}
.btn-kick i { font-size: 1.5rem; color: var(--clr-natione); }

.btn-kick:hover {
    background: var(--clr-natione);
    color: #000;
}
.btn-kick:hover i { color: #000; }

/* Twitch Variables */
.btn-twitch {
    background: rgba(145, 70, 255, 0.1);
    border: 1px solid #9146FF;
    color: #fff;
}
.btn-twitch i { font-size: 1.5rem; color: #9146FF; }

.btn-twitch:hover {
    background: #9146FF;
    color: #fff;
}
.btn-twitch:hover i { color: #fff; }

.social-row {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Comentado (ya no se usa en .social-row)
.twitch-icon:hover {
    background: #9146FF;
    border-color: #9146FF;
    color: #ffffff;
}
*/

/* Footer & Dev Credits */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.dev-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dev-credit i {
    color: var(--clr-gioyis);
}

.dev-credit:hover {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    /* Auto-fit evita saltos de línea irregulares con 3 tarjetas */
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.swipe-indicator {
    display: none;
}

@media (max-width: 600px) {
    .brand-title { 
        font-size: 2.8rem; 
    }

    .swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        font-family: 'Chakra Petch', sans-serif;
        font-size: 0.8rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
        padding-right: 1rem;
        text-transform: uppercase;
    }

    .swipe-anim {
        animation: swipePulse 1.5s infinite;
    }

    @keyframes swipePulse {
        0% { transform: translateX(0); opacity: 0.4; }
        50% { transform: translateX(5px); opacity: 1; color: var(--text-primary); }
        100% { transform: translateX(0); opacity: 0.4; }
    }
    
    /* Arquitectura Native CSS Scroll Snap */
    .team-grid { 
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
        
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    
    .team-grid::-webkit-scrollbar {
        display: none; 
    }
    
    .team-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: translateZ(0); 
    }
}

.platforms-intro {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.platform-tag {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.platform-tag i {
    font-size: 0.85rem;
}

/* Modificadores de Plataforma */
.platform-tag.kick {
    background: rgba(83, 252, 24, 0.1);
    border-color: rgba(83, 252, 24, 0.3);
    color: #53fc18;
}

.platform-tag.tiktok {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.platform-tag.twitch {
    background: rgba(145, 70, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.3);
    color: #9146FF;
}

.platform-tag.youtube {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff3333;
}