/* ---------- CHECKOUT ----------
   Se carga después de home.css y reutiliza sus variables (--ink, --sand, --line...)
   y la tipografía, sin header ni footer para no distraer. */

.checkout-body{background:var(--sand); min-height:100vh;}

/* Barra superior mínima */
.checkout-top{background:#fff; border-bottom:1px solid var(--line);}
.checkout-top-in{max-width:1120px; margin:0 auto; padding:18px 32px; display:flex; align-items:center; justify-content:space-between; gap:16px;}
.checkout-logo{height:30px; width:auto;}
.checkout-secure{display:inline-flex; align-items:center; gap:8px; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:#555; font-weight:500;}
.checkout-secure svg{width:16px; height:16px;}

.checkout-main{padding:36px 0 80px;}

/* ---------- FORMULARIO ---------- */
.co-wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
.co-back{display:inline-block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; font-weight:500; color:var(--ink); padding:6px 0;}
.co-back:hover{text-decoration:underline; text-underline-offset:4px;}
.co-title{font-size:clamp(28px,3.2vw,38px); font-weight:300; margin:10px 0 28px;}

.co-alert{background:#fff; border:1px solid #b42318; color:#b42318; padding:14px 18px; font-size:14px; margin-bottom:24px;}

.co-grid{display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:32px; align-items:start;}
.co-form{display:flex; flex-direction:column; gap:20px; grid-column:1; grid-row:1;}
.co-summary{grid-column:2; grid-row:1; position:sticky; top:24px;}

.co-sec, .co-summary{background:#fff; border:1px solid var(--line); padding:28px;}
.co-sec h2{display:flex; align-items:center; gap:12px; font-size:13px; letter-spacing:.16em; text-transform:uppercase; font-weight:500; margin:0 0 22px;}
.co-step{width:26px; height:26px; border-radius:50%; border:1px solid var(--ink); display:inline-flex; align-items:center; justify-content:center; font-size:12px; letter-spacing:0;}

.co-row{display:grid; grid-template-columns:1fr 1fr; gap:0 16px;}
.co-field{margin-bottom:16px;}
.co-field label{display:block; font-size:12px; color:#555; margin-bottom:6px; letter-spacing:.02em;}
.co-field label span{color:#999;}
.co-field input{
  width:100%; font-family:inherit; font-size:15px; color:var(--ink);
  padding:13px 14px; border:1px solid rgba(17,17,17,.22); border-radius:10px; background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.co-field input:focus{outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(17,17,17,.08);}
.co-field.has-error input{border-color:#b42318;}
.co-error{font-size:12px; color:#b42318; margin-top:6px;}

.co-hint{font-size:14px; font-weight:300; color:#555; margin:-6px 0 20px; line-height:1.55;}
.co-pay{display:flex; flex-direction:column; gap:12px;}

/* Botones (mismo estilo que la ficha del bolso) */
.co-btn{
  display:flex; align-items:center; justify-content:center; gap:12px; width:100%;
  font-family:inherit; font-size:15px; font-weight:500; letter-spacing:.03em;
  padding:17px 28px; border-radius:999px; border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition:background .25s ease, color .25s ease, transform .25s ease;
}
.co-btn:hover{transform:translateY(-1px);}
.co-btn svg{width:26px; height:18px; flex:0 0 auto;}
.co-btn img{width:20px; height:20px;}
.co-btn-card, .co-btn-primary{background:#000; color:#fff;}
.co-btn-card:hover, .co-btn-primary:hover{background:#222;}
.co-btn-paypal{background:#FFC439; color:#111;}
.co-btn-paypal:hover{background:#f2b51f;}
.co-btn-outline{background:transparent; color:var(--ink); border-color:var(--ink);}
.co-btn-outline:hover{background:var(--ink); color:#fff;}

/* ---------- RESUMEN ---------- */
.co-summary-title{font-size:13px; letter-spacing:.16em; text-transform:uppercase; font-weight:500; margin:0 0 20px;}
.co-item{display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:center;}
.co-item-img{aspect-ratio:4/5; background:var(--sand); overflow:hidden; display:flex; align-items:center; justify-content:center;}
.co-item-img img{width:100%; height:100%; object-fit:cover;}
.co-item-img span{font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:#999; text-align:center; padding:6px;}
.co-item-brand{font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:#777;}
.co-item-name{font-size:16px; line-height:1.3; margin-top:4px;}
.co-item-price{font-size:15px; margin-top:6px;}

.co-totals{margin:22px 0 0; border-top:1px solid var(--line);}
.co-totals div{display:flex; justify-content:space-between; gap:12px; padding:12px 0; font-size:14px; border-bottom:1px solid var(--line);}
.co-totals dt{color:#666; font-weight:300;}
.co-totals dd{margin:0;}
.co-totals .co-total{border-bottom:none; padding-top:16px; font-size:17px;}
.co-totals .co-total dt{color:var(--ink); font-weight:500;}
.co-totals .co-total dd{font-weight:500;}
.co-totals .co-total dd span{font-size:12px; color:#777; font-weight:400;}

.co-trust{list-style:none; margin:18px 0 0; padding:18px 0 0; border-top:1px solid var(--line); display:grid; gap:12px;}
.co-trust li{position:relative; padding-left:30px; font-size:13px; font-weight:300; color:#444; line-height:1.45;}
.co-trust li::before{content:''; position:absolute; left:0; top:1px; width:18px; height:18px; border:1px solid var(--ink); border-radius:50%;}
.co-trust li::after{content:''; position:absolute; left:7px; top:4px; width:4px; height:8px; border:solid var(--ink); border-width:0 1.5px 1.5px 0; transform:rotate(45deg);}
.co-trust b{font-weight:500; color:var(--ink);}

/* ---------- PANTALLAS DE ESTADO ---------- */
.co-status{max-width:560px; margin:24px auto 0; background:#fff; border:1px solid var(--line); padding:48px 40px; text-align:center;}
.co-status h1{font-size:clamp(26px,3vw,34px); font-weight:300; margin:10px 0 16px;}
.co-status p{font-size:15px; font-weight:300; color:#444; line-height:1.65; margin:0 auto 8px; max-width:440px;}
.co-status-eyebrow{font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:#777; font-weight:500;}
.co-status-icon{width:64px; height:64px; margin:0 auto 22px; border-radius:50%; border:1px solid var(--ink); display:flex; align-items:center; justify-content:center; color:var(--ink);}
.co-status-icon svg{width:28px; height:28px;}
.co-status-icon--error{border-color:#b42318; color:#b42318;}
.co-status-item{margin:26px auto 0; padding:16px 0 0; border-top:1px solid var(--line); font-size:15px; display:flex; flex-direction:column; gap:4px; align-items:center;}
.co-status-item span{font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:#777;}
.co-status-item small{font-size:12px; color:#999;}
.co-status-actions{display:flex; flex-direction:column; gap:12px; margin-top:28px;}

.co-loader{width:48px; height:48px; margin:0 auto 22px; border-radius:50%; border:2px solid var(--line); border-top-color:var(--ink); animation:co-spin .9s linear infinite;}
@keyframes co-spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){ .co-loader{animation-duration:2.4s;} }

/* ---------- MÓVIL ---------- */
@media (max-width:900px){
  .co-grid{grid-template-columns:1fr; gap:20px;}
  .co-summary{grid-column:1; grid-row:1; position:static;}
  .co-form{grid-row:2;}
}
@media (max-width:600px){
  .checkout-top-in{padding:14px 16px;}
  .checkout-logo{height:26px;}
  .checkout-main{padding:20px 0 48px;}
  .co-wrap{padding:0 16px;}
  .co-title{margin:6px 0 20px;}
  .co-sec, .co-summary{padding:22px 18px;}
  .co-row{grid-template-columns:1fr;}
  .co-item{grid-template-columns:72px 1fr;}
  .co-trust{display:none;}
  .co-status{margin:8px 16px 0; padding:36px 22px;}
}
