/* =========================
        HERO IMAGE
========================= */

.hero-image{
    width:100%;
    background:var(--sage);
    padding:14px;
    border-radius:34px;
    overflow:hidden;
    display:flex;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:24px;
    display:block;
}


/* ===========
      Secciones generales INDEX
============*/

.featured-products,
.products,
.steps,
.occasions,
.testimonials,
.chat-section,
.final-cta{
    padding:100px 0;
}


/* ===========
      Destacados
============*/

.featured-products{
    background:#F6F3EE;
}

.featured-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:26px;
}

.featured-card{
    background:#ffffff;
    border:1px solid var(--border);
    border-radius:24px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

/* CONTENEDOR IMAGEN */
.featured-img{
    width:100%;
    height:320px;
    background:#ffffff;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;
}

/* IMAGEN */
.featured-img img{
    width:100%;
    height:100%;

    object-fit:contain;
    object-position:center;

    display:block;
}


.featured-body{
    padding:22px;
    text-align:center;
}

.featured-body h3{
    color:var(--deep-green);
    font-size:22px;
    margin-bottom:8px;
}

.featured-body p{
    color:var(--muted);
    line-height:1.5;
}
/* ===========
      Bloque emocional
============*/

.emotional-block{
    padding:90px 0;
    background:linear-gradient(135deg, #8FAF9F, #EAE6DF);
    color:var(--black);
}

.emotional-content{
    max-width:820px;
    text-align:center;
}

.emotional-content h2{
    color:var(--black);
    font-size:clamp(34px, 5vw, 60px);
    letter-spacing:-2px;
    margin-bottom:22px;
}

.emotional-content p{
    color:rgba(31,42,38,.82);
    font-size:24px;
    line-height:1.5;
}


/* ===========
      Productos
============*/

.products-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:26px;
}

.product-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:34px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-img{
    width:100%;
    height:310px;
    background:var(--beige);
    overflow:hidden;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    padding:0;
}

.product-content{
    padding:28px;
    text-align:center;
}

.product-content h3{
    color:var(--deep-green);
    font-size:30px;
    letter-spacing:-1px;
    margin-bottom:10px;
}

.product-title{
    color:var(--black)!important;
    font-weight:900;
    margin-bottom:12px!important;
}

.product-content p{
    color:var(--muted);
    line-height:1.6;
    margin-bottom:22px;
}


/* ===========
      Pasos
============*/

.steps{
    background:var(--beige);
}

.steps-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
}

.step-card{
    background:var(--surface);
    padding:34px;
    border:1px solid var(--border);
    border-radius:30px;
    box-shadow:var(--shadow);
}

.step-card span{
    display:inline-flex;
    color:var(--sage);
    font-size:38px;
    font-weight:900;
    margin-bottom:24px;
}

.step-card h3{
    color:var(--deep-green);
    font-size:25px;
    letter-spacing:-.7px;
    margin-bottom:12px;
}

.step-card p{
    color:var(--muted);
    line-height:1.6;
}


/* ===========
      Ocasiones
============*/

.occasions-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
}

.occasions-list span{
    background:var(--surface);
    color:var(--deep-green);
    padding:16px 22px;
    border:1px solid var(--border);
    border-radius:999px;
    font-weight:900;
    box-shadow:var(--shadow);
}


/* ===========
      Testimonios
============*/

.testimonials{
    background:var(--deep-green);
    color:var(--cream);
}

.testimonials .section-heading{
    margin-bottom:54px;
}

.testimonials .section-heading h2{
    color:var(--cream);
}

.testimonials .eyebrow{
    background:rgba(246,243,238,.12);
    color:var(--cream);
}

.testimonials-showcase{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:0;

    background:rgba(246,243,238,.08);
    border:1px solid rgba(246,243,238,.18);
    border-radius:34px;
    overflow:hidden;

    box-shadow:0 24px 60px rgba(0,0,0,.18);
}

.testimonial-item{
    padding:58px 46px;
    text-align:center;
}

.testimonial-item + .testimonial-item{
    border-left:1px solid rgba(246,243,238,.18);
}

/* CONTENEDOR IMAGEN */

