﻿/* Contenedor con imagen de fondo */
.menu-inicio {
    font-family: 'Ropa Sans', sans-serif;
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-bottom: -0.5rem;
}

.logo-container img {
    height: clamp(40px, 8vw, 80px);
    width: auto;
}

/* Imagen de fondo */
.fondo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    margin-bottom: -4px;
}

/* Navbar fija arriba */
.custom-navbar {
    width: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 0.5rem 2rem;
    z-index: 1000;
}

/* Estilos del botón fijo centrado */
.center-button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
}

.center-button {
    display: inline-block;
    font-family: 'Ropa Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: white;
    background-color: black;
    padding: 1rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: 2px solid white; /* Asegura que tenga el borde como los botones de menú */
    width: auto;
    max-width: 300px; /* Puedes ajustar esto si necesitas un tamaño fijo */
}

    .center-button:hover {
        background-color: white;
        color: black;
    }

/* Menú principal */
.main-menu {
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Botones del menú */
.nav-link {
    font-family: 'Ropa Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: white;
    text-decoration: none;
    background-color: black;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

    .nav-link:hover {
        background-color: white;
        color: black;
    }

/* Redes sociales */
.social-menu {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.social-link {
    background-color: black;
    border-radius: 50%;
    width: clamp(2rem, 4vw, 2.5rem);
    height: clamp(2rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .social-link i {
        color: white;
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .social-link:hover {
        background-color: white;
    }

        .social-link:hover i {
            color: black;
        }

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

@media (max-width: 768px) {

    .menu-inicio {
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        height: auto;
    }

    .fondo-img {
        width: 100%;
        height: auto;
        max-height: 100vh;
        object-fit: cover;
        object-position: center;
        margin-bottom: -4px;
    }

    .custom-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
    }

    .main-menu {
        display: none;
        align-items: center;
        justify-content: center;
        width: 100%;
        background-color: rgba(0,0,0,0.9);
        position: absolute;
        top: 100%;
        left: 0;
        gap: 0;
    }

        .main-menu.open {
            display: flex;
        }

    .social-menu {
        justify-content: center;
    }

    .nav-link {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }

    .center-button-container {
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 30%;
        z-index: 2000;
    }

    .center-button {
        font-size: 0.6rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
    }
}

}
