@import 'colors.css';

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
}

.carousel-indicators {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 10;
    padding: 0;
    margin: 0 !important;
    height: 4px;
    background: transparent !important;
    border: none !important;
    width: 100%;
}

.carousel-indicators .indicator {
    flex: 1;
    height: 100%;
    border: none !important;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
    margin: 0;
    padding: 0;
    opacity: 1;
}

.carousel-indicators .indicator:hover {
    background: rgba(255,255,255,0.6);
}

.carousel-indicators .indicator.active {
    background: var(--levante-red) !important;
}

.levante-blue { background-color: var(--levante-blue); }
.levante-blue-dark { background-color: var(--levante-dark); }
.levante-text { color: var(--levante-blue); }
.levante-text-light { color: var(--levante-light); }

.btn-levante {
    background-color: var(--levante-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-levante:hover {
    background-color: var(--levante-dark);
    color: var(--white);
}

.btn-outline-levante {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-outline-levante:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: var(--white);
}

.badge-levante {
    background-color: var(--levante-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.top-bar {
    background-color: var(--levante-red);
    padding: 8px 0;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-link {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--white) !important;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Permitir wrap en pantallas muy pequeñas */
}

.social-icon-link {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0; /* Evitar compresión y mantener forma circular */
}

.social-icon-link:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.15);
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
}

.navbar-levante {
    background-color: var(--levante-blue);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-levante > .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-levante .navbar-brand {
    order: 1;
    flex-shrink: 0;
}

.navbar-levante .navbar-mobile-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-levante .collapse {
    order: 3;
    flex-grow: 1;
}

.navbar-levante .search-form {
    order: 4;
    flex-shrink: 0;
}

.navbar-levante .header-icon.desktop-icon {
    order: 5;
    flex-shrink: 0;
}

.navbar-levante .language-select {
    order: 6;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .navbar-levante .collapse {
        order: 4;
        flex-basis: 100%;
        margin-top: 10px;
    }
    .navbar-levante .search-form,
    .navbar-levante .header-icon.desktop-icon,
    .navbar-levante .language-select {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar-levante .navbar-brand {
        order: 1;
        flex-shrink: 0;
    }
    .navbar-levante .navbar-mobile-actions {
        order: 2;
        margin-left: auto;
    }
    .navbar-levante .collapse {
        order: 3;
        flex-basis: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}

.navbar-levante.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-levante.sticky + * {
    margin-top: 0;
}

.nav-link-levante {
    color: var(--white) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.2s ease;
}

.nav-link-levante:hover {
    color: var(--levante-light) !important;
}

.nav-item.show > .nav-link-levante,
.nav-item.show > .nav-link-levante:hover {
    color: var(--white) !important;
    background-color: var(--levante-red) !important;
    border-radius: 6px;
}

.nav-link-levante.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    vertical-align: middle;
    border: none;
}

.dropdown-menu {
    background-color: var(--levante-blue);
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 0;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.dropdown-item {
    color: var(--white) !important;
    padding: 10px 20px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--levante-light) !important;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    margin-left: 0;
    border-radius: 8px;
}

.dropdown-submenu > .dropdown-toggle::after {
    content: "›";
    float: right;
    margin-left: 5px;
    font-size: 18px;
    line-height: 1;
    border: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-submenu .dropdown-menu.show {
    display: block;
}

.search-form {
    position: relative;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    color: var(--white);
    width: 200px;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    outline: none;
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 1;
}

.header-icon {
    color: var(--white);
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-icon:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.language-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
}

.language-select option {
    background: var(--levante-blue);
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    .section-title-lg {
        font-size: 1.5rem;
    }
    .top-bar-links {
        display: none;
    }
    .top-bar {
        padding: 5px 0;
    }
}

.hero-carousel {
    position: relative;
    height: 800px;
    overflow: hidden;
    user-select: none;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

.carousel-slide.prev,
.carousel-slide.next {
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(13,24,61,0.95) 0%, rgba(13,24,61,0.4) 60%, transparent 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0;
}

.slide-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(3px);
    width: 100%;
    padding: 0;
    max-height: 10%;
    overflow: hidden;
}

.slide-card-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

@media (min-width: 768px) {
    .slide-card-inner {
        padding: 40px 30px;
    }
}

@media (min-width: 1200px) {
    .slide-card-inner {
        padding: 50px 60px;
    }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-control:hover {
    background: rgba(255,255,255,0.2);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
}

.card-levante {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.card-levante:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.card-levante-img {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.card-levante-img.full-height {
    padding-top: 0;
    height: 100%;
}

.card-levante-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-levante:hover .card-levante-img img {
    transform: scale(1.05);
}

.card-img-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(13,24,61,0.95) 0%, rgba(13,24,61,0.5) 50%, transparent 100%);
}

.news-card {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.news-card-img {
    position: relative;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card .p-3 {
    padding: 20px;
}

.news-category {
    color: var(--levante-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.news-date {
    color: var(--text-medium);
    font-size: 0.8rem;
}

.section-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title-lg {
    font-size: 2rem;
}

.team-badge {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.match-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.match-item:last-child {
    border-bottom: none;
}

.match-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.match-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.competition-logo {
    height: 30px;
    width: auto;
}

.match-card-body {
    padding: 20px;
}

.match-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.match-team-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team-inline-badge {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
}

.score-home,
.score-away {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.score-separator {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.match-date-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.match-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.match-competition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.competition-logo-inline {
    height: 20px;
    width: auto;
}

.match-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.match-status.finished {
    background: rgba(0,0,0,0.08);
    color: var(--text-medium);
}

.match-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .match-card {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    .match-card:last-child {
        border-bottom: none;
    }
    .match-card-body {
        padding: 15px;
    }
    .team-inline-badge {
        width: 28px;
        height: 28px;
    }
    .team-name {
        font-size: 0.8rem;
    }
    .match-date-inline,
    .match-score {
        padding: 0 10px;
    }
    .score-home,
    .score-away {
        font-size: 1.2rem;
    }
    .match-time {
        font-size: 0.9rem;
    }
    .competition-logo-inline {
        height: 16px;
    }
}

@media (min-width: 577px) {
    .match-teams {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .match-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        flex: 1;
    }
    .match-team-badge {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }
    .match-vs {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    .match-vs-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--levante-blue);
    }
    .match-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }
    .matches-slider-section {
        background: var(--white);
        width: 100%;
        overflow: visible;
        position: relative;
    }

.matches-slider {
    position: relative;
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    overflow: visible;
}

.news-slider-section {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
}

.news-slider {
    position: relative;
    width: 100%;
    overflow: visible;
}

.news-slider-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-slider-track::-webkit-scrollbar {
    display: none;
}

.news-slide {
    flex: 0 0 calc(25% - 11.25px);
    min-width: 200px;
    scroll-snap-align: start;
}

.news-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--levante-blue);
}

.news-slider-btn:hover {
    background: var(--levante-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,86,164,0.3);
}

.news-slider-btn--prev {
    left: -50px;
}

.news-slider-btn--next {
    right: -50px;
}

    .matches-slider-track {
        position: relative;
        width: 100%;
        height: 260px;
        overflow: visible;
    }

    .matches-slide {
        position: absolute;
        top: 0;
        height: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        will-change: transform;
    }

    .matches-slide .match-card-slider {
        height: 100%;
    }

    .matches-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--white);
        border: none;
        box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        transition: all 0.3s ease;
        color: var(--levante-blue);
    }

    .matches-slider-btn:hover {
        background: var(--levante-blue);
        color: var(--white);
        box-shadow: 0 4px 15px rgba(0,86,164,0.3);
    }

    .matches-slider-btn--prev {
        left: -50px;
    }

    .matches-slider-btn--next {
        right: -50px;
    }
}

@media (max-width: 1400px) {
    .matches-slide {
        width: 25%;
    }
    .matches-slider-btn--prev {
        left: 10px;
    }
    .matches-slider-btn--next {
        right: 10px;
    }
    .news-slide {
        flex: 0 0 calc(25% - 11.25px);
        min-width: 200px;
    }
    .news-slider-btn--prev {
        left: 5px;
    }
    .news-slider-btn--next {
        right: 5px;
    }
}

@media (max-width: 1200px) {
    .matches-slide {
        width: 33.333%;
    }
    .matches-slider-btn--prev {
        left: 10px;
    }
    .matches-slider-btn--next {
        right: 10px;
    }
    .news-slide {
        flex: 0 0 calc(33.333% - 10px);
        min-width: 180px;
    }
    .news-slider-btn--prev {
        left: 5px;
    }
    .news-slider-btn--next {
        right: 5px;
    }
}

@media (max-width: 992px) {
    .matches-slide {
        width: 50%;
    }
    .matches-slider-btn {
        width: 36px;
        height: 36px;
    }
    .matches-slider-btn--prev {
        left: 5px;
    }
    .matches-slider-btn--next {
        right: 5px;
    }
    .news-slide {
        flex: 0 0 calc(50% - 7.5px);
        min-width: 160px;
    }
    .news-slider-btn {
        width: 36px;
        height: 36px;
    }
    .news-slider-btn--prev {
        left: 5px;
    }
    .news-slider-btn--next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .matches-slide {
        width: 100%;
    }
    .matches-slider-track {
        height: auto;
        min-height: 200px;
    }
    .matches-slider-btn {
        width: 32px;
        height: 32px;
    }
    .matches-slider-btn svg {
        width: 18px;
        height: 18px;
    }
    .matches-slider-btn--prev {
        left: 5px;
    }
    .matches-slider-btn--next {
        right: 5px;
    }
    .news-slide {
        flex: 0 0 calc(100% - 15px);
        min-width: 200px;
    }
    .news-slider-track {
        min-height: 200px;
    }
    .news-slider-btn {
        width: 32px;
        height: 32px;
    }
    .news-slider-btn svg {
        width: 18px;
        height: 18px;
    }
    .news-slider-btn--prev {
        left: 5px;
    }
    .news-slider-btn--next {
        right: 5px;
    }
}

.matches-slider {
    position: relative;
    overflow: visible;
}

.matches-slider-track {
    position: relative;
    width: 100%;
    height: 260px;
}

.matches-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    will-change: transform;
}

.matches-slide .match-card-slider {
    height: 100%;
}

@media (max-width: 1200px) {
    .matches-slide {
        width: 33.333%;
    }
}

@media (max-width: 992px) {
    .matches-slide {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .matches-slide {
        width: 100%;
    }
    .matches-slider-track {
        height: auto;
        min-height: 200px;
    }
}

.matches-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.matches-slider-track::-webkit-scrollbar {
    display: none;
}

.matches-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    scroll-snap-align: start;
}

.match-card-slider {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.match-card-slider:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.match-card-slider--upcoming {
    border: 2px solid var(--levante-blue);
}

.match-card-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--levante-blue);
}

.match-competition {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-day {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 10px;
}

.match-card-slider-body {
    padding: 20px 16px;
}

.match-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.match-team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.match-team-shield {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.match-team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

.match-result {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.match-result--upcoming {
    flex-direction: column;
    gap: 2px;
}

.score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.score-separator {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.match-result--upcoming .time {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--levante-blue);
}

.match-card-slider-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.match-venue {
    font-size: 0.75rem;
    color: var(--text-medium);
}

.match-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--levante-blue);
}

.matches-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--levante-blue);
}

.matches-slider-btn:hover {
    background: var(--levante-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,86,164,0.3);
}

.matches-slider-btn--prev {
    left: -50px;
}

.matches-slider-btn--next {
    right: -50px;
}

@media (max-width: 768px) {
    .matches-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
    }
    .match-team-shield {
        width: 40px;
        height: 40px;
    }
    .matches-slider-btn {
        width: 36px;
        height: 36px;
    }
    .matches-slider-btn--prev {
        left: 5px;
    }
    .matches-slider-btn--next {
        right: 5px;
    }
}

.matches-slider-btn:hover {
    background: var(--levante-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,86,164,0.3);
}

.matches-slider-btn--prev {
    left: -50px;
}

.matches-slider-btn--next {
    right: -50px;
}

@media (max-width: 768px) {
    .matches-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 200px;
    }
    .match-team-shield {
        width: 40px;
        height: 40px;
    }
    .score {
        font-size: 1.2rem;
    }
    .matches-slider-btn--prev {
        left: 5px;
    }
    .matches-slider-btn--next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .matches-slide {
        flex: 0 0 calc(100% - 20px);
        min-width: 260px;
    }
    .matches-slider-section {
        padding: 0;
    }
    .matches-slider-btn {
        width: 32px;
        height: 32px;
    }
    .matches-slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: var(--levante-blue);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background-color: var(--levante-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--white);
    margin-left: 4px;
}

.footer-levante {
    background-color: var(--levante-blue);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--white);
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 500px;
    }
    .carousel-indicators {
        height: 3px;
    }
    .slide-card-inner {
        padding: 20px 15px !important;
    }
    .slide-card h1 {
        font-size: 1.25rem !important;
    }
    .slide-card .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .carousel-control {
        width: 44px;
        height: 44px;
        top: 50%;
        transform: translateY(-50%);
    }
    .carousel-control svg {
        width: 20px;
        height: 20px;
    }
    .carousel-control.prev {
        left: 10px;
    }
    .carousel-control.next {
        right: 10px;
    }
    .carousel-slide {
        background-size: cover;
        background-position: center top;
    }
}

