/* =====================================================
   EXPOTEC III - Landing Page CSS
   ===================================================== */

/* ─── Navbar ─── */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.navbar-custom.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow);
}

/* ─── Hero Section ─── */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.541);
    color: #fff;
}

.hero-title span {
    color: var(--accent);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    color: #ffffff41;
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-slow);
    max-height: 85vh;
    width: auto;
    object-fit: contain;
}

.hero-image-wrapper:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* ─── Countdown ─── */
.countdown-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 15px 20px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.countdown-item p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 1;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ─── About Section ─── */
.about-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.feature-card {
    padding: 30px;
    text-align: center;
    height: 100%;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(13, 27, 74, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-600);
    margin: 0;
}

/* ─── Sponsors Marquee ─── */
.sponsors-section {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.sponsors-section h4 {
    color: var(--gray-500) !important;
    font-weight: 700;
}

.sponsors-marquee-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.sponsors-marquee {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
}

.sponsors-section .sponsors-marquee {
    animation-direction: reverse;
}

.sponsors-marquee:hover {
    animation-play-state: paused;
}

.sponsor-logo {
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 280px;
    padding: 10px;
    margin: 0 15px;
}

.sponsor-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.sponsor-logo img,
.sponsor-logo a img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Estilo minimalista para logos en Auspiciadores (blanco puro, escala de grises) */
.sponsors-section .sponsor-logo {
    height: 170px;
    width: 340px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}

.sponsors-section .sponsor-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%) opacity(1);
}

/* Estilo específico para logos en Participantes (fondo claro) */
.participantes-section .sponsor-logo {
    margin: 0 10px;
}

.participantes-section .sponsor-logo:hover {
    transform: scale(1.08);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── Participantes Section ─── */
.participantes-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border-top: 1px solid var(--gray-200);
    box-shadow: inset 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.participantes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(13, 27, 74, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 121, 107, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ─── Footer ─── */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-image-wrapper {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .countdown-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-text {
        text-align: center;
    }
}