/* Formulario de cotización — Astra Telecom (una sola vista, sin pasos) */
.cotizador {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  scroll-margin-top: 90px;
  overflow: hidden;
}
.cotizador::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-on-dark));
}

/* Etiquetas y errores */
.cz-field { margin-bottom: 1.35rem; }
.cz-label {
  display: block;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .6rem;
}
.cz-label .req { color: var(--accent); }
.cz-label small { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); color: var(--faint); margin-left: .5rem; font-size: .8rem; }
.cz-err { display: none; color: #b3261e; font-size: .82rem; margin: .5rem 0 0; }
.cz-field.invalid .cz-err { display: block; }
.cz-field.invalid .cz-svcs, .cz-field.invalid .cz-chips { outline: 2px solid rgba(179,38,30,.35); outline-offset: 6px; border-radius: var(--radius-sm); }
.cz-field.invalid .cz-input { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.cz-hint { margin: 0; color: var(--faint); font-size: .9rem; }

/* Campos */
.cz-input {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cz-input::placeholder { color: var(--faint); }
.cz-input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.cz-input { min-height: 84px; resize: none; overflow: hidden; line-height: 1.5; margin-top: .7rem; }
select.cz-input { appearance: auto; }
.cz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* Servicios: botones compactos */
.cz-svcs { display: flex; flex-wrap: wrap; gap: .5rem; }
.cz-svc { position: relative; cursor: pointer; }
.cz-svc input, .cz-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cz-svc span {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: .94rem; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.cz-svc i { display: inline-flex; font-style: normal; }
.cz-svc svg { width: 18px; height: 18px; color: var(--accent); transition: color .2s; }
.cz-svc:hover span { border-color: var(--accent); }
.cz-svc input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.cz-svc input:checked + span svg { color: #fff; }
.cz-svc input:focus-visible + span, .cz-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ideas rápidas */
.cz-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cz-chip { position: relative; cursor: pointer; }
.cz-chip span {
  display: inline-block; padding: .5rem .85rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .9rem; color: var(--ink-2); background: var(--surface);
  transition: border-color .2s, background .2s, color .2s;
}
.cz-chip:hover span { border-color: var(--ink); }
.cz-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.cz-chip input:checked + span::before { content: "✓ "; }
.cz-mas-btn { border: 1px dashed var(--line-2); background: transparent; color: var(--accent); font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; }
.cz-mas-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.cz-note { color: var(--accent-strong); font-size: .9rem; background: var(--accent-soft); border-radius: var(--radius-sm); padding: .65rem .9rem; margin: .7rem 0 0; }

/* Datos de contacto */
.cz-sep {
  display: flex; align-items: center; gap: .8rem; margin: .4rem 0 1.1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.cz-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Envío */
.cz-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.cz-note-legal { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.cz-error { color: #b42318; font-size: .92rem; margin: 0 0 .8rem; }
.cz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Éxito */
.cz-done { text-align: center; padding: 2rem 1rem; animation: czIn .45s both; }
.cz-done .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; font-size: 1.8rem; background: var(--accent-soft); color: var(--accent); }
.cz-done h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.cz-done p { color: var(--ink-2); margin: .7rem auto 0; max-width: 44ch; }
.cz-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.4rem; }
.cz-pill { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
@keyframes czIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .contact-page .contact__info { position: sticky; top: 96px; }
}
@media (max-width: 640px) {
  .cz-row { grid-template-columns: 1fr; }
  .cz-svc span { padding: .55rem .85rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-done { animation: none; }
}

/* Celular: texto de etiquetas legible y la ayuda en su propia línea */
@media (max-width: 640px) {
  .cotizador { padding: 1.25rem 1.05rem; }
  .cz-label, .cz-sep { font-size: .76rem; line-height: 1.4; }
  .cz-label small { display: block; margin: .2rem 0 0; font-size: .82rem; } /* hint en su propia línea */
  .cz-chip span { font-size: .92rem; line-height: 1.3; }
  .cz-svc span { font-size: .92rem; }
  .cz-note, .cz-hint { font-size: .9rem; }
}
