/* MAQUETA LOCAL · «Cotiza tus planos» (vista cliente de la calculadora UVIE con la cara del sitio v8). NO SE PUBLICA.
   Sólo consume los tokens de styles.css (origin/main): paleta del logo, grafito, Space Grotesk, Inter, IBM Plex Mono.
   Sin rojo ni ámbar: el aviso es superficie + borde + ícono, como .aviso del sitio. */

.cotiza-wrap { max-width: 48rem; margin-inline: auto; }

/* ---------- tarjeta del asistente ---------- */
.vc {
  background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: var(--radio-l);
  padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.5);
}
.vc .vcPaso {
  font-family: var(--f-mono); font-size: var(--rotulo-tamano); letter-spacing: var(--rotulo-tracking);
  text-transform: uppercase; color: var(--verde-lima); margin: 0;
}
.vc-barra { height: 0.25rem; border-radius: 999px; background: var(--linea-fuerte); margin: 0.75rem 0 1.75rem; overflow: hidden; }
.vc-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--azul-ccc), var(--verde-lima)); transition: width .4s var(--ease-out); }
.vc h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; margin: 0.25rem 0 1.25rem; }

/* opciones: mismas clases que la calculadora (.ent), con la piel del sitio */
.vc .ent { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.vc .ent button {
  text-align: left; padding: 1rem 1.125rem; border: 1px solid var(--linea-fuerte); border-radius: var(--radio-m);
  background: var(--superficie-alta); color: var(--texto-alto); transition: border-color .2s ease, background .2s ease;
}
.vc .ent button:hover { border-color: var(--azul-ccc); }
.vc .ent button b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.vc .ent button span { display: block; margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.45; color: var(--texto-suave); }
.vc .ent button[aria-pressed="true"] { border-color: var(--azul-ccc); background: rgba(31, 163, 218, 0.12); box-shadow: inset 0 0 0 1px var(--azul-ccc); }
.vc .ent button:focus-visible, .vc .btn:focus-visible { outline: 2px solid var(--azul-ccc); outline-offset: 2px; }

.vc label.campo {
  display: block; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--texto-suave); margin: 1.25rem 0 0.5rem;
}
.vc input[type="number"], .vc select {
  width: 100%; padding: 0.875rem 1rem; border-radius: var(--radio-m); font: inherit; font-size: 0.9375rem;
  background: var(--grafito-noche); border: 1px solid var(--linea-fuerte); color: var(--texto-alto); outline: none;
}
.vc input:focus, .vc select:focus { border-color: var(--azul-ccc); }
.vc select option { background: var(--grafito); color: var(--texto-alto); }
.vc .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.vc .ayuda { font-size: 0.875rem; line-height: 1.55; color: var(--texto-suave); margin: 0.875rem 0 0; }

.vc .acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.vc .btn--ghost { border: 1px solid var(--linea-fuerte); }
.vc .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.vc-nota { flex-basis: 100%; font-size: 0.875rem; color: var(--texto-suave); }

/* ---------- resultado ---------- */
.vc .total {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--texto-alto); margin: 0.25rem 0 0.625rem;
}
.vc .sub { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--texto-suave); }
.vc p { color: var(--texto-medio); line-height: 1.65; margin-top: 0.875rem; }
.vc p b { color: var(--texto-alto); font-weight: 600; }
.vc .vc-resumen { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); }
.vc .vc-cta { margin-top: 1.5rem; color: var(--texto-alto); }

/* listas con la palomita del sitio (.content-grid li) */
.cotiza ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.cotiza ul li { position: relative; padding-left: 1.75rem; line-height: 1.55; color: var(--texto-medio); }
.cotiza ul li::before {
  content: ''; position: absolute; left: 0; top: 0.3125rem; width: 1rem; height: 1rem; border-radius: 0.25rem;
  background: rgba(45, 170, 62, 0.14); border: 1px solid var(--verde-esmeralda);
}
.cotiza ul li::after {
  content: ''; position: absolute; left: 0.3125rem; top: 0.5rem; width: 0.3125rem; height: 0.5rem;
  border-right: 2px solid var(--esmeralda-claro); border-bottom: 2px solid var(--esmeralda-claro); transform: rotate(45deg);
}

/* supuestos: el aviso único del sitio (superficie + borde + ícono), sin rojo ni ámbar */
.vc .vcSup {
  margin-top: 1.5rem; padding: 1rem 1.125rem 1.125rem; border: 1px solid var(--linea-fuerte);
  border-left: 0.1875rem solid var(--azul-ccc); border-radius: var(--radio-s); background: var(--grafito-noche); font-size: 0.9375rem;
}
.vc .vcSup > b { display: block; font-family: var(--f-mono); font-size: var(--rotulo-tamano); letter-spacing: var(--rotulo-tracking); text-transform: uppercase; color: var(--azul-ccc); font-weight: 500; }
.vc .vcSup ul li::before { border-color: var(--azul-ccc); background: rgba(31, 163, 218, 0.12); width: 0.375rem; height: 0.375rem; border-radius: 50%; top: 0.6rem; left: 0.4rem; }
.vc .vcSup ul li::after { display: none; }

