*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

:root{
    --bg-color: #ffffff;
    --text-color: #000;
    --secound-color: #a09dab;
    --main-color: #8ddbd5;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 30px 18%;
    transition: .3s;
}

.logo{
    max-width: 100%;
    width: 130px;
    height: auto;
}



.navlist{
    display: flex;
}

.navlist li{
    position: relative;
}

.navlist a{
    font-size: var(--p-font);
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 27px;
}

.navlist a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #24ddce;
    bottom: -3px;
    left: 0;
    transition: ease .40s;
}

.navlist a:hover::after{
    width: 100%;
}

#menu-icon{
    font-size: 35px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.top-btn{
    display: inline-block;
    padding: 9px 30px;
    background: transparent;
    border: 2px solid #0dafcc;
    border-radius: 30px;
    color: var(--text-color);
    letter-spacing: 1px;
    font-size: var(--p-font);
    font-weight: 500;
    transition: ease .50s;
}

.top-btn:hover{
    transform: scale(1.1);
    background: #AED6F1;
    border: 2px solid #AED6F1;
    color: var(--bg-color);
}

section{
    padding: 100px 18%;
}

.home{
    min-height: 90vh;
    height: 100%;
    width: 100%;
    background: url(../img/Home.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 4rem;
}

.home-text h1{
    margin: 10 px 0px 25px;
    font-size: var(--big-font);
    line-height: 1;
    font-weight: 500;
    color: black;
}

.home-text h5{
    margin-bottom: 23px;
    font-size: 19px;
    font-weight: 500;
    color: black;
}

span{
    color: black;
}

.home-text h3{
    color: black;
    font-size: 20px;
    font-weight: 500;
}

.home-text p{
    font-size: var(--p-font);
    color:blacks;
    line-height: 28px;
    margin-bottom: 20px;
}

.social a{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1cafaf;
    font-size: 17px;
    color: var(--bg-color);
    margin-right: 22px;
    margin-bottom: 30px;
}

.social a:hover{
    transform: scale(1.1);
    background: #38e9e9;
    transition: .5s;
}

.btn{
    display: inline-block;
    color: var(--bg-color);
    background: #0dafcc;
    font-size: var(--p-font);
    padding: 10px 40px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 30px;
    transition: ease .40s;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.1);
    cursor: pointer;
}

.home-img img{
    max-width: 100%;
    width: 540px;
    height: auto;
}

header.sticky{
    background: var(--bg-color);
    padding: 20px 15%;
    box-shadow: 0px 0px 10px rgb(0 0 0 /10%);
}

.search-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#searchBar {
    width: 200px; /* Ajusta el tamaño de la barra */
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.search-button {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #0dafcc;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-button:hover {
    background-color: #2596aa;
}

/* Estilo para el contenedor del carrusel */
.carousel-container {
    display: flex; /* Usamos Flexbox para que las cartas se alineen horizontalmente */
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten cuando no hay espacio suficiente */
    gap: 20px; /* Espacio entre las tarjetas */
    justify-content: space-between; /* Distribuye las tarjetas con espacio entre ellas */
    padding: 20px; /* Espacio interior del contenedor */
}

/* Botón de cotización */
.cotizar-btn {
        margin-top: auto; /* Empuja el botón hacia abajo */
        padding: 8px 15px;
        background-color: #0dafcc;
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        border: none;
}

.cotizar-btn:hover {
    background-color: #2198ad;
}


.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 40px;
}

.carousel-container {
    display: flex;
    flex-direction: row; /* Asegura dirección horizontal */
    flex-wrap: nowrap; /* Evita que las tarjetas se envuelvan */
    gap: 20px;
    transition: transform 0.3s ease;
}

/* Ajuste general de las tarjetas del carrusel */
.carousel .product {
    display: flex;
    flex-direction: column; /* Todo el contenido de la tarjeta en columna */
    align-items: center; /* Centra el contenido horizontalmente */
    justify-content: space-between; /* Distribuye uniformemente el contenido */
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    min-height: 350px; /* Altura mínima uniforme para todas las tarjetas */
    max-height: 400px; /* Altura máxima opcional para evitar tarjetas muy grandes */
}

