:root{
    --color-primario: rgb(12,53,45);
    --color-secundario: rgb(255, 241, 241);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: Arial, sans-serif;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500px;
    font-family: sans-serif;
    padding: 10px 15%;
    background-color: var(--color-primario);
}

nav a {
    text-decoration: none !important;
    color: white !important;
    position: relative;
    border-bottom: none !important; /* Utiliza !important para asegurarte de que este estilo se aplique */
    outline: none; /* Elimina el contorno al hacer clic en el enlace */
    box-shadow: none; /* Elimina cualquier sombra alrededor del enlace */
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    /* Ajusta el tamaño de la línea según sea necesario */
    left: 0;
    width: 100%;
    height: 2px;
    /* Ajusta el grosor de la línea según sea necesario */
    background-color: black;
}


nav .logo{
    height: 5rem;
    color: var(--color-primario);
}

.list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: auto;
}

#toggler,
label {
    display: none;
}

label i {
    color: black;
}

label img {
    height: 40px;
    width: 40px;
}

/* Estilo para la imagen x-blanca */
.x-blanca {
    width: 60px;
    height: 60px;
}
/*SECCION PRODUCTOS*/



.producto-data{
    background-color: white;
    display: flex;
    flex-direction: column;
    margin-top: 5%;
}

.section-dos{
    margin-top: -20%;
}

.producto-data h2, h1{
    margin: 20px auto;
    font-weight: bold;
    font-size: 36px;
}

.producto-data p{
    width: 55%;
    text-align: center;
    margin: auto;
    font-size: 18px;
}

.img{
    width: 40%;
    height: 40%;
}

.image-container {
    position: relative;
    width: 100%; /* Esto hará que el contenedor ocupe un poco más del ancho */
    max-width: 1000px; /* Limita el ancho máximo del contenedor */
    height: 800px;
    margin: 5% auto; /* Asegura que esté centrado */
    margin-bottom: -18%;
}

.image-container img {
    width: 100%;
    height: 60%;
    display: block;
    object-fit: cover;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* El overlay oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60%;
}

.text {
    color: white;
    font-size: 2rem;
    text-align: center;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
}


/*FOOTER*/
.footer {
    width: 100%;
}

.footer-gral {
    background-color: black;
    color: white;
    padding: 3rem 1rem;
}

.general {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.general h2 {
    font-size: 2.5rem;
    font-weight: bold;
}


.general .linea1 {
    width: 400px;
    height: 2px;
    background-color: white;
}

.general .linea2 {
    width: 400px;
    height: 2px;
    background-color: white;
}

.inferior-one {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20rem;
    margin-top: -4%;
}

.inferior-info {
    text-align: center;
}

.inferior-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: bold;
}


.inferior-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.inferior-info p{
    margin-bottom: 0;
}

.email-links {
    display: flex;
    flex-direction: column;
}
.inferior-info a:hover {
    transform: scale(1.2);
}

.footer .parrafo {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    margin: 0 auto;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/*RESPONSIVE */
@media screen and (max-width: 770px) {

    .menu {
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    label {
        display: inline-flex;
    }

    #toggler:checked~.menu {
        max-height: 100%;
    }

    .list {
        flex-direction: column;
        align-items: center;
        padding: 25px;
        transition: all;
    }

    nav .logo{
        width: 80px;
        height: 80px;
    }

    .carousel-item img{
        height: 70%;
    }

    .text {
        font-size: 1.5rem; /* Ajusta el tamaño del texto para pantallas más pequeñas */
    }

    .producto-data p{
        width: 90%;
    }

    /* .section-productos{
        margin-bottom: 67%;
    } */

    .footer{
        display: flex;
        flex-direction: column;
    }

    header nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
    }
    
    #carouselExampleAutoplaying{
        margin-top: 14%;
    }

    
}

@media (min-width:320px) and (max-width: 480px) {
    header nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
    }
    
    #carouselExampleAutoplaying{
        margin-top: 24%;
    }
    
    .text {
        font-size: 1rem; /* Más pequeño aún para pantallas móviles pequeñas */
    }

    .footer{
        width: 100%;
    }

    .footer-gral{
        background-color: black;
        color: white;
        display: flex;
        flex-direction: column;
        }

    .general{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .general .linea1{
        width: 200px;
    }

    .general .linea2{
        width: 200px;
    }

    .inferior-one{
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .inferior-info{
        margin: 6% 0;
    }

    .inferior-info h3{
        display: flex;
        justify-content: center;
        font-size: 1rem;
    }

    .inferior-info p{
        font-size: 0.9rem;
    }

    .parrafo{
        justify-content: center;
        text-align: center;
        padding: 20px;
        font-size: 12px;
        font-weight: bold;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .image-container{
        margin-bottom: -50%;
        height: 600px;
    }

    .image-container img{
        height: 350px;
        width: 100%;
        background-size: cover;
        background-position: center;
    }

    .overlay{
        height: 350px;
        width: 100%;
    }

    .content{
        height: 400px;
    }

}