.testimonial-image{
    width:100%;
    max-width:360px;
    height:260px;

    margin:0 auto 28px;

    border-radius:26px;
    overflow:hidden;

    background:var(--cream);

    box-shadow:0 18px 38px rgba(0,0,0,.20);

    display:flex;
    align-items:center;
    justify-content:center;
}

/* IMAGEN */

.testimonial-image img{
    width:100%;
    height:100%;

    object-fit:contain;
    object-position:center;

    display:block;
}

.testimonial-item h3{
    color:var(--sage);

    font-size:28px;
    font-weight:900;

    letter-spacing:-.8px;

    margin-bottom:14px;
}

.testimonial-item p{
    max-width:520px;
    margin:0 auto;

    color:rgba(246,243,238,.88);

    font-size:19px;
    line-height:1.7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px){

    .testimonials-showcase{
        grid-template-columns:1fr;
    }

    .testimonial-item + .testimonial-item{
        border-left:none;
        border-top:1px solid rgba(246,243,238,.18);
    }

    .testimonial-item{
        padding:48px 34px;
    }

    .testimonial-image{
        max-width:100%;
        height:240px;
    }

    .testimonial-item h3{
        font-size:24px;
    }

    .testimonial-item p{
        font-size:17px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

    .testimonials .section-heading{
        margin-bottom:38px;
    }

    .testimonials-showcase{
        border-radius:26px;
    }

    .testimonial-item{
        padding:38px 22px;
    }

    .testimonial-image{
        height:220px;
        margin-bottom:22px;
        border-radius:20px;
    }

    .testimonial-item h3{
        font-size:22px;
        margin-bottom:12px;
    }

    .testimonial-item p{
        font-size:16px;
        line-height:1.65;
    }
}

@media (max-width: 480px){

    .testimonial-item{
        padding:30px 18px;
    }

    .testimonial-image{
        height:200px;
        border-radius:18px;
    }

    .testimonial-item h3{
        font-size:20px;
    }

    .testimonial-item p{
        font-size:15px;
        line-height:1.6;
    }
}
/* ===========
      Chat interno
============*/

.chat-section{
    background:var(--surface);
}

.chat-grid{
    display:grid;
    grid-template-columns:1fr .9fr;
    align-items:center;
    gap:50px;
}

.chat-content h2{
    color:var(--deep-green);
    font-size:clamp(34px, 5vw, 56px);
    line-height:1;
    letter-spacing:-2px;
    margin-bottom:18px;
}

.chat-content p{
    max-width:560px;
    color:var(--muted);
    font-size:18px;
    line-height:1.6;
}

.chat-box{
    background:var(--cream);
    padding:26px;
    border:1px solid var(--border);
    border-radius:30px;
    box-shadow:var(--shadow);
}

.chat-message{
    width:max-content;
    max-width:80%;
    padding:14px 18px;
    border-radius:18px;
    font-weight:700;
    margin-bottom:18px;
}

.chat-message.bot{
    background:var(--sage);
    color:var(--black);
}

.chat-options{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.chat-options button{
    border:none;
    background:#2F5D50;
    color:var(--deep-green);
    padding:10px 14px;
    border-radius:999px;
    font-weight:800;
    cursor:pointer;
    transition:.25s;
}

.chat-options button:hover{
    background:#376d5d;
    color:var(--cream);
}

.chat-input{
    display:flex;
    gap:10px;
}

.chat-input input{
    width:100%;
    border:1px solid var(--border);
    border-radius:999px;
    padding:14px 18px;
    outline:none;
    color:var(--deep-green);
}

.chat-input button{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#2F5D50;
    color:var(--cream);
    cursor:pointer;
}


/* =========================
   NEWSLETTER CTA
========================= */

.final-cta{
    padding:110px 0;
    background:var(--cream);
}

.final-cta-box{
    background:#ffffff;
    border:1px solid rgba(47,93,80,.14);
    border-radius:34px;
    padding:70px 40px;
    text-align:center;
    color:#234438;
    box-shadow:0 18px 45px rgba(47,93,80,.10);
}

.final-cta-box h2{
    font-size:clamp(34px,5vw,58px);
    line-height:1.08;
    margin-bottom:18px;
    font-weight:900;
    letter-spacing:-2px;
    color:#234438;
}

.final-cta-box p{
    max-width:640px;
    margin:0 auto 34px auto;
    font-size:18px;
    line-height:1.6;
    color:#6d837b;
}

.newsletter-form{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    max-width:720px;
    margin:0 auto;
}

.newsletter-form input{
    flex:1;
    height:62px;
    border:1px solid rgba(47,93,80,.16);
    outline:none;
    border-radius:18px;
    padding:0 24px;
    font-size:16px;
    font-weight:500;
    background:#F6F3EE;
    color:#234438;
    min-width:0;
}

.newsletter-form input::placeholder{
    color:#6d837b;
}

/* MOBILE */

@media (max-width:768px){

    .final-cta{
        padding:80px 0;
    }

    .final-cta-box{
        padding:44px 18px;
        border-radius:28px;
    }

    .final-cta-box h2{
        font-size:32px;
        letter-spacing:-1px;
    }

    .final-cta-box p{
        font-size:15px;
        margin-bottom:26px;
    }

    .newsletter-form{
        width:100%;
        max-width:100%;
        flex-direction:column;
        gap:12px;
    }

    .newsletter-form input{
        width:100% !important;
        min-width:100% !important;
        height:66px !important;
        font-size:16px !important;
        border-radius:17px !important;
        flex:none !important;
    }

    .newsletter-form button.btn-primary,
    .newsletter-form .btn-primary{
        width:auto !important;
        min-width:145px !important;
        height:44px !important;
        padding:0 22px !important;
        font-size:13px !important;
    }
}

@media (max-width:480px){

    .final-cta{
        padding:64px 0;
    }

    .final-cta-box{
        padding:38px 15px;
        border-radius:24px;
    }

    .final-cta-box h2{
        font-size:28px;
    }

    .final-cta-box p{
        font-size:14px;
    }

    .newsletter-form input{
        height:68px !important;
        min-height:68px !important;
    }

    .newsletter-form button.btn-primary,
    .newsletter-form .btn-primary{
        height:42px !important;
        min-width:140px !important;
        font-size:13px !important;
    }
}

/* ===========
      Responsive
============*/

@media(min-width:901px){

    .hero-image{
        height:510px;
    }

}

@media(max-width:900px){

    .hero-image{
        height:520px;
    }

    .featured-grid,
    .products-grid,
    .steps-grid,
    .testimonials-grid,
    .chat-grid{
        grid-template-columns:1fr;
    }

    .featured-products,
    .products,
    .steps,
    .occasions,
    .testimonials,
    .chat-section,
    .final-cta{
        padding:72px 0;
    }

    .featured-img,
    .product-img{
        height:340px;
    }

    .testimonials-image-box{
        height:300px;
        margin-bottom:48px;
    }

}

@media(max-width:520px){

    .hero-image{
        height:360px;
        padding:12px;
        border-radius:28px;
    }

    .hero-image img{
        border-radius:20px;
    }

    .chat-content h2,
    .final-cta-box h2{
        letter-spacing:-1.5px;
    }
.featured-card,
    .product-card,
    .step-card,
    .testimonial-card,
    .chat-box,
    .final-cta-box{
        border-radius:26px;
    }

    .featured-img,
    .product-img{
        height:320px;
    }

    .featured-img img,
    .product-img img{
        width:100%;
        height:100%;

        object-fit:contain;
        object-position:center;
    }


    .testimonials-image-box{
        height:240px;
        padding:10px;
        border-radius:26px;
        margin-bottom:38px;
    }

    .testimonials-image-box img{
        border-radius:18px;
    }

    .final-cta-box{
        padding:52px 24px;
    }

}


/* =========================
   CAROUSEL INFINITO
========================= */

.carousel-wrap{
    position:relative;
    display:flex;
    align-items:center;
    gap:18px;
    width:100%;
}

.carousel-viewport{
    width:100%;
    overflow:hidden;
}

.carousel-track{
    display:flex;
    gap:26px;
    will-change:transform;
}

.carousel-item{
    flex:0 0 calc((100% - 52px) / 3);
}

.carousel-btn{
    width:46px;
    height:46px;
    min-width:46px;
    border:none;
    border-radius:50%;
    background:var(--deep-green);
    color:var(--cream);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:.25s;
    z-index:2;
}

.carousel-btn:hover{
    background:#234438;
    transform:scale(1.05);
}

.carousel-btn i{
    font-size:18px;
}

@media(max-width:900px){

    .carousel-item{
        flex:0 0 calc((100% - 26px) / 2);
    }

}

@media(max-width:600px){

    .carousel-wrap{
        gap:8px;
    }

    .carousel-item{
        flex:0 0 100%;
    }

    .carousel-btn{
        width:38px;
        height:38px;
        min-width:38px;
    }

}


/* =========================
   CATEGORÍAS + PEDIDO
========================= */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
}

.category-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:34px;
    overflow:hidden;
    box-shadow:var(--shadow);
    text-align:center;
}

