@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & CONSTANTS --- */
:root {
    --bg-dark: #07090e;
    --bg-panel: #111422;
    --bg-panel-trans: rgba(17, 20, 34, 0.85);
    --neon-green: #39ff14;
    --neon-green-glow: rgba(57, 255, 20, 0.4);
    --neon-orange: #ff5e00;
    --neon-orange-glow: rgba(255, 94, 0, 0.4);
    --neon-cyan: #00e5ff;
    --neon-cyan-glow: rgba(0, 229, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #9aa1b3;
    --text-muted: #646a78;
    --border-color: rgba(57, 255, 20, 0.2);
    --font-heading: 'Rajdhani', sans-serif;
    --font-stats: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --hud-clip: polygon(0 0, 95% 0, 100% 15px, 100% 100%, 5% 100%, 0 calc(100% - 15px));
    --hud-clip-sm: polygon(0 0, 90% 0, 100% 10px, 100% 100%, 10% 100%, 0 calc(100% - 10px));
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(57, 255, 20, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- INTERACTIVE HUD BUTTONS --- */
.btn-game {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1) 0%, rgba(0, 229, 255, 0.05) 100%);
    border: 2px solid var(--neon-green);
    border-radius: 0;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.btn-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.3), transparent);
    transition: 0.5s;
}

.btn-game:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--neon-green);
    text-shadow: none;
    transform: scale(1.05);
}

.btn-game:hover::before {
    left: 100%;
}

.btn-orange {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange-glow);
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.btn-orange:hover {
    background: var(--neon-orange);
    color: var(--text-primary);
    box-shadow: 0 0 25px var(--neon-orange);
}

/* --- GAMING NAVIGATION --- */
.game-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.9);
    border-bottom: 2px solid var(--neon-green);
    box-shadow: 0 5px 25px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dynamic Gamer Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-animated {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 3px;
    object-fit: contain;
    border: 2px dashed var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseLogo 3s infinite alternate;
}

.logo-container:hover .logo-animated {
    transform: rotate(360deg) scale(1.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    border-style: solid;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.logo-text span {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green-glow);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3px;
}

.nav-item a {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    padding: 8px 9px;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    border: 1px solid transparent;
}

.nav-item a::before {
    content: '[';
    position: absolute;
    left: 2px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.2s ease;
}

.nav-item a::after {
    content: ']';
    position: absolute;
    right: 2px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.2s ease;
}

.nav-item a:hover {
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid var(--border-color);
}

.nav-item a:hover::before {
    left: 8px;
    opacity: 1;
}

.nav-item a:hover::after {
    right: 8px;
    opacity: 1;
}

.nav-item.active a {
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    border-bottom: 2px solid var(--neon-green);
    box-shadow: inset 0 -5px 10px rgba(57, 255, 20, 0.1);
}

.nav-item.active a::before {
    left: 8px;
    opacity: 1;
    color: var(--neon-green);
}
.nav-item.active a::after {
    right: 8px;
    opacity: 1;
    color: var(--neon-green);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* --- HERO BANNER SLIDER --- */
.hero-slider-container {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    border-bottom: 3px solid var(--neon-green);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.15);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 30%, var(--bg-dark) 90%),
        linear-gradient(0deg, rgba(7, 9, 14, 0.9) 0%, transparent 60%);
    z-index: 3;
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%;
    z-index: 4;
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.badge-level {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--neon-orange);
    color: var(--text-primary);
    font-family: var(--font-stats);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
    box-shadow: 0 0 10px var(--neon-orange-glow);
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-title span {
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green-glow);
}

.slide-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(17, 20, 34, 0.7);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-green);
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--neon-green);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    width: 25px;
    border-radius: 10px;
}

/* --- HUD PANEL STRUCTURES --- */
.section-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    display: inline-block;
    padding: 5px 20px;
    position: relative;
}

.section-title span {
    color: var(--neon-green);
}

.section-subtitle {
    font-family: var(--font-stats);
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

.hud-panel {
    background-color: var(--bg-panel-trans);
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--neon-green);
    padding: 30px;
    position: relative;
    clip-path: var(--hud-clip);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, var(--neon-green) 50%);
}

.hud-panel-title {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* --- HOME QUICK MODULES (GAME MODES) --- */
.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mode-card {
    background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(17, 20, 34, 0.7) 100%);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--neon-cyan);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.mode-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--neon-cyan);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.mode-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mode-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.mode-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 15px 30px rgba(57, 255, 20, 0.15);
}

.mode-card:hover .mode-icon {
    color: var(--neon-green);
    transform: scale(1.15) rotate(5deg);
}