@media (min-width: 769px) {
    .mobile-icon {
        display: none !important;
    }
    .navbar-brand {
        margin-right: 30px;
    }
    .navbar-nav {
        gap: 5px;
    }
    .nav-link-levante {
        padding: 8px 12px !important;
    }
}

@media (min-width: 769px) {
    .navbar-levante:not(.desktop-navbar) {
        display: none !important;
    }
    .desktop-navbar {
        display: block !important;
    }
    .mobile-backdrop,
    .mobile-drawer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .desktop-navbar {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-icon {
        display: none !important;
    }
    .navbar-brand {
        margin-right: 30px;
    }
    .navbar-nav {
        gap: 5px;
    }
    .nav-link-levante {
        padding: 8px 12px !important;
    }
}

@media (max-width: 768px) {
    .mobile-navbar {
        display: flex !important;
    }
    .desktop-navbar {
        display: none !important;
    }

    /* Estilos mejorados para móvil */
    /* Asegurar que el drawer tiene color de fondo azul */
    .mobile-drawer,
    .mobile-drawer.active {
        background-color: var(--levante-blue) !important;
    }

    /* Estilos para imágenes en móvil - NO ocupar todo el ancho */
    .card-levante-img img,
    .news-card-img img,
    .gallery-card img,
    .video-card img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
    }

    /* Asegurar que galerías se adapten en móvil */
    .col-md-6,
    .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Ajustar altura de galería en móvil */
    .gallery-card img {
        height: 200px;
        object-fit: cover;
    }

    /* Ajustar videos en móvil */
    .video-card {
        margin-bottom: 15px;
    }

    .video-card img {
        width: 100%;
        height: auto;
    }

    /* Asegurar que las tarjetas de noticia se ven bien */
    .news-card {
        margin-bottom: 15px;
    }

    /* Corregir tarjetas de noticias principales */
    .col-lg-8,
    .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Padding en móvil */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .mobile-drawer {
        width: 90vw;
        max-width: 90vw;
    }

    .section-title-lg {
        font-size: 1.25rem;
    }

    .hero-carousel {
        height: 350px;
    }

    .slide-card-inner {
        padding: 15px 10px !important;
    }

    .slide-card h1 {
        font-size: 1rem !important;
    }

    .play-btn {
        width: 50px;
        height: 50px;
    }

    .play-icon {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 14px;
    }

    /* Imágenes de galería en pantallas muy pequeñas */
    .gallery-card img {
        height: 180px;
    }

    /* Ajustar videos */
    .video-card img {
        height: 200px;
    }
}

