/* Estilos de pantallas — home, catálogo, detalle, carrito, checkout */

/* ---------- Home A: hero navy ---------- */
.heroA { background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%); position: relative; overflow: hidden; }
.hero-grilla { position: absolute; inset: 0; }
.heroA-inner { position: relative; padding-top: 72px; padding-bottom: 80px; }
.heroA-texto { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.heroA h1 { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.heroA-texto > p { color: #b8bdd9; font-size: 17px; line-height: 1.55; max-width: 460px; }
.heroA-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Home B ---------- */
.heroB { background: var(--superficie); padding: 56px 0 40px; text-align: center; }
.heroB h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }

/* ---------- Home C ---------- */
.heroC { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
.heroC-panel { border-radius: 16px; padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: all 200ms ease; min-height: 220px; }
.heroC-panel:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); }
.heroC-panel h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.heroC-panel p { color: #b8bdd9; font-size: 15px; line-height: 1.5; max-width: 320px; }
.heroC-tienda { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.heroC-servicio { background: linear-gradient(150deg, var(--navy-600), var(--navy-800)); }
.heroC-link { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; }

/* ---------- Confianza ---------- */
.confianza { background: var(--superficie); padding: 28px 0; }
.confianza-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.confianza-item { display: flex; gap: 14px; align-items: flex-start; }
.confianza-item h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.confianza-item p { font-size: 13px; color: var(--texto-2); line-height: 1.45; }

/* ---------- Banner servicio ---------- */
.banner-serv { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border-radius: 16px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.banner-serv h2 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.banner-serv p { color: #b8bdd9; font-size: 14.5px; max-width: 480px; line-height: 1.5; }

/* ---------- Catálogo ---------- */
.cat-cabecera { background: var(--superficie); padding: 36px 0; }
.cat-cabecera h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.015em; }
.cat-cabecera p { color: var(--texto-2); font-size: 15px; margin-top: 6px; }
.cat-controles { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cat-controles-der { display: flex; gap: 10px; align-items: center; }
.buscador { display: flex; align-items: center; gap: 8px; background: var(--superficie-2); border-radius: 9px; padding: 0 12px; height: 40px; }
.buscador input { border: none; background: transparent; font-family: inherit; font-size: 14px; outline: none; width: 150px; color: var(--texto); }
.cat-controles select { font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 9px; background: #fff; color: var(--texto); }
.vacio { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 20px; color: var(--texto-2); }

/* ---------- Detalle ---------- */
.volver { background: transparent; color: var(--texto-2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.volver:hover { color: var(--texto); }
.detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 18px; align-items: start; }
.detalle-img .prod-img { aspect-ratio: 1 / 1; border-radius: 16px; border: 1px solid var(--borde); }
.detalle-info { display: flex; flex-direction: column; gap: 14px; }
.detalle-info h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.detalle-precio { font-size: 30px; font-weight: 800; }
.detalle-nota { font-size: 13px; color: var(--texto-2); background: var(--superficie); border-radius: 8px; padding: 10px 14px; line-height: 1.45; }
.detalle-desc { font-size: 15px; line-height: 1.6; color: var(--texto-2); }
.detalle-colores { display: flex; flex-direction: column; gap: 8px; }
.detalle-colores > span { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.detalle-garantia { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.detalle-garantia span { font-size: 13px; color: var(--texto-2); display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Carrito ---------- */
.carrito-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.carrito-items { display: flex; flex-direction: column; gap: 12px; }
.carrito-item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.carrito-item-img { width: 88px; flex-shrink: 0; }
.carrito-item-img .prod-img { aspect-ratio: 1 / 1; border-radius: 9px; }
.carrito-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.carrito-item-info h3 { font-size: 14.5px; font-weight: 600; }
.carrito-item-color { font-size: 12.5px; color: var(--texto-3); }
.carrito-item-precio { font-size: 15px; font-weight: 800; }
.carrito-item-acciones { display: flex; align-items: center; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--superficie-2); border-radius: 9px; padding: 3px; }
.stepper button { width: 28px; height: 28px; border-radius: 7px; background: transparent; color: var(--texto); display: flex; align-items: center; justify-content: center; }
.stepper button:hover { background: #fff; }
.stepper span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.quitar { background: transparent; color: var(--texto-3); padding: 6px; border-radius: 7px; display: flex; }
.quitar:hover { color: var(--magenta); background: var(--superficie-2); }
.resumen { background: var(--superficie); border-radius: var(--radio); padding: 22px; position: sticky; top: 84px; }
.resumen h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.resumen-linea { display: flex; justify-content: space-between; font-size: 14px; color: var(--texto-2); padding: 5px 0; gap: 12px; }
.resumen-linea span:last-child { font-weight: 600; color: var(--texto); white-space: nowrap; }
.resumen-linea.total { border-top: 1px solid var(--borde); margin-top: 10px; padding-top: 14px; font-size: 16px; font-weight: 800; color: var(--texto); margin-bottom: 16px; }
.resumen-linea.total span:last-child { font-size: 19px; }
.resumen-nota { font-size: 12px; color: var(--texto-3); padding: 2px 0 6px; }

/* ---------- Checkout ---------- */
.checkout { max-width: 640px; }
.pasos { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 13.5px; font-weight: 700; color: var(--texto-3); }
.pasos span.activo { font-weight: 800; }
.checkout-panel h1 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.form-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo-ancho { grid-column: 1 / -1; }
.resumen-mini { background: var(--superficie); border-radius: var(--radio); padding: 18px 20px; margin-bottom: 20px; }
.mp-caja { border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mp-cabecera { display: flex; justify-content: space-between; align-items: center; }
.mp-logo { font-weight: 800; font-size: 15px; color: #009ee3; }
.mp-seguro { font-size: 12px; color: var(--texto-3); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.mp-caja > p { font-size: 13.5px; color: var(--texto-2); line-height: 1.5; }
.mp-btn { background: #009ee3; color: #fff; font-size: 15px; font-weight: 700; padding: 14px; border-radius: 10px; transition: filter 150ms ease; }
.mp-btn:hover { filter: brightness(0.93); }
.mp-btn:disabled { opacity: 0.75; cursor: default; }
.spinner { width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: girar 700ms linear infinite; margin-right: 8px; vertical-align: -3px; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Resultado de pago (vuelta de Mercado Pago) ---------- */
.resultado-pago { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; font-size: 13.5px; font-weight: 700; text-align: center; }
.resultado-pago.exito { background: #e3f7ec; color: #0d7a43; }
.resultado-pago.pendiente { background: #fff4e0; color: #9a6400; }
.resultado-pago.error { background: #fde8ee; color: var(--magenta-osc); }
.resultado-pago button { background: transparent; color: inherit; opacity: 0.6; padding: 2px; display: flex; }
.resultado-pago button:hover { opacity: 1; }

/* ---------- Confirmación ---------- */
.check-ok { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.pedido-num { font-size: 13px; font-weight: 700; color: var(--texto-3); letter-spacing: 0.06em; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .heroA h1 { font-size: 32px; }
  .heroA-inner { padding-top: 48px; padding-bottom: 52px; }
  .heroB h1 { font-size: 26px; }
  .heroC { grid-template-columns: 1fr; }
  .confianza-inner { grid-template-columns: 1fr; gap: 16px; }
  .detalle { grid-template-columns: 1fr; gap: 24px; }
  .carrito-layout { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .form-grilla { grid-template-columns: 1fr; }
  .banner-serv { padding: 28px 24px; }
  .cat-controles-der { width: 100%; }
  .buscador { flex: 1; }
  .buscador input { width: 100%; }
}