.category-img{
    height:300px;
    background:var(--beige);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.category-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.category-body{
    padding:26px;
}

.category-body h3{
    color:var(--deep-green);
    font-size:28px;
    margin-bottom:8px;
}

.category-body p{
    color:var(--muted);
    margin-bottom:20px;
}

.category-products-box,
.pedido-box{
    margin-top:70px;
}

.category-products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
}

.pedido-box{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:34px;
    padding:40px;
    box-shadow:var(--shadow);
}

.pedido-selected{
    background:var(--cream);
    color:var(--deep-green);
    padding:16px 18px;
    border-radius:18px;
    font-weight:800;
    margin-bottom:24px;
}

.pedido-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.pedido-grid label{
    display:block;
    color:var(--deep-green);
    font-weight:900;
    margin-bottom:8px;
}

.pedido-grid input,
.pedido-grid textarea{
    width:100%;
    border:1px solid var(--border);
    border-radius:16px;
    padding:14px 16px;
    outline:none;
    font:inherit;
    color:var(--deep-green);
    background:#fff;
}

.pedido-full{
    grid-column:1 / -1;
}

.pedido-form .btn-primary{
    margin-top:24px;
}

@media(max-width:900px){

    .categories-grid,
    .category-products-grid{
        grid-template-columns:1fr;
    }

    .pedido-grid{
        grid-template-columns:1fr;
    }

    .pedido-box{
        padding:28px 20px;
    }
}



