/* --- VARIABLES & RESET --- */
:root {
    --primary: #05182F;      /* Navy Blue */
    --accent: #1A488E;       /* Royal Blue */
    --highlight: #00D4FF;    /* Cyan */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.text-muted { color: var(--text-muted); }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.1; text-transform: uppercase; }
.text-highlight { color: var(--highlight); }

.sub-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent);
    margin-bottom: 40px;
}
.divider.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { background-color: var(--primary); }

.btn-outline { border-color: white; color: white; }
.btn-outline:hover { background-color: white; color: var(--primary); }

.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background-color: var(--primary); color: white; }

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: var(--accent);
    color: white;
    border-radius: 4px;
}
.btn-sm:hover { background-color: var(--primary); }

.btn-link { color: var(--accent); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

.full-width { width: 100%; display: block; text-align: center; }

/* --- TOP BAR --- */
.top-bar {
    background-color: #020810;
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-socials a { margin-right: 15px; color: #ccc; }
.top-socials a:hover { color: var(--highlight); }
.top-contact a { margin-left: 20px; color: #ccc; }
.top-contact a i { margin-right: 5px; }

/* --- HEADER --- */
.header {
    background-color: var(--primary);
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 60px; }
.logo-text { display: flex; flex-direction: column; color: white; line-height: 1; }
.brand-name { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; letter-spacing: 1px; }
.brand-tagline { font-size: 0.7rem; letter-spacing: 3px; color: var(--highlight); }

.nav-menu { display: flex; align-items: center; }
.nav-list { display: flex; gap: 25px; align-items: center; }
.nav-link { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; }
.nav-link:hover { color: white; }
.nav-link.active { color: white; font-weight: 600; border-bottom: 2px solid white; }

.btn-nav {
    background-color: white;
    color: var(--primary);
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-nav:hover { background-color: var(--highlight); }

.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    position: relative;
    background: linear-gradient(rgba(5, 24, 47, 0.85), rgba(5, 24, 47, 0.7)), url('../images/hero-bg.jpg'); /* Fallback needed if image missing */
    background-size: cover;
    background-position: center;
    color: white;
    padding-bottom: 0;
    height: 700px!important;
    min-height: 700px!important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Fallback color if image not found */
.hero { background-color: var(--primary); }

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text { max-width: 800px; }
.season-tag {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { font-size: 5rem; line-height: 0.9; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* --- MATCH CENTER BAR (NUEVO) --- */
.match-center-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Pull up into hero */
    margin-bottom: 40px;
}

.match-center-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
    min-height: 140px;
}

/* Left Side: Match Info */
.mc-info {
    flex: 2;
    background: var(--primary);
    background-image: linear-gradient(135deg, var(--primary) 0%, #0a2e52 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Decoration line */
.mc-info::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--accent);
    transform: skewX(-10deg) translateX(5px);
}

.mc-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--highlight);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

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

.mc-team {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 35%;
}

.mc-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.mc-logo-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid rgba(255,255,255,0.2);
}

.mc-team-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.mc-vs {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    font-style: italic;
}

.mc-location {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 5px;
}

/* Right Side: Actions */
.mc-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: white;
    padding: 20px;
}

.mc-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
    min-width: 90px;
}

.mc-action-btn i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: 0.3s;
}

.mc-action-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
    transform: translateY(-3px);
}

.mc-action-btn:hover i {
    color: var(--accent);
}

.mc-action-btn.highlight i {
    color: var(--accent);
}

/* Responsive adjustments for Match Center */
@media (max-width: 992px) {
    .match-center-card {
        flex-direction: column;
    }
    
    .mc-info {
        padding: 20px;
    }
    
    .mc-info::after {
        display: none;
    }
    
    .mc-actions {
        border-top: 1px solid var(--border-color);
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .mc-matchup {
        flex-direction: column;
        gap: 15px;
    }
    
    .mc-team, .mc-team.away {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        text-align: center;
    }
    
    .mc-team-name {
        font-size: 1.5rem;
    }
}

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-content h3 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 30px; }

.values-grid { display: grid; gap: 20px; }
.value-item { display: flex; gap: 15px; }
.value-item i { color: var(--accent); font-size: 1.5rem; margin-top: 5px; }
.value-item h4 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary); }
.value-item p { font-size: 0.9rem; margin-bottom: 0; }

.about-visuals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.about-img-wrapper {
    grid-column: span 2;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}
.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.about-img-wrapper:hover img {
    transform: scale(1.05);
}
.stat-box {
    background: var(--bg-light);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.stat-box.full-stat {
    grid-column: span 2;
}

.stat-box:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-number { display: block; font-family: var(--font-heading); font-size: 3.5rem; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

/* --- SCHEDULES --- */
.schedule-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn {
    padding: 12px 30px;
    background: white;
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-muted);
}
.tab-btn.active, .tab-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.filters { display: flex; gap: 10px; margin-bottom: 20px; justify-content: flex-end; }
.filters select { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); }
.btn-icon { background: white; border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 4px; cursor: pointer; }

