:root {
    /* Colores primarios */
    --primary-orange: #e74d1b;
    --primary-teal: #014f4d;
    --primary-amber: #f39718;
    --primary-red: #942e2e;

    /* Colores secundarios */
    --secondary-green: #19441e;
    --secondary-cream: #feebb8;
    --secondary-turquoise: #48b7a8;
    --secondary-emerald: #007d46;

    /* Tipografía */
    --font-primary: 'Noto Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    background-color: #f8f9fa;
    color: #212529;
}

.el11-main {
    padding-top: 80px;
}

.el11-main.no-padding-top {
    padding-top: 0;
}

/* ============= TOAST NOTIFICATIONS ============= */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
}

@media (min-width: 576px) {
    .toast-container {
        width: 380px;
    }
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: toastSlideIn 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    transform: translateX(120%);
    opacity: 0;
}

.toast-notification.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes toastSlideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.toast-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.toast-close:active {
    background: #d1d5db;
}

/* ============= HEADER ============= */
.main-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    box-shadow: 0 4px 12px rgba(1, 79, 77, 0.15);
    position: relative;
    z-index: 1000;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    height: auto;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    display: flex;
    align-items: center;
}

.header-sticky.hide {
    transform: translateY(-100%);
}

.header-sticky.active {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 0;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white !important;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-cream) !important;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 38px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 32px;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-cream) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-amber);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-default {
    background: var(--primary-orange);
    color: white;
    font-weight: 800;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-default:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 77, 27, 0.3);
    color: white;
}

.btn-default::before,
.btn-default::after {
    display: none !important;
}

.user-dropdown-toggle {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--secondary-cream) !important;
}

/* Mobile Menu Styling - Improved Global Fix */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-teal) 100%);
        margin: 0;
        padding: 1.5rem;
        border-radius: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 1001;
    }

    .navbar-nav {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        text-align: center;
        width: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: var(--secondary-cream) !important;
    }

    .nav-link::after {
        display: none !important;
    }

    .user-dropdown-toggle {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15) !important;
        padding: 0.8rem !important;
        border-radius: 12px !important;
    }
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(254, 235, 184, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============= HERO SECTION ============= */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-green) 50%, var(--primary-red) 100%);
    position: relative;
    padding: 8rem 0 4rem;
}

.hero-bg {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px);
    opacity: 0.3;
}


@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-icon-wrapper {
    animation: bounce 2s infinite;
    margin-bottom: 2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-icon {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.hero-icon img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .hero-icon img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-icon img {
        max-width: 160px;
    }
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-weight: 600;
    opacity: 0.95;
}

.hero-cta-text {
    color: var(--secondary-cream) !important;
    font-weight: 800;
}

.btn-warning,
.btn-danger {
    border: none;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-warning {
    background: var(--primary-amber);
}

.btn-warning:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 151, 24, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-teal) !important;
    transform: translateY(-3px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-cream);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ============= FEATURES SECTION ============= */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-amber);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bg-warning {
    background-color: var(--primary-amber) !important;
}

.bg-primary {
    background-color: var(--secondary-turquoise) !important;
}

.bg-success {
    background-color: var(--secondary-emerald) !important;
}

.how-it-works-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    border-radius: 30px;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

/* ============= CTA SECTION ============= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
}

/* ============= ALBUM SECTION ============= */
.album-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.album-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-amber) 25%,
            var(--primary-orange) 50%,
            var(--primary-amber) 75%,
            transparent 100%);
}

.album-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.album-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.album-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.album-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(1, 79, 77, 0.1) 0%,
            rgba(231, 77, 27, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 30px;
}

.album-image-wrapper:hover::after {
    opacity: 1;
}

.album-content {
    padding: 2rem;
}

.album-content h2 {
    color: var(--primary-teal);
}

.album-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.album-features li {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: #495057;
    font-size: 1.05rem;
}

.album-features svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--secondary-emerald);
}

.album-features strong {
    color: var(--primary-teal);
}

.btn-outline-secondary {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 79, 77, 0.3);
}

