





*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;

}

body {
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    min-height: 80vh;
    background-color: #f5f5f5;
    padding: 70px 0 70px 0;
    margin-top: 70px;
}

.menu{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    background-color: #f5f5f5;
    padding: 12px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s;
}

.logo img {
    max-width: 150px; /* Reducir el ancho máximo de la imagen del logo */
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #111;
    display: block;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

/* ===== CARRITO DE COMPRAS ===== */
.submenu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Badge contador */
#carrito-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #82C427;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 3px;
    font-family: 'Poppins', sans-serif;
}

.submenu #carrito {
    display: none;
}

.submenu #carrito.carrito-abierto {
    display: block;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 100;
    background: rgba(78, 75, 80, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 12px;
    padding: 16px;
    min-width: 420px;
    max-height: 520px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Scrollbar del carrito */
#carrito::-webkit-scrollbar { width: 5px; }
#carrito::-webkit-scrollbar-track { background: transparent; }
#carrito::-webkit-scrollbar-thumb { background: rgba(130,196,39,.4); border-radius: 3px; }

/* Tabla del carrito */
#lista-carrito { width: 100%; border-collapse: collapse; }
#lista-carrito thead th {
    color: #82C427;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 6px 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Poppins', sans-serif;
}
#lista-carrito tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
#lista-carrito tbody tr:last-child { border-bottom: none; }
#lista-carrito td { padding: 10px 6px; vertical-align: middle; color: #f0f0f0; }

