/* Estilos generales */
:root {
    --primary-color: #87CC3E; /* TOYO 0244 - Color institucional femtribe */
    --secondary-color: #000000; /* NEGRO COMPUESTO - Color institucional femtribe */
    --accent-color: #87CC3E;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --white-color: #ffffff;
}

body { 
    background: var(--light-color); 
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Componentes */
.card { 
    border-radius: 10px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Header y navegación */
.navbar {
    padding: 0px 0; /* Ultra compacto */
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Menú hamburguesa personalizado */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(135, 204, 62, 0.25);
}

.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%28135, 204, 62, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Menú colapsable mejorado */
.navbar-collapse {
    background-color: transparent;
    border-radius: 10px;
    margin-top: 10px;
    padding: 20px;
    box-shadow: none;
}

.navbar-nav {
    text-align: left;
    width: 100%;
}

.navbar-nav .nav-item {
    margin-bottom: 8px;
    border-bottom: none !important;
    padding-bottom: 8px;
}

.navbar-nav .nav-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateX(5px);
}

.navbar-nav .btn {
    margin-top: 10px;
    background-color: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
    background-color: var(--secondary-color);
    color: white !important;
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Ocultar iconos en escritorio por defecto */
.navbar-nav .nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    display: none;
}

/* Mostrar iconos solo en móvil cuando el navbar está colapsado */
@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav .nav-link i {
        display: inline-block;
    }
}

/* Asegurar que los iconos estén ocultos en escritorio */
@media (min-width: 992px) {
    .navbar-nav .nav-link i {
        display: none !important;
    }
}

.navbar-nav .btn {
    margin-top: 10px;
    background-color: white;
    color: var(--primary-color) !important;
    border: 2px solid white;
    font-weight: 600;
}

.navbar-nav .btn:hover {
    background-color: var(--secondary-color);
    color: white !important;
    border-color: var(--secondary-color);
}

/* Hero section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #333;
    border-color: #333;
    transform: scale(1.05);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

/* Secciones */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    display: none;
}

/* Categorías */
.category-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 250px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    color: white;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-description {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Cuenta regresiva */
.countdown-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: inline-block;
}

.countdown-item {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    display: block;
    min-width: 70px;
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 5px;
    text-transform: uppercase;
    color: #ddd;
}

/* Cuenta regresiva estilo moderno */
.modern-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.modern-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modern-countdown-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.modern-countdown-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
        min-width: 50px;
    }
    
    /* Hero section responsive */
    .hero-content {
        padding: 20px;
    }
    
    .hero-content img {
        max-height: 200px !important;
    }
    
    .modern-countdown {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modern-countdown-number {
        font-size: 2.5rem;
    }
    
    .modern-countdown-label {
        font-size: 0.8rem;
    }
    
    /* Video section responsive */
    .video-container {
        margin-bottom: 30px !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Content grid responsive */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-wrapper-horizontal {
        padding: 1.5rem;
    }
    
    .map-info-content h4 {
        font-size: 1.2rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    /* Beneficios responsivos */
    .benefit-item {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .benefit-image {
        max-width: 60px;
        height: auto;
        margin-bottom: 10px;
    }
    
    .benefit-text h4 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    /* Footer responsive */
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 8px;
    }
    
    /* Ajustes para pantallas muy pequeñas */
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content img {
        max-height: 150px !important;
    }
    
    .modern-countdown-number {
        font-size: 2rem;
    }
    
    .modern-countdown-label {
        font-size: 0.7rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .map-wrapper-horizontal {
        padding: 1rem;
    }
    
    .map-info-content h4 {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .map-badges .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .benefit-image {
        max-width: 50px;
    }
    
    .benefit-text h4 {
        font-size: 0.8rem;
    }
    
    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .benefits-title-main {
        font-size: 1.8rem;
    }
    
    .benefits-title-subtitle {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Footer responsive para móviles */
    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .social-icons {
        text-align: center;
        margin-top: 1rem;
    }
    
    .social-icons a {
        width: 30px;
        height: 30px;
        line-height: 30px;
        margin: 0 5px;
    }
    
    .copyright .row {
        text-align: center;
    }
    
    .copyright .col-md-6 {
        margin-bottom: 10px;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
}

/* Sponsors Section Styles */
/* Sponsors Section - Carousel with Box Design */
.sponsors-section {
    background-color: #f8f9fa !important;
}

.sponsors-carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.sponsors-carousel-container {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 60px;
    overflow: hidden;
}

.sponsors-track-container {
    overflow: hidden;
    width: 100%;
}

.sponsors-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 40px;
}

.sponsor-item {
    flex: 0 0 150px;
    min-width: 150px;
}

.sponsor-logo-container {
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    text-align: center;
}

.sponsor-logo-container:hover {
    transform: translateY(-5px);
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sponsor-logo-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sponsor-logo-container:hover .sponsor-logo-small {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.sponsor-name-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
}

.sponsor-logo-container:hover .sponsor-name-small {
    color: var(--primary-color);
}

/* Navigation Arrows */
.sponsors-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sponsors-nav:hover {
    background: #2c5530;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.sponsors-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.sponsors-nav-prev {
    left: 15px;
}

.sponsors-nav-next {
    right: 15px;
}

/* Responsive adjustments for sponsors carousel */
@media (max-width: 768px) {
    .sponsors-carousel-container {
        padding: 30px 50px;
    }
    
    .sponsor-item {
        flex: 0 0 120px;
        min-width: 120px;
    }
    
    .sponsors-track {
        gap: 30px;
    }
    
    .sponsor-logo-small {
        width: 50px;
        height: 50px;
    }
    
    .sponsor-name-small {
        font-size: 0.8rem;
    }
    
    .sponsor-logo-container {
        padding: 15px;
    }
    
    .sponsors-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .sponsors-nav-prev {
        left: 10px;
    }
    
    .sponsors-nav-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .sponsors-carousel-container {
        padding: 25px 45px;
    }
    
    .sponsor-item {
        flex: 0 0 100px;
        min-width: 100px;
    }
    
    .sponsors-track {
        gap: 25px;
    }
    
    .sponsor-logo-small {
        width: 40px;
        height: 40px;
    }
    
    .sponsor-name-small {
        font-size: 0.75rem;
    }
    
    .sponsor-logo-container {
        padding: 10px;
    }
    
    .sponsors-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
