@font-face {
  font-family: "Circular Std";
  src: url("assets/fonts/CircularStd-Book.woff2") format("woff2"),
    url("assets/fonts/CircularStd-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IvyPresto Display";
  src: url("assets/fonts/ivypresto-display-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IvyPresto Display";
  src: url("assets/fonts/ivypresto-display-regular-italic-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IvyPresto Display";
  src: url("assets/fonts/ivypresto-display-semibold-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --naranja: #f98126;
  --naranja-suave: #fff4eb;
  --texto: #1a1a1a;
  --texto-2: #2b2b2b;
  --radio: 999px;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--texto);
  font-family: "Circular Std", "Segoe UI", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

body {
  line-height: 1.35;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.page {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.tagline {
  margin: 0 auto;
  max-width: min(36rem, 100%);
  font-family: "IvyPresto Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  color: #2f2f2f;
  text-wrap: balance;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.fields.hide-org .field-org {
  display: none;
}

.campos-titulo {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--texto);
}

.campos-titulo-opc {
  margin-top: 6px;
}

.campos-titulo .req {
  color: var(--naranja);
  margin-left: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 24px;
}

.field > span {
  font-size: 14.5px;
  color: var(--texto-2);
}

.field .req {
  color: var(--naranja);
  margin-left: 3px;
}

.field[hidden] {
  display: none !important;
}

.radios {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  min-height: 34px;
}

.radios-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 2px 0 6px;
}

.radio-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--texto);
  user-select: none;
}

.radio-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.radio-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--naranja);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.radio-opt input:checked + .radio-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--naranja);
}

.radio-opt input:focus-visible + .radio-mark {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.35);
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.field select,
.field textarea {
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--naranja);
  border-radius: var(--radio);
  background: #fff;
  outline: none;
  font-size: 16px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #c8c8c8;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23F98126' d='M1.2 1.2 6 6l4.8-4.8' stroke='%23F98126' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field select:has(option[value=""]:checked) {
  color: #c8c8c8;
}

.field select option {
  color: var(--texto);
}

.desplegable {
  position: relative;
}

.desplegable-nativo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.desplegable-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--naranja);
  border-radius: var(--radio);
  background: #fff;
  color: var(--texto);
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.desplegable-valor {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desplegable.is-placeholder .desplegable-valor {
  color: #c8c8c8;
}

.desplegable-btn::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23F98126' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1.2 1.2 6 6l4.8-4.8'/></svg>") center / contain no-repeat;
  transition: transform 0.15s ease;
}

.desplegable.is-open .desplegable-btn {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.18);
}

.desplegable.is-open .desplegable-btn::after {
  transform: rotate(180deg);
}

.desplegable-lista {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1.5px solid var(--naranja);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(249, 129, 38, 0.16);
}

.desplegable-lista[hidden] {
  display: none;
}

.desplegable-lista li {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--texto);
}

.desplegable-lista li:hover {
  background: var(--naranja-suave);
  color: var(--texto);
}

.desplegable-lista li.is-selected,
.desplegable-lista li.is-selected:hover {
  background: var(--naranja);
  color: #fff;
}

.desplegable-lista::-webkit-scrollbar {
  width: 8px;
}

.desplegable-lista::-webkit-scrollbar-thumb {
  background: var(--naranja);
  border-radius: 99px;
}

.field.invalid .desplegable-btn {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.28);
}

.field textarea {
  height: auto;
  min-height: 68px;
  padding: 10px 16px;
  border-radius: 18px;
  resize: vertical;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.18);
}

.field.invalid input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.field.invalid select,
.field.invalid textarea,
.field.invalid .desplegable-btn {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.28);
}

.field.invalid .radio-mark {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.28);
}

.field.formato .aviso,
.field.tel-error .aviso,
.field.web-error .aviso {
  display: block;
}

.aviso {
  display: none;
  margin: 0;
  font-size: 12.5px;
  color: var(--naranja);
}

.field-telefono {
  overflow: visible;
  min-width: 0;
}

.phone-row {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radio);
  background: #fff;
  overflow: visible;
}

.phone-row::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--naranja);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.phone-row:focus-within {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.18);
}

.field.tel-error .phone-row,
.field.invalid .phone-row {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.28);
}

.ss {
  position: relative;
}

.phone-row .ss {
  flex: 0 0 auto;
  display: flex;
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.ss:has(.ss-panel:not([hidden])) {
  z-index: 40;
}

.phone-row .ss-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 0;
  border-right: 1.5px solid var(--naranja);
  border-radius: var(--radio) 0 0 var(--radio);
  background: var(--naranja-suave);
  color: var(--texto);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.phone-row .ss-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--naranja);
}

.phone-row input[type="tel"] {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 var(--radio) var(--radio) 0;
  box-shadow: none !important;
  padding: 0 14px;
}

.ss-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1.5px solid var(--naranja);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(249, 129, 38, 0.16);
}

.ss-panel[hidden] {
  display: none;
}