/* =========================================
   ESTILOS DE NAVEGACIÓN MÓVIL (RECONSTRUIDOS)
   ========================================= */

/* 1. Contenedor de la barra móvil */
.mobile-navbar {
    display: none; /* Oculto por defecto en escritorio */
    background-color: var(--levante-blue);
    padding: 10px 0;
    position: relative;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
}

/* 2. El Drawer (Menú lateral) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw; /* Que no ocupe toda la pantalla */
    height: 100vh;
    background-color: var(--levante-blue); /* Color de fondo AZUL recuperado */
    z-index: 1051;
    
    /* Lógica para ocultarlo/mostrarlo */
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
    
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

/* Cuando Javascript añade la clase .active, el menú entra */
.mobile-drawer.active {
    transform: translateX(0);
}

/* Cabecera del Drawer */
.mobile-drawer-header {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Empuja el botón de cerrar a la derecha */
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-color: var(--levante-dark);
    min-height: 70px; /* Asegura espacio suficiente */
}

.mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--levante-blue);
}

/* 3. El Backdrop (Fondo oscuro detrás del menú) */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 4. Elementos del menú (Links) */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-link, 
.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-link:hover,
.mobile-submenu-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Flecha para submenús */
.mobile-submenu-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.mobile-nav-item.expanded > .mobile-nav-link .mobile-submenu-arrow,
.has-submenu.expanded > .mobile-submenu-link .mobile-submenu-arrow {
    transform: rotate(90deg);
}

