@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Desplazamiento Suave (Smooth Scroll) */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-color:#F7EFD8 ;
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 100px 0;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #8DC84B;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #333128;
    display: block;
    font-weight: 600;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.submenu {
    position: relative;
}

.submenu #carrito {
    display: none;
}

.submenu:hover #carrito {
    display: block;
    position: absolute;
    right: 0;
    backdrop-filter: blur(10px); 
    top: 100%;
    z-index: 1;
    background-color: #4E4B5076;
    padding: 20px;
    min-width: 400px;
    /* Flex para organizar los botones del carrito */
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

/* Asegura que la tabla y los botones ocupen el ancho completo del carrito */
.submenu #carrito table {
    margin-bottom: 10px; 
}

/* Estilo general para btn-2 y el nuevo btn-4 */
.btn-2, .btn-4 {
    display: block; 
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Estilo específico para el nuevo botón "Comprar Ahora" */
.btn-4 {
    background-color: #E67E22; 
    color: #FFFFFF;
    border: none;
    font-size: 16px;
}

.btn-4:hover {
    background-color: #d35400; 
}

table {
    width: 100%;
}

th, td {
    color: #FFFFFF;
}

.borrar {
    background-color: #8DC84B;
    border-radius: 50%;
    padding: 5px 10px;
    color: #FFFFFF;
    font-weight: 800;
    cursor: pointer;
}

/* --- REGLA DE HOVER PRINCIPAL: Aplica el color más oscuro al pasar el ratón --- */
.btn-1:hover, .btn-2:hover, .btn-3:hover {
    background-color: #6da238; 
}
/* ----------------------------------------------------------------------------- */

.header-content {
    display: flex;
}

.header-txt {
    flex-basis: 50%;
}

.header-txt span {
    font-size: 16px;
    color: #8DC84B;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.header-txt h1 {
    font-size: 55px;
    line-height: 1;
    color: #333128;
    margin-bottom: 25px;
}

p {
    font-size: 16px;
    color: #181713;
    margin-bottom: 45px;
}

.btn-1 {
    display: inline-block;
    padding: 13px 25px;
    color: #FFFFFF;
    border-radius: 25px;
    background-color: #8DC84B;
    text-transform: capitalize;
    /* Transición agregada/confirmada */
    transition: background-color 0.3s; 
}

.header-img {
    flex-basis: 50%;
    text-align: center;
}

.header-img img {
    width: 400px;
}

.information {
    width: 70%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 25px 75px;
    margin-top: -75px;
    background-color: #FFFFFF;
    margin-left: auto;
    margin-right: auto;
}

.information-content {
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.information-1 img {
    width: 35px;
}

h3 {
    font-size: 17px;
    color: #181713;
    text-transform: capitalize;
}

.information-1 p {
    margin-bottom: 0;
}

.oferts {
    padding: 100px 0;
    display: flex;
    justify-content: space-between;
}

.ofert-1 {
    text-align: center;
    flex-basis: calc(25% - 20px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) ;
    padding: 35px;
}

.ofert-1 img {
    width: 140px;
    margin-bottom: 10px;
}

.ofert-1 p {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #8DC84B;
}

.products {
    padding: 0 0 100px 0;
    text-align: center;
}

.products h2 {
    font-size: 40px;
    color: #181713;
    text-transform: capitalize;
    margin-bottom: 30px; 
}

/* Estilos para la barra de búsqueda */
.search-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px; 
}

#searchInput {
    width: 50%; 
    max-width: 600px;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid #8DC84B;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

#searchInput:focus {
    border-color: #5a8a30; 
}

.product-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.product {
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 35px;
}

.product img {
    width: 150px;
    height: 130px;
    margin-bottom: 10px;
    object-fit: cover; 
}

.product h3 {
    color: #8DC84B;
}

.product p {
    font-size: 15px;
    margin: 0;
    color: #181713;
    font-weight: 600;
}

/* El botón Agregar usa btn-2 */
.btn-2 {
    display: inline-block;
    margin-top: 15px;
    padding: 7px 25px;
    color: #FFFFFF;
    background-color: #8DC84B;
    /* Transición agregada/confirmada */
    transition: background-color 0.3s; 
}

/* Galería de Instalaciones */
.gallery {
    padding: 100px 0;
    text-align: center;
}

.gallery h2 {
    font-size: 40px;
    color: #181713;
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 18px;
    color: #8DC84B;
    margin-bottom: 50px;
    font-weight: 600;
}

.gallery-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.service {
    padding-bottom: 100px;
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
}

.service-1 {
    flex-basis: 30%;
    padding: 25px;
    background-color: #FAF2DD;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store {
    width: 300px;
    height: 250px;
    object-fit: cover;
}

.service-2 {
    flex-basis: 40%;
    padding: 25px;
    background-color: #ddfacc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-3 {
    flex-basis: 30%;
    padding: 25px;
    background-color: #fde5fd;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   SECCIÓN DE CONTACTO ACTUALIZADA
   ============================================ */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #8DC84B 0%, #6da238 100%);
}

.contact h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Formulario */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

/* Campos de entrada (input y textarea) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

/* Efecto al hacer foco en los campos */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8DC84B;
    box-shadow: 0 0 0 3px rgba(141, 200, 75, 0.1);
}

/* Área de texto específica */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

/* Botón de envío del formulario de contacto */
.contact-form .btn-3 {
    width: 100%;
    padding: 15px 30px;
    background: #8DC84B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 0;
}

.contact-form .btn-3:hover {
    background: #6da238;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 200, 75, 0.4);
}

/* Estilos de inputs generales (para otros formularios si existen) */
input {
    padding: 17px 35px;
    border-radius: 25px;
    border: 1px solid #8DC84B;
    outline: none;
}

.btn-3 {
    margin-left: 10px;
    color: #FFFFFF;
    background-color: #8DC84B;
    transition: background-color 0.3s; 
}

.footer {
    padding: 50px 0;
    background-color: #8DC84B;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.link h3 {
    color: #FFFFFF;
    font-size: 17px;
    margin-bottom: 10px;
}

.link a {
    color: #F3F3F3;
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
}

.link a:hover {
    color: #FFFFFF;
}

@media (max-width:991px) {
    
    .menu {
        padding: 30px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #303030;
        display: none;
    }

    .menu .navbar ul li {
        width: 100%;
    }

    .menu .navbar ul li a{
        color: #FFFFFF;
    }

    .logo {
        display: none;
    }

    #menu:checked ~ .navbar {
        display: initial;
    }

    .submenu:hover #carrito {
        min-width: 340px;
    }

    .header {
        min-height: 0vh;
        padding: 100px 30px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-txt {
        margin-bottom: 20px;
    }

    .header-img img {
        width: 300px;
    }

    .information {
        display: none;
    }

    .oferts {
        padding: 30px;
        flex-direction: column;
    }

    .ofert-1 {
        margin-bottom: 25px;
    }

    .products {
        padding: 30px;
    }
    
    .search-bar {
        margin-bottom: 20px;
    }
    #searchInput {
        width: 90%;
        max-width: none;
    }

    .product-content {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery {
        padding: 30px;
    }
    
    .gallery-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }

    .service {
        flex-direction: column;
    }

    /* Responsive para formulario de contacto */
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }

    .footer {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}