/* Checkout Revista - estilo alineado a Logística (Énfasis)
   Palette aproximada tomada de capturas:
   - Gris carbón: #303030
   - Azul marca:  #106098
   - Azul claro:  #1fa2d6 (hover / acento)
*/

:root {
  --rev-bg: #f7f7f7;
  --rev-card: #ffffff;
  --rev-text: #222;
  --rev-muted: #6b7280;

  --rev-dark: #303030;
  --rev-blue: #106098;
  --rev-blue-2: #1fa2d6;

  --rev-border: #d6dde6;
  --rev-input-bg: #fff;
  --rev-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Contenedor */
.revista-checkout {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: var(--rev-text);
}

.revista-help {
  margin: 0 0 18px;
  color: var(--rev-muted);
  line-height: 1.35;
  font-size: 14px;
}
/* Cards */
.revista-card {
  background: var(--rev-card);
  border: 1px solid var(--rev-border);
  border-radius: 10px;
  box-shadow: var(--rev-shadow);
  margin: 16px 0;
  overflow: hidden;
}

.revista-card-header {
  background: #d9ecff;                 /* similar a tu header celeste */
  color: var(--rev-blue);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #c7ddf7;
  letter-spacing: .2px;
}

/* Grid de campos */
.revista-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.revista-col-2 { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .revista-grid { grid-template-columns: 1fr; }
}

/* Campos */
.revista-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #111;
}

.revista-field input,
.revista-field select,
.revista-field textarea {
  width: 100%;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--rev-blue);
  border-radius: 4px;
  background: var(--rev-input-bg);
  color: var(--rev-text);
  outline: none;
  box-sizing: border-box;
  transition: box-shadow .15s ease, border-color .15s ease;
}

/* Para textarea */
.revista-field textarea {
  min-height: 90px;
  height: auto;
  resize: vertical;
}

/* Placeholder visible en modo claro */
.revista-field input::placeholder,
.revista-field textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

/* Focus */
.revista-field input:focus,
.revista-field select:focus,
.revista-field textarea:focus {
  border-color: var(--rev-blue-2);
  box-shadow: 0 0 0 3px rgba(31,162,214,.18);
}

/* Teléfono */
.revista-field-phone { grid-column: 1 / -1; }
.revista-phone {
  display: grid;
  grid-template-columns: 170px 120px 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .revista-phone { grid-template-columns: 1fr; }
}

/* Nota */
.revista-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--rev-muted);
  margin-top: -4px;
}

/* Edición */
.revista-edicion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .revista-edicion { grid-template-columns: 1fr; }
}

/* Bloque productos / líneas de pedido */
.revista-productos {
  padding: 0 14px 14px;
}

.revista-product-btn {
  display: inline-block;
  background: var(--rev-blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  margin: 10px 0 14px;
}
.revista-product-btn:hover { background: var(--rev-blue-2); }

.revista-linea {
  border: 1px solid var(--rev-border);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  background: #fff;
}

.revista-linea h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--rev-dark);
}

.revista-linea .revista-meta {
  font-size: 13px;
  color: var(--rev-muted);
  line-height: 1.35;
}

.revista-qty {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.revista-btn-qty {
  width: 42px;
  height: 36px;
  border-radius: 6px;
  border: 0;
  background: #6b7280;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.revista-btn-qty:hover { filter: brightness(1.05); }

.revista-qty input {
  width: 70px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--rev-border);
  border-radius: 6px;
}

.revista-btn-danger {
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.revista-btn-danger:hover { filter: brightness(1.05); }

/* Totales */
.revista-totales {
  margin: 12px 14px 4px;
  padding: 12px;
  border: 1px solid var(--rev-border);
  border-radius: 10px;
  background: #fff;
}

.revista-totales > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.revista-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--rev-blue);
}

/* Acciones */
.revista-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 0;
  flex-wrap: wrap;
}

.revista-btn-primary {
  background: var(--rev-blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}
.revista-btn-primary:hover { background: var(--rev-blue-2); }

.revista-msg {
  font-size: 13px;
  color: var(--rev-muted);
}
.revista-msg.is-error { color: #b91c1c; }

.revista-footnote {
  padding: 10px 14px 14px;
  font-size: 12px;
  color: var(--rev-muted);
}
