/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #435ebe;
    --primary-dark: #364da0;
    --primary-light: #eef1ff;

    --dark: #25396f;

    --text: #607080;
    --text-dark: #344054;

    --background: #f2f7ff;

    --white: #ffffff;

    --border: #e9ecef;

    --sport-accent: #f59e0b;

    --success: #198754;
    --danger: #dc3545;

}


/* =========================================================
   GENERAL
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    font-family: 'Roboto', sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

}


a {
    text-decoration: none;
}


img {
    max-width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

#mainNavbar {

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(10px);

    padding: 13px 0;

    transition: all .3s ease;

    border-bottom: 1px solid transparent;

}


#mainNavbar.scrolled {

    padding: 9px 0;

    box-shadow:
        0 5px 25px rgba(37,57,111,.08);

    border-bottom-color: var(--border);

}


/* BRAND */

.navbar-brand {

    color: var(--dark) !important;

}


.brand-icon {

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;

    margin-right: 10px;

}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}


.brand-text strong {

    font-size: 16px;

    font-weight: 700;

    color: var(--dark);

}


.brand-text small {

    font-size: 11px;

    color: var(--text);

    margin-top: 3px;

}


/* LINKS */

.navbar-nav {

    gap: 3px;

}


.nav-link {

    color: #607080 !important;

    font-size: 14px;

    font-weight: 500;

    padding: 9px 12px !important;

    border-radius: 7px;

    transition: all .25s ease;

}


.nav-link:hover,
.nav-link.active {

    color: var(--primary) !important;

    background: var(--primary-light);

}


/* TOGGLER */

.navbar-toggler {

    border: none;

    padding: 5px;

}


.navbar-toggler:focus {

    box-shadow: none;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom {

    background: var(--primary);

    border: 1px solid var(--primary);

    color: white;

    padding: 9px 20px;

    font-weight: 500;

    transition: all .25s ease;

}


.btn-primary-custom:hover {

    background: var(--primary-dark);

    border-color: var(--primary-dark);

    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(67,94,190,.25);

}


.btn-outline-primary {

    color: var(--primary);

    border-color: var(--primary);

}


.btn-outline-primary:hover {

    background: var(--primary);

    border-color: var(--primary);

}


/* =========================================================
   HERO
========================================================= */

.hero-section {

    min-height: 680px;

    padding-top: 100px;

    display: flex;

    align-items: center;

    color: white;

    background:

        linear-gradient(
            90deg,
            rgba(10,38,71,.92) 10%,
            rgba(10,38,71,.78) 45%,
            rgba(10,38,71,.45) 70%,
            rgba(10,38,71,.15) 100%
        ),

        url('../img/hero.jpg');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


.hero-content {

    padding: 80px 0;

}


.hero-label {

    display: inline-block;

    padding: 7px 15px;

    background: rgba(255,255,255,.13);

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 30px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1.5px;

    margin-bottom: 20px;

}


.hero-section h1 {

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 1;

    font-weight: 800;

    margin-bottom: 20px;

    letter-spacing: -2px;

}


.hero-subtitle {

    font-size: 1.5rem;

    font-weight: 400;

    margin-bottom: 15px;

}


.hero-description {

    max-width: 650px;

    color: rgba(255,255,255,.84);

    font-size: 16px;

    margin-bottom: 30px;

}


.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}


/* HERO CARD */

.hero-info-card {

    background: rgba(255,255,255,.96);

    color: var(--text);

    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);

    max-width: 430px;

    margin-left: auto;

}


.hero-card-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

}


.hero-card-header i {

    font-size: 25px;

}


.hero-info-card h3 {

    color: var(--dark);

    font-size: 24px;

    margin-top: 15px;

    margin-bottom: 5px;

}


.hero-info-card p {

    font-size: 14px;

}


.hero-card-divider {

    border-top: 1px solid var(--border);

    margin: 20px 0;

}


.hero-stat {

    background: var(--background);

    border-radius: 10px;

    padding: 15px;

}


.hero-stat strong {

    display: block;

    color: var(--primary);

    font-size: 25px;

    line-height: 1.2;

}


.hero-stat span {

    font-size: 12px;

}


/* =========================================================
   STATS
========================================================= */

.stats-section {

    margin-top: -50px;

    position: relative;

    z-index: 5;

}


.stats-card {

    background: white;

    border-radius: 14px;

    box-shadow:
        0 10px 40px rgba(37,57,111,.10);

    overflow: hidden;

    border: 1px solid var(--border);

}