/* Ajuste de las imágenes dentro de las tarjetas */
.carousel .product img {
    width: 100%; /* Ocupa el ancho completo del contenedor */
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: contain; /* Escala la imagen manteniendo proporciones */
    margin-bottom: 10px; /* Espaciado debajo de la imagen */
}

/* Controles del carrusel */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

/* Controles del carrusel */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #a3d7e0;
    color: #000000;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 70%;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev { left: 5px; }
.carousel-next { right: 5px; }

/* Asegura que el contenedor de productos no se estire verticalmente */
.products.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}  

/* Botón de información */
.toggle-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #14c9e0;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 0;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 120px;
    border-radius: 5px 0 0 5px;
    writing-mode: vertical-rl;
    text-align: center;
    z-index: 1000;
}


/* Footer */
#informacion-footer {
    background-color: #4c535a;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

h3 {
    border-bottom: 2px solid #b3b7b9;
    padding-bottom: 5px;
    margin-bottom: 15px;
}


  
.side-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}
  
.side-button button {
    background-color: #000000;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
  
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
  
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}
  
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
.countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
  
.timer {
    margin: 0 10px;
    text-align: center;
}
  
.timer div {
    font-size: 36px;
    font-weight: bold;
}
  
.call-to-action {
    margin-top: 10px;
}

.text-container {
    margin-top: 20px;
    text-align: center;
  }
  
  .text-container p {
    font-size: 16px;
  }


.ends{
    text-align: center;
    padding: 30px;
}

.ends p{
    font-size: var(--p-font);
    letter-spacing: 1px;
}

/* General Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black background with opacity */
}

/* Modal Content */
.modal-content {
    background: #ffffff; /* White background */
    margin: 10% auto; /* Center the modal */
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Strong shadow for depth */
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* Close Button */
.close {
    color: #333;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #0077b6; /* Deep blue */
    text-decoration: none;
}

/* Modal Heading */
.modal-content h2 {
    margin: 0 0 20px;
    text-align: center;
    color: #000000; /* Deep blue heading */
    font-size: 26px;
    font-weight: bold;
    border-bottom: 2px solid #0dafcc; /* Blue underline */
    padding-bottom: 10px;
}

/* Form Elements */
.modal-content label {
    display: block;
    margin: 12px 0 5px;
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #cccccc; /* Neutral border */
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    background: #f9f9f9; /* Light gray background */
    color: #333;
}

.modal-content textarea {
    height: 100px;
    resize: none;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #0dafcc; /* Deep blue focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 119, 182, 0.5); /* Blue glow */
}

/* Button */
.modal-content button {
    width: 100%;
    padding: 12px;
    background: #0dafcc; /* Solid blue button */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-content button:hover {
    background: #2cb4cc; /* Slightly darker blue on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Contenedor del modal */
.modal-contenido {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 400px; /* más estrecho para video vertical */
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

/* Botón de cierre */
.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 1001;
}

.cerrar:hover {
  color: #fff;
}

/* Video dentro del modal */
.modal-contenido video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Fondo suave opción C */
.contacto {
    background: linear-gradient(to right, #dbeafe, #ecfdf5);
    padding: 60px 20px;
    color: #111;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    animation: slideUpFade 1s ease-out forwards;
}

@media (max-width: 768px) {
  .logo {
    display: none;
  }
}

/* Animación entrada */
@keyframes slideUpFade {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.container-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.texto-contacto h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.texto-contacto h3 span {
    color: #0d9488; /* Verde azulado suave */
}

.texto-contacto p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #444;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-button:hover {
    background-color: #1ebc5a;
    transform: scale(1.05);
}

.icono {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .texto-contacto h3 {
        font-size: 1.5rem;
    }

    .whatsapp-button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        max-height: 70%;
    }

    .logo{
        display: none;
    }
}


/* Estilo base para pantallas grandes: Máximo 4 productos visibles */
.carousel .product {
    flex: 0 0 calc(25% - 15px); /* 4 productos (100% / 4 = 25%) */
}

/* Para pantallas medianas (tablets o pantallas más pequeñas) */
@media (max-width: 1024px) {
    .carousel .product {
        flex: 0 0 calc(33.33% - 15px); /* 3 productos visibles (100% / 3) */
    }

    .logo{
        display: block;
    }
}

/* Para pantallas pequeñas (smartphones grandes, 768px o menos) */
@media (max-width: 768px) {
    .carousel .product {
        flex: 0 0 calc(50% - 15px); /* 2 productos visibles (100% / 2) */
    }

    .logo{
        display: none;
    }
}

/* Para pantallas muy pequeñas (smartphones pequeños, 480px o menos) */
@media (max-width: 480px) {
    .carousel .product {
        flex: 0 0 calc(100% - 15px); /* 1 producto visible (100%) */
    }

    .logo{
        display: none;
    }
}

@media (max-width: 991px){
    .submenu:hover #carrito{
        min-width: 100%;
    }

    .products{
        padding: 0 30px 30px 30px;
    }

    .products h2{
        margin-bottom: 30px;
    }

    .product-content{
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .product img{
        width: 200px;
        height: 280px;
    }

    .logo{
        display: block;
    }
}



@media (max-width: 1425px){
    header{
        padding: 16px 3%;
        transition: .3s;
    }

    header.sticky{
        padding: 10px 3%;
        transition: .3s;
    }

    section{
        padding: 70px 3%;
        transition: .3s;
    }

    .contacto{
        width: 95%;
        transition: .3s;
    }

    :root{
        --big-font: 4rem;
        --h2-font: 2.3rem;
        --p-font: 1rem;
        transition: .3s;
    }

    .whatsapp-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .logo{
        display: block;
    }
}

@media (max-width: 970px){
    #menu-icon{
        display: block;
    }

    .home{
        min-height: 80vh;
    }

    .navlist{
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--main-color);
        text-align: right;
        transition: all .40s;
    }

    .navlist a{
        display: block;
        padding: 1.2rem;
        margin: 1.5rem;
        border-right: 2px solid var(--bg-color);
        color: var(--bg-color);
    }

    .navlist a:hover{
        background: var(--bg-color);
        color: var(--main-color);
    }

    .navlist a::after{
        display: none;
    }

    .navlist.active{
        top: 100%;
    }

    .whatsapp-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .logo{
        display: none;
    }
}

