/* -----------------------------------------------------------------------
   Base de usuarios — Fase A
   Asistente, avisos, panel, cookies e invitaciones.
   -------------------------------------------------------------------- */

/* ---- El asistente y los pasos ---- */

.yc-asistente__t,
.yc-avisos__t {
  font-size: 19px; font-weight: 700; color: #1D1F1C; margin: 0 0 4px;
}
.yc-asistente__b,
.yc-avisos__b { color: #6b6b66; font-size: 14px; margin: 0 0 18px; }

.yc-pasos { display: flex; gap: 6px; margin: 0 0 10px; }
.yc-pasos span {
  flex: 1; height: 4px; background: #E6E3DC; border-radius: 2px; transition: background .3s;
}
.yc-pasos span.done { background: #EB7E09; }

.yc-pasol {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #8A8C86; margin: 0 0 18px;
}

.yc-paso { display: none; }
.yc-paso.on { display: block; }

.yc-campo-t { font-size: 14px; font-weight: 600; color: #1D1F1C; margin: 0 0 8px; }
.yc-campo-n { font-size: 13px; color: #6b6b66; margin: -4px 0 10px; }

.yc-pnav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 22px;
}
.yc-pnav > span:empty { flex: 1; }

.yc-btn2, .yc-saltar, .yc-baja {
  background: transparent; border: 1.5px solid #1D1F1C; color: #1D1F1C;
  padding: .7rem 1.4rem; border-radius: 4px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.yc-saltar { border-color: transparent; color: #6b6b66; text-decoration: underline; padding-left: 0; }
.yc-baja { border-color: #C0392B; color: #C0392B; }

/* ---- Opciones: operacion, tipo, ambientes ---- */

.yc-ops, .yc-tipos, .yc-ambs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.yc-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .yc-tipos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.yc-op, .yc-tipo, .yc-amb {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; margin: 0;
  background: #FAF9F6; border: 1px solid #E6E3DC; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: #4A4C48;
  text-transform: none; letter-spacing: normal;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.yc-op { flex: 1; min-width: 130px; }
.yc-amb { min-width: 66px; }
.yc-op:hover, .yc-tipo:hover, .yc-amb:hover { border-color: #EB7E09; background: #FDF6EE; }
.yc-op input, .yc-tipo input, .yc-amb input { position: absolute; opacity: 0; pointer-events: none; }
.yc-op:has(input:checked),
.yc-tipo:has(input:checked),
.yc-amb:has(input:checked) {
  border-color: #EB7E09; background: #FBEBD8; color: #1D1F1C; font-weight: 600;
}
.yc-op:focus-within, .yc-tipo:focus-within, .yc-amb:focus-within {
  outline: 2px solid #EB7E09; outline-offset: 2px;
}

/* ---- Zonas ---- */

#yc-zona-buscar {
  width: 100%; padding: 12px 14px; border: 1px solid #D9D5CC; border-radius: 6px;
  font-family: inherit; font-size: 14px; background: #fff;
}
#yc-zona-buscar:focus { outline: none; border-color: #EB7E09; }
#yc-zona-buscar:disabled { background: #F2F0EB; color: #8A8C86; }

.yc-zonas { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; min-height: 4px; }
.yc-zona {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 12px; border-radius: 999px;
  background: #FBEBD8; border: 1px solid #EB7E09; color: #1D1F1C; font-size: 13px;
}
.yc-zona button {
  background: none; border: 0; cursor: pointer; color: #8a5a19;
  font-size: 17px; line-height: 1; padding: 0 2px;
}

/* ---- Precio ---- */

.yc-precio { display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.yc-precio select, .yc-precio input {
  padding: 12px 14px; border: 1px solid #D9D5CC; border-radius: 6px;
  font-family: inherit; font-size: 14px; background: #fff;
}
.yc-precio select { flex: 0 0 110px; }
.yc-precio input { flex: 1; min-width: 120px; }
.yc-precio select:focus, .yc-precio input:focus { outline: none; border-color: #EB7E09; }

/* ---- Los interruptores ---- */

.yc-sw {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; margin: 0 0 10px;
  background: #FAF9F6; border: 1px solid #E6E3DC; border-radius: 8px;
  cursor: pointer; transition: border-color .15s, background .15s;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.yc-sw:hover { border-color: #EB7E09; }
.yc-sw:has(input:checked) { border-color: #EB7E09; background: #FDF6EE; }
.yc-sw__txt { flex: 1; display: block; }
.yc-sw__txt b { display: block; font-size: 15px; color: #1D1F1C; margin-bottom: 2px; }
.yc-sw__txt > span { display: block; font-size: 13.5px; color: #4A4C48; line-height: 1.4; }
.yc-sw__txt small { display: block; font-size: 12.5px; color: #8A8C86; margin-top: 3px; }

/* La casilla real se esconde pero sigue siendo la que recibe el foco y el
   click: la paleta es solo su reflejo. */
.yc-sw input { position: absolute; opacity: 0; pointer-events: none; }
.yc-sw__pal {
  flex: none; width: 46px; height: 26px; border-radius: 999px;
  background: #D9D5CC; position: relative; transition: background .2s; margin-top: 2px;
}
.yc-sw__pal::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.yc-sw:has(input:checked) .yc-sw__pal { background: #EB7E09; }
.yc-sw:has(input:checked) .yc-sw__pal::after { transform: translateX(20px); }
.yc-sw:has(input:focus-visible) .yc-sw__pal { outline: 2px solid #EB7E09; outline-offset: 2px; }

.yc-avisos__fine, .yc-invitacion__fine {
  font-size: 12.5px; color: #8A8C86; line-height: 1.5; margin: 14px 0 0;
}
.yc-avisos__nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

/* ---- Avisos de resultado ---- */

.yc-asistente__aviso, .yc-avisos__aviso {
  display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 6px;
  font-size: 13.5px;
  background: rgba(29, 107, 50, .08); border: 1px solid rgba(29, 107, 50, .3); color: #1d6b32;
}
.yc-asistente__aviso.yc-visible, .yc-avisos__aviso.yc-visible { display: block; }
.yc-asistente__aviso.yc-mal, .yc-avisos__aviso.yc-mal {
  background: rgba(192, 57, 43, .08); border-color: rgba(192, 57, 43, .35); color: #C0392B;
}

/* ---- El panel y la bienvenida ---- */

.yc-panel__bajada { color: #6b6b66; margin: 0 0 26px; }
.yc-panel__grid, .yc-onboarding__cols, .yc-bienvenida__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px;
}
@media (max-width: 900px) {
  .yc-panel__grid, .yc-onboarding__cols, .yc-bienvenida__cols { grid-template-columns: 1fr; }
}
.yc-panel__caja, .yc-onboarding__caja, .yc-bienvenida__caja {
  background: #fff; border: 1px solid #E6E3DC; border-top: 4px solid #EB7E09;
  border-radius: 10px; padding: 26px;
}
.yc-panel__n { font-size: 14px; color: #4A4C48; line-height: 1.55; margin: 0 0 16px; }
.yc-panel__anon { max-width: 620px; }
.yc-panel__anon p { color: #4A4C48; line-height: 1.6; margin-bottom: 20px; }
.yc-onboarding { padding-top: 0; }
.yc-onboarding__vuelta { color: #6b6b66; font-size: 14px; }

.yc-resumen__l { list-style: none; margin: 0 0 18px; padding: 0; }
.yc-resumen__l li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid #F0EDE6; font-size: 14px;
}
.yc-resumen__l b { color: #8A8C86; font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .08em; }
.yc-resumen__l span { color: #1D1F1C; text-align: right; }

.yc-bienvenida__pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .yc-bienvenida__pasos { grid-template-columns: 1fr; } }
.yc-b3 { background: #FAF9F6; border: 1px solid #E6E3DC; border-radius: 8px; padding: 20px; }
.yc-b3 .n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #EB7E09; color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.yc-b3 b { display: block; margin-bottom: 6px; color: #1D1F1C; }
.yc-b3 p { font-size: 13.5px; color: #4A4C48; line-height: 1.5; margin: 0 0 10px; }
.yc-b3 a { font-size: 13.5px; font-weight: 600; color: #EB7E09; text-decoration: none; }

/* ---- La casilla de novedades de los formularios publicos ---- */

.yc-novedades {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0; padding: 12px 14px;
  background: #FAF9F6; border: 1px solid #E6E3DC; border-radius: 6px;
  font-size: 13.5px; font-weight: 400; color: #4A4C48; line-height: 1.4;
  text-transform: none; letter-spacing: normal; cursor: pointer;
}
.yc-novedades input { width: auto; margin: 2px 0 0; flex: none; accent-color: #EB7E09; }
.yc-novedades small { display: block; font-size: 12.5px; color: #8A8C86; margin-top: 2px; }

/* ---- Banner de cookies ----
   Va abajo, en una franja angosta. Para que no tape el contenido, el JS le
   suma al body un padding igual al alto real del banner mientras esta a la
   vista, y se lo saca al elegir. Va en JS y no aca porque el alto depende
   del ancho: en mobile el texto envuelve y pasa de 72 a 141 px. */

.yc-cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
  background: #1D1F1C; color: #fff;
  transform: translateY(100%); transition: transform .25s ease;
}
.yc-cookies.yc-visible { transform: translateY(0); }
.yc-cookies__caja {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.yc-cookies__txt { flex: 1; min-width: 260px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.yc-cookies__txt a { color: #EB7E09; }
.yc-cookies__btns { display: flex; gap: 10px; flex: none; }
.yc-cookies__si, .yc-cookies__no {
  border-radius: 4px; padding: .6rem 1.3rem; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; border: 1.5px solid;
}
.yc-cookies__si { background: #EB7E09; border-color: #EB7E09; color: #fff; }
.yc-cookies__no { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }

@media (max-width: 700px) {
  .yc-cookies__caja { padding: 14px 16px; gap: 12px; }
  .yc-cookies__btns { width: 100%; }
  .yc-cookies__si, .yc-cookies__no { flex: 1; }
}

/* ---- La invitacion a registrarse ---- */

.yc-invitacion {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(29, 31, 28, .55);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .2s;
}
/* Sin esto, el display:grid de arriba le gana al [hidden] del navegador: el
   dialogo queda invisible pero ocupando la pantalla entera y se come todos
   los clicks de la pagina. Lo mismo vale para el banner de cookies, que no
   define display y por eso no lo necesita. */
.yc-invitacion[hidden] { display: none; }
.yc-invitacion.yc-visible { opacity: 1; }
.yc-invitacion__dlg {
  background: #fff; border-radius: 12px; padding: 32px 28px 26px;
  width: 100%; max-width: 420px; position: relative; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.yc-invitacion__x {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: #8A8C86; cursor: pointer;
}
.yc-invitacion__ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: #FBEBD8; color: #EB7E09;
}
.yc-invitacion__dlg h4 { font-size: 20px; font-weight: 700; color: #1D1F1C; margin: 0 0 8px; }
.yc-invitacion__dlg > p { font-size: 14px; color: #4A4C48; line-height: 1.55; margin: 0 0 18px; }
.yc-invitacion__chips {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 18px;
}
.yc-chip {
  background: #F2F0EB; border-radius: 999px; padding: 5px 11px;
  font-size: 12px; color: #4A4C48;
}
.yc-invitacion__btns { display: flex; flex-direction: column; gap: 10px; }
.yc-invitacion__btns .btn, .yc-invitacion__btns .yc-btn2 { width: 100%; text-align: center; }

/* ---- La franja de la pagina de bajas ---- */

.yc-franja {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; width: 100%;
  padding: 16px 20px; border-radius: 8px;
  background: #FBEBD8; border: 1px solid #F0C48A;
}
.yc-franja p { margin: 0; font-size: 14px; color: #4A4C48; line-height: 1.5; flex: 1; min-width: 240px; }
.yc-franja b { color: #1D1F1C; }
@media (max-width: 700px) {
  .yc-franja .btn { width: 100%; text-align: center; }
}
