/* =======================================================
   ESTILOS TIENDA — producto.html, carrito.html, gracias.html, error.html
   (versión fondo blanco)
   ======================================================= */

/* ---------- PÁGINA DE PRODUCTO ---------- */
.producto{ padding: 40px 24px 90px; }
.producto-grid{ max-width:1080px; margin:0 auto; display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:start; }
.producto-foto{ border-radius: var(--radius); overflow:hidden; box-shadow: 0 20px 44px rgba(10,14,66,0.14); background: var(--bg-soft); border:1px solid var(--border); aspect-ratio: 3/4; display:flex; align-items:center; justify-content:center; font-size:5rem; }
.producto-foto img{ width:100%; height:100%; object-fit:cover; }
.producto-info .card-cat{ display:block; margin-bottom:10px; }
.producto-info h1{ font-size: clamp(1.8rem,4vw,2.4rem); margin-bottom:14px; }
.producto-precio{ display:flex; align-items:baseline; gap:12px; margin-bottom: 22px; }
.producto-precio .new{ font-family:'Baloo 2'; font-size:2.1rem; color: var(--orange-dark); font-weight:800; }
.producto-precio .old{ text-decoration:line-through; color:var(--text-muted); font-weight:700; }
.producto-desc{ color: var(--text-muted); font-weight:600; margin-bottom: 26px; line-height:1.7; }
.producto-field{ margin-bottom: 22px; }
.producto-field label{ display:block; font-weight:800; font-size:.85rem; margin-bottom:8px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.03em; }
.producto-field select{ width:100%; max-width:280px; background: var(--bg-soft); border:2px solid var(--border); color: var(--text-light); padding: 12px 14px; border-radius: 12px; font-family:inherit; font-weight:700; font-size:1rem; }
.producto-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 18px; }
.producto-note{ font-size:.85rem; color: var(--text-muted); font-weight:600; }
.producto-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }
.producto-badges span{ background: var(--bg-soft); border:1px solid var(--border); padding:8px 14px; border-radius:999px; font-size:.8rem; font-weight:700; color: var(--text-muted); }
@media (max-width: 800px){ .producto-grid{ grid-template-columns:1fr; } }

