/* Formulario de pedido por WhatsApp — páginas de libro */
body.wam-open { overflow: hidden; }

.wam-ov {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 2, 6, .86);
  backdrop-filter: blur(10px);
}

.wam-ov.on { display: flex; }

.wam-box {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(212, 168, 83, .38);
  background: linear-gradient(160deg, #13111e, #07060d);
  box-shadow: 0 0 70px rgba(212, 168, 83, .12), 0 30px 80px rgba(0, 0, 0, .6);
}

.wam-hd {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(212, 168, 83, .16);
  background: #0f0d1a;
}

.wam-kicker {
  margin: 0 0 .15rem;
  color: #d4a853;
  font-size: .52rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.wam-hd h2 {
  margin: 0;
  color: #f5f0e8;
  font-family: "Cinzel", serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wam-x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 168, 83, .3);
  border-radius: 3px;
  background: transparent;
  color: #a0998a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.wam-x:hover,
.wam-x:focus-visible {
  background: #d4a853;
  color: #060c06;
  outline: none;
}

.wam-bd {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.1rem 1.25rem 1.4rem;
}

.wam-prod {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem;
  border: 1px solid rgba(212, 168, 83, .16);
  background: rgba(255, 255, 255, .015);
}

.wam-pimg {
  width: 52px;
  height: 78px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(212, 168, 83, .2);
}

.wam-pinfo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.wam-lbl {
  color: #a0998a;
  font-size: .46rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wam-pinfo strong {
  color: #f5f0e8;
  font-family: "Cinzel", serif;
  font-size: .82rem;
  line-height: 1.2;
}

.wam-pinfo span {
  color: rgba(160, 153, 138, .8);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wam-price {
  align-self: center;
  color: #d4a853;
  font-family: "Cinzel", serif;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.wam-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.wam-f {
  display: flex;
  flex-direction: column;
  gap: .26rem;
}

.wam-f label {
  color: #a0998a;
  font-size: .48rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wam-f label em {
  color: #d4a853;
  font-style: normal;
}

.wam-f input,
.wam-f select {
  width: 100%;
  padding: .48rem .65rem;
  border: 1px solid rgba(212, 168, 83, .2);
  border-radius: 0;
  outline: none;
  background: rgba(15, 12, 22, .95);
  color: #f5f0e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .92rem;
  transition: border-color .2s ease;
}

.wam-f input:focus,
.wam-f select:focus {
  border-color: #d4a853;
}

.wam-f input::placeholder {
  color: rgba(160, 153, 138, .36);
  font-style: italic;
}

.wam-tot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(212, 168, 83, .18);
  background: rgba(212, 168, 83, .07);
}

.wam-tl {
  color: #a0998a;
  font-size: .55rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.wam-tv {
  color: #d4a853;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.wam-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #25d366;
  color: #07130a;
  font-family: "Cinzel", serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.wam-btn:hover,
.wam-btn:focus-visible {
  background: #1ebe5a;
  transform: translateY(-1px);
  outline: none;
}

.wam-note {
  margin: 0;
  color: rgba(160, 153, 138, .65);
  font-size: .7rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 480px) {
  .wam-ov { padding: .5rem; }
  .wam-row { grid-template-columns: 1fr; }
  .wam-box { max-height: 94vh; }
  .wam-hd { padding: .85rem 1rem; }
  .wam-bd { padding: .9rem 1rem 1.2rem; }
}
