/* ===== VARIABLES Y TOKENS ===== */
:root {
    /* Colores Principales */
    --bg-color: #050505;
    /* Negro puro/muy oscuro */
    --surface-color: #121212;
    /* Gris muy oscuro para tarjetas */
    --surface-hover: #1e1e1e;
    --surface-border: #2a2a2a;

    /* Acentos Rojos */
    --accent-color: #e50914;
    /* Rojo vibrante */
    --accent-hover: #ad1a21;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --accent-muted: rgba(229, 9, 20, 0.1);

    /* Tipografía */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #666666;

    /* Variables de Diseño */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-color);
    color: white;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== COMPONENTES ===== */

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

/* Social Links */
.social-links-container {
    margin-top: 2rem;
}

.social-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--surface-border);
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px var(--accent-glow);
    background-color: var(--accent-color);
}

.social-links .social-btn img,
.social-links .social-icon,
.social-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    display: inline-block !important;
}


/* Navbar / Header */
.header {
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px var(--accent-glow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Main Layout */
.main-content {
    flex: 1;
    padding-top: 3rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 50vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s infinite ease-in-out alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.data-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@keyframes slowPulseRed {
    0% {
        filter: drop-shadow(0 0 0 rgba(229, 9, 20, 0));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(229, 9, 20, 0));
    }
}

.logo-pulse {
    animation: slowPulseRed 4s ease-in-out infinite;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* Info Grid / Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 9, 20, 0.05);
    background-color: var(--surface-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    background-color: var(--accent-muted);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: auto;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* Detail Section */
.detail-section {
    width: 100%;
}

.content-box {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
}

.content-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.custom-list {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 2rem 0;
    margin-top: auto;
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile - menú hamburguesa */
@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Nav se oculta y aparece como dropdown */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 5, 5, 0.97);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid var(--surface-border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 99;
    }

    .nav.open {
        display: flex;
    }

    /* Header necesita position relative para el nav absoluto */
    .header {
        position: sticky;
        top: 0;
    }

    .header-content {
        position: relative;
        flex-wrap: nowrap;
    }

    .nav-link {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--surface-border);
        width: 100%;
    }

    /* Ocultar la línea animada bajo los links en mobile */
    .nav-link::after {
        display: none;
    }

    /* Brand más compacto */
    .logo {
        font-size: 1.3rem;
    }

    .brand-logo {
        height: 40px;
    }

    /* Hero */
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        min-height: unset;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    /* Cards en columna unica */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Atletas: 2 por fila en mobile */
    .athlete-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Fotos: 2 por fila en mobile */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section title */
    .section-title {
        font-size: 1.4rem;
    }

    /* Content box */
    .content-box {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Main content */
    .main-content {
        padding-top: 2rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }
}

/* Mobile pequeño */
@media (max-width: 420px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .athlete-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .athlete-name {
        font-size: 0.95rem;
    }

    .athlete-role {
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }
}

/* ===== TABS SYSTEM ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.photo-card {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 600;
}

.photo-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* ===== ATHLETE GALLERY ===== */
.athlete-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.athlete-card {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.athlete-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 9, 20, 0.1);
}

.athlete-photo {
    width: 100%;
    aspect-ratio: 1;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.photo-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.athlete-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

/* Regla específica para los logos de los equipos */
#otros-equipos .athlete-photo img {
    object-fit: cover;
    object-position: center;
}

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

.athlete-info {
    padding: 1.5rem;
}

.athlete-role {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.athlete-name {
    font-size: 1.2rem;
    color: var(--text-primary);
}