@media (max-width: 800px){
    .home{
        grid-template-columns: 1fr;
        min-height: 130vh;
        grid-gap: 1rem;
    }

    .home-text{
        padding-top: 55px;
    }

    .home-img{
        text-align: center;
    }

    .home-img img{
        width: 440px;
        height: auto;
    }

    .about{
        grid-template-columns: 1fr ;
    }

    .about-img{
        text-align: center;
        margin-bottom: 30px;
    }

    :root{
        --big-font: 3.4rem;
        --h2-font: 2rem;
    }

    section{
        padding: 65px 3%;
        transition: .3s;
    }
    

    .whatsapp-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .logo{
        display: none;
    }
}

@media (max-width: 540px){
    .contacto .input-button-group [type=email] {
        width: 310px;
    }

    .whatsapp-button {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .logo{
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #informacion-footer {
        flex-direction: column;
        align-items: center;
    }

    .logo{
        display: none;
    }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1024px) {
    .carousel .product {
        flex: 0 0 calc(33.33% - 15px); /* 3 productos por fila */
        min-height: 320px; /* Ajuste la altura mínima */
    }

    .carousel .product img {
        height: 180px; /* Ajusta la altura de las imágenes */
    }
}

/* Ajustes para pantallas pequeñas (tablets o smartphones grandes) */
@media (max-width: 768px) {
    .carousel .product {
        flex: 0 0 calc(50% - 15px); /* 2 productos por fila */
        min-height: 300px; /* Altura mínima reducida */
    }

    .carousel .product img {
        height: 160px; /* Ajusta la altura de las imágenes */
    }
}

/* Ajustes para pantallas muy pequeñas (smartphones pequeños) */
@media (max-width: 480px) {
    .carousel .product {
        flex: 0 0 calc(100% - 15px); /* 1 producto por fila */
        min-height: 280px; /* Altura mínima aún más reducida */
    }

    .carousel .product img {
        height: 140px; /* Ajusta la altura de las imágenes */
    }
}
