/* ===== formulario-arco.css — Página formulario ARCO (derechos datos personales) ===== */

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.arco-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--padding-x) 64px;
  /* mismo fondo azul profundo del hero del home */
  background:
    linear-gradient(135deg, rgba(5, 12, 22, .82), rgba(8, 28, 48, .8)),
    url('../img/banner-quienesomos.png') center / cover no-repeat;
}

.arco-hero-title {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════
   SECCIÓN FORMULARIO
══════════════════════════════════ */
.arco-section {
  background: #f5f5f3;
  padding: 64px 0 88px;
}

.arco-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* Intro arriba del form */
.arco-intro {
  margin-bottom: 2rem;
}

/* ══════════════════════════════════
   SELECTOR DE PAÍS (pills toggle)
══════════════════════════════════ */
.arco-country {
  text-align: center;
  margin-bottom: 2rem;
}

.arco-country-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 1.1rem;
}

.arco-country-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.arco-country-pill {
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1.5px solid #e0e0dd;
  border-radius: 100px;
  padding: .6rem 1.7rem;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.arco-country-pill:hover {
  border-color: var(--green);
  color: var(--black);
  transform: translateY(-1px);
}

.arco-country-pill.is-active {
  background: #2271b2;
  border-color: #2271b2;
  color: #fff;
}

/* Form oculto hasta seleccionar país */
.arco-hidden {
  display: none;
}

.arco-intro p {
  font-size: .92rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 1rem;
}

.arco-intro a {
  color: #2271b2;
  font-weight: 600;
  text-decoration: none;
}

.arco-intro a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════
   GRUPOS / SECCIONES DEL FORM
══════════════════════════════════ */
.arco-group {
  padding: 1.75rem 0;
  border-top: 1px solid #ececec;
}

.arco-group:first-of-type {
  border-top: none;
  padding-top: .5rem;
}

.arco-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
  margin: 0 0 .35rem;
}

.arco-section-desc {
  font-size: .85rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* Campo individual */
.arco-field {
  margin-bottom: 1.1rem;
}

.arco-field:last-child {
  margin-bottom: 0;
}

/* Helper bajo cada input */
.arco-helper {
  display: block;
  font-size: .78rem;
  line-height: 1.5;
  color: #8a8f98;
  margin-top: .4rem;
}

.arco-helper-list {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  font-size: .78rem;
  line-height: 1.6;
  color: #8a8f98;
}

/* ══════════════════════════════════
   RADIO BUTTONS / CHECKBOX CUSTOM
══════════════════════════════════ */
.arco-options {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-top: .2rem;
}

.arco-options--col {
  flex-direction: column;
  gap: .9rem;
}

/* Opción (radio o checkbox) */
.arco-opt {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  cursor: pointer;
  position: relative;
  font-size: .9rem;
  color: var(--black);
  line-height: 1.4;
}

.arco-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.arco-opt-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #cfd2d6;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
  position: relative;
}

/* radio = círculo */
.arco-opt--radio .arco-opt-box {
  border-radius: 50%;
}

/* checkbox = cuadro redondeado */
.arco-opt--check .arco-opt-box {
  border-radius: 6px;
}

/* hover */
.arco-opt:hover .arco-opt-box {
  border-color: var(--green);
}

/* checked */
.arco-opt input:checked + .arco-opt-box {
  border-color: var(--green);
  background: var(--green);
}

/* punto del radio */
.arco-opt--radio input:checked + .arco-opt-box::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* tilde del checkbox */
.arco-opt--check input:checked + .arco-opt-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* foco accesible */
.arco-opt input:focus-visible + .arco-opt-box {
  box-shadow: 0 0 0 3px rgba(1, 138, 56, .25);
}

/* Checkbox con título + sub-texto (derechos) */
.arco-opt--block {
  align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid #e9e9e7;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color .2s ease, background .2s ease;
}

.arco-opt--block:hover {
  border-color: #cfd6cf;
  background: #fff;
}

.arco-opt--block input:checked ~ .arco-opt-content .arco-opt-title {
  color: var(--green);
}

.arco-opt-content {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.arco-opt-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--black);
}

.arco-opt-title em {
  font-style: normal;
  font-weight: 500;
  color: #9aa0a6;
  font-size: .8rem;
}

.arco-opt-sub {
  font-size: .78rem;
  line-height: 1.5;
  color: #8a8f98;
}

/* ══════════════════════════════════
   FILE UPLOAD
══════════════════════════════════ */
.arco-file {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  border: 1.5px dashed #cfd2d6;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  background: #fafafa;
  transition: border-color .2s ease, background .2s ease;
}

.arco-file:hover {
  border-color: var(--green);
  background: #fff;
}

.arco-file input[type="file"] {
  font-size: .82rem;
  color: #555;
  width: 100%;
}

.arco-file input[type="file"]::file-selector-button {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: #2271b2;
  border: none;
  border-radius: 8px;
  padding: .55rem .9rem;
  margin-right: .9rem;
  cursor: pointer;
  transition: background .2s ease;
}

.arco-file input[type="file"]::file-selector-button:hover {
  background: #1b5a8f;
}

/* ══════════════════════════════════
   BLOQUES CONDICIONALES (por país)
══════════════════════════════════ */
.arco-cond {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height .4s ease, opacity .35s ease, margin .4s ease;
}

.arco-cond.is-open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1rem;
}

/* aviso cuando no hay país elegido */
.arco-note {
  font-size: .85rem;
  color: #8a8f98;
  font-style: italic;
  margin: 0;
}

.arco-note.is-hidden {
  display: none;
}

/* ══════════════════════════════════
   FOOTER DEL FORM (reCAPTCHA)
══════════════════════════════════ */
.arco-form-foot {
  margin-top: 1.4rem;
  font-size: .76rem;
  line-height: 1.5;
  color: #9aa0a6;
  text-align: center;
}

.arco-form-foot a {
  color: #6B7280;
  text-decoration: underline;
}

/* ══════════════════════════════════
   SECCIÓN POST-FORM (plazos / aviso)
══════════════════════════════════ */
.arco-post {
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 0 var(--padding-x);
}

.arco-post-block + .arco-post-block {
  margin-top: 2rem;
}

.arco-post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 .75rem;
}

.arco-post-block p {
  font-size: .88rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 .85rem;
}

.arco-post-block p:last-child {
  margin-bottom: 0;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
  .arco-hero {
    padding: 120px var(--padding-x) 48px;
    min-height: 240px;
  }
  .arco-section {
    padding: 48px 0 64px;
  }
  .form-card {
    padding: 1.5rem;
  }
  .arco-options {
    flex-direction: column;
    gap: .8rem;
  }
}
