/* ============================================
   CATÁLOGO
============================================ */

.tienda-catalogo{
padding:10px 0 100px;
}

.productos-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
gap:28px;
align-items:stretch;
}

.producto-card{
display:flex;
flex-direction:column;
background:#fff;
border:1px solid var(--borde);
border-radius:18px;
overflow:hidden;
cursor:pointer;
transition:.30s;
height:100%;
min-height:370px;
box-shadow:0 12px 30px rgba(36,95,61,.08);
}

.producto-card:hover,
.producto-card:focus-visible{
transform:translateY(-7px);
box-shadow:0 24px 45px rgba(36,95,61,.16);
border-color:var(--verde-brote);
outline:none;
}

.producto-card-image{
aspect-ratio:1/1;
overflow:hidden;
flex-shrink:0;
}

.producto-card-image img{
width:100%;
height:100%;
display:block;
object-fit:cover;
border:2px solid #2f7a4e;
border-radius:18px;
}

.producto-card:hover .producto-card-image img,
.producto-card:focus-visible .producto-card-image img{
transform:scale(1.08);
}

.producto-card-body{
display:flex;
flex-direction:column;
flex:1;
height:100%;
padding:18px;
}

.producto-card-body strong{
margin-bottom:10px;
font-size:1.12rem;
color:var(--verde-oscuro);
}

.producto-card-body span{
flex:1;
font-size:.98rem;
line-height:1.55;
color:var(--texto-suave);
}

.producto-card-pedir{
margin-top:auto;
align-self:flex-start;
padding:10px 22px;
border-radius:999px;
font-size:.92rem;
font-weight:700;
transition:.25s;
}

.producto-card-pedir:hover{
transform:translateY(-2px);
}

/*==========================================
MODAL DEL PRODUCTO
==========================================*/

.producto-modal{
position:fixed;
inset:0;
z-index:1200;
display:none;
align-items:center;
justify-content:center;
padding:24px;
isolation:isolate;
}

.producto-modal.is-open{
display:flex;
}

.producto-modal-backdrop{
position:absolute;
inset:0;
background:rgba(18,45,31,.68);
backdrop-filter:blur(4px);
z-index:0;
}

.producto-modal-dialog{
position:relative;
z-index:1;
display:flex;
flex-direction:column;
width:min(1120px,100%);
max-height:92vh;
overflow:hidden;
border-radius:18px;
background:#fff;
box-shadow:0 30px 80px rgba(0,0,0,.28);
}

.producto-modal-close{
position:absolute;
top:16px;
right:16px;
z-index:3;
width:44px;
height:44px;
border:0;
border-radius:50%;
background:#fff;
color:var(--verde-oscuro);
font-size:2rem;
line-height:1;
cursor:pointer;
box-shadow:0 8px 24px rgba(0,0,0,.16);
}

.producto-modal-content{
display:grid;
grid-template-columns:minmax(280px,.95fr) minmax(0,1.05fr);
gap:0;
flex:1;
overflow-y:auto;
}

.producto-modal-image{
background:#F3F8EE;
min-height:520px;
}

.producto-modal-image img{
width:100%;
min-height:520px;
display:block;
object-fit:cover;
}

.producto-modal-info{
padding:54px 48px 46px;
}

.producto-modal-info h2{
font-size:clamp(2rem,4vw,3rem);
line-height:1.05;
margin-bottom:20px;
}

.producto-modal-descripcion{
white-space:pre-line;
font-size:1rem;
line-height:1.75;
color:var(--texto-suave);
margin-bottom:28px;
}

.producto-modal-footer{
padding:26px 32px;
display:flex;
justify-content:center;
align-items:center;
flex-shrink:0;
background:#fff;
border-top:1px solid rgba(0,0,0,.08);
box-shadow:0 -8px 18px rgba(0,0,0,.05);
}

.producto-modal-footer-info{
text-align:center;
}

.producto-modal-footer-info p{
margin:0 0 18px;
font-size:.95rem;
line-height:1.6;
color:#666;
}

