:root {
    --bg-dark: #0A0B1A;
    --primary-orange: #FF4D00;
    --primary-red: #FF0F4D;
    --gradient-orange-light: #FFB347;
    --gradient-orange-mid: #FF7F50;
    --gradient-orange-dark: #FF4500;
    --gradient-warm-light: #FFD700;
    --gradient-warm-mid: #FF6B6B;
    --gradient-warm-dark: #FF1744;
    --accent-pink: #FF1493;
    --accent-gold: #FFD700;
}

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

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('fondo.jpg');
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top center;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(10, 11, 26, 0.85);*/
    z-index: -1;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 100%;
    margin: 0 auto;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--gradient-warm-light), var(--gradient-warm-dark));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gradient-orange-light);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--gradient-warm-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--gradient-warm-light), var(--gradient-orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    font-size: 1.3rem;
    color: var(--gradient-orange-light);
}

/* Info Sections */
.info-section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(0, 0, 0, 1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: var(--gradient-warm-light);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    color: var(--gradient-orange-light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.5rem;
}

/* Buttons */
.cta-button {
    background: linear-gradient(45deg, var(--gradient-warm-dark), var(--gradient-orange-light));
    border: none;
    padding: 1rem 2rem;
    color: black;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    display: block;
    margin: 2rem auto 0;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Divisions */
.divisions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.division {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.division h3 {
    color: var(--gradient-orange-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.division p {
    font-size: 1.5rem;
}
.format-note {
    text-align: center;
    color: var(--gradient-warm-light);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Contact Section */
.contact-info {
    text-align: center;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 1rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.cards-container-division {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-division {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, var(--gradient-warm-dark), var(--gradient-orange-light));
}

.card-division:hover {
    transform: translateY(-5px);
}

.card-division h2 {
    color: black;
    margin-bottom: 1rem;
    text-align: center;
}

.card-division p {
    color: black;
    text-align: center;
    font-weight: bold;
}

.clasificacion-container {
    padding: 0 2rem 2rem 2rem;
}

.clasificacion-card {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.division-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.jornadas-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jornada {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jornada h2 {
    color: var(--gradient-warm-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.partidos {
    display: grid;
    gap: 1rem;
}

.partido {
    background: linear-gradient(45deg, var(--gradient-warm-dark), var(--gradient-orange-light));
    padding: 1rem;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.equipo {
    color: black;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.resultado {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.vs {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.fecha {
    color: var(--gradient-orange-light);
    font-size: 1.2rem;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.jornadas-nav {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.9);
    margin: 0 2rem;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.jornadas-nav::-webkit-scrollbar {
    display: none;
}

.jornada-link {
    background: linear-gradient(45deg, var(--gradient-warm-dark), var(--gradient-orange-light));
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.jornada-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .partido {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    .equipo {
        padding: 0 0.5rem;
    }
    
    .resultado {
        min-width: 60px;
        padding: 0.4rem;
    }
    
    .jornadas-nav {
        margin: 0 1rem;
        padding: 0.8rem;
    }

    .jornada-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gradient-warm-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gradient-orange-light);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--primary-red);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.submit-button {
    background: linear-gradient(45deg, var(--gradient-warm-dark), var(--gradient-orange-light));
    border: none;
    padding: 1rem 2rem;
    color: white;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-family: 'Orbitron', sans-serif;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .divisions {
        grid-template-columns: 1fr;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
