: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;
}

/*content1*/
.content1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin-top: 150px;
}

.product-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 98%;
    margin: 0 auto;
}

.arriba {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%; /* Ocupa el 100% */
    margin: 0 auto;
}

.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%; /* 48% para mantener espacio entre columnas */
    max-width: 400px;
    margin-right: 2%;
}

.main-image {
    position: relative;
    width: 100%; /* Ajuste para ocupar todo el espacio asignado */
    padding-bottom: 100%; /* Relación de aspecto 1:1 */
    overflow: hidden;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.thumbnail-images {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.7;
}

.thumbnail-images img:hover {
    opacity: 1;
}

.product-details {
    width: 48%; /* 48% para alinearse con las imágenes */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.price {
    font-size: 28px;
    color: #e63946;
    font-weight: bold;
    margin: 10px 0;
}

.add-to-cart {
    padding: 15px;
    background-color: #e63946;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.add-to-cart:hover {
    background-color: #d32f2f;
}

.abajo {
    width: 100%; /* Ocupa todo el ancho */
    margin-top: 20px;
}

.product-description {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
    text-align: justify;
}

/* Responsividad */
@media (max-width: 768px) {
    .arriba {
        flex-direction: column;
        align-items: center;
    }

    .product-images,
    .product-details {
        width: 100%; /* Ocupan todo el ancho */
        margin: 0 auto;
    }

    .thumbnail-images {
        justify-content: center;
    }

    .product-details {
        text-align: center;
        margin-top: 20px;
    }
}



/* 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;
    }
}