/* Submenús */
.mobile-submenu {
    display: none; /* Oculto por defecto */
    list-style: none;
    padding: 0;
    background-color: rgba(0,0,0,0.2); /* Fondo más oscuro para subniveles */
}

/* Mostrar submenú cuando el padre tiene la clase expanded */
.mobile-nav-item.expanded > .mobile-submenu,
.has-submenu.expanded > .mobile-submenu {
    display: block;
}

.mobile-submenu .mobile-submenu-link {
    padding-left: 35px; /* Indentación para nivel 2 */
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.mobile-submenu .mobile-submenu .mobile-submenu-link {
    padding-left: 50px; /* Indentación para nivel 3 */
}

/* 5. Botón Hamburguesa */
.hamburger-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Animación del botón hamburguesa a X */
.hamburger-btn.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.navbar-brand-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;       /* Nuevo: asegura centrado vertical */
    align-items: center; /* Nuevo: asegura centrado vertical */
}

/* ESTA ES LA REGLA NUEVA QUE FALTA */
.navbar-brand-centered img {
    height: 45px;       /* Fuerza el tamaño correcto */
    width: auto;
}

.mobile-drawer-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Técnica clásica de centrado exacto */
    height: 40px;
    width: auto;
    display: block;
}

.close-drawer-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente como el carousel */
    border: none;
    border-radius: 50%; /* Forma circular */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.close-drawer-btn:hover {
    background: rgba(255, 255, 255, 0.25); /* Más brillante al pasar el ratón */
    transform: rotate(90deg); /* Efecto de giro suave al interactuar */
}