/* texto corrido justificado (regla de JCR, como la calculadora: .vc p, .vc li) */
.cotiza p, .cotiza li { text-align: justify; hyphens: auto; }

/* ---------- qué incluye cada paquete ---------- */
.paq-titulo { font-size: clamp(1.5rem, 3vw, 2.375rem); letter-spacing: -0.01em; }
.paq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.paq { background: var(--superficie); border: 1px solid var(--linea-fuerte); border-radius: var(--radio-l); padding: 1.5rem; }
.paq h3 { font-size: 1.25rem; font-weight: 600; }
.paq p { color: var(--texto-medio); line-height: 1.6; margin-top: 0.5rem; font-size: 0.9375rem; }
.paq p b { color: var(--texto-alto); font-weight: 600; }
.paq .paq-corto { color: var(--verde-lima); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-align: left; }
.paq .vc-rotulo { margin-top: 1rem; }
.paq ul li { font-size: 0.9375rem; }
.paq .paq-pone { margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--linea); }

/* ---------- v2 · formulario nativo (D3 de JCR, 3-dic): form, fieldset, radios con label ---------- */
.cotiza [hidden] { display: none !important; }
.cf-intro { color: var(--texto-medio); line-height: 1.65; margin: 0; }
.cf-avance { margin: 1.25rem 0 0.5rem; }
.cf-avance .vc-barra { margin: 0 0 0.5rem; }
.cf-avance .vc-barra span { width: 0; }
.cf-preg { border: 0; padding: 0; margin: 2rem 0 0; min-width: 0; }
.cf-preg + .cf-preg { padding-top: 2rem; border-top: 1px solid var(--linea); }
.cf-preg legend {
  display: flex; gap: 0.75rem; align-items: baseline; padding: 0; margin: 0 0 1.125rem;
  font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.22; color: var(--texto-alto);
}
.cf-num {
  flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 500; color: var(--grafito-noche); background: var(--verde-lima);
  transform: translateY(-0.125rem);
}
/* tarjetas de opción: el radio es real y VISIBLE (un agente de navegador lo ve como control y la persona ve qué
   eligió); la tarjeta entera es su label */