.producto-modal-footer-actions{
display:flex;
justify-content:center;
gap:16px;
flex-wrap:wrap;
}

.producto-modal-footer-actions .btn{
min-width:190px;
}

@media(max-width:900px){

.producto-modal-content{
display:block;
}

.producto-modal-image{
min-height:0;
height:100%;
}

.producto-modal-image img{
width:100%;
height:100%;
min-height:0;
object-fit:contain;
object-position:center;
background:#F3F8EE;
}

.producto-modal-info{
padding:36px 28px;
background:#fff;
}

}

@media(max-width:640px){

.producto-modal{
padding:12px;
}

.producto-modal-image{
height:100%;
min-height:0;
}

.producto-modal-image img{
height:100%;
min-height:0;
object-fit:contain;
}

.producto-modal-info{
padding:28px 24px 32px;
background:#fff;
}

.producto-modal-info h2{
font-size:1.9rem;
}

.producto-modal-descripcion{
font-size:.98rem;
line-height:1.7;
}

.producto-modal-footer{
padding:22px;
}

.producto-modal-footer-actions{
flex-direction:column;
}

.producto-modal-footer-actions .btn{
width:100%;
}

.producto-card-pedir{
width:100%;
text-align:center;
}

}

/*==========================================
FORMULARIOS Y AVISOS
==========================================*/

.campo-trampa{
position:absolute;
left:-9999px;
width:1px;
height:1px;
opacity:0;
}

.tienda-form-modal,
.tienda-status-modal{
position:fixed;
inset:0;
display:none;
align-items:center;
justify-content:center;
z-index:1800;
padding:20px;
}

.tienda-form-modal.is-open,
.tienda-status-modal.is-open{
display:flex;
}

.tienda-form-backdrop{
position:absolute;
inset:0;
background:rgba(20,45,32,.62);
backdrop-filter:blur(5px);
}

.tienda-form-box,
.tienda-status-box{
position:relative;
width:min(520px,100%);
padding:38px;
background:#fff;
border-radius:22px;
box-shadow:0 28px 80px rgba(0,0,0,.28);
animation:modalEntrada .35s ease;
}

.tienda-form-close{
position:absolute;
top:14px;
right:14px;
width:40px;
height:40px;
border:0;
border-radius:50%;
background:#F3F8EE;
color:var(--verde-oscuro);
font-size:1.6rem;
line-height:1;
cursor:pointer;
}

.tienda-form-box h3,
.tienda-status-box h3{
margin-bottom:10px;
font-size:1.8rem;
color:var(--verde-oscuro);
}

.tienda-form-box p,
.tienda-status-box p{
margin-bottom:24px;
line-height:1.65;
color:var(--texto-suave);
}

.tienda-form-box label{
display:flex;
flex-direction:column;
gap:8px;
margin-bottom:16px;
font-weight:700;
color:var(--verde-oscuro);
}

.tienda-form-box input{
width:100%;
padding:15px 16px;
border:1px solid var(--borde);
border-radius:12px;
font:inherit;
}

.tienda-form-btn{
width:100%;
justify-content:center;
margin-top:6px;
}

.tienda-status-modal{
background:rgba(20,45,32,.18);
}

.tienda-status-box{
width:min(460px,100%);
text-align:center;
}

.tienda-status-brand{
display:inline-flex;
align-items:center;
justify-content:center;
margin-bottom:14px;
padding:9px 18px;
border-radius:999px;
background:#F0F8E9;
color:var(--verde-oscuro);
font-weight:800;
}

.tienda-status-dots{
display:flex;
justify-content:center;
gap:10px;
margin-top:8px;
}

.tienda-status-dots span{
width:10px;
height:10px;
border-radius:50%;
background:var(--verde-principal);
opacity:.35;
animation:tiendaPulso 1s infinite ease-in-out;
}

.tienda-status-dots span:nth-child(2){
animation-delay:.18s;
}

.tienda-status-dots span:nth-child(3){
animation-delay:.36s;
}