.close-drawer-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5; /* Un poco más grueso para que se vea mejor */
}

/* 6. Media Queries para activar/desactivar según pantalla */
@media (max-width: 991px) {
    .mobile-navbar {
        display: flex !important; /* Mostrar en tablet/móvil */
    }
    .desktop-navbar {
        display: none !important; /* Ocultar el menú de escritorio */
    }
    
    /* Ajustes específicos para las tarjetas en móvil */
    .slide-card-inner {
        padding: 20px !important;
    }
    .slide-card h1 {
        font-size: 1.5rem !important;
    }
}

/* =========================================
   ESTILOS FOOTER DEL MENÚ MÓVIL
   ========================================= */

/* Línea divisoria */
.mobile-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    margin: 20px 0;
    width: 100%;
}

/* Contenedor de Redes Sociales */
.mobile-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Espacio ajustado para mejor distribución */
    padding: 10px 20px 25px;
    flex-wrap: wrap; /* Permitir que los botones se distribuyan en múltiples líneas si es necesario */
}

/* Botones de Redes Sociales */
.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05); /* Fondo sutil */
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0; /* Evitar que se compriman y mantengan su forma circular */
}

.mobile-social-link:hover {
    background-color: var(--levante-red); /* Color corporativo al pasar el ratón */
    border-color: var(--levante-red);
    transform: translateY(-5px); /* Se eleva un poco */
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.mobile-social-link svg {
    width: 20px;
    height: 20px;
}

/* Contenedor de Idiomas */
.mobile-language-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px 40px; /* Padding extra abajo para móviles con barra de gesto */
}

/* Botones de Idioma */
.mobile-lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    border-radius: 30px; /* Bordes muy redondeados (píldora) */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.mobile-lang-btn:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.mobile-lang-btn.active {
    background-color: var(--white);
    color: var(--levante-blue); /* Texto oscuro sobre fondo blanco */
    border-color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}