/* Celda nombre */
.td-nombre p  { font-size: 13px; margin: 0 0 3px 0; color: #f0f0f0; font-family: 'Poppins', sans-serif; }
.td-nombre small { font-size: 11px; color: #888; }

/* Control de cantidad */
.td-qty { text-align: center; }
.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px 6px;
}
.qty-control span { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; color: #fff; font-family: 'Poppins', sans-serif; }
.btn-menos, .btn-mas {
    background: none;
    border: none;
    color: #82C427;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.2s;
}
.btn-menos:hover, .btn-mas:hover { color: #fff; }

/* Subtotal */
.td-subtotal { text-align: right; font-weight: 600; font-size: 13px; color: #fff; white-space: nowrap; font-family: 'Poppins', sans-serif; }

/* Botón borrar */
.btn-borrar {
    background: rgba(255,80,80,0.12);
    border: none;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif;
}
.btn-borrar:hover { background: rgba(255,80,80,0.3); color: #fff; }

/* Fila de total */
#fila-total .total-label {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #aaa;
    padding-top: 12px;
    font-family: 'Poppins', sans-serif;
}
#fila-total .total-valor {
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    color: #82C427;
    padding-top: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Mensaje carrito vacío */
.carrito-vacio {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 20px 0;
    font-family: 'Poppins', sans-serif;
}

/* Contenedor de botones */
.btn-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 10px;
}

/* Tabla general (fuera del carrito) */
table { width: 100%; }
th, td { color: #f5f5f5; }


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0 200px;
}

.header-img {
    flex-basis: 50%;
    text-align: center;
}

.header-txt {
    flex-basis: 50%;
    text-align: center;
}

.header-txt h1 {
    font-size: 90px;
    text-transform: uppercase;
    line-height: 1;
    color: #82C427;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
}

.header-txt p{
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.btn-1 {
    display: inline-block;
    padding: 11px 25px;
    background-color: #0097A7;
    color: #f5f5f5;
    border-radius: 5px;
}

.ofert {
    padding: 20px 0 0 0;
    display: flex;
    justify-content: space-between;
}

.ofert-1 {
    display: flex;
    align-items: center;
    flex-basis: calc(33.3% - 15px);
    background-color: #f5f5f5;
    padding: 35px;
}

.ofert-img {
    flex-basis: 50%;
    margin-right: 15px;
}

.ofert-img img {
    width: 250px;
}

.ofert-txt{
    flex-basis: 50%;
    text-align: center;
}

.ofert-txt h3 {
    color: #82C427;
    font-family: 'Oswald', sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.btn-2 {
    display: inline-block;
    padding: 7px 10px;
    background-color: #0097A7;
    color: #f5f5f5;
    border-radius: 5px;
    font-size: 15px;
}
.btn-container {
    display: flex;
    justify-content: space-between; /* Esto distribuirá el espacio entre los elementos */
    margin-top: 10px; /* Puedes ajustar esto según sea necesario */
}
.products {
    padding: 50px 0;
    text-align: center;
}

.products h2{
    color: #0097A7;
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap : 50px
}

.product {
    text-align: center;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0, 0.1);
}

.product img {
    width: 250px;
    height: 370px;
    margin-bottom: 20px;
}

.product h3{
    font-size: 20px;
    color: #82C427;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product p, .precio {
    font-size: 16px;
    color:#111;
    margin-bottom: 15px;
}

.precio{
    font-weight: 800;
}
.simbolo, .precio {
    display: inline-block;
    font-weight: 800;
}
.agregar-carrito {
    margin-top: 12px;
    transition: background 0.25s, transform 0.1s;
}
.agregar-carrito:hover { transform: translateY(-1px); }
#comprar-btn {
    background: #82C427;
    color: #fff;
    border-radius: 6px;
    display: inline-block;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    flex: 1;
}
#comprar-btn:hover { background: #6fa81e; }

/* Estilos para el modal */
.modal {
    display: none; /* Ocultar por defecto */
    position: fixed; /* Permanece en la misma posición incluso si se desplaza la página */
    z-index: 1; /* Posición en la pila de capas */
    left: 0;
    top: 0;
    width: 100%; /* Ancho y alto del modal */
    height: 100%;
    overflow: auto; /* Permitir desplazamiento si el contenido es demasiado largo */
    background-color: rgb(0,0,0); /* Fondo oscuro */
    background-color: rgba(0,0,0,0.4); /* Fondo oscuro con transparencia */
  }
  
  /* Contenido del modal */
  .modal-content {
    background-color: #fefefe; /* Fondo del modal */
    margin: 10% auto; /* Centrar verticalmente y dejar espacio en los lados */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ancho del contenido */
  }
  
  /* Botón para cerrar el modal */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Estilos para el formulario */
  form {
    margin-top: 20px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  input[type="submit"]:hover {
    background-color: #45a049;
  }
    
.icons {
    padding: 50px 0 100px 0;
    display: flex;
    justify-content: space-between;
}

.icon-1{
    flex-basis: calc(33.3% - 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background-color: #f5f5f5;
}

.icon-txt h3{
    font-size: 20px;
    color: #82C427;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.icon-txt p{
    font-size: 16px;
    color: #111;
}

.blog{
    display: flex;
    justify-content: space-between;
    padding-bottom: 100px;
}

.blog-1{
    flex-basis: calc(33.3% - 30px);
}

.blog-1 img{
    margin-bottom: 20px;
}

.blog-1 h3 {
    font-size: 20px;
    color: #0097A7;
    font-family: 'Oswald?', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.blog-1 p{
    font-size: 16px;
    color: #111;
}

.footer{
    padding: 50px 0;
    background-color: #111;
}

.footer-content{
    display: flex;
    justify-content: space-between;
}

.link h3{
    font-size: 18px;
    color: #f5f5f5;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.link a {
    font-size: 16px;
    color: #dcdcdc;
    display: block;
    margin-bottom: 10px;
}
.swiper {
    width: 260px;
    height: 370px;
    margin-bottom: 20px;
  }

@media (max-width:991px){

    .menu{
        padding: 20px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #18181811;
        display: none;
    }

    .menu .navbar ul li {
       width:100%;
    }

    .menu ul li a {
        color: #fff;
    }

    #menu:checked ~ .navbar {
        display: initial;
    }

    .logo {
        display: none;
    }

    .submenu #carrito.carrito-abierto {
        min-width: 100%;
    }

    .header {
        min-height: 0vh;
    }

    .header-content {
        padding: 50px 0;
        flex-direction: column;
    }

    .header-img {
        display: none
    }

    .header-txt{
        flex-basis: 100%;
        text-align: center;
    }

    
    .header-txt h1 {
        font-size: 70px;
    }

    .ofert{
        padding: 30px   30px    0 30px;
        flex-direction: column;
    }

    .ofert-1{
        margin-bottom: 30px;
    }

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

    .icons {
        padding: 30px;
        flex-direction: column;
    }

    .icon-1 {
        margin-bottom: 30px;
    }

    .blog {
        padding: 0 30px 30px 30px;
        flex-direction: column;
    }

    .blog-1{
        margin-bottom: 30px;
    }

    .footer{
        padding: 30px;
    }

    .footer-content{
        flex-direction: column;
        text-align: center;
    }
    
}
#img-carrito { cursor: pointer; }