/* ---------- BADGE PRECIO ESPECIAL ---------- */
.badge-especial{ display:inline-flex; align-items:center; gap:6px; background: var(--gold-bg); color:#8a5a00; border:1px solid #F3D48A; padding:6px 14px; border-radius:999px; font-weight:800; font-size:.8rem; margin-bottom:10px; width:fit-content; }

/* ---------- ¿QUÉ INCLUYE? ---------- */
.incluye-box{ background: var(--bg-soft); border:1px solid var(--border); border-radius:14px; padding:18px 20px; margin-bottom:22px; }
.incluye-box h3{ font-size:.95rem; margin-bottom:8px; }
.incluye-box p{ color:var(--text-muted); font-weight:600; font-size:.9rem; }
.incluye-box a{ color:var(--sky); font-weight:800; text-decoration:underline; }

/* ---------- BOTONES DE TALLA GRANDES ---------- */
.tallas-botones{ display:flex; gap:10px; flex-wrap:wrap; }
.talla-btn{ background:white; border:2px solid var(--border); border-radius:12px; padding:12px 18px; font-weight:800; font-size:.92rem; color:var(--navy); transition:.15s; }
.talla-btn:hover{ border-color: var(--orange); }
.talla-btn.activa{ background: var(--orange); border-color: var(--orange); color:#241300; }
.link-guia-tallas{ display:inline-flex; align-items:center; gap:6px; color:var(--sky); font-weight:800; font-size:.88rem; margin-top:10px; cursor:pointer; }
.link-guia-tallas:hover{ text-decoration:underline; }

/* ---------- MODAL GUÍA DE TALLAS ---------- */
.modal-overlay{ display:none; position:fixed; inset:0; background:rgba(10,14,66,0.55); z-index:100; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.abierto{ display:flex; }
.modal-box{ background:white; border-radius:20px; max-width:480px; width:100%; padding:30px; max-height:85vh; overflow-y:auto; position:relative; }
.modal-box .cerrar{ position:absolute; top:16px; right:16px; font-size:1.4rem; color:var(--text-muted); cursor:pointer; }
.modal-box h2{ font-size:1.3rem; margin-bottom:14px; }
.modal-box table{ width:100%; border-collapse:collapse; margin-bottom:16px; }
.modal-box th, .modal-box td{ text-align:left; padding:10px 8px; border-bottom:1px solid var(--border); font-size:.88rem; }
.modal-box th{ color:var(--text-muted); font-size:.75rem; text-transform:uppercase; }
.modal-box p{ color:var(--text-muted); font-weight:600; font-size:.85rem; margin-bottom:14px; }

/* ---------- BARRA FIJA DE COMPRA EN MÓVIL ---------- */
.barra-movil{ display:none; }
@media (max-width:780px){
  .barra-movil{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:90;
    background:white; border-top:1px solid var(--border); padding:12px 16px;
    box-shadow: 0 -6px 20px rgba(10,14,66,0.12); align-items:center; gap:12px;
  }
  .barra-movil .precio{ font-family:'Baloo 2'; font-weight:800; color:var(--orange-dark); font-size:1.1rem; white-space:nowrap; }
  .barra-movil .btn-primary{ flex:1; padding:13px; }
  .producto{ padding-bottom:100px; }
}

.relacionados{ max-width:1180px; margin: 70px auto 0; padding: 0 24px; }
.relacionados h2{ font-size: 1.6rem; margin-bottom: 26px; text-align:center; }

/* ---------- CARRITO ---------- */
.carrito-page{ padding: 50px 24px 90px; max-width: 980px; margin: 0 auto; }
.carrito-page h1{ font-size: clamp(1.8rem,4vw,2.4rem); margin-bottom: 30px; }
.carrito-vacio{ text-align:center; padding: 70px 24px; background: var(--bg-soft); border-radius: var(--radius); border:1px solid var(--border); }
.carrito-vacio p{ color: var(--text-muted); font-weight:700; margin: 14px 0 26px; }
.carrito-vacio .emoji{ font-size:3.5rem; }

.carrito-item{ display:grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items:center; background: var(--panel); border-radius: 16px; padding: 16px; margin-bottom: 16px; border:1px solid var(--border); box-shadow: 0 4px 14px rgba(10,14,66,0.05); }
.carrito-item .foto{ width:90px; height:90px; border-radius: 12px; overflow:hidden; background: var(--bg-soft); display:flex; align-items:center; justify-content:center; font-size:2rem; }
.carrito-item .foto img{ width:100%; height:100%; object-fit:cover; }
.carrito-item .info h3{ font-size:1.05rem; margin-bottom:4px; }
.carrito-item .info p{ font-size:.82rem; color:var(--text-muted); font-weight:700; }
.carrito-item .cantidad{ display:flex; align-items:center; gap:10px; background: var(--bg-soft); border-radius: 999px; padding: 6px 10px; }
.carrito-item .cantidad button{ width:26px; height:26px; border-radius:50%; background: white; border:1px solid var(--border); color:var(--text-light); font-weight:800; font-size:1rem; display:flex; align-items:center; justify-content:center; }
.carrito-item .cantidad button:hover{ background: var(--sky); color:white; border-color: var(--sky); }
.carrito-item .precio-item{ text-align:right; font-family:'Baloo 2'; font-weight:800; color: var(--orange-dark); white-space:nowrap; }
.carrito-item .quitar{ grid-column: 1 / -1; text-align:right; font-size:.78rem; color: var(--text-muted); font-weight:700; }
.carrito-item .quitar:hover{ color: #d64545; }
@media (max-width: 600px){ .carrito-item{ grid-template-columns: 70px 1fr; } .carrito-item .cantidad, .carrito-item .precio-item{ grid-column: 2; } }

.carrito-resumen{ background: var(--bg-soft); border-radius: var(--radius); padding: 26px; margin-top: 30px; border: 2px dashed var(--orange); }
.carrito-resumen .fila{ display:flex; justify-content:space-between; padding: 8px 0; font-weight:700; color: var(--text-muted); }
.carrito-resumen .fila.total{ color: var(--text-light); font-family:'Baloo 2'; font-size:1.4rem; border-top: 1px solid var(--border); margin-top:8px; padding-top:16px; }
.carrito-resumen .fila.total b{ color: var(--orange-dark); }
.carrito-checkout{ margin-top: 22px; display:flex; flex-direction:column; gap:12px; }
.carrito-checkout .btn-primary{ width:100%; }
.carrito-checkout .btn-ghost{ width:100%; }
.metodo-pago-nota{ font-size:.78rem; color: var(--text-muted); text-align:center; font-weight:600; }

.envio-field{ margin: 18px 0; }
.envio-field label{ display:block; font-weight:800; font-size:.85rem; margin-bottom:8px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.03em; }
.envio-field select{ width:100%; background: white; border:2px solid var(--border); color: var(--text-light); padding: 12px 14px; border-radius: 12px; font-family:inherit; font-weight:700; font-size:.95rem; }
.envio-nota{ font-size:.78rem; color:var(--text-muted); font-weight:600; margin-top:8px; }

/* ---------- PÁGINAS DE RESULTADO (gracias / error) ---------- */
.resultado-page{ min-height: 60vh; display:flex; align-items:center; justify-content:center; padding: 60px 24px; text-align:center; }
.resultado-box{ max-width: 520px; }
.resultado-box .emoji{ font-size: 4rem; margin-bottom: 18px; }
.resultado-box h1{ font-size: clamp(1.7rem,4vw,2.3rem); margin-bottom: 16px; }
.resultado-box p{ color: var(--text-muted); font-weight:600; margin-bottom: 30px; }
.resultado-box .btn-primary{ margin: 0 auto; }
