
:root{
--red:#b80e0f;
--red-dark:#8e0a0b;
--green:#087b48;
--ink:#222;
--muted:#6d6d6d;
--paper:#fff;
--line:#e7e2df;
--cream:#faf7f4;
--shadow:0 12px 34px #321b1712
}

*{box-sizing:border-box}

html{
scroll-behavior:smooth;
scroll-padding-top:90px
}

body{
margin:0;
color:var(--ink);
font-family:"Gill Sans","Trebuchet MS",Arial,sans-serif;
background:#f8f7f5 url("assets/fondo-app.jpg") center top/cover fixed
}

button,input,textarea{font:inherit}

.site-header{
position:sticky;
top:0;
z-index:20;
background:#fffF;
border-bottom:1px solid #eee;
backdrop-filter:blur(12px)
}

.header-inner{
max-width:1180px;
margin:auto;
min-height:76px;
padding:9px 24px;
display:flex;
align-items:center;
gap:28px
}

.brand{display:block;width:min(360px,48vw)}
.brand img{width:100%;display:block}

.header-inner nav{
margin-left:auto;
display:flex;
gap:26px
}

.header-inner nav a,.header-cart{
color:#333;
text-decoration:none;
font-weight:800
}

.header-inner nav a:hover{color:var(--red)}

.header-cart{
border-radius:24px;
background:#fff2f2;
border:1px solid #f1caca;
padding:10px 15px;
color:var(--red)
}