.stat-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 25px;

    min-height: 105px;

}


.stat-icon {

    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;

}


.stat-item strong {

    display: block;

    font-size: 25px;

    line-height: 1.1;

    color: var(--dark);

}


.stat-item span {

    font-size: 13px;

}


/* =========================================================
   SECTIONS
========================================================= */

.section-padding {

    padding: 100px 0;

}


.bg-light-custom {

    background: var(--background);

}


.section-heading {

    margin-bottom: 50px;

}


.section-heading > span {

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


.section-heading h2 {

    color: var(--dark);

    font-size: clamp(2rem,4vw,2.8rem);

    font-weight: 700;

    margin: 8px 0 12px;

}


.section-heading p {

    max-width: 650px;

    margin-bottom: 0;

}


/* =========================================================
   INSTITUTION CARDS
========================================================= */

.info-card {

    height: 100%;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 35px;

    transition: all .3s ease;

}


.info-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(37,57,111,.09);

    border-color: transparent;

}


.info-icon {

    width: 55px;
    height: 55px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 24px;

    margin-bottom: 25px;

}


.info-card h3 {

    color: var(--dark);

    font-size: 20px;

    font-weight: 600;

    margin-bottom: 15px;

}


.info-card p {

    font-size: 14px;

    margin-bottom: 0;

}


/* =========================================================
   MATCH CARD
========================================================= */

.match-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(37,57,111,.05);

}


.match-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    border-bottom: 1px solid var(--border);

    padding-bottom: 20px;

}


.match-header span:first-child {

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

}


.match-header h5 {

    color: var(--dark);

    margin: 5px 0 0;

}


.status-badge {

    background: #e8f5ee;

    color: var(--success);

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;

}


.match-date {

    font-size: 13px;

    margin: 20px 0;

    color: var(--text);

}


.match-date i {

    color: var(--primary);

}


.teams-match {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 50px;

    text-align: center;

    padding: 20px 0;

}


.team-side {

    min-width: 130px;

}


.team-logo-placeholder {

    width: 70px;
    height: 70px;

    margin: auto auto 12px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

}


.team-side h4 {

    color: var(--dark);

    font-size: 17px;

    margin-bottom: 2px;

}


.team-side small {

    font-size: 11px;

}


.vs {

    color: var(--primary);

    font-weight: 800;

    font-size: 18px;

}


/* =========================================================
   QUICK CARDS
========================================================= */

.quick-card {

    background: var(--primary);

    color: white;

    border-radius: 14px;

    padding: 28px;

}


.quick-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: rgba(255,255,255,.12);

    margin-bottom: 20px;

    font-size: 21px;

}


.quick-card h3 {

    font-size: 20px;

}


.quick-card p {

    color: rgba(255,255,255,.78);

    font-size: 14px;

}


.btn-link-custom {

    color: var(--primary);

    font-weight: 600;

    font-size: 13px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}


.quick-card .btn-link-custom {

    color: white;

}


/* =========================================================
   RESULT CARDS
========================================================= */

.result-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 25px;

    transition: .3s;

}


.result-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(37,57,111,.08);

}


.result-top {

    display: flex;

    justify-content: space-between;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);

    margin-bottom: 15px;

}


.result-top span {

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

}


.result-top small {

    color: var(--success);

}


.result-team {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 0;

}


.result-team span {

    flex: 1;

    color: var(--dark);

    font-size: 14px;

}


.result-team strong {

    font-size: 20px;

    color: var(--dark);

}


.team-mini-logo {

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

}


.result-footer {

    border-top: 1px solid var(--border);

    padding-top: 15px;

    margin-top: 10px;

    font-size: 12px;

}


/* =========================================================
   CATEGORY
========================================================= */

.category-card {

    display: block;

    position: relative;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 30px;

    color: var(--dark);

    overflow: hidden;

    transition: .3s;

}


.category-card:hover {

    color: white;

    background: var(--primary);

    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(67,94,190,.22);

}


.category-number {

    position: absolute;

    right: 20px;

    top: 15px;

    font-size: 45px;

    font-weight: 800;

    color: rgba(67,94,190,.07);

}


.category-card > i {

    font-size: 30px;

    color: var(--primary);

    margin-bottom: 30px;

    display: block;

}


.category-card:hover > i {

    color: white;

}


.category-card h3 {

    font-size: 23px;

    margin-bottom: 25px;

}


.category-card span {

    font-size: 13px;

    font-weight: 600;

}


