/* Cuestionario de alta (empezar/). Usa los tokens de styles.css. */

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.ez-body { background: var(--cal); }
.ez-help { margin-left: auto; }
.ez { padding: 28px 0 40px; scroll-margin-top: 72px; }
.ez__wrap { width: min(720px, 100% - 32px); margin-inline: auto; }

.ez-intro h1 { font-size: clamp(32px, 7vw, 52px); max-width: 18ch; }
.ez-lead { color: var(--stone); font-size: 17px; margin-top: 14px; max-width: 56ch; }

.ez-draft { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 20px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; font-size: 15px; }
.ez-draft p { flex: 1 1 260px; }

/* Progreso */
.ez-progress { position: sticky; top: 72px; z-index: 20; margin: 22px -16px 0; padding: 12px 16px 12px; background: rgba(244, 239, 230, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ez-progress__txt { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--stone); margin-bottom: 8px; }
.ez-progress__txt span:last-child { color: var(--ink); text-align: right; }
.ez-progress__bar { height: 8px; border-radius: 99px; background: var(--cal-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ez-progress__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
.ez-progress__bar--big { height: 12px; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .ez-progress__bar span { transition: none; } }

/* Formulario */
.ez-form { margin-top: 8px; }
.ez-step { padding: 18px 0 8px; }
.ez-step h2, .ez-sending h2, .ez-done h2 { font-size: clamp(28px, 6vw, 40px); max-width: 22ch; outline: none; }
.ez-sub { color: var(--stone); margin-top: 10px; max-width: 56ch; }
.ez-h3 { font-size: 21px; margin: 30px 0 6px; }
.ez-h3 .opt { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; }

.ez-field { display: grid; gap: 6px; margin: 20px 0 0; min-width: 0; border: 0; padding: 0; }
fieldset.ez-field { margin-top: 24px; }
.ez-field > label, .ez-field > legend { font-weight: 600; font-size: 16px; line-height: 1.35; padding: 0; }
fieldset.ez-field > legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--stone); font-size: .92em; }
.ez-hint { color: var(--stone); font-size: 15px; margin-top: 2px; }
.ez-note { color: var(--stone); font-size: 15px; margin-top: 18px; }

.ez-form input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not([type="file"]),
.ez-form textarea, .ez-form select {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 50px; width: 100%; min-width: 0;
  transition: border-color .15s;
}
.ez-form textarea { resize: vertical; min-height: 84px; }
.ez-form input:focus, .ez-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176, 78, 44, .18); }
.ez-form [aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]), .ez-form [aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]):focus { border-color: #B3261E; background: #FFF6F4; }
.ez-form ::placeholder { color: #9A9186; }

.ez-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 560px) { .ez-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ez-grid2--svc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* Errores */
.ez-err { color: #B3261E; font-size: 15px; font-weight: 600; display: flex; gap: 6px; margin-top: 2px; }
.ez-err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #B3261E; color: #fff; font-size: 13px; }
.ez-errors { margin-top: 14px; padding: 14px 16px; background: #FFF6F4; border: 2px solid #B3261E; border-radius: 12px; color: #7A1A14; outline: none; }
.ez-errors p { font-weight: 700; }
.ez-errors ul { margin: 6px 0 0; padding: 0; list-style: none; }
.ez-errors .ez-link { color: #7A1A14; text-align: left; min-height: 44px; }

/* Planes */
.ez-plans { border: 0; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ez-plan { position: relative; display: block; cursor: pointer; }
.ez-plan input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ez-plan__box { display: grid; gap: 6px; padding: 18px 18px 18px 56px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; position: relative; }
.ez-plan__box::before { content: ""; position: absolute; left: 18px; top: 21px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--stone); background: var(--paper); }
.ez-plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ez-plan__name { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.1; }
.ez-plan__price { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--accent); white-space: nowrap; }
.ez-plan__price small { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.ez-plan__for { color: var(--stone); font-size: 15px; }
.ez-plan input:checked + .ez-plan__box { border-color: var(--ink); background: #fff; }
.ez-plan input:checked + .ez-plan__box::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 5px, var(--paper) 6px); }
.ez-plan input:focus-visible + .ez-plan__box { outline: 3px solid var(--accent); outline-offset: 3px; }
.ez-plan input[aria-invalid="true"] + .ez-plan__box { border-color: #B3261E; }

/* Chips (radios y casillas) */
.ez-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ez-chip { position: relative; display: inline-flex; }
.ez-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.ez-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 500; font-size: 16px; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ez-chip input[type="checkbox"] + span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--stone); flex: none; }
.ez-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cal); }
.ez-chip input[type="checkbox"]:checked + span::before { width: 7px; height: 13px; margin: -3px 5px 0 4px; border: solid var(--accent-soft); border-width: 0 3px 3px 0; border-radius: 0; transform: rotate(45deg); }
.ez-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ez-chip input:disabled + span { opacity: .75; cursor: default; }
.ez-chip input[aria-invalid="true"] + span { border-color: #B3261E; }

/* Casilla suelta */
.ez-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 16px; cursor: pointer; min-height: 44px; padding: 4px 0; }
.ez-check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.ez-check input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; }

