* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #4CAF50;
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97);
}

.btn:hover {
    background: #5f9b62;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.main-nav {
    display: none;
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volver-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    transition: 0.3s;
}

.volver-link:hover {
    color: #2E2E2E;
}

.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: #2E2E2E;
    font-weight: 500;
    transition: 0.3s;
}

.nav-list a:hover {
    color: #6BAF3A;
}

/* BOTÓN PRINCIPAL */
.btn-header {
    background: #4CAF50;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-header:hover {
    background: #3e9442;
}

@media (min-width: 769px) {
    .main-nav {
        display: block;
    }
    .hamburger {
        display: none;
    }
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    text-decoration: none;
    color: #2E2E2E;
}

#cart-count {
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.8rem;
    position: absolute;
    top: -16px;
    right: -20px;
}

.cart-list {
    margin-top: 30px;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    color: #333;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f5f5;
}

.cart-product strong {
    display: block;
    color: #2E2E2E;
}

.cart-product span {
    font-size: 0.9rem;
    color: #666;
}

/* CANTIDAD */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
}

/* TOTAL */
.cart-total {
    font-weight: bold;
    color: #2E2E2E;
}

/* ELIMINAR */
.cart-remove button {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.cart-remove button:hover {
    color: red;
}

.btn-checkout {
    background: #4CAF50;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2E2E2E;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    /* QUITAR HEADER DE TABLA */
    .cart-list::before {
        display: none;
    }

    /* ITEM EN COLUMNA */
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* PRODUCTO */
    .cart-product {
        justify-content: flex-start;
    }

    /* PRECIO Y TOTAL */
    .cart-price,
    .cart-total {
        font-size: 0.9rem;
    }

    /* CANTIDAD MÁS GRANDE */
    .cart-quantity {
        justify-content: center;
    }

    .cart-quantity button {
        width: 35px;
        height: 35px;
    }

    /* ELIMINAR */
    .cart-remove {
        text-align: right;
    }
}

/* MODAL */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

/* IMAGEN GRANDE */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

.modal-prev:hover,
.modal-next:hover {
    color: #83b823;
}

/* BOTÓN CERRAR */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* ANIMACIÓN */
@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

section {
    padding: 1px 0;
}

.section-title {
    text-decoration: none;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.0rem;
    color: #110f0f;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #83b823;
    border-radius: 2px;
}

        
/* Hero Section */
.hero {
    background: url('../img/portada_hero.png');
    background-size: cover;
    background-position: 70% center;
    background-repeat: no-repeat;

    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 500px;
}

.hero h1 {
    font-size: 3rem;
    color: #2E2E2E;
    line-height: 1.2;
}

.hero p {
    padding: 10px;
    color:#110f0f; 
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 30px;
        padding: 40px 0;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        color: #ffffff;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }
}

.btn-outline {
    padding: 12px 25px;
    border: 2px solid #4CAF50;
    border-radius: 50px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 600;

}

.btn-outline:hover {
    background-color: #a1d3a5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .btn, .btn-outline {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}

#beneficios {
    margin-top: -50px;
    transform: none;
}

@media (max-width: 768px) {
    #productos {
     margin-top: -20px;
    }
    #beneficios {
        display: none;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }
}

.benefits-grid {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    padding: 14px 18px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.benefit-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f4f7ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #243126;
    margin-bottom: 6px;
}

.benefit-text {
    font-size: 0.95rem;
    color: #666;
}


img {
    max-width: 100%;
    height: auto;
}

/* GRID DE PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* TARJETA DE PRODUCTO */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-image img.main-img {
    opacity: 1;
    z-index: 1;
}