.category-card span i {

    margin-left: 5px;

}


/* =========================================================
   TEAM CARDS
========================================================= */

.team-card {

    display: block;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 30px 20px;

    text-align: center;

    color: var(--dark);

    transition: .3s;

}


.team-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 12px 30px rgba(37,57,111,.08);

    border-color: var(--primary);

}


.team-logo-large {

    width: 90px;
    height: 90px;

    border-radius: 50%;

    margin: auto auto 20px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;

}


.team-card h4 {

    font-size: 17px;

    margin-bottom: 5px;

}


.team-card span {

    font-size: 12px;

    color: var(--primary);

}


/* =========================================================
   NEWS
========================================================= */

.news-card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    height: 100%;

    transition: .3s;

}


.news-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(37,57,111,.08);

}


.news-image {

    height: 190px;

    position: relative;

    background: var(--primary-light);

}


.news-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--primary);

    font-size: 45px;

}


.news-category {

    position: absolute;

    bottom: 15px;
    left: 15px;

    background: var(--primary);

    color: white;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 11px;

}


.news-content {

    padding: 25px;

}


.news-content small {

    color: var(--primary);

    font-size: 12px;

}


.news-content h3 {

    color: var(--dark);

    font-size: 19px;

    margin: 10px 0;

}


.news-content p {

    font-size: 14px;

}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    padding: 100px 0;

    background: var(--background);

}


.contact-item {

    display: flex;

    gap: 15px;

    margin-bottom: 25px;

}


.contact-icon {

    min-width: 45px;
    height: 45px;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

}


.contact-item h5 {

    color: var(--dark);

    font-size: 15px;

    margin-bottom: 2px;

}


.contact-item p {

    font-size: 13px;

    margin: 0;

}


.contact-form-card {

    background: white;

    padding: 35px;

    border-radius: 14px;

    border: 1px solid var(--border);

    box-shadow:
        0 10px 35px rgba(37,57,111,.06);

}


.form-label {

    font-size: 13px;

    font-weight: 500;

    color: var(--dark);

}


.form-control {

    border-color: var(--border);

    padding: 12px 15px;

    font-size: 14px;

    border-radius: 8px;

}


.form-control:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(67,94,190,.10);

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background: #25396f;

    color: rgba(255,255,255,.7);

    padding: 70px 0 20px;

}


.footer-brand {

    display: flex;

    align-items: center;

    color: white;

}


.footer-brand .brand-icon {

    background: rgba(255,255,255,.12);

}


.footer-brand strong {

    display: block;

    font-size: 17px;

}


.footer-brand small {

    font-size: 11px;

}


.footer-description {

    max-width: 420px;

    margin-top: 20px;

    font-size: 14px;

}


.footer h5 {

    color: white;

    font-size: 15px;

    margin-bottom: 20px;

}


.footer ul {

    list-style: none;

    padding: 0;

    margin: 0;

}


.footer li {

    margin-bottom: 8px;

}


.footer a {

    color: rgba(255,255,255,.65);

    font-size: 13px;

    transition: .2s;

}


.footer a:hover {

    color: white;

}


.social-links {

    display: flex;

    gap: 10px;

}


.social-links a {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255,255,255,.1);

    border-radius: 8px;

}


.footer-bottom {

    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.1);

    display: flex;

    justify-content: space-between;

    font-size: 12px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {


    #mainNavbar {

        padding: 9px 0;

    }


    .navbar-collapse {

        background: white;

        margin-top: 10px;

        padding: 15px;

        border-radius: 12px;

        box-shadow:
            0 10px 30px rgba(37,57,111,.12);

    }


    .navbar-nav {

        gap: 2px;

    }


    .nav-link {

        padding: 11px 13px !important;

    }


    .navbar-nav .btn-primary-custom {

        width: 100%;

        text-align: center;

    }


    .hero-section {

        min-height: 620px;

        background-position: 65% center;

    }


    .hero-content {

        padding: 60px 0;

    }


    .hero-info-card {

        max-width: 100%;

    }


    .stats-section {

        margin-top: -35px;

    }


    .section-padding {

        padding: 75px 0;

    }


    .contact-section {

        padding: 75px 0;

    }

}