@keyframes tiendaPulso{

0%,100%{
transform:scale(.8);
opacity:.35;
}

50%{
transform:scale(1.15);
opacity:1;
}

}

@media(max-width:640px){

.tienda-form-box,
.tienda-status-box{
padding:30px 24px;
}

}

/*=========================================
PRODUCTO DESTACADO
=========================================*/

.producto-destacado{
padding:20px 0 40px;
}

.producto-destacado-card{
display:grid;
grid-template-columns:420px 1fr;
align-items:center;
gap:40px;
width:100%;
padding:0;
border:none;
border-radius:28px;
overflow:hidden;
background:#fff;
cursor:pointer;
box-shadow:0 18px 45px rgba(46,139,87,.12);
transition:
transform .35s ease,
box-shadow .35s ease;
}

.producto-destacado-card:hover{
transform:translateY(-6px);
box-shadow:0 30px 60px rgba(46,139,87,.18);
}

.producto-destacado-imagen{
height:100%;
min-height:420px;
overflow:hidden;
background:#F4F8F2;
}

.producto-destacado-imagen img{
width:100%;
height:100%;
display:block;
object-fit:cover;
transition:transform .5s ease;
}

.producto-destacado-card:hover .producto-destacado-imagen img{
transform:scale(1.05);
}

.producto-destacado-info{
padding:55px;
text-align:left;
}

.producto-destacado-badge{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 20px;
margin-bottom:20px;
border-radius:999px;
background:#FFF5D8;
color:#9B6A00;
font-size:.9rem;
font-weight:700;
letter-spacing:.04em;
}

.producto-destacado-info h2{
margin-bottom:18px;
font-size:clamp(2.2rem,4vw,3.5rem);
line-height:1.05;
color:var(--verde-oscuro);
}

.producto-destacado-info p{
margin-bottom:24px;
max-width:650px;
font-size:1.08rem;
line-height:1.8;
color:var(--texto-suave);
}

.producto-destacado-info ul{
display:grid;
gap:12px;
margin:0 0 35px;
padding:0;
list-style:none;
}

.producto-destacado-info li{
font-size:1rem;
font-weight:600;
color:var(--verde-oscuro);
}

.producto-destacado-info .btn{
display:inline-flex;
margin-top:5px;
pointer-events:none;
}

/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:1100px){

.producto-destacado-card{
display:flex;
flex-direction:column;
}

.producto-destacado-info{
order:-1;
padding:40px 40px 25px;
text-align:center;
}

.producto-destacado-badge{
margin:0 auto 18px;
}

.producto-destacado-info p{
max-width:760px;
margin:0 auto 28px;
}

.producto-destacado-info ul{
display:none;
}

.producto-destacado-imagen{
min-height:auto;
background:#F4F8F2;
}

.producto-destacado-imagen picture,
.producto-destacado-imagen img{
display:block;
width:100%;
height:auto;
}

.producto-destacado-info .btn{
margin-top:10px;
}

}

@media(max-width:700px){

.producto-destacado{
padding:5px 0 20px;
}

.producto-destacado-card{
display:flex;
flex-direction:column;
}

.producto-destacado-info{
order:-1;
padding:28px 24px 15px;
text-align:center;
}

.producto-destacado-badge{
margin:0 auto 18px;
font-size:.85rem;
}

.producto-destacado-info h2{
margin-bottom:14px;
font-size:2rem;
}

.producto-destacado-info p{
margin-bottom:18px;
font-size:1rem;
line-height:1.6;
}

.producto-destacado-info ul{
display:none;
}

.producto-destacado-imagen{
min-height:auto;
padding:0 20px 20px;
background:transparent;
}

.producto-destacado-imagen picture,
.producto-destacado-imagen img{
display:block;
width:100%;
max-width:320px;
margin:auto;
border-radius:22px;
box-shadow:0 15px 35px rgba(46,139,87,.18);
}

.producto-destacado-info .btn{
width:100%;
justify-content:center;
margin-top:10px;
}

}

