:root {
  --azul: #1e354e;
  --azul-claro: #2a4868;
  --dorado: #83a667;
  --verde: #83a667;
  --verde-oscuro: #47871f;
  --fondo: #f5f5f4;
  --borde: #dedede;
  --texto: #444940;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: 78px;
  background: var(--fondo);
  color: var(--texto);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }

.salto {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--azul);
}

.salto:focus { top: 12px; }

.anuncio {
  padding: 10px 14px;
  background: var(--azul);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.cabecera-simple {
  display: flex;
  width: 100%;
  max-width: 760px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  background: #101820;
  border-bottom: 1px solid #293b4c;
}

.marca {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.marca-logo { display: block; width: 156px; height: auto; }

.boton-corto {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--verde);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pagina-producto {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.ficha-producto,
.pedido,
.detalle {
  padding: 28px 18px;
}

.categoria {
  margin: 0 0 8px;
  color: #6d6d6d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

h1,
h2,
h3 {
  color: var(--azul);
  font-weight: 800;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: 40px;
  text-align: center;
}

h2 {
  margin: 46px 0 14px;
  font-size: 31px;
  text-align: center;
}

h3 { font-size: 26px; }

.bajada,
.texto-centrado {
  margin: 10px auto 22px;
  text-align: center;
}

.foto-principal {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.foto-principal img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.miniaturas {
  display: grid;
  margin: 12px 0 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.miniaturas button {
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.miniaturas button.activa { border-color: var(--dorado); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }

.precio {
  padding: 18px;
  border-radius: 12px;
  background: #f2f5fb;
  text-align: center;
}

.precio span,
.precio strong,
.precio del,
.precio small { display: block; }
.precio span { color: #555; font-size: 15px; }
.precio del { color: #888; font-size: 18px; }
.precio strong { color: var(--azul); font-size: 34px; }
.precio small { margin-top: 4px; color: #5d4a12; font-size: 15px; font-weight: 800; }

.estado-catalogo,
.confirmacion {
  margin: 10px 0 18px;
  color: #555;
  font-size: 16px;
  text-align: center;
}

.beneficios-rapidos { padding: 6px 0 12px; }
.beneficios-rapidos p { margin: 10px 0; font-weight: 600; }

.boton-principal {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--verde);
  box-shadow: 0 7px 0 var(--verde-oscuro);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
}

.boton-principal:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--verde-oscuro); }
.boton-principal:disabled { opacity: .6; cursor: wait; }

.pedido {
  border-top: 10px solid var(--fondo);
  background: #fffdf6;
}

.pedido h2 { margin-top: 6px; }

.respaldo-vendedor {
  display: flex;
  margin: 14px 0 18px;
  padding: 12px 14px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d0d7e0;
  border-radius: 10px;
  background: #fff;
  color: #687062;
  font-size: 14px;
  font-weight: 700;
}

.respaldo-vendedor img { width: 142px; height: auto; }

.resumen-producto {
  display: flex;
  margin: 22px 0;
  padding: 12px;
  align-items: center;
  gap: 14px;
  border: 2px solid #ead99b;
  border-radius: 12px;
  background: #fff;
}

.resumen-producto img {
  width: 96px;
  height: 76px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.resumen-producto b,
.resumen-producto span { display: block; }
.resumen-producto b { font-size: 19px; }
.resumen-producto span { color: #8a6b12; font-weight: 800; }

.formulario { width: 100%; }

.paso {
  display: flex;
  margin: 28px 0 14px;
  align-items: center;
  gap: 12px;
}

.paso > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
}

.paso b,
.paso small { display: block; }
.paso b { font-size: 19px; }
.paso small { color: #5f5f5f; font-size: 15px; }

.campos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.campo {
  display: grid;
  gap: 7px;
  color: #222;
  font-size: 16px;
  font-weight: 700;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 13px;
  border: 2px solid #cecece;
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  font-size: 18px;
}

.campo textarea { min-height: 100px; resize: vertical; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus { border-color: var(--azul-claro); outline: 3px solid rgba(20, 45, 99, .12); }
.campo-factura { display: none; }
.campo-factura.visible { display: grid; }

.consentimiento {
  display: flex;
  margin: 22px 0;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
}

.consentimiento input { width: 22px; height: 22px; flex: 0 0 22px; }
.errores { color: #a51f1f; font-size: 16px; }
.errores ul { padding: 14px 14px 14px 34px; border-radius: 8px; background: #ffecec; }
.respuesta { text-align: center; font-weight: 800; }
.respuesta.exito { padding: 14px; border-radius: 8px; background: #e6f8ed; color: #08753b; }

.detalle { border-top: 10px solid var(--fondo); }
.detalle > p { margin: 0 0 20px; text-align: center; }

.video-venta {
  margin: 4px 0 50px;
  padding: 20px 14px 24px;
  border-radius: 14px;
  background: #eef3f8;
  text-align: center;
}

.video-etiqueta {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--azul);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.video-venta h3 { margin: 14px 0 8px; }
.video-venta p { margin: 0 auto 18px; }

.video-chairside {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #07101d;
  box-shadow: 0 12px 30px rgba(4, 15, 31, .2);
}

.video-cta { margin-top: 20px; }

.imagen-ancha {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 34px;
  border-radius: 12px;
  background: #f1f4f7;
  box-shadow: 0 10px 28px rgba(4, 15, 31, .1);
}

.imagen-contenida {
  max-height: 720px;
  object-fit: contain;
}

.razones p { margin: 0 0 14px; text-align: left; }

.ficha-tecnica {
  margin: 38px 0;
  padding: 22px;
  border-radius: 12px;
  background: #f1f3f7;
}

.ficha-tecnica h3 { margin: 0 0 16px; text-align: center; }
.ficha-tecnica p { margin: 8px 0; text-align: left; }

.cierre {
  margin-top: 35px;
  padding: 28px 18px;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  text-align: center;
}

.cierre h3 { margin: 0 0 10px; color: #fff; }

footer {
  display: grid;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px;
  background: #050c20;
  color: #fff;
  text-align: center;
  gap: 4px;
}

footer img { width: 190px; max-width: 70%; margin: 0 auto 10px; }
footer span { color: #b9c1d2; font-size: 15px; }

.compra-fija {
  position: fixed;
  z-index: 50;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: flex;
  width: calc(100% - 20px);
  max-width: 730px;
  min-height: 60px;
  margin: 0 auto;
  padding: 10px 17px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--verde);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
  color: #fff;
  cursor: pointer;
}

.compra-fija span { font-size: 15px; }
.compra-fija b { font-size: 17px; }

@media (min-width: 620px) {
  .ficha-producto,
  .pedido,
  .detalle { padding: 38px 42px; }

  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .campos { grid-template-columns: 1fr 1fr; }
  .campo-ancho { grid-column: 1 / -1; }
  .video-venta { padding: 28px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