.hero{
max-width:1180px;
min-height:390px;
margin:26px auto 18px;
border-radius:26px;
overflow:hidden;
position:relative;
background:linear-gradient(100deg,#fff 0%,#fff 48%,#f5e9e6 100%);
box-shadow:var(--shadow);
display:flex;
align-items:center;
padding:54px 7%
}

.hero:after{
content:"";
position:absolute;
width:440px;
height:440px;
right:5%;
top:-55px;
border-radius:50%;
background:radial-gradient(circle,#fff 0 35%,#b80e0f 36% 38%,#fff 39% 42%,#0a804d 43% 48%,transparent 49%);
opacity:.08
}

.hero-content{
position:relative;
z-index:1;
max-width:560px
}

.eyebrow{
font-size:11px;
letter-spacing:2.8px;
font-weight:900;
color:var(--green)
}

h1,h2,h3,p{margin-top:0}

h1{
font-size:clamp(42px,6vw,72px);
line-height:.99;
letter-spacing:-2px;
margin:15px 0;
color:#202020;
font-weight:1000
}

h1 em{font-style:normal;color:var(--red)}

.hero-content p{
font-size:18px;
color:#666;
max-width:430px;
line-height:1.5
}

.primary-btn,.whatsapp-btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:18px;
background:var(--red);
color:#fff;
text-decoration:none;
border:0;
border-radius:9px;
padding:15px 22px;
font-weight:900;
letter-spacing:.5px;
cursor:pointer;
box-shadow:0 7px 16px #b80e0f2b
}

.primary-btn:hover,.whatsapp-btn:hover{
background:var(--red-dark);
transform:translateY(-1px)
}

.hero-stamp{
position:absolute;
right:10%;
z-index:1;
width:230px;
height:230px;
border-radius:50%;
background:var(--red);
border:12px solid #fff;
outline:5px solid var(--green);
box-shadow:0 8px 25px #0002;
color:white;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
transform:rotate(8deg)
}

.hero-stamp strong{font-size:37px;letter-spacing:3px}
.hero-stamp span{font-size:35px;font-weight:1000}
.hero-stamp small{font-size:9px;letter-spacing:1.4px;margin-top:8px}

.service-strip{
max-width:1180px;
margin:0 auto 55px;
background:#fff;
border-radius:14px;
box-shadow:var(--shadow);
display:grid;
grid-template-columns:repeat(3,1fr);
padding:20px 26px
}

.service-strip div{
display:flex;
flex-direction:column;
gap:5px;
padding:0 22px;
border-right:1px solid var(--line)
}

.service-strip div:last-child{border:0}
.service-strip b{font-size:15px}
.service-strip span{font-size:13px;color:var(--muted)}

.menu-section,.order-section{
max-width:1180px;
margin:0 auto 68px;
padding:0 18px
}

.section-heading{
text-align:center;
margin-bottom:26px
}

.section-heading h2{
font-size:clamp(32px,4vw,45px);
margin:8px 0;
color:#222;
font-weight:1000
}

.section-heading p{color:var(--muted);margin:0}

.category-nav{
display:flex;
justify-content:center;
gap:10px;
flex-wrap:wrap;
margin-bottom:24px
}

.cat-tab{
border:1px solid #e6d5d2;
background:#fff;
color:#444;
padding:12px 20px;
border-radius:30px;
font-weight:900;
cursor:pointer
}

.cat-tab.active,.cat-tab:hover{
background:var(--red);
border-color:var(--red);
color:#fff
}

.category-panel{display:none}
.category-panel.active{display:block}

.category-intro{
display:flex;
align-items:baseline;
gap:16px;
margin:12px 4px 17px
}

.category-intro h3{
font-size:25px;
margin:0;
color:var(--red)
}

.category-intro p{
margin:0;
color:var(--muted);
font-size:14px
}

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

.product-card{
background:#fff;
border:1px solid #eee;
border-radius:16px;
overflow:hidden;
box-shadow:var(--shadow);
display:flex;
flex-direction:column
}

.product-photo{
height:180px;
background:#f2eeeb;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden
}

.product-photo img{
width:100%;
height:100%;
object-fit:cover;
transition:transform .3s
}

.product-card:hover .product-photo img{transform:scale(1.04)}

.product-body{
padding:17px;
display:flex;
flex-direction:column;
gap:11px;
flex:1
}

.product-body h4{font-size:19px;margin:0}

.product-desc{
font-size:13px;
color:var(--muted);
margin:-5px 0 0;
line-height:1.4
}

.price{
font-size:20px;
color:var(--red);
font-weight:1000
}

.price small{font-size:12px;color:#777;font-weight:600}

.field-label{
font-size:12px;
font-weight:900;
color:#555;
display:block;
margin-bottom:5px
}

.product-body select,
.details-card input:not([type=radio]),
.details-card textarea,
.product-body input{
width:100%;
padding:10px 11px;
border:1px solid #ddd;
border-radius:8px;
background:#fff;
color:#333
}

.add-btn{
margin-top:auto;
background:#222;
color:#fff;
border:0;
border-radius:8px;
padding:12px;
font-weight:900;
cursor:pointer
}

.add-btn:hover{background:var(--green)}

.cart-card,.details-card{
background:#fff;
border:1px solid #eee;
border-radius:16px;
padding:22px;
box-shadow:var(--shadow)
}

.order-layout{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
align-items:start
}

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

.card-title h3,.details-card h3{
font-size:21px;
margin:0 0 16px
}

.text-button{
border:0;
background:none;
color:var(--red);
font-weight:800;
cursor:pointer
}

.empty-cart{
color:#888;
text-align:center;
padding:25px 0
}

.cart-row{
display:grid;
grid-template-columns:1fr auto;
gap:10px;
padding:13px 0;
border-bottom:1px solid var(--line)
}

.cart-row strong{display:block;font-size:14px}

.cart-row small{
display:block;
color:#777;
margin-top:4px;
line-height:1.4
}

.cart-row .line-price{font-weight:900;white-space:nowrap}

.cart-actions{
display:flex;
gap:9px;
align-items:center;
margin-top:8px
}

.cart-actions button{
border:1px solid #ddd;
background:#fff;
border-radius:6px;
padding:3px 9px;
cursor:pointer
}

.cart-actions .remove{color:var(--red);border:0}

.totals{
margin-top:16px;
border-top:1px solid var(--line);
padding-top:12px
}

.totals div{
display:flex;
justify-content:space-between;
padding:5px 0;
color:#555
}

.totals .grand-total{
border-top:1px dashed #ddd;
margin-top:8px;
padding-top:14px;
font-size:21px;
color:#222
}

.grand-total b{color:var(--red)}

.details-card label{
display:block;
font-size:13px;
font-weight:800;
margin:12px 0;
color:#444
}

.details-card fieldset{
border:1px solid #e5e0dd;
border-radius:10px;
padding:10px 13px;
margin:15px 0
}

.details-card legend{
font-size:13px;
font-weight:900;
padding:0 5px
}

.details-card .radio-line{
display:flex;
align-items:center;
gap:9px;
margin:9px 0;
font-weight:600
}

.radio-line input{accent-color:var(--red)}
.radio-line strong{margin-left:auto;color:var(--green)}
.details-card textarea{resize:vertical}

/* NUEVO: MÉTODOS DE PAGO Y CAMBIO */

.payment-fieldset{margin-top:16px!important}

.cash-details{
margin-top:12px;
padding:13px;
background:#faf7f4;
border:1px solid #eee2dc;
border-radius:10px
}

.cash-details[hidden]{display:none}

.cash-details label{margin:0 0 7px!important}

.cash-details input{
width:100%;
padding:10px 11px;
border:1px solid #ddd;
border-radius:8px;
background:#fff;
color:#333
}

.cash-details small{
display:block;
margin-top:7px;
color:#777;
font-size:11px
}

.change-line{
display:flex;
justify-content:space-between;
gap:12px;
margin-top:12px;
padding-top:10px;
border-top:1px dashed #ddd;
font-size:14px
}

.change-line strong{
color:var(--green);
font-size:16px
}

.change-line strong.change-invalid{color:var(--red)}

.whatsapp-btn{width:100%;margin-top:12px}

.privacy-note{
font-size:11px;
line-height:1.45;
color:#888;
margin:11px 0 0
}

footer{
background:#202020;
color:#fff;
padding:25px max(24px,calc((100% - 1140px)/2));
display:flex;
align-items:center;
gap:18px
}

footer img{
width:62px;
height:62px;
object-fit:contain;
border-radius:8px
}

footer b{font-size:17px;letter-spacing:1px}
footer p{font-size:13px;color:#ccc;margin:4px 0}
footer a{font-size:13px;color:#fff}
footer small{margin-left:auto;color:#aaa}

.toast{
position:fixed;
bottom:20px;
left:50%;
transform:translate(-50%,20px);
background:#222;
color:#fff;
padding:12px 18px;
border-radius:9px;
opacity:0;
pointer-events:none;
transition:.2s;
z-index:50;
box-shadow:0 8px 25px #0003
}

.toast.show{
opacity:1;
transform:translate(-50%,0)
}

@media(max-width:800px){
 .hero{margin:15px 12px;min-height:340px;padding:38px 7%}
 .hero-stamp{right:5%;width:155px;height:155px;opacity:.16}
 .hero-stamp strong,.hero-stamp span{font-size:25px}
 .service-strip{margin:0 12px 42px;grid-template-columns:1fr;gap:12px}
 .service-strip div{border:0;border-bottom:1px solid var(--line);padding:0 4px 10px}
 .service-strip div:last-child{border:0;padding-bottom:0}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .order-layout{grid-template-columns:1fr}
 .header-inner{gap:12px}
 .header-inner nav{gap:13px}
 .brand{width:min(270px,45vw)}
}

@media(max-width:520px){
 .header-inner{padding:8px 12px;min-height:62px}
 .header-inner nav{font-size:13px}
 .header-cart{padding:8px 10px;font-size:13px}
 .brand{width:42vw}
 .hero{min-height:330px}
 .hero-content p{font-size:15px}
 .product-grid{grid-template-columns:1fr 1fr;gap:10px}
 .product-photo{height:130px}
 .product-body{padding:11px;gap:9px}
 .product-body h4{font-size:16px}
 .product-desc{font-size:11px}
 .cat-tab{padding:10px 13px;font-size:13px}
 .category-intro{display:block}
 .category-intro p{margin-top:5px}
 .cart-card,.details-card{padding:16px}
 footer{flex-wrap:wrap}
 footer small{width:100%;margin:0}
}
.btn-pedido-enviado {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    background-color: #218838;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-pedido-enviado:hover {
    background-color: #176b2c;
}

.btn-pedido-enviado[hidden] {
    display: none;
}