/* ============================================================
   REMONT — tecnicos.remont.do
   Solo lo propio de esta página. Colores, radios y tipografía
   salen de los tokens de styles.css (copia del sitio principal).
   ============================================================ */

:root {
  /* No existe en el sitio principal: color de los mensajes de error */
  --color-error: #FF7A7A;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cabecera y pie reducidos: aquí no va el menú del sitio principal */
.navbar__inner > .navbar__link { font-size: 0.875rem; }

.page-hero--tecnicos { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.25rem); }
.page-hero--tecnicos .page-hero__lead { margin-bottom: 1.5rem; }

.section--form { padding-block: clamp(2rem, 5vw, 4rem) var(--section-py); }

.split--form { grid-template-columns: 1.6fr 1fr; }

.footer--simple { padding-block: 0 2rem; }
.footer--simple .footer__bottom { border-top: none; }
.footer--simple .footer__legal { flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.signs .plans__note a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——————————————————————————————————————
   FORMULARIO
—————————————————————————————————————— */
.tform {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.tform__group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.tform__legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  float: left;            /* saca el legend del borde del fieldset */
  width: 100%;
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.tform__legend + * { clear: both; }
.tform__legend span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-yellow-faint);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field__label {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
.field__optional {
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font);
  font-size: 1rem;        /* 16 px: evita el zoom automático de iPhone */
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field__input::placeholder { color: var(--color-text-faint); }
.field__input:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px var(--color-yellow-faint);
}
textarea.field__input { resize: vertical; min-height: 110px; line-height: 1.5; }
select.field__input { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
select.field__input option { background: var(--color-surface); color: var(--color-text); }

.field__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.field__error {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--color-error);
  line-height: 1.5;
}
.field__error--form {
  background: var(--color-surface);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.field__error a { text-decoration: underline; text-underline-offset: 3px; }

/* Casillas como fichas */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  transition: all var(--duration) var(--ease);
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chip:hover { color: var(--color-white); border-color: var(--color-text-faint); }
.chip:has(input:checked) {
  background: var(--color-yellow-faint);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

/* Archivo */
.field__file {
  width: 100%;
  background: var(--color-bg);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.field__file::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.6rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  cursor: pointer;
}
.field__file:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

/* Autorización */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-yellow);
  cursor: pointer;
}
.consent a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tform__submit {
  align-self: flex-start;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 1rem;
}
.tform__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.tform__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Página de gracias */
.thanks { min-height: calc(100svh - 64px - 90px); display: flex; align-items: center; }
.thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-yellow-faint);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
}
.thanks__icon svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .split--form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .tform__submit { align-self: stretch; }
  .chip { flex: 1 1 auto; justify-content: center; }
  .footer--simple .footer__bottom { flex-direction: column; align-items: flex-start; }
}