@media (max-width: 575px) {


    .brand-icon {

        width: 37px;
        height: 37px;

        font-size: 18px;

    }


    .brand-text strong {

        font-size: 14px;

    }


    .brand-text small {

        font-size: 9px;

    }


    .hero-section {

        min-height: auto;

        padding-top: 100px;

        background-position: 65% center;

    }


    .hero-content {

        padding: 50px 0 70px;

    }


    .hero-section h1 {

        font-size: 3rem;

    }


    .hero-subtitle {

        font-size: 1.2rem;

    }


    .hero-description {

        font-size: 14px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .hero-buttons .btn {

        width: 100%;

    }


    .hero-info-card {

        padding: 22px;

    }


    .stat-item {

        padding: 18px 12px;

        gap: 10px;

    }


    .stat-icon {

        width: 40px;
        height: 40px;

        font-size: 17px;

    }


    .stat-item strong {

        font-size: 21px;

    }


    .stat-item span {

        font-size: 11px;

    }


    .teams-match {

        gap: 15px;

    }


    .team-side {

        min-width: 100px;

    }


    .team-logo-placeholder {

        width: 60px;
        height: 60px;

    }


    .match-card {

        padding: 20px;

    }


    .contact-form-card {

        padding: 22px;

    }


    .footer-bottom {

        flex-direction: column;

        gap: 8px;

    }

}
/* ==========================================================
   EQUIPOS
========================================================== */

.equipo-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
}

.equipo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.10) !important;
}


/* Logo del equipo */

.equipo-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;

    background-color: #f2f4f8;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.equipo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.equipo-logo i {
    font-size: 4rem;
}


/* Logo dentro del modal */

.equipo-logo-modal {
    width: 140px;
    height: 140px;
}


/* Badge */

.bg-light-primary {
    background-color: rgba(67, 94, 190, 0.10);
}


/* Jugador */

.jugador-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;

    transition: all 0.2s ease;
}

.jugador-card:hover {
    background-color: #ffffff;
    border-color: #435ebe;
    transform: translateY(-2px);
}


/* Número de camiseta */

.jugador-numero {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background-color: #435ebe;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;
    font-weight: 700;

    flex-shrink: 0;
}


/* Botones de filtro */

.filtro-equipo {
    min-width: 100px;
}


/* Responsive */

@media (max-width: 576px) {

    .filtro-equipo {
        min-width: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .equipo-logo {
        width: 100px;
        height: 100px;
    }

}
/* ==========================================================
   CONTACTO
========================================================== */


/* ----------------------------------------------------------
   ICONOS DE CONTACTO
---------------------------------------------------------- */

.contacto-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background-color: rgba(67, 94, 190, 0.10);

    color: #435ebe;

    font-size: 1.4rem;

    flex-shrink: 0;
}


/* ----------------------------------------------------------
   MAPA
---------------------------------------------------------- */

.mapa-container {
    width: 100%;
    height: 280px;

    overflow: hidden;

    border-radius: 10px;
}


.mapa-placeholder {
    width: 100%;
    height: 100%;

    background-color: #f1f3f5;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: #6c757d;
}


.mapa-placeholder i {
    font-size: 3rem;

    color: #435ebe;
}


/* ----------------------------------------------------------
   DATOS DE CONTACTO
---------------------------------------------------------- */

.contacto-dato {
    display: flex;

    align-items: center;
}


.contacto-dato-icon {
    width: 42px;
    height: 42px;

    margin-right: 12px;

    border-radius: 8px;

    background-color: #f1f3f5;

    color: #435ebe;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


/* ----------------------------------------------------------
   HORARIOS
---------------------------------------------------------- */

.horario-card {
    background-color: #ffffff;

    border: 1px solid #e9ecef;

    border-radius: 10px;

    padding: 25px 15px;

    height: 100%;

    transition: all 0.2s ease;
}


.horario-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}


.horario-card > i {
    font-size: 1.8rem;

    color: #435ebe;
}


/* ----------------------------------------------------------
   ORGANIZADORES
---------------------------------------------------------- */

.organizador-card {
    overflow: hidden;

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.organizador-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 1rem 2rem rgba(0, 0, 0, 0.10) !important;
}


/* FOTO */

.organizador-foto {
    height: 230px;

    background-color: #f1f3f5;

    overflow: hidden;
}


.organizador-foto img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.organizador-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;
}


.organizador-placeholder i {
    font-size: 6rem;

    color: #adb5bd;
}


/* INFORMACIÓN */

.organizador-contacto {
    color: #6c757d;

    font-size: 0.9rem;
}


/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 576px) {

    .mapa-container {
        height: 230px;
    }


    .organizador-foto {
        height: 250px;
    }


    .contacto-dato {
        align-items: flex-start;
    }

}