.match-list { display: flex; flex-direction: column; gap: 15px; }
.match-row {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}
.match-row:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }

.match-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
    min-width: 80px;
}
.match-date-col .day { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; color: var(--primary); }
.match-date-col .month { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

.match-info-col { flex: 1; padding: 0 30px; }
.category { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 5px; }
.teams-vs { display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
.team-home, .team-away { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); }
.vs-badge { background: var(--bg-light); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.location { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.schedule-table-wrapper { background: white; padding: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.schedule-table th { background-color: var(--bg-light); font-weight: 700; color: var(--primary); }
.download-area { margin-top: 20px; text-align: right; }

.event-card { background: white; padding: 30px; border-radius: 8px; border-left: 5px solid var(--highlight); display: flex; align-items: center; gap: 30px; box-shadow: var(--shadow-sm); }
.event-date { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); min-width: 100px; text-align: center; }
.event-details h4 { font-size: 1.5rem; margin-bottom: 5px; }
.event-details p { color: var(--text-muted); margin-bottom: 5px; }
.event-time { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* --- RESULTS --- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.result-card { background: white; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.result-header { background: var(--primary); color: white; padding: 10px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.result-score { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.result-score .team { display: flex; justify-content: space-between; align-items: center; }
.t-name { font-weight: 600; }
.t-score { font-family: var(--font-heading); font-size: 1.5rem; width: 30px; text-align: center; }
.t-score.win { color: var(--accent); font-weight: 700; }
.result-footer { padding: 10px; background: var(--bg-light); text-align: center; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border-color); }

/* --- NEWS --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-img { height: 200px; background-color: #ddd; position: relative; }
.img-placeholder { width: 100%; height: 100%; background-color: var(--secondary, #ccc); }
.news-cat { position: absolute; top: 15px; left: 15px; background: var(--accent); color: white; padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 4px; }
.news-body { padding: 25px; }
.news-date { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 10px; }
.news-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.read-more { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* --- GALLERY --- */
.gallery-tabs { margin-bottom: 30px; }
.g-tab { background: none; border: none; padding: 10px 20px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.g-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { position: relative; }
.photo-box { height: 200px; background-color: #cbd5e1; border-radius: 8px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: black; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; background: rgba(0,0,0,0.5); cursor: pointer; }
.gallery-caption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-main); }

/* --- SPONSORS --- */
.sponsors-section { padding: 50px 0; border-top: 1px solid var(--border-color); }
.sponsors-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; opacity: 0.6; }
.sponsor-logo { font-weight: 700; color: #94a3b8; font-size: 1.5rem; border: 2px dashed #cbd5e1; padding: 10px 20px; }

/* --- CONTACT --- */
.contact-section-dark { background-color: var(--primary); color: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 3rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 40px; color: #cbd5e1; }
.c-info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.c-info-item i { font-size: 1.5rem; color: var(--highlight); margin-top: 5px; }
.c-info-item h5 { font-size: 1.1rem; margin-bottom: 5px; }
.c-info-item p { color: #cbd5e1; margin-bottom: 0; }
.map-placeholder { width: 100%; height: 200px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; letter-spacing: 2px; }

.contact-form-box { background: white; padding: 40px; border-radius: 8px; color: var(--text-main); }
.contact-form-box h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-body); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

/* --- FOOTER --- */
.main-footer { background-color: #01060b; color: #94a3b8; padding-top: 80px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-content a { font-size: 14px;}
.f-logo { width: 150px; margin-bottom: 20px; opacity: 0.8; }
.f-col h4 { color: white; font-size: 1.2rem; margin-bottom: 20px; }
.f-col ul li { margin-bottom: 12px; }
.f-col ul li a:hover { color: white; }

.f-socials a { display: flex; gap: 7px; align-items: center; color: white; margin-right: 15px; font-size: 1.2rem; }
.f-socials p { color: var(--color-text-body);  font-size: 14px; margin-bottom: 0; transition: 300ms;}
.f-socials p:hover {color: white; transition: 300ms;}
.footer-bottom { padding: 30px 0; font-size: 0.85rem;  }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .match-teaser { border-bottom: 1px solid rgba(0,0,0,0.1); }
    .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 90px; left: 0; width: 100%; background: var(--primary); padding: 20px; }
    .nav-menu.active { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; }
    .hamburger { display: block; }
    
    .hero h1 { font-size: 3rem; }
    .match-teaser { flex-direction: column; text-align: center; }
    .mt-label { writing-mode: horizontal-tb; transform: none; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; width: 100%; justify-content: center; }
    .mt-content { flex-direction: column; gap: 10px; }
    
    .about-visuals { grid-template-columns: 1fr; }
    .schedule-tabs { flex-direction: column; }
    .match-row { flex-direction: column; text-align: center; gap: 20px; }
    .match-date-col { border-right: none; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; width: 100%; padding-right: 0; }
    .match-info-col { padding: 0; }
    .teams-vs { justify-content: center; }
    .location { justify-content: center; }
    
    .footer-content { grid-template-columns: 1fr; }
}