.vc .cf-op {
  position: relative; display: block; cursor: pointer; padding: 1rem 3rem 1rem 1.125rem; border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio-m); background: var(--superficie-alta); color: var(--texto-alto); transition: border-color .2s ease, background .2s ease;
}
.vc .cf-op input {
  position: absolute; top: 1rem; right: 1rem; width: 1.125rem; height: 1.125rem; margin: 0;
  accent-color: var(--azul-ccc); color-scheme: dark; cursor: pointer;
}
.vc .cf-op:hover { border-color: var(--azul-ccc); }
.vc .cf-op b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.vc .cf-op-cuerpo > span { display: block; margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.45; color: var(--texto-suave); }
.vc .cf-op:has(input:checked) { border-color: var(--azul-ccc); background: rgba(31, 163, 218, 0.12); box-shadow: inset 0 0 0 1px var(--azul-ccc); }
.vc .cf-op input:focus-visible { outline: 2px solid var(--azul-ccc); outline-offset: 2px; }
.cf-preg:disabled { display: none; }
.vc .cf-campos { margin-top: 0.25rem; }
.vc #cf-tab { max-width: 10rem; }
.cf-est:empty, .cf-tarifa:empty { display: none; }
.vc .cf-tarifa, .vc .vc-tarifa { color: var(--verde-lima); font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
/* D1: aviso del sitio (superficie + borde + ícono), sin rojo ni ámbar */
.vc .cf-d1 {
  margin-top: 1rem; padding: 1rem 1.125rem; border: 1px solid var(--linea-fuerte); border-left: 0.1875rem solid var(--verde-lima);
  border-radius: var(--radio-s); background: var(--grafito-noche);
}
.vc .cf-d1 p { margin: 0 0 0.875rem; color: var(--texto-alto); }
.vc .cf-d1-res p { color: var(--texto-alto); }
.vc .cf-d1-res .acciones { margin-top: 0.875rem; }
.vc .cf-d1-res { margin: 0 0 1.75rem; border-left-color: var(--verde-lima); }
.vc .cf-d1-res > b { color: var(--verde-lima); }
/* pregunta sin responder al enviar */
.cf-preg.cf-falta legend .cf-num { background: var(--azul-ccc); color: var(--grafito-noche); outline: 2px solid var(--azul-ccc); outline-offset: 2px; }
.cf-preg.cf-falta .cf-op { border-color: var(--azul-ccc); }
.vc .cf-error {
  margin-top: 1.5rem; padding: 0.75rem 1rem; border-radius: var(--radio-s); border: 1px solid var(--azul-ccc);
  background: rgba(31, 163, 218, 0.1); color: var(--texto-alto);
}
.vc .cf-error-campo { margin-top: 0.625rem; }
/* resultado */
.vc-res { margin-top: 1.5rem; scroll-margin-top: 6rem; }
/* I-1 (QA 4-dic-2026): el siguiente paso va junto al precio y el detalle se pliega */
.vc .cf-salvedad { margin-top: 0.75rem; font-size: 0.9375rem; }
.vc .cf-siguiente { margin-top: 1.25rem; }
.vc .cf-siguiente .btn, .vc .cf-asesoria-acc .btn { text-align: center; }
.vc .cf-asesoria-res {
  margin-top: 1.25rem; padding: 1rem 1.125rem; border-radius: var(--radio-m); border: 1px solid var(--linea-fuerte);
  background: linear-gradient(135deg, rgba(31, 163, 218, 0.1), rgba(170, 214, 54, 0.06));
}
.vc .cf-asesoria-res p { margin: 0; color: var(--texto-alto); }
.vc .cf-asesoria-acc { margin-top: 0.75rem; }
.vc details.cf-det { margin-top: 0.75rem; border: 1px solid var(--linea); border-radius: var(--radio-s); padding: 0 1rem; }
.vc details.cf-det > summary { cursor: pointer; padding: 0.75rem 0; min-height: 1.5rem; font-weight: 600; color: var(--texto-alto); }
.vc details.cf-det > summary:focus-visible { outline: 2px solid var(--azul-ccc); outline-offset: 2px; }
.vc details.cf-det[open] { padding-bottom: 0.875rem; }
.vc details.cf-det p { margin-top: 0; }
.vc .cf-det-sup ul li::before { border-color: var(--azul-ccc); background: rgba(31, 163, 218, 0.12); width: 0.375rem; height: 0.375rem; border-radius: 50%; top: 0.6rem; left: 0.4rem; }
.vc .cf-det-sup ul li::after { display: none; }
.vc-res:focus { outline: none; }
.vc .vc-titulo { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; margin: 0.25rem 0 1.25rem; }
.vc .vc-asesoria {
  margin-top: 1.75rem; padding: 1.25rem 1.25rem 1.375rem; border-radius: var(--radio-m);
  border: 1px solid var(--linea-fuerte); background: linear-gradient(135deg, rgba(31, 163, 218, 0.1), rgba(170, 214, 54, 0.06));
}
.vc .vc-asesoria p:not(.vcPaso) { color: var(--texto-alto); margin-top: 0.5rem; }
.vc .vc-asesoria .acciones { margin-top: 1rem; }
.vc .cf-enlace { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); }

/* ---------- sello de maqueta (no es del sitio) ---------- */
.maqueta-badge {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 150; pointer-events: none;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0.75rem; border-radius: 999px; background: var(--superficie-alta); border: 1px solid var(--linea-fuerte); color: var(--texto-medio);
}

@media (max-width: 720px) {
  .paq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vc .ent, .vc .fila2 { grid-template-columns: 1fr; }
  .vc .acciones .btn { flex: 1 1 auto; justify-content: center; }
}

.cc-referencias { margin-top: .75rem; }
.paq-ejemplo { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.paq-ejemplo .paq-datos { margin: 0; color: var(--texto-suave); }
.paq-ejemplo .paq-precio { margin: .25rem 0; font-size: 1.65rem; }
.paq-ejemplo a, .vc .ayuda a { color: var(--azul-ccc); text-decoration: underline; text-underline-offset: .22em; }
#contacto, #asesoria { scroll-margin-top: 5.5rem; }
.cc-campos { margin-top: 1.25rem; }
.vc .cc-contexto { margin-top: 1rem; }
.vc #cc-ciudad, .vc #cc-fecha, .vc textarea {
  box-sizing: border-box; width: 100%; padding: .7rem .8rem; border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio-s); background: var(--grafito-noche); color: var(--texto-alto); font: inherit;
  font-size: 1rem; letter-spacing: normal; text-transform: none;
}
.vc #cc-ciudad, .vc #cc-fecha, .vc textarea, .vc .cc-campos select { display: block; width: 100%; margin-top: .4rem; }
.vc textarea { resize: vertical; }
.vc .cc-asesoria { margin: 0; border-top: .2rem solid var(--verde-lima); }
.vc .cc-asesoria .vc-titulo { margin-top: 0; margin-bottom: 1rem; }
.vc .cc-asesoria p, #contacto .vc p { text-align: left; hyphens: none; }

.vc [hidden]{display:none!important}