/* Filas añadibles */
.ez-rows { display: grid; gap: 12px; margin-top: 10px; }
.ez-row { position: relative; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 14px 14px 16px; margin: 0; min-width: 0; }
.ez-row .ez-field { margin-top: 10px; }
.ez-row .ez-field > label { font-size: 15px; }
.ez-row__t { font-weight: 700; font-size: 15px; color: var(--stone); padding: 0 6px; margin-left: -6px; }
.ez-row .ez-remove { margin-top: 10px; }
.ez-row--inline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.ez-row--inline .ez-field:first-child { margin-top: 0; }
@media (min-width: 560px) {
  .ez-row--inline { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; }
  .ez-row--inline .ez-field { margin-top: 0; }
  .ez-row--inline .ez-remove { margin-top: 0; }
}
.ez-add { margin-top: 12px; min-height: 48px; padding: 0 18px; border: 2px dashed var(--stone); border-radius: 12px; background: transparent; color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; width: 100%; }
.ez-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--paper); }
.ez-remove { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cal); color: var(--stone); font: 600 15px/1 var(--sans); cursor: pointer; }
.ez-remove:hover { border-color: #B3261E; color: #B3261E; }

/* Colores */
.ez-colors { display: grid; gap: 10px; margin-top: 4px; }
.ez-color { display: flex; align-items: center; gap: 12px; }
.ez-color__pick { display: inline-flex; }
.ez-color input[type="color"] { width: 64px; height: 48px; padding: 3px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.ez-color__hex { font: 600 16px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--stone); flex: 1; }
.ez-colors:empty { display: none; }

/* Cajas */
.ez-box { margin-top: 20px; padding: 14px 16px; background: var(--cal-2); border-radius: 12px; font-size: 16px; }
.ez-box--soft { background: var(--paper); border: 1px dashed var(--line); color: var(--stone); font-size: 15px; }
.ez-box--warn { background: #FFF4DF; border: 1px solid #E9C98A; }
.ez-box--warn a { font-weight: 600; }

/* Subidas */
.ez-upload { margin-top: 10px; }
.ez-drop { display: grid; justify-items: center; gap: 4px; margin-top: 8px; padding: 22px 16px; min-height: 96px; text-align: center; border: 2px dashed var(--stone); border-radius: var(--r); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.ez-drop:hover, .ez-drop.is-over { border-color: var(--accent); background: #fff; }
.ez-drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.ez-drop__t { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--cal); font-weight: 600; }
.ez-drop__s { color: var(--stone); font-size: 14px; }
.ez-status { font-size: 15px; color: var(--stone); margin-top: 8px; min-height: 0; }
.ez-status:empty { display: none; }
.ez-status--warn { color: #7A4B00; background: #FFF4DF; border-radius: 10px; padding: 10px 12px; }

.ez-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .ez-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ez-thumbs li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--cal-2); }
.ez-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ez-thumbs .ez-remove { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(28, 27, 25, .78); color: #fff; font-size: 24px; line-height: 1; }
.ez-thumbs .ez-remove:hover { background: #B3261E; color: #fff; }
.ez-files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ez-files li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.ez-files__n { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; font-size: 15px; }
.ez-files__n small { display: block; color: var(--stone); font-weight: 400; }

/* Revisión */
.ez-review { margin: 18px 0 0; border-top: 1px solid var(--line); }
.ez-review > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ez-review dt { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }
.ez-review dd { margin: 2px 0 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.ez-swatches { display: flex; gap: 6px; margin-top: 4px; }
.ez-swatches i { width: 26px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ez-consent { margin-top: 22px; padding: 6px 16px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }

.ez-link { background: none; border: 0; padding: 0 4px; min-height: 44px; font: 600 15px/1.3 var(--sans); color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ez-link:hover { color: var(--ink); }

/* Navegación inferior */
.ez-nav { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; margin: 28px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(244, 239, 230, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.ez-nav .btn { flex: 1; min-height: 52px; padding: 0 16px; }
.ez-nav .ez-back { flex: 0 0 auto; min-width: 104px; }
.ez-next--send { background: var(--accent); border-color: var(--accent); color: #fff; }
.ez-next--send:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

@media (hover: none) {
  .ez-nav .btn:hover { transform: none; background: var(--ink); border-color: var(--ink); color: var(--cal); }
  .ez-nav .btn--ghost:hover { background: transparent; color: var(--ink); }
  .ez-nav .ez-next--send:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* Honeypot */
.ez-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Envío y gracias */
.ez-sending, .ez-done { padding: 24px 0 40px; }
.ez-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ez-ref { margin-top: 14px; font-size: 18px; }
.ez-ref strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; letter-spacing: .04em; white-space: nowrap; }
.ez-next-steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.ez-next-steps li { counter-increment: n; position: relative; padding-left: 46px; min-height: 32px; }
.ez-next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 700; }
#d-premium .btn { margin-top: 22px; width: 100%; max-width: 420px; }
.ez-done code { font-size: .95em; }

.ez-foot { padding-bottom: 28px; }

/* Sugerencias y comprobación de dominios */
.ez-dom-estado { margin-top: 8px; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.ez-dom-estado[data-estado="libre"] { color: #1E6B3A; }
.ez-dom-estado[data-estado="ocupado"] { color: #A4331B; }
.ez-dom-estado[data-estado="comprobando"] { color: var(--stone); font-weight: 500; }
.ez-dom-sug { margin-top: 14px; }
.ez-dom-list { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ez-dom-btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 16px/1.2 var(--sans); text-align: left; cursor: pointer; }
.ez-dom-btn:hover:not(:disabled) { border-color: var(--ink); }
.ez-dom-btn:disabled { cursor: not-allowed; opacity: .6; }
.ez-dom-name { overflow-wrap: anywhere; }
.ez-dom-badge { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--cal-2); color: var(--stone); }
.ez-dom-badge[data-estado="libre"] { background: #DCEFE2; color: #1E6B3A; }
.ez-dom-badge[data-estado="ocupado"] { background: #F6DCD3; color: #A4331B; text-decoration: none; }

/* Ideas por sector */
.ez-ideas { margin-top: 14px; }
.ez-idea-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ez-idea { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px dashed var(--line); background: var(--paper); color: var(--ink); font: 500 15px/1.2 var(--sans); cursor: pointer; }
.ez-idea:hover { border-style: solid; border-color: var(--ink); }