@media (max-width: 991px) {
    .album-content {
        padding: 1rem 0;
        text-align: center;
    }

    .album-features li {
        justify-content: center;
    }

    .album-image-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .album-content .btn-lg {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

/* ============= CENEFAS ============= */
.cenefa-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 0;
    line-height: 0;
}

.cenefa-image {
    width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
}

/* Cenefa 1 - Después del Hero */
.cenefa-1 {
    background: linear-gradient(to bottom,
            var(--primary-teal) 0%,
            var(--secondary-turquoise) 50%,
            #f8f9fa 100%);
    padding: 2rem 0;
}

.cenefa-1 .cenefa-image {
    max-height: 80px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Cenefa 2 - Después de Features */
.cenefa-2 {
    background: linear-gradient(to bottom,
            #ffffff 0%,
            rgba(254, 235, 184, 0.3) 50%,
            #ffffff 100%);
    padding: 2.5rem 0;
}

.cenefa-2 .cenefa-image {
    max-height: 100px;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
}

/* Cenefa 3 - Antes del CTA */
.cenefa-3 {
    background: linear-gradient(to bottom,
            #ffffff 0%,
            rgba(231, 77, 27, 0.1) 50%,
            rgba(148, 46, 46, 0.1) 100%);
    padding: 2rem 0;
}

.cenefa-3 .cenefa-image {
    max-height: 90px;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.12));
}

/* Responsive cenefas */
@media (max-width: 768px) {

    .cenefa-1,
    .cenefa-2,
    .cenefa-3 {
        padding: 1rem 0;
    }

    .cenefa-1 .cenefa-image {
        max-height: 60px;
    }

    .cenefa-2 .cenefa-image {
        max-height: 70px;
    }

    .cenefa-3 .cenefa-image {
        max-height: 65px;
    }
}

@media (max-width: 480px) {

    .cenefa-1,
    .cenefa-2,
    .cenefa-3 {
        padding: 0.75rem 0;
    }

    .cenefa-1 .cenefa-image {
        max-height: 45px;
    }

    .cenefa-2 .cenefa-image {
        max-height: 55px;
    }

    .cenefa-3 .cenefa-image {
        max-height: 50px;
    }

    /* Opción: Ocultar cenefas en móviles muy pequeños si prefieres */
    /* .cenefa-container {
        display: none;
    } */
}

.text-warning {
    color: var(--primary-amber) !important;
}

.badge.bg-warning {
    background-color: var(--primary-amber) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .how-it-works-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem;
    }

    .hero-title {
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }
}

/* ============= FOOTER ============= */
.main-footer {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(1, 79, 77, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-amber);
    transform: translateY(-3px);
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-left: unset;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-amber);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============= EXPLORE PAGE ============= */

/* Explore Header */
.explore-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    padding: 7rem 0 3rem;
    /* Extra top padding to account for fixed header */
    position: relative;
    overflow: hidden;
}

.explore-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px);
    opacity: 0.3;
}

.explore-header-decoration-circle-1,
.explore-header-decoration-circle-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.explore-header-decoration-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-amber);
    top: -100px;
    right: -100px;
}

.explore-header-decoration-circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-turquoise);
    bottom: -50px;
    left: -50px;
}

.explore-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.explore-header-title {
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.explore-header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Cenefa for Explore */
.cenefa-explore {
    background: linear-gradient(to bottom,
            var(--primary-teal) 0%,
            var(--secondary-turquoise) 50%,
            #f8f9fa 100%);
    padding: 2rem 0;
}

.cenefa-explore .cenefa-image {
    max-height: 80px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
}

.search-input-group .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-input-group .form-control:focus {
    border-color: var(--primary-amber);
    box-shadow: 0 0 0 0.2rem rgba(243, 151, 24, 0.15);
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-teal);
    z-index: 10;
}

.filter-select {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-amber);
    box-shadow: 0 0 0 0.2rem rgba(243, 151, 24, 0.15);
}

.btn-filter {
    background: var(--primary-teal);
    color: white;
    font-weight: 800;
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: var(--primary-amber);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 151, 24, 0.4);
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, var(--secondary-emerald) 0%, var(--secondary-turquoise) 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-box {
    text-align: center;
    color: white;
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.stat-box .stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

/* Lineup Cards */
.lineup-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out both;
}

.lineup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-amber);
}

.lineup-card-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-turquoise) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lineup-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lineup-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lineup-date i {
    margin-right: 0.5rem;
}

.lineup-title {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.lineup-author {
    color: var(--secondary-cream);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.lineup-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.lineup-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.formation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-orange) 100%);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(243, 151, 24, 0.3);
    align-self: flex-start;
}

.lineup-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 2px solid #f8f9fa;
    border-bottom: 2px solid #f8f9fa;
    margin-top: auto;
}

.lineup-stat-item {
    text-align: center;
}

.lineup-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 0.25rem;
}

.lineup-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lineup-card-footer {
    padding: 1.5rem;
    padding-top: 1rem;
}

.btn-view-lineup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary-amber);
    color: white;
    font-weight: 800;
    padding: 0.9rem 1.5rem;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    width: 100%;
}

.btn-view-lineup:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(231, 77, 27, 0.4);
}

.btn-view-lineup i {
    font-size: 1.1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.pagination-wrapper .pagination {
    gap: 0.5rem;
}

.pagination-wrapper .page-link {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: white;
}

.pagination-wrapper .page-item.disabled .page-link {
    border-color: #e9ecef;
    color: #adb5bd;
}

/* Empty State */
.empty-state-card {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-turquoise) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    opacity: 0.3;
}

.empty-state-icon i {
    font-size: 3rem;
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .explore-header {
        padding: 6rem 0 2rem;
        /* Adjusted for mobile with fixed header */
    }

    .cenefa-explore .cenefa-image {
        max-height: 50px;
    }

    .stat-box .stat-number {
        font-size: 2rem;
    }

    .lineup-title {
        font-size: 1.25rem;
    }

    .stats-bar {
        padding: 1.5rem 0;
    }

    .filters-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .stat-box {
        margin-bottom: 1rem;
    }

    .lineup-date {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .formation-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .explore-header-title {
        font-size: 2rem;
    }

    .pagination-wrapper .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============= RESULTS PAGE ============= */

/* Category Header - Improved readability */
.category-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.category-title>div:last-child>div:first-child {
    font-size: 1.4rem;
    font-weight: 800;
}

.category-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .category-header {
        padding: 1.25rem 1.5rem;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .category-title>div:last-child>div:first-child {
        font-size: 1.2rem;
    }
}