: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;
}

#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;
}

.presentation {
    position: relative;
    width: 100%;
    height: 506px;
}

.presentation img {
    width: 80%;
    display: block;
    height: 506px;
    object-fit: cover;
    margin-top: 3%;
    margin-left: 10%;

}


.presentation::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Opacidad negra */
    z-index: 1;
    /* Asegura que la capa de opacidad esté detrás del texto */
    left: 20%;
    top: 20%;
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Asegura que el texto esté delante de la capa de opacidad */
    text-align: center;
    /* Centrar el texto horizontalmente */
    color: white;
    /* Color del texto */
}

.text h1 {
    font-size: 3em;
    font-weight: bold;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-bottom: 0.5em;
    color: white;
}

.text p {
    font-size: 1.5rem;
    margin-bottom: 1em;
    font-weight: bold;
}

/* PRDUCTOS */
.section {
    text-align: center;
    padding: 20px;
    background-color: #F3F0F0;
    margin-top: 5%;
}

.section h2 {
    font-size: 25px;
    margin-bottom: 20px;
}

.circle-container {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo oscuro semitransparente */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Transición suave */
}

.overlay p {
    font-size: 16px;
    text-align: center;
    margin: 0;
}

.circle:hover .overlay {
    opacity: 1;
    /* Mostrar overlay al hacer hover */
}

/*SECTION DE QUIEN SOMOS*/
.section-box {
    position: relative;
    width: 80%;
    height: 400px;
    /* Ajusta la altura según sea necesario */
    background-image: url(../assets/SOJA2.webp);
    /* Aquí deberías poner la URL de tu imagen */
    background-size: cover;
    background-position: center;
    margin-bottom: 5%;
    display: flex;
    margin: 7% auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo oscuro con opacidad */
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-90%, -50%);
    height: 450px;
    width: 600px;
    /* Ajusta el ancho según sea necesario */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fondo semitransparente */
    color: white;
}

.content h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 5%;
}

.content p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ccc;
    color: black;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background-color: #9b9898;
}


/*Acerca de nosotros*/
.section-box-two {
    position: relative;
    width: 80%;
    height: 400px;
    /* Ajusta la altura según sea necesario */
    background-image: url(../assets/ACEITE\(3\).webp);
    /* Aquí deberías poner la URL de tu imagen */
    background-size: cover;
    background-position: center;
    margin-bottom: 5%;
    display: flex;
    margin: 7% auto;
}

.content-two {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%);
    height: 450px;
    width: 600px;
    /* Ajusta el ancho según sea necesario */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fondo semitransparente */
    color: white;
}

.content-two h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10%;
    margin-bottom: 15px;
}

.content-two p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 5%;
}

/*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;
}


.inferior-info p, .inferior-info a {
    margin-bottom: 0.5rem;
}

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

.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: 20px;
    font-size: 14px;
    font-weight: bold;
    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;
    }

    .presentation img {
        width: 100%;
        margin: 0;
    }

    .presentation{
        margin-top: 23%;
    }

    .presentation::before {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .text p {
        font-size: 1rem;
    }

    .circle {
        width: 140px;
        height: 140px;
    }

    .section {
        margin-top: -5%;
    }

    .section h2 {
        margin-top: 15%;
    }

    .content {
        width: 100%;
    }

    .content-two {
        width: 100%;
    }

    .content-two p{
        font-size: 12px;
    }

    .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%;
    }
}

/* Para pantallas medianas, como tablets (768px a 1024px) */
@media (max-width: 1024px) {
    .content {
        width: 100%;
        height: auto;
        transform: translate(-50%, -50%);
        padding: 20px;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    .btn {
        margin: 0 40%;
    }

    .content-two {
        width: 100%;
        height: auto;
        transform: translate(-50%, -50%);
        padding: 20px;
    }

    .content-two h2 {
        font-size: 1.6rem;
    }

    .content-two p {
        font-size: 0.8rem;
    }
}

/* Para pantallas pequeñas, como teléfonos móviles*/

@media (min-width:320px) and (max-width:480px) {
    .content {
        width: 100%;
        height: auto;
        transform: translate(-50%, -50%);
        padding: 26px;
    }

    .content h2 {
        font-size: 1rem;
    }

    .content p {
        font-size: 0.8rem;
    }

    .btn {
        margin: 0 30%;
    }

    .circle {
        width: 120px; /* Ajusta a tu medida */
        height: 120px; /* Asegúrate de que sea igual al width */
        border-radius: 50%; /* Hace que sea un círculo */
        overflow: hidden; /* Esconde cualquier parte de la imagen fuera del círculo */
    }

    .content-two {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        padding: 30px;
    }

    .content-two h2 {
        font-size: 1rem;
        margin-bottom: 4%;
        text-align: start;
    }

    .content-two p {
        font-size: 0.8rem;
        justify-content: center;
        margin-bottom: 6%;
    }


    .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 {
        font-size: 1rem;
        display: flex;
        justify-content: center;
    }

    .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;
    }

    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%;
    }
}