:root {
    --color-principal-texto: #1f1f1f; 
    --color-secundario-texto: #444444; 
    --color-fondo: #f5f5f5; 
    --color-texto: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f1f1;
}

/* Estilos para todos los navegadores */
::-webkit-scrollbar {
    width: 8px; /* Ancho de la barra */
    background-color: #222; /* Color de fondo */
}

/* Estilos específicos para WebKit (Chrome, Safari, Opera) */
::-webkit-scrollbar-thumb {
    background-color: #555; /* Color del pulgar (parte deslizable) */
    border-radius: 4px; /* Bordes redondeados del pulgar */
}

/* Estilo para el popup */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup {
    position: absolute;
    background: #ffffff00;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1100;
    max-width: 600px;
    width: 80%;
}

.popup img {
    width: 100%;
    border-radius: 10px;
}
.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Header transparente */
.transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 1000;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.5s, padding 0.5s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transparent-header.scrolled {
    background-color: rgb(255, 255, 255); /* Fondo más oscuro */
    padding: 0px; /* Padding reducido al hacer scroll */
}

/* Parte superior del header */
.header-top {
    background-color: #f3f3f3;
    text-align: center;
    padding: 2px;
    font-size: 16px;
    color: #333;
    width: 100%;
}

/* Parte inferior del header */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: padding 0.5s;
    width: 100%;
}

.header-bottom.scrolled {
    padding: 3px;
}

/* Header con pre-header (ajuste dinámico) */
.transparent-header.with-pre-header .header-bottom {
    margin-top: 0; /* Asegura que se ajusta sin solaparse */
}


.logo img {
    width: auto;
    height: 60px;
    margin-left: 30px;
}


.main-nav ul {
    list-style: none;
    display: flex;
    margin-right: 30px;
}

.main-nav .actual-link {
    color: #128C3D;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #128C3D;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s ease;
}

.main-nav ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 110px;
    right: 20px;
    background: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s, transform 0.5s;
}

.main-nav ul.scrolled {
    top: 70px;
}

.main-nav ul.show li {
    margin: 10px 0;
    margin-left: -40px;
}

.main-nav ul.show a {
    color: rgb(0, 0, 0);
}

.main-nav li.show {
    margin-left: 60px;
}

.link-with-line {
    position: relative;
}

.carrito{
    display: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}



/* Estilos del footer */
.prefooter, .footer {
    background-color: rgb(31, 31, 31);
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Línea blanca sobre el prefooter */
.prefooter .line {
    width: 80%;
    height: 0.8px;
    background-color: rgb(255, 255, 255); 
    margin: 0 auto;
    margin-top: 50px;
}

/* Estilo del contenedor principal del prefooter */
.prefooter-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra verticalmente */
    flex-wrap: wrap;
    padding: 20px 0;
    text-align: center; /* Centra el contenido de ambas secciones */
}

/* Sección izquierda del prefooter */
.prefooter-left {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra el contenido de esta sección */
}

.prefooter-left h3 {
    margin-bottom: 10px;
    font-size: 1.8em;
}

/* Estilos para los iconos de redes sociales */
.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 1.8em;
}

.social-icons a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #d3d3d3;
}

/* Sección derecha del prefooter */
.prefooter-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra el contenido de esta sección */
}

.prefooter-right h3 {
    margin-bottom: 10px;
    font-size: clamp(1em, 4vw, 1.5em);
}

/* Estilos para el formulario en la sección derecha */
.prefooter-right form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el formulario */
    gap: 10px;
}

.prefooter-right input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 300px; /* Asegura que el input no se haga más grande que este tamaño */
}

.prefooter-right button {
    padding: 10px 20px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    max-width: 300px;
}

.prefooter-right button:hover {
    background-color: #d62828;
}

/* Footer */
.footer {
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1050px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #000000fa;
        z-index: 1;
        padding: 0;
        margin: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.5s, transform 0.5s;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
        margin-left: -60px;
    }
    
    .main-nav a {
        color: #ffffff;
        padding: 15px 0;
        display: block;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        cursor: pointer;
        margin: 20px;
        margin-right: 40px;
    }
    
    .hamburger .bar {
        width: 100%;
        height: 3px;
        background-color: #000000;
        transition: all 0.3s ease;
    }
    
    .hamburger.clicked .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 9px);
    }
    
    .hamburger.clicked .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.clicked .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -9px);
    }
    
    /* Estilos cuando el menú está expandido */
    .main-nav ul.show {
        display: flex;
        opacity: 1;
        transform: translateY(0); /* Vuelve a su posición original */
    }

    .carrito {
        display: flex;
        position: absolute;
        top: 50%; /* Centrado verticalmente */
        right: 80px; /* Apegado a la derecha */
        transform: translateY(-50%); /* Ajuste para centrar perfectamente */
        z-index: 100; /* Asegura que esté por encima de otros elementos */
        font-size: 30px;
    }

    .carrito .fa-shopping-cart{
        color: #000;
    }
}


@media (max-width: 800px) {


    .prefooter-container {
        flex-direction: column;
        text-align: center;
    }

    .prefooter-left, .prefooter-right {
        width: 100%;
        margin-bottom: 20px;
    }

    .prefooter-right {
        text-align: center;
    }
    

}

@media (max-width: 500px) {

    .logo img {
        width: auto;
        height: 40px;
        margin-left: 5px;
    }
}

/* Contenedor principal */
.container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    margin-top: 120px;
}

/* Estilos de los contenedores */
.container {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Títulos de sección */
.section-title h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* Texto general */
.container3 p {
    font-size: 1rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* Sección Misión y Visión */
.mission-vision {
    background-color: #f9f9f9;
    border-left: 4px solid #128C3D;
    padding: 20px;
}

/* ----- RESPONSIVE DESIGN ----- */

/* Tablets (pantallas hasta 1024px) */
@media screen and (max-width: 1024px) {
    .container3 {
        padding: 20px;
    }

    .container {
        padding: 25px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .container3 p {
        font-size: 1rem;
    }
}

/* Móviles (pantallas hasta 768px) */
@media screen and (max-width: 768px) {
    .container3 {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .container3 p {
        font-size: 0.95rem;
    }
}

/* Smartphones pequeños (pantallas hasta 480px) */
@media screen and (max-width: 480px) {
    .container3 {
        padding: 10px;
        margin-top: 150px;
    }

    .container {
        padding: 15px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .container3 p {
        font-size: 0.9rem;
    }
}