*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;color:#111;background:#f6f5f2}
button,input{font:inherit}
[hidden]{display:none!important}
.checkout-header{min-height:88px;background:#fff;border-bottom:1px solid #e5e5e5;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#111}
.brand img{width:88px;height:auto}
.brand span{font-size:11px;letter-spacing:.06em}
.volver{color:#111;text-decoration:none;font-size:11px;font-weight:700;letter-spacing:.06em;border-bottom:1px solid #111;padding-bottom:4px}
.checkout-page{max-width:1280px;margin:0 auto;padding:44px 24px 70px}
.checkout-title{text-align:center;margin-bottom:34px}
.checkout-title>span{font-size:10px;font-weight:800;letter-spacing:.18em}
.checkout-title h1{font-family:"Playfair Display",serif;font-size:40px;margin:7px 0 8px}
.checkout-title p{margin:0;color:#666;font-size:13px}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:24px;align-items:start}
.checkout-card{background:#fff;border:1px solid #e5e5e5;padding:28px}
.checkout-card h2{font-family:"Playfair Display",serif;font-size:23px;margin:0 0 24px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700;letter-spacing:.03em}
label.full{grid-column:1/-1}
input[type="text"],input[type="email"],input:not([type]){width:100%;min-height:45px;border:1px solid #cfcfcf;padding:11px 12px;background:#fff}
.form-grid input,.factura-box input[type="text"],#nif{width:100%;min-height:45px;border:1px solid #cfcfcf;padding:11px 12px;background:#fff}
input:focus{outline:2px solid #111;outline-offset:1px}
.factura-box{margin:24px 0;padding:18px;background:#f7f7f5;border:1px solid #e7e7e3}
.check-line{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:12px;font-weight:600;letter-spacing:0}
.check-line input{width:17px;height:17px;flex:0 0 auto}
#nifBlock{margin-top:16px}
.legal{margin:12px 0}
.submit-button{width:100%;min-height:52px;margin-top:20px;border:0;background:#111;color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em;cursor:pointer}
.submit-button:disabled{opacity:.5;cursor:not-allowed}
.payment-note{font-size:10px;line-height:1.5;color:#777;margin:12px 0 0}
.checkout-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;padding:13px 0;border-bottom:1px solid #eee;align-items:start}
.checkout-thumb{width:64px;height:80px;background:#eee;overflow:hidden}
.checkout-thumb img{width:100%;height:100%;object-fit:cover}
.checkout-item h3{font-size:12px;margin:2px 0 5px}
.checkout-item p{font-size:10px;color:#777;margin:3px 0}
.checkout-price{font-size:12px;font-weight:700;white-space:nowrap}
.totales{margin-top:24px;padding-top:10px}
.totales>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0;font-size:13px}
.totales .total{border-top:1px solid #ddd;margin-top:8px;padding-top:15px;font-size:17px}
.mensaje{margin-top:16px;padding:13px;font-size:12px;line-height:1.5}
.mensaje.error{background:#fff0f0;color:#8b0000;border:1px solid #efcccc}
.mensaje.ok{background:#eff9f1;color:#11652a;border:1px solid #cbe7d1}
@media(max-width:850px){.checkout-layout{grid-template-columns:1fr}.resumen{order:-1}}
@media(max-width:600px){.checkout-header{min-height:74px;padding:0 14px}.brand img{width:68px}.brand span{display:none}.volver{font-size:9px}.checkout-page{padding:28px 12px 50px}.checkout-title h1{font-size:31px}.checkout-card{padding:20px 16px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}