.ss-search {
  width: 100%;
  height: 32px !important;
  margin-bottom: 6px;
  padding: 0 12px;
  border: 1.5px solid var(--naranja) !important;
  border-radius: 10px;
  box-shadow: none !important;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.ss-search::-webkit-search-decoration,
.ss-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow: auto;
}

.ss-list button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
  color: var(--texto);
  cursor: pointer;
}

.ss-list button:hover {
  background: var(--naranja-suave);
  color: var(--texto);
}

.ss-list button.is-selected,
.ss-list button.is-selected:hover {
  background: var(--naranja);
  color: #fff;
}

.ss-empty {
  padding: 8px 10px;
  color: #888;
  font-size: 13px;
}

.ss-option-label {
  flex: 1;
  min-width: 0;
}

.field-industrias {
  overflow: visible;
}

.ss-multi {
  flex: none;
  width: 100%;
  height: auto;
}

.ss-multi .ss-trigger {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.ss-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ss-multi .ss-tags {
  align-items: center;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1.5px solid var(--naranja);
  border-radius: var(--radio);
  background: #fff;
  overflow: hidden;
  flex-wrap: nowrap;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.ss-multi.is-expanded .ss-tags {
  align-items: flex-start;
  align-content: flex-start;
  height: auto;
  min-height: 34px;
  flex-wrap: wrap;
  padding: 8px 12px;
  overflow: hidden;
  border-radius: 16px;
}

.ss-multi.is-focused .ss-tags,
.ss-multi .ss-tags:focus {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.18);
}

.ss-multi .ss-placeholder {
  color: #c8c8c8;
  font-size: 16px;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 120px;
  min-width: 0;
  border: 0;
  background: var(--naranja-suave);
  color: var(--naranja);
  border-radius: 999px;
  padding: 3px 6px 3px 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.2;
}

.ss-multi.is-expanded .tag {
  max-width: 100%;
}

.tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-remove {
  border: 0;
  background: transparent;
  color: var(--naranja);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.tag-more {
  max-width: none;
  cursor: pointer;
}

.ss-list::-webkit-scrollbar {
  width: 8px;
}

.ss-list::-webkit-scrollbar-thumb {
  background: var(--naranja);
  border-radius: 99px;
}

.mensaje {
  margin-top: 36px;
}

.section {
  margin-top: 42px;
}

.fields.hide-org + .section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 400;
}

.seleccionar-todos {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  color: var(--naranja);
  font-size: 13.5px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seleccionar-todos:hover {
  opacity: 0.8;
}

.modo-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--naranja);
  border-radius: 4px;
  background: #fff;
}

.dialogo-check input:focus-visible + .modo-check {
  box-shadow: 0 0 0 3px rgba(249, 129, 38, 0.35);
}

.dialogo-check input:checked + .modo-check {
  background-color: var(--naranja);
  border-color: var(--naranja);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' d='M2.4 6.3 4.9 8.8 9.6 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.dialogo-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.dialogo-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dialogo-check .modo-check {
  margin-top: 2px;
}

.dialogo-check span:last-child {
  font-size: 15px;
  color: var(--texto);
  line-height: 1.35;
  padding-top: 1px;
}

.dialogo-temas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.consentimientos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 22px;
}

.listado {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 42px;
}

.actividades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 22px;
  align-items: start;
}

.actividades .col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.actividades .actividad {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--texto-2);
}

.actividad::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--texto-2);
  opacity: 0.45;
}

.actividades-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--naranja);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.actividades-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.actividades-link span {
  padding-top: 1px;
  color: var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--texto);
}

.actividades-link:hover {
  opacity: 0.75;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.modal-caja {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(82vh, 720px);
  overflow: hidden;
  padding: 24px 20px 24px 24px;
  background: #fff;
  border: 1.5px solid var(--naranja);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(249, 129, 38, 0.18);
}

.modal-caja .actividades {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
  padding-right: 8px;
}

.modal-caja .actividades::-webkit-scrollbar {
  width: 8px;
}

.modal-caja .actividades::-webkit-scrollbar-thumb {
  background: var(--naranja);
  border-radius: 99px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.modal-top h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.modal-cerrar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--naranja-suave);
  color: var(--naranja);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.modal-abierto {
  overflow: hidden;
}

.error {
  color: var(--naranja);
  text-align: center;
  font-size: 14px;
  margin: 0 0 16px;
}

.enviar {
  display: block;
  margin: 8px auto 0;
  min-width: 280px;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radio);
  background: var(--naranja);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.enviar:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.form-submit-error {
  margin: 12px 0 0;
  text-align: center;
  color: #b42318;
  font-size: 14px;
}

.gracias {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  color: var(--naranja);
}

.enviar:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

@media (max-width: 860px) {
  .actividades {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 36px 20px 64px;
  }

  .tagline {
    font-size: 16px;
  }

  .fields,
  .dialogo-temas {
    grid-template-columns: 1fr;
  }

  .actividades {
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
  }

  .enviar {
    width: 100%;
    min-width: 0;
  }
}
