
/* =========================================================
  MODALES (con fade-in)
   ========================================================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
}

/* Panel con un pequeño "lift" */
.modal__panel{
  position: relative;
  overflow: auto;
  background: var(--bg-2);
  padding: 3% 5%;
  z-index: 1;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transform: translateY(10px);
  transition: transform .22s ease;
}

.modal.is-open .modal__panel{
  transform: translateY(0);
}

.modal__close{
  position:absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Form ordenado dentro de modal */
.modal label{
  display:block;
  margin: 10px 0;
  font-size: 14px;
}
.modal input,
.modal select,
.modal textarea{
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  font: inherit;
}
.modal textarea{ resize: vertical; }

/*  clases para ambos */
.formulario_marcas form,
.formulario_eventos form{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 4%;
}
.select-row {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.formulario_marcas div,
.formulario_eventos div{
    width: 48%;
    margin-bottom: 1em;
}
.formulario_marcas label,
.formulario_eventos label{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0;
}
.formulario_marcas input,
.formulario_eventos input{
  width: -webkit-fill-available;
}
.formulario_marcas textarea,
.formulario_eventos textarea{
  width: -webkit-fill-available;
}
.formulario_marcas button,
.formulario_eventos button{
    margin-bottom: 1em;
}
.formulario_marcas select,
.formulario_eventos select{
    width: 100%;
}
.formulario_marcas h3,
.formulario_eventos h3{
    margin: 0 0 1em;
    font-size: 160%;
    color: var(--ink);
}
label{
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    flex: 1 1 240px;
}
.politicas_de_privacidad h1,
.politicas_de_privacidad h2,
.terminos_y_condiciones h1,
.terminos_y_condiciones h2{
  color: var(--ink);
}
html.modal-open{
  overflow: hidden;
  padding-right: var(--sbw, 0px);
}

/* =========================================================
  RESPONSIVE: MÓVILES / TABLET (≤ 959px)
  ========================================================= */
@media (max-width:959px){
  .modal__panel{
    width: min(720px, calc(90% - 24px));
    margin: 7vh auto;
    max-height: calc(85dvh - 24px);
  }
}

/* =========================================================
  RESPONSIVE: ESCRITORIO (≥ 960px)
  ========================================================= */
@media (min-width:960px){
  .modal__panel{
    width: min(720px, calc(100% - 24px));
    margin: 12px auto;
    min-height: calc(75dvh - 24px);
    max-height: calc(80dvh - 24px);
  }
}

/* css para las faqs y terminos */
/* =========================
   ACCORDION (FAQ / TERMS)
========================= */

.on-accordion{
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  font-family: inherit;
}

/* Header superior opcional si lo usas */
.on-faq__header, .on-terms__header{
  margin-bottom: 16px;
}

/* Item */
.on-acc__item{
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Trigger (la fila clickeable) */
.on-acc__trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}

.on-acc__trigger:hover{
  background: #fafafa;
}

/* Left group */
.on-acc__left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.on-acc__emoji{
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  width: 22px;
  text-align: center;
}

.on-acc__title{
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icono + */
.on-acc__icon{
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.on-acc__icon::before,
.on-acc__icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #2b2b2b;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.on-acc__icon::after{
  width: 2px;
  height: 14px;
}

/* Estado abierto: convierte + en – */
.on-acc__item.is-open .on-acc__icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0.4);
}

/* Contenido: animación por altura */
.on-acc__content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
  border-top: 1px solid #eeeeee;
}

.on-acc__content-inner{
  padding: 14px 18px 16px 18px;
}

.on-acc__content-inner p{
  margin: 0 0 10px 0;
  color: #444;
  line-height: 1.45;
  font-size: 14px;
}

.on-acc__content-inner p:last-child{
  margin-bottom: 0;
}

/* Accesibilidad: foco teclado */
.on-acc__trigger:focus{
  outline: none;
}

.on-acc__trigger:focus-visible{
  outline: 2px solid rgba(0,0,0,0.2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 520px){
  .on-acc__title{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
