/* =====================================================================
   MOLCORP · Reserva, privacidad y página no encontrada
   ===================================================================== */

/* ---------- reserva ---------- */
.rv {
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--nav-h) + clamp(36px, 6vh, 72px)) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(45% 50% at 18% 30%, rgba(29, 106, 255, .16), transparent 72%),
    linear-gradient(180deg, var(--fondo), var(--sup) 70%, var(--fondo));
}
.rv-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rv-bg .dots {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(40% 50% at 18% 30%, #000, transparent 80%);
  mask-image: radial-gradient(40% 50% at 18% 30%, #000, transparent 80%);
}
.rv-grid {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px); align-items: start;
}
.rv-summary { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 20px; }
.rv-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.rv-card {
  border: 1px solid var(--linea-2); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 106, 255, .14), var(--fondo) 58%);
  box-shadow: 0 40px 90px -50px rgba(29, 106, 255, .55);
}
.rv-card img { width: 100%; height: auto; margin: -4% 0 -6%; }
.rv-card-body { display: grid; gap: 12px; padding: 0 22px 22px; }
.rv-kit { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.02em; }
.rv-price { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.rv-price small { font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--gris-2); }
.rv-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rv-count { font-size: var(--t-xs); color: var(--azul); }
.rv-incl { display: grid; gap: 8px; font-size: var(--t-sm); color: var(--gris-1); }
.rv-incl li { position: relative; padding-left: 22px; }
.rv-incl li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 8px var(--azul-claro); }
.rv-incl li.is-out::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gris-2); }
.rv-privacy { font-size: var(--t-xs); color: var(--gris-2); line-height: 1.55; }
.rv-privacy a { color: var(--azul); }

.rv-main { min-width: 0; }
.rv-notice {
  margin-bottom: 24px; padding: 16px 18px;
  border: 1px solid #e0a62e; border-radius: var(--r);
  background: #fff6df; color: var(--aviso); font-size: var(--t-sm);
  display: grid; gap: 12px; justify-items: start;
}

/* campos */
.rv-form { display: grid; gap: 26px; }
.rv-form fieldset {
  margin: 0; padding: 26px clamp(18px, 3vw, 30px) 24px;
  border: 1px solid var(--linea-2); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 30px 70px -56px rgba(29, 106, 255, .6);
  display: grid; gap: 18px;
}
.rv-form legend {
  padding: 0 8px; margin-left: -8px;
  font-size: var(--t-sm); font-weight: 500; color: var(--azul);
}
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--texto); }
.opt { margin-left: 6px; font-weight: 400; color: var(--gris-2); font-size: var(--t-xs); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--linea-2); border-radius: 12px;
  background: var(--sup); color: var(--texto);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--sup) right 14px center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6aff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--linea-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(29, 106, 255, .16);
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(211, 58, 58, .1); }
.field-error { min-height: 0; font-size: var(--t-xs); color: var(--error); }
.field-error:empty { display: none; }
.field-hint { font-size: var(--t-xs); color: var(--gris-2); margin-top: -4px; }

.stepper { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; max-width: 220px; }
.stepper button {
  height: 50px; border: 1px solid var(--linea-2); background: var(--fondo); color: var(--texto); font-size: 1.2rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.stepper button:hover { background: rgba(29, 106, 255, .08); border-color: var(--azul); color: var(--azul-profundo); }
.stepper input { border-radius: 0; border-inline: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rv-total-field { align-content: end; justify-items: end; text-align: right; gap: 2px; }
.rv-total-k { font-size: var(--t-sm); color: var(--gris-2); }
.rv-total { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rv-total-sub { font-size: var(--t-xs); color: var(--gris-2); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--t-sm); color: var(--gris-1); cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--linea-3); border-radius: 6px; background: var(--fondo);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check input::after {
  content: ''; width: 12px; height: 12px; opacity: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check input:checked { background: var(--azul); border-color: var(--azul); box-shadow: 0 6px 16px -6px var(--luz-fuerte); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--error); }
.check a { color: var(--azul); }
.rv-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.rv-how { max-width: 40ch; }
.form-status { font-size: var(--t-sm); color: var(--error); }
.form-status:empty { display: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* confirmación */
.rv-done {
  display: grid; gap: 16px; justify-items: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(29, 106, 255, .3); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(29, 106, 255, .12), var(--fondo) 60%);
  box-shadow: 0 40px 90px -56px rgba(29, 106, 255, .6);
}
.rv-done:focus { outline: none; }
.rv-done-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--azul); box-shadow: 0 0 0 8px rgba(29, 106, 255, .12), 0 12px 30px -6px var(--luz-fuerte);
}
.rv-done-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-done p { color: var(--gris-1); max-width: 60ch; }
.rv-done a { color: var(--azul); }
.rv-fallback { display: grid; gap: 12px; width: 100%; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--linea-2); }
.rv-copy {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--linea-2);
  background: var(--sup); color: var(--gris-1); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; resize: vertical;
}
.rv-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-summary { position: static; }
  .rv-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; }
  .rv-card img { margin: 0; }
  .rv-card-body { padding: 16px 16px 16px 0; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .rv-total-field { justify-items: start; text-align: left; }
  .rv-card { grid-template-columns: minmax(0, 1fr); }
  .rv-card img { margin: -4% 0 -6%; }
  .rv-card-body { padding: 0 18px 18px; }
  .rv-submit .btn { width: 100%; }
}

/* ---------- páginas de texto (privacidad) ---------- */
.doc {
  padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(29, 106, 255, .14), transparent 72%),
    var(--fondo);
}
.doc-inner { max-width: 760px; }
.doc h1 { margin-bottom: 18px; }
.doc .lead { margin-bottom: 40px; }
.doc h2 { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.015em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--gris-1); max-width: 66ch; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc ul + p, .doc p + ul { margin-top: 14px; }
.doc li b { color: var(--texto); font-weight: 500; }
.doc a { color: var(--azul); }
.doc-meta { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--linea-2); font-size: var(--t-xs); color: var(--gris-2); font-family: var(--mono); }
.doc-pending { margin-top: 32px; padding: 16px 18px; border: 1px dashed #e0a62e; border-radius: var(--r); background: #fffaf0; font-size: var(--t-sm); }

/* ---------- 404 ---------- */
.nf {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 60px;
  background:
    radial-gradient(45% 45% at 50% 50%, rgba(29, 106, 255, .16), transparent 72%),
    var(--fondo);
}
.nf-inner { display: grid; justify-items: center; gap: 18px; }
.nf-code { font-family: var(--mono); font-size: clamp(4rem, 2rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(29, 106, 255, .55); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
