/* ===== RESET Y ESTILOS GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background-color: white;
    color: #111;
    line-height: 1.6;
}

/* ===== COLORES DE LA LIGA ===== */
:root {
    --primary-blue: #0080ff;
    --secondary-blue: #80fdff;
    --black: #111;
    --white: #ffffff;
}

/* ===== HEADER CON LOGO ===== */
header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

.logo-text {
    color: white;
    letter-spacing: -0.3px;
}

.logo-text span {
    color: var(--secondary-blue);
    font-weight: 300;
}

.buscador input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 30px;
    width: 250px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.buscador input:focus {
    box-shadow: 0 0 0 3px var(--secondary-blue);
}

/* ===== HEADER CON LIGA SELECCIONADA ===== */
.liga-seleccionada-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.6rem 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== NAVEGACIÓN CON DROPDOWN ===== */
nav {
    background-color: var(--black);
    padding: 0.8rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link:hover {
    color: var(--secondary-blue);
}

nav a.active {
    color: var(--secondary-blue);
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 2px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--black);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: 0.2s;
    border-bottom: 1px solid #333;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
}

/* Mostrar dropdown al hacer hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(145deg, var(--primary-blue), #0066cc);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ===== SECCIÓN DE TARJETAS (para index.html) ===== */
.cards-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cards-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 8px solid var(--primary-blue);
    padding-left: 1.5rem;
    color: var(--black);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,128,255,0.2);
    border-color: var(--primary-blue);
}

.card-image {
    height: 160px;
    background-color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: bold;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.card-content p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eef2f6;
}

.badge {
    background-color: var(--secondary-blue);
    color: var(--black);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* ===== SECCIÓN POSICIÓN DE EQUIPOS MINIMIZADA ===== */
.posicion-equipos {
    background: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.posicion-equipos.minimizado {
    margin-bottom: 0.5rem;
}

.posicion-equipos.minimizado .posicion-contenido {
    display: none;
}

.posicion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    transition: 0.2s;
}

.posicion-header:hover {
    background: var(--secondary-blue);
}

.posicion-header h3 {
    color: var(--primary-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.posicion-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--primary-blue);
}

.posicion-equipos.minimizado .posicion-toggle {
    transform: rotate(180deg);
}

.posicion-contenido {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.posiciones-tabla {
    width: 100%;
    border-collapse: collapse;
}

.posiciones-tabla th {
    text-align: left;
    padding: 0.8rem 0.5rem;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-blue);
}

.posiciones-tabla td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.posiciones-tabla tr:last-child td {
    border-bottom: none;
}

/* ===== SECCIÓN RESEÑA ===== */
.resena-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.resena-container h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resena-texto {
    color: #334155;
    line-height: 1.6;
}

/* ===== PÁGINA QUIENES SOMOS ===== */
.quienes-somos-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

.sidebar-menu {
    flex: 1;
    min-width: 280px;
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.menu-item {
    margin-bottom: 1.5rem;
}

.menu-principal {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 0.3rem;
}

.submenu {
    list-style: none;
    padding-left: 1rem;
}

.submenu li {
    margin-bottom: 0.8rem;
}

.submenu a {
    text-decoration: none;
    color: var(--black);
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: 0.2s;
}

.submenu a:hover {
    background-color: var(--secondary-blue);
    color: var(--black);
    transform: translateX(5px);
}

.submenu a.active {
    background-color: var(--primary-blue);
    color: white;
}

.menu-condiciones {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--secondary-blue);
}

.menu-condiciones a {
    display: block;
    text-decoration: none;
    color: var(--black);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    background-color: #e5e7eb;
    border-radius: 10px;
    transition: 0.2s;
}

.menu-condiciones a:hover {
    background-color: var(--primary-blue);
    color: white;
}

.content-area {
    flex: 3;
    min-width: 300px;
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--secondary-blue);
    padding-bottom: 1rem;
}

.content-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
}

.content-header .icon {
    font-size: 2.5rem;
}

.content-body {
    font-size: 1.1rem;
    color: #334155;
}

.content-body p {
    margin-bottom: 1.2rem;
}

.content-body ul, .content-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background-color: var(--secondary-blue);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border-left: 5px solid var(--primary-blue);
}

.highlight-box h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--black);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 5px solid var(--primary-blue);
}

footer h3 {
    font-size: 1.8rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

footer p {
    margin: 0.3rem 0;
    font-size: 1.1rem;
}

.redes {
    margin-top: 1rem;
}

.redes span {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin: 0.3rem;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .buscador input {
        width: 100%;
    }
    
    nav {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .quienes-somos-container {
        flex-direction: column;
    }
    
    .sidebar-menu {
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cards-section {
        padding: 2rem 1rem;
    }
}