/* Estilos Globales */
body {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    overflow-x: hidden;
    background-image: url("img/b_home.webp");
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0) 100%);
    padding: 15px 20px;
    z-index: 100;
    transition: background 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

.main-header.solid {
    background-color: #080808;
    background-image: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo img {
    height: 45px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-right: 20px;
}

.main-nav {
    display: none;
    flex-grow: 1;
}

.main-nav.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(8, 8, 8, 0.95);
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.menu-links li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.menu-links li:last-child {
    border-bottom: none;
}

.menu-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    display: block;
}

.social-icons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-icons li {
    margin-left: 15px;
}

.social-icons li:first-child {
    margin-left: 0;
}

.social-icons li a img {
    height: 25px;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F9F9F9;
    background-image: url("img/b_home_1_mobile.webp"); /* Imagen por defecto para móviles */
    background-size: cover;
    background-position: top;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 80%;
}

.hero-content h1 {
    font-size: calc(5vw + 20px) !important; /* Aumentar el tamaño mínimo a 20px */
    margin: 10px 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block;
    font-weight: 300;
}

.hero-content h1.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 .font-weight-bold {
    font-weight: 600;
    opacity: 0;
    animation: fade-in 0.5s forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.main-footer {
    background-color: #f8f8f8;
    padding: 30px 20px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
}

.social-links img {
    height: 30px;
}

/* Bottom Sections (ÖSAN, Malanga Mulli, Gargod) */
.bottom-osan-digital-section,
.malanga-mulli-section,
.gargod-section {
    position: relative;
    overflow: hidden;
    color: #333;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-osan-digital-background,
.malanga-mulli-background,
.gargod-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.bottom-osan-digital-background {
    background-image: url('img/b_home_os.webp');
}

.malanga-mulli-background {
    background-image: url('img/b_home_mm.webp');
}

.gargod-background {
    background-image: url('img/b_home_gg.webp');
}

.bottom-osan-digital-content,
.malanga-mulli-content,
.gargod-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.bottom-osan-digital-content .bottom-column,
.malanga-mulli-content .bottom-column,
.gargod-content .bottom-column {
    flex: 1 1 300px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.bottom-osan-digital-content .left,
.malanga-mulli-content .left,
.gargod-content .left {
    text-align: center;
}

.bottom-osan-digital-content .left img,
.malanga-mulli-content .left img,
.gargod-content .left img {
    max-width: 80%;
    height: auto;
}

.bottom-osan-digital-content .right,
.malanga-mulli-content .right,
.gargod-content .right {
    text-align: left;
}

.bottom-osan-digital-content h2,
.malanga-mulli-content h2,
.gargod-content h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: #080808;
}

.malanga-mulli-content h2,
.gargod-content h2 {
    color: #F9F9F9;
}

.bottom-osan-digital-content h3 {
    font-size: 1.8em;
    color: #555;
    margin-bottom: 0;
    font-weight: 600;
}

.malanga-mulli-content h3,
.gargod-content h3 {
    color: #F9F9F9;
}

.bottom-osan-digital-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.malanga-mulli-content p,
.gargod-content p {
    color: #F9F9F9;
}

.bottom-learn-more-btn {
    background-color: #080808;
    color: #F9F9F9;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.bottom-learn-more-btn:hover {
    background-color: #333;
}

.adult-warning {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* WhatsApp CTA Section */
.whatsapp-cta-section {
    background-image: url("img/b_home.webp");
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-cta-content {
    max-width: 800px;
    width: 100%;
}

.whatsapp-cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.whatsapp-cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #25D366;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #e0f7ea;
}

.whatsapp-icon {
    height: 24px;
    margin-right: 10px;
}

/* Media Queries */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        position: static;
        background-color: transparent;
    }

    .menu-links {
        flex-direction: row;
        align-items: center;
        width: auto;
        text-align: left;
    }

    .menu-links li {
        margin: 0 15px;
        padding: 0;
        border-bottom: none;
    }

    .menu-toggle {
        display: none;
    }

    .bottom-osan-digital-content,
    .malanga-mulli-content,
    .gargod-content {
        flex-direction: row;
    }

    .bottom-osan-digital-content .bottom-column,
    .malanga-mulli-content .bottom-column,
    .gargod-content .bottom-column {
        width: auto;
        text-align: left;
    }

    .bottom-osan-digital-content h2,
    .malanga-mulli-content h2,
    .gargod-content h2 {
        font-size: 2.5em;
    }

    .bottom-osan-digital-content p,
    .malanga-mulli-content p,
    .gargod-content p {
        font-size: 1.1em;
    }

    .whatsapp-cta-section {
        flex-direction: row;
        text-align: left;
    }

    .whatsapp-cta-content h2 {
        font-size: 2.5em;
    }

    .whatsapp-cta-content p {
        font-size: 1.2em;
    }

    .hero {
        background-image: url("img/b_home_1_desktop.webp"); /* Imagen para escritorio */
    }
}

@media (max-width: 575.98px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(8, 8, 8, 0.95);
    }

    .menu-links {
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
    }

    .menu-links li {
        margin-left: 0;
        margin-bottom: 5px;
    }

    .social-icons {
        margin-left: 0;
    }

    .hero-content h1 {
        font-size: 5vw;
        margin: 10px 0;
        line-height: 1.2;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: block;
        font-weight: 300;
    }

    .hero-content h1.show {
        opacity: 1;
        transform: translateY(0);
    }

    .font-weight-bold {
        font-weight: 600;
    }

    .bottom-osan-digital-content,
    .malanga-mulli-content,
    .gargod-content {
        flex-direction: column;
    }

    .bottom-osan-digital-content .bottom-column,
    .malanga-mulli-content .bottom-column,
    .gargod-content .bottom-column {
        width: 100%;
        text-align: center;
    }

    .bottom-osan-digital-content h2,
    .malanga-mulli-content h2,
    .gargod-content h2 {
        font-size: 2em;
    }

    .bottom-osan-digital-content p,
    .malanga-mulli-content p,
    .gargod-content p {
        font-size: 1em;
    }

    .whatsapp-cta-section {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-cta-content h2 {
        font-size: 2em;
    }

    .whatsapp-cta-content p {
        font-size: 1em;
    }

    .whatsapp-button {
        width: auto;
    }

    .hero {
        background-image: url("img/b_home_1_mobile.webp"); /* Imagen para móviles */
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero {
        background-image: url("img/b_home_1_tablet.webp"); /* Imagen para tabletas */
    }
}

/* --- Nuevos estilos para las secciones de marcas y aliados --- */

/* Nueva sección: Conoce nuestras marcas */
.our-brands-section {
    padding: 20px; /* Ajustado el padding a 20px en todos los lados */
    text-align: center;
    background-color: #080808; /* Fondo negro sólido */
    color: #F9F9F9; /* Color de texto blanco */
}

.our-brands-section h2 {
    font-size: 2.8em; /* Tamaño de fuente más grande */
    font-weight: 800; /* Mayor peso de fuente */
    margin-bottom: 60px; /* Espacio debajo del título */
    color: #F9F9F9; /* Asegura que el color del título también sea blanco */
}

/* Nueva sección: Nuestros aliados comerciales */
.allies-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f0f0f0; /* Color de fondo distinto y más claro para diferenciar */
    color: #333;
}

.allies-section h2 {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 60px;
    color: #080808;
}

.allies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 40px; /* Espacio entre los elementos de la cuadrícula */
    max-width: 1200px;
    margin: 0 auto;
}