.mode-card:hover::after {
    background: var(--neon-green);
}

/* --- FIFA FUT STYLE CARDS --- */
.fut-card-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.fut-card {
    width: 280px;
    height: 400px;
    background: linear-gradient(135deg, #1f2330 0%, #0c0f16 100%);
    border: 3px solid #ffd700; /* FUT Gold Card design default */
    border-radius: 15px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    clip-path: polygon(10% 0, 90% 0, 100% 8%, 100% 92%, 90% 100%, 10% 100%, 0 92%, 0 8%);
}

.fut-card::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    pointer-events: none;
    clip-path: polygon(10% 0, 90% 0, 100% 8%, 100% 92%, 90% 100%, 10% 100%, 0 92%, 0 8%);
}

.fut-card:hover {
    transform: rotateY(10deg) rotateX(10deg) scale(1.05);
    box-shadow: 0 25px 45px rgba(0,0,0,0.8), 0 0 35px rgba(255, 215, 0, 0.4);
}

/* Card Badge/Rating */
.fut-rating-box {
    position: absolute;
    top: 30px;
    left: 20px;
    text-align: center;
    font-family: var(--font-stats);
    line-height: 1;
}

.fut-rating {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffd700;
}

.fut-position {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fut-flag {
    width: 25px;
    height: 15px;
    margin: 5px 0;
    background: linear-gradient(90deg, #ffeb3b, #4caf50); /* Colombia Flag representation */
    border: 1px solid #555;
}

/* Card Photo */
.fut-photo-container {
    width: 140px;
    height: 140px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fut-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.5));
}

/* Card Name */
.fut-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 15px 0 10px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    padding-bottom: 5px;
}

/* Card Stats */
.fut-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    width: 85%;
    font-family: var(--font-stats);
    font-size: 0.85rem;
}

.fut-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fut-stat-val {
    font-weight: 800;
    color: #ffd700;
}

.fut-stat-lbl {
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Green FUT Card Alternate (Reflects academy branding) */
.fut-card-green {
    border-color: var(--neon-green);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px var(--neon-green-glow);
}
.fut-card-green::before {
    border-color: rgba(57, 255, 20, 0.4);
}
.fut-card-green .fut-rating {
    color: var(--neon-green);
}
.fut-card-green .fut-stats-grid .fut-stat-val {
    color: var(--neon-green);
}

/* --- ABOUT US DETAILS (nosotros.php) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

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

.coach-card-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills-list {
    margin-top: 30px;
}

.skill-bar-wrapper {
    margin-bottom: 20px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.skill-bar-bg {
    width: 100%;
    height: 12px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 2px;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 0 10px var(--neon-green-glow);
    width: 0; /* Animated via script or page styles */
    transition: width 1.5s ease-out;
}

/* --- TRAINING PROGRAMS AS "QUESTS" (entrenamientos.php) --- */
.quest-timeline {
    position: relative;
    padding-left: 30px;
}

.quest-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: linear-gradient(180deg, var(--neon-green) 0%, var(--neon-cyan) 50%, var(--neon-orange) 100%);
    box-shadow: 0 0 8px var(--neon-green-glow);
}

.quest-card {
    background: var(--bg-panel-trans);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    clip-path: var(--hud-clip-sm);
}

.quest-card::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 4px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    z-index: 2;
}

.quest-card.orange::before {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange);
}

.quest-card.cyan::before {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.quest-meta {
    display: flex;
    gap: 15px;
    font-family: var(--font-stats);
    font-size: 0.85rem;
}

.meta-xp {
    color: var(--neon-green);
}

.meta-duration {
    color: var(--neon-cyan);
}

.quest-title {
    font-size: 1.5rem;
}

.quest-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.quest-rewards-list {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    padding: 15px;
    font-size: 0.9rem;
}

.quest-rewards-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--neon-orange);
    margin-bottom: 5px;
}

/* --- SKINS SHOP / UNIFORMS (uniformes.php) --- */
.skins-cabinet {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

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

.skin-pedestal-container {
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    position: relative;
    height: 450px;
}

.pedestal {
    width: 200px;
    height: 20px;
    background: #111422;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 5px 25px var(--neon-cyan-glow);
    position: absolute;
    bottom: 40px;
    transform: rotateX(60deg);
    border-radius: 50%;
}

.skin-image-display {
    width: 250px;
    height: 350px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--neon-cyan-glow));
    animation: hoverSkin 4s infinite ease-in-out;
}

.skin-selection-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skin-select-option {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    clip-path: var(--hud-clip-sm);
}

.skin-select-option:hover, .skin-select-option.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.skin-opt-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.skin-opt-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.skin-rarity-badge {
    padding: 3px 10px;
    font-family: var(--font-stats);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--bg-dark);
    text-transform: uppercase;
}

.rarity-legendary { background-color: var(--neon-orange); }
.rarity-epic { background-color: #d500f9; color: #fff; }
.rarity-rare { background-color: var(--neon-cyan); }

/* --- GALLERY CARD PACK (galeria.php) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.gallery-card {
    background: var(--bg-panel);
    border: 2px solid rgba(255,255,255,0.05);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.gallery-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 20px var(--neon-green-glow);
    transform: translateY(-5px);
}

.gallery-card-title {
    margin-top: 15px;
    font-size: 1.15rem;
    font-family: var(--font-heading);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 35px var(--neon-green-glow);
    position: relative;
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Lightbox Photo Album Navigation */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 20, 34, 0.8);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.lightbox-btn:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-green);
}

.lightbox-btn.prev {
    left: 40px;
}

.lightbox-btn.next {
    right: 40px;
}

.lightbox-counter {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-stats);
    color: var(--neon-green);
    font-size: 1rem;
    text-shadow: 0 0 8px var(--neon-green-glow);
    background: rgba(17, 20, 34, 0.8);
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .lightbox-btn.prev {
        left: 10px;
    }
    .lightbox-btn.next {
        right: 10px;
    }
}


/* --- REVIEWS / VALORACIONES DE JUGADOR (resenas.php) --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-panel-trans);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--neon-orange);
    padding: 30px;
    position: relative;
    clip-path: var(--hud-clip-sm);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.reviewer-role {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.rating-stars {
    color: #ffb300;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
    padding-left: 15px;
    margin-bottom: 20px;
}

.review-footer-badge {
    background: rgba(255, 94, 0, 0.05);
    border: 1px solid var(--neon-orange-glow);
    padding: 8px 12px;
    font-family: var(--font-stats);
    font-size: 0.8rem;
    color: var(--neon-orange);
    text-transform: uppercase;
}

/* --- INTEGRATED CHATBOT "PORTEROBOT" --- */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--bg-panel);
    border: 2px solid var(--neon-green);
    box-shadow: 0 5px 20px var(--neon-green-glow);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.chatbot-btn img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--neon-green));
}

.chatbot-btn:hover {
    transform: scale(1.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 25px var(--neon-cyan-glow);
}

.chatbot-btn-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background-color: var(--neon-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-orange);
    animation: pulseBadge 1.5s infinite alternate;
}

/* Chatbot Panel UI (Retro RPG dialog or futuristic gamer console) */
.chatbot-panel {
    width: 360px;
    height: 500px;
    background-color: var(--bg-panel-trans);
    border: 2px solid var(--neon-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--neon-green-glow);
    margin-bottom: 15px;
    display: none;
    flex-direction: column;
    clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.chatbot-panel.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(90deg, #161c2e 0%, #0d101b 100%);
    border-bottom: 2px solid var(--neon-green);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--neon-green);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.chatbot-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.chatbot-status {
    font-family: var(--font-stats);
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 1px;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    color: var(--neon-orange);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.8) 0%, rgba(17, 20, 34, 0.8) 100%);
    scroll-behavior: smooth;
}

/* Chat Bubbles */
.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.chat-msg.bot {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--neon-green);
    align-self: flex-start;
    color: var(--text-primary);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.chat-msg.user {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-right: 3px solid var(--neon-cyan);
    align-self: flex-end;
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* Chat Quick Options */
.chatbot-options {
    padding: 10px 20px;
    background: #0d101b;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
}

.chat-opt-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.chat-opt-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.chatbot-input-area {
    display: flex;
    border-top: 2px solid var(--neon-green);
    background-color: #0c0f16;
}

.chatbot-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.chatbot-send {
    background: var(--bg-panel);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.05);
    color: var(--neon-green);
    padding: 0 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
}

/* --- FOOTER SECTION --- */
.game-footer {
    background: #06080d;
    border-top: 3px solid var(--neon-cyan);
    padding: 60px 0 30px;
    margin-top: 100px;
    box-shadow: 0 -10px 30px rgba(0, 229, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: var(--neon-cyan);
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(0, 229, 255, 0.1);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--neon-green);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    transition: all 0.3s ease;
    background: rgba(0, 229, 255, 0.02);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    font-size: 1.2rem;
}

.social-icon-btn:hover {
    background-color: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-stats);
}

/* --- ANIMATIONS --- */
@keyframes pulseLogo {
    0% {
        box-shadow: 0 0 10px var(--neon-green-glow);
    }
    100% {
        box-shadow: 0 0 25px var(--neon-green);
    }
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 4px var(--neon-orange);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 12px var(--neon-orange);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hoverSkin {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes hoverSkin {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* --- REVIEWS SLIDERBAR & FORM --- */
.reviews-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 40px auto;
    max-width: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(17, 20, 34, 0.3);
    clip-path: polygon(0 0, 98% 0, 100% 20px, 100% 100%, 2% 100%, 0 calc(100% - 20px));
}

.reviews-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reviews-track .review-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    margin-bottom: 0;
    background: var(--bg-panel-trans);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--neon-orange);
    clip-path: var(--hud-clip-sm);
}

@media (max-width: 992px) {
    .reviews-track .review-card {
        flex: 0 0 calc(50% - 20px);
    }
    .reviews-slider-container {
        clip-path: polygon(0 0, 96% 0, 100% 20px, 100% 100%, 4% 100%, 0 calc(100% - 20px));
    }
}

@media (max-width: 768px) {
    .reviews-track .review-card {
        flex: 0 0 calc(100% - 20px);
    }
}


.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.rev-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--neon-orange);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rev-dot.active {
    background: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange);
    width: 25px;
    border-radius: 10px;
}

/* Reviews Carousel Navigation Buttons */
.reviews-slider-container .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    background: rgba(17, 20, 34, 0.8);
}

.reviews-slider-container .slider-btn:hover {
    background: var(--neon-orange);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--neon-orange);
}

.reviews-slider-container .slider-btn.prev {
    left: 15px;
}

.reviews-slider-container .slider-btn.next {
    right: 15px;
}

/* Gamer form styling */
.gamer-form-panel {
    background: var(--bg-panel-trans);
    border: 2px solid var(--border-color);
    border-top: 5px solid var(--neon-orange);
    padding: 40px;
    clip-path: var(--hud-clip);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    margin-top: 60px;
    position: relative;
}

.gamer-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, var(--neon-orange) 50%);
}

.gamer-input-group {
    margin-bottom: 25px;
}

.gamer-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-orange);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gamer-input {
    width: 100%;
    background-color: rgba(7, 9, 14, 0.7);
    border: 1px solid rgba(255, 94, 0, 0.3);
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.gamer-input:focus {
    border-color: var(--neon-orange);
    box-shadow: 0 0 12px var(--neon-orange-glow);
    background-color: rgba(7, 9, 14, 0.9);
}

select.gamer-input option {
    background-color: var(--bg-panel);
    color: var(--text-primary);
}

.alert-success-hud {
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 15px 20px;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1080px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0b0d14;
        border-bottom: 2px solid var(--neon-green);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item a {
        display: block;
        padding: 15px;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .chatbot-panel {
        width: 320px;
        right: 0;
        bottom: 80px;
    }
}

/* --- WORK TEAM PROFILES (nosotros.php) --- */
.team-grid-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.fut-photo-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 5px;
}

/* Cyan FUT Card Style */
.fut-card-cyan {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(0, 229, 255, 0.2);
}
.fut-card-cyan::before {
    border-color: rgba(0, 229, 255, 0.4);
}
.fut-card-cyan .fut-rating {
    color: var(--neon-cyan);
}
.fut-card-cyan .fut-stats-grid .fut-stat-val {
    color: var(--neon-cyan);
}
.fut-card-cyan .fut-photo-container {
    border-bottom-color: rgba(0, 229, 255, 0.5);
}

/* Orange FUT Card Style */
.fut-card-orange {
    border-color: var(--neon-orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(255, 94, 0, 0.2);
}
.fut-card-orange::before {
    border-color: rgba(255, 94, 0, 0.4);
}
.fut-card-orange .fut-rating {
    color: var(--neon-orange);
}
.fut-card-orange .fut-stats-grid .fut-stat-val {
    color: var(--neon-orange);
}
.fut-card-orange .fut-photo-container {
    border-bottom-color: rgba(255, 94, 0, 0.5);
}

.member-meta {
    margin-top: 15px;
}

.badge-cyan {
    border-color: var(--neon-cyan) !important;
    background-color: var(--neon-cyan-glow) !important;
    color: var(--neon-cyan) !important;
}

.badge-orange {
    border-color: var(--neon-orange) !important;
    background-color: var(--neon-orange-glow) !important;
    color: var(--neon-orange) !important;
}

.icon-cyan {
    color: var(--neon-cyan);
    margin-right: 5px;
}

.bg-green {
    background: var(--neon-green) !important;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.bg-cyan {
    background: var(--neon-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.bg-orange {
    background: var(--neon-orange) !important;
    box-shadow: 0 0 10px var(--neon-orange-glow);
}