/*MODAL PRODUCTOS*/

.pedido-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.pedido-modal.active {
    display: flex;
}

.pedido-box {
    background: #fff;
    width: 100%;
    max-width: 720px;
    border-radius: 24px;
    padding: 28px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pedido-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: 0;
    background: none;
    font-size: 32px;
    cursor: pointer;
}

.pedido-steps {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.pedido-steps span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ddd;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.pedido-steps span.active {
    background: #111;
    color: #fff;
}

.pedido-step {
    display: none;
}

.pedido-step.active {
    display: block;
}

.productos-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.producto-modal-card {
    border: 2px solid #eee;
    border-radius: 18px;
    padding: 14px;
    cursor: pointer;
    transition: .2s;
}

.producto-modal-card.active {
    border-color: #111;
}

.producto-modal-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}

.pedido-step input {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
}

.pedido-actions {
    display: flex;
    gap: 12px;
}

.archivos-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#archivosContainer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.archivo-item {
    background: #f6f3ee;
    border: 1px solid rgba(47, 93, 80, 0.18);
    border-radius: 16px;
    padding: 14px;
}

.archivo-item label {
    display: block;
    font-weight: 700;
    color: #2f5d50;
    margin-bottom: 8px;
}

.archivo-item input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed rgba(47, 93, 80, 0.45);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.btn-agregar-archivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: #2f5d50;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-agregar-archivo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 93, 80, 0.25);
}

.btn-agregar-archivo i {
    font-size: 1.15rem;
}

.btn-quitar-archivo {
    margin-top: 10px;
    border: none;
    background: transparent;
    color: #b3261e;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .productos-modal-grid {
        grid-template-columns: 1fr;
    }
}



.testimonial-item.carousel-item {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .testimonial-item.carousel-item {
        min-width: calc(50% - 16px);
    }
}

@media (max-width: 640px) {
    .testimonial-item.carousel-item {
        min-width: 100%;
    }
}