.ally-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinea el contenido de cada tarjeta arriba */
    text-align: center;
}

.ally-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ally-item a {
    text-decoration: none;
    color: inherit; /* Hereda el color del texto de ally-item */
    display: block; /* Para que todo el bloque sea clickeable */
    width: 100%;
}

.ally-item img {
    max-width: 120px; /* Tamaño máximo del logo */
    height: auto;
    margin-bottom: 20px;
    max-height: 80px; /* Para logos que puedan ser muy verticales */
    object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
}

.ally-item h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #080808;
}

.ally-item p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* Para que los párrafos ocupen el espacio restante y las tarjetas tengan altura similar */
}

/* Nueva sección: ÖSAN Gaming (similar a otras secciones principales) */
.osan-gaming-section {
    position: relative;
    overflow: hidden;
    color: #F9F9F9; /* Texto blanco para este fondo */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.osan-gaming-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Para el efecto parallax */
    background-image: url('img/b_home_gaming.webp'); /* Usar tu imagen de fondo aquí */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.osan-gaming-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.osan-gaming-content .bottom-column {
    flex: 1 1 300px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.osan-gaming-content .left {
    text-align: center;
}

.osan-gaming-content .left img {
    max-width: 80%; /* Ajusta el tamaño del logo si es necesario */
    height: auto;
}

.osan-gaming-content .right {
    text-align: left;
}

.osan-gaming-content h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: #F9F9F9; /* Título blanco */
}

.osan-gaming-content h3 {
    font-size: 1.8em;
    color: #F9F9F9; /* Subtítulo blanco */
    margin-bottom: 0;
    font-weight: 600;
}

.osan-gaming-content p {
    line-height: 1.6;
    color: #F9F9F9; /* Párrafos blancos */
    margin-bottom: 30px;
    font-weight: 300;
}

/* Para el botón en ÖSAN Gaming */
.osan-gaming-section .bottom-learn-more-btn {
    background-color: #F9F9F9; /* Botón blanco */
    color: #080808; /* Texto negro */
}

.osan-gaming-section .bottom-learn-more-btn:hover {
    background-color: #ccc; /* Hover más oscuro */
}


/* Media Queries para ajustar la fuente de los títulos de las nuevas secciones */
@media (max-width: 767.98px) {
    .our-brands-section h2,
    .allies-section h2,
    .osan-gaming-section h2 {
        font-size: 2em;
    }
}