.product-image img.hover-img {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card:hover .product-image img.main-img {
    opacity: 0;
}

.product-card:hover .product-image img.hover-img {
    opacity: 1;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .products-grid .product-card:nth-child(3) {
        display: none;
    }
    .product-card:hover .product-image img {
        transform: none;
    }

    .product-image,
    .promo-image {
        height: 180px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .promo-content h3 {
        font-size: 1rem;
    }

    .promo-content p {
        font-size: 0.9rem;
    }

    .promo-content .btn {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }
}

.product-details {
    padding: 15px 20px;
    font-size: 0.9rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-description {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.highlight-text {
    color: #4CAF50; /* verde resaltado */
    font-weight: 600;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.btn-add-to-cart {
    background: #25D366;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
}

/* VER TODOS LOS PRODUCTOS */
.view-all-products {
    text-align: center;
    margin-top: 40px;
}

.view-all-link {
    text-decoration: underline;
    font-size: 1.2rem;
    color: #2E2E2E;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #4CAF50; 
}

.ver-productos {
    text-align: center;
    margin-top: 30px;
}

.ver-productos-link::after {
    content: " →";
    font-weight: 400;
}

.ver-productos-link {
    text-decoration: underline !important;
    font-size: 1.5rem;         
    color: #2E2E2E;          
    text-decoration: none;
    transition: 0.3s;
}

.ver-productos-link:hover {
    color: #4CAF50; 
}

.ver-productos-link:hover::after {
    margin-left: 12px;
}

/* Promociones */
.promotions {
    background: #f5f8f2;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.promotion-banner {
    background: #ffffff; /* fondo blanco para resaltar la imagen */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.promotion-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.promo-image {
    width: 100%;
    height: 350px; /* más alto para no cortar caras */
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* llena el contenedor sin deformar */
    transition: transform 0.4s ease;
}

.promotion-banner:hover .promo-image img {
    transform: scale(1.1); /* efecto zoom al pasar el mouse */
}

.promo-content {
    padding: 20px 15px 30px 15px;
}

.promo-content h3 {
    font-size: 1.4rem;
    color: #2E2E2E;
    margin-bottom: 10px;
    font-weight: 700;
}

.promo-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.promo-content .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Sobre Nosotros */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    color: #110f0f;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .about-image {
        order: -1; /* sube la imagen */
    }

    .about-text p {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* solo 3 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Testimonios */
#testimonios {
    background: linear-gradient(135deg, #fff8e1 0%, #fffdea 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: #fff; /* fondo blanco profesional */
    padding: 35px;
    border-radius: 25px;
    color: #333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: #333;
    opacity: 0.1; /* menos intrusivo */
    font-family: 'Poppins', sans-serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

@media (max-width: 768px) {

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
        border-radius: 18px;
    }

    /* Reduce la comilla decorativa */
    .testimonial-card::before {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }

    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 15px;
    }

    .testimonial-author {
        margin-top: 15px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .testimonials-grid .testimonial-card:nth-child(n+3) {
        display: none;
    }
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB347, #FFCC33); /* degradado más suave */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
}

.testimonial-author strong {
    display: block;
    color: #222;
}

.testimonial-author div {
    font-size: 0.9rem;
    color: #777;
}

/* Contacto Profesional */
.contacto-section{
    background: #f5f8f2;
}
.contact-p {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 10px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-text strong {
        font-size: 1rem;
    }

    .contact-text p {
        font-size: 0.9rem;
    }
}

.products-grid,
.testimonials-grid,
.contact-grid {
    margin-top: 25px;
}

.footer-section{
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #2f7d32 0%, #256428 100%);
    color: #fff;
}

.footer-wrapper{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:30px;
    align-items:start;
    padding:30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-cta{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.footer-cta h4{
    font-size:1.15rem;
    margin-bottom:18px;
    color:#fff;
}

.footer-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:12px 20px;
    border-radius:999px;
    border: 2px solid rgba(255,255,255,.35);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:.95rem;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
    transition:all .3s ease;
}

.footer-whatsapp:hover{
    background:#63c768;
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(0,0,0,.22);
}

.social-links{
    display: flex;
    gap: 12px;
}

.social-link{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
}

.social-link:hover{
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    padding: 12px 0;
    color: rgba(255,255,255,.68);
    font-size: .9rem;
}

@media (max-width: 900px){
    .footer-wrapper{
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
        text-align: center;
    }

    .social-links{
        justify-content: center;
    }

    .footer-cta{
        justify-content: center;
    }
}

@media (max-width: 768px){

    .footer-wrapper{
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 25px 15px;
    }

    .footer-cta{
        align-items: center;
    }

    .footer-whatsapp{
        width: 100%;
        max-width: 280px;
    }

    .social-links{
        justify-content: center;
    }

    .social-link{
        width: 38px;
        height: 38px;
    }

    .footer-bottom{
        font-size: 0.8rem;
        padding: 10px;
    }
    .footer-whatsapp:active {
        transform: scale(0.97);
    }
}