/* -------- Contacto Clubox -------- */
.clx-contact {
  padding: 20px 16px;
}
.clx-contact__container {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
  padding: 36px 24px 28px;
}
.clx-contact__lead {
  text-align: center;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 6px;
}
.clx-contact__lead strong { font-weight: 700; }

.clx-contact__title {
  text-align: center;
  font-size: 2rem;
  margin: 6px 0 4px;
  font-weight: 800;
  color: #222222;
}
.clx-contact__subtitle {
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #555;
  margin: 0 0 18px;
}
.clx-contact__success {
  text-align: center;
  background: #f0fff5;
  color: #208a4e;
  border: 1px solid #bfead0;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.clx-form label {
  display: none; /* placeholder-only, como en el diseño */
}
.clx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .clx-grid {
    grid-template-columns: 1fr 1fr;
  }
  .clx-field--full { grid-column: 1 / -1; }
}
.clx-field input,
.clx-field select,
.clx-field textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.clx-field textarea { resize: vertical; }
.clx-field input::placeholder,
.clx-field textarea::placeholder { color: #9a9a9a; }

.clx-field input:focus,
.clx-field select:focus,
.clx-field textarea:focus {
  border-color: #ff2b86;
  box-shadow: 0 0 0 3px rgba(255,43,134,.12);
}

/* País con banderita (estático o taxonomy) */
.clx-field--with-flag select {
  background-image: none;
}

/* Teléfono con prefijo */
.clx-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.clx-phone__code {
  min-width: 110px;
}

/* Botón */
.clx-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 8px;
}
.clx-btn {
  background: #ff2b86;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,43,134,.35);
  transition: transform .05s ease, box-shadow .2s ease, opacity .2s ease;
}
.clx-btn:hover { opacity: .95; }
.clx-btn:active { transform: translateY(1px); }

.clx-contact__foot {
  text-align: center;
  color: #777;
  margin-top: 12px;
  font-size: .95rem;
}

/* Espacio general de la página */
body { background: #fafafa; }


/* 1) Aplica el mismo layout/estilo al modal de contacto */
#clx-modal{
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  max-width: 520px;
  width: min(92%, 520px);
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Contenido (ya usas .lead-modal-*) */
#clx-modal .lead-modal-content{ padding: var(--gap); }
#clx-modal .lead-modal-title{
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink-900);
}
#clx-modal .lead-modal-text{
  margin: 0 0 16px;
  line-height: 1.55;
  font-size: 1rem;
  color: var(--ink-700);
}
#clx-modal .lead-modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Botón del modal */
#clx-modal .nl-btn{
  border-radius: 9999px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--brand-green);
  color: #fff;
  transition: transform .12s ease, opacity .12s ease, background .12s ease, border-color .12s ease;
}
#clx-modal .nl-btn:hover{ background: var(--brand-green-2); }
#clx-modal .nl-btn:active{ transform: translateY(1px); }
#clx-modal .nl-btn[disabled]{ opacity:.6; cursor:not-allowed; }

/* Backdrop y animación (mismas reglas que el otro modal) */
#clx-modal::backdrop{ background: rgba(0,0,0,.45); backdrop-filter: blur(3px); }
@keyframes nl-fade-scale{
  from{ opacity:0; transform:translate(-50%, -48%) scale(.98); }
  to  { opacity:1; transform:translate(-50%, -50%) scale(1);   }
}
#clx-modal[open]{ animation: nl-fade-scale .18s ease-out; }
@media (prefers-reduced-motion: reduce){ #clx-modal[open]{ animation:none; } }

/* 2) Al desenfocar el fondo, excluye también #clx-modal */
.nl-blur > *:not(#nl-modal):not(#lead-modal):not(#clx-modal){
  filter: blur(4px);
  transition: filter .2s ease;
  pointer-events: none;
  user-select: none;
}

/* 3) Responsivo como el anterior */
@media (max-width: 640px){
  #clx-modal{ width: min(94%, 520px); border-radius: calc(var(--radius) - 2px); }
  #clx-modal .lead-modal-content{ padding:16px; }
  #clx-modal .lead-modal-title{ font-size:1.125rem; }
  #clx-modal .lead-modal-text{ font-size:.95rem; margin-bottom:12px; }
  #clx-modal .lead-modal-actions{ flex-direction:column; gap:8px; }
  #clx-modal .nl-btn{ width:100%; padding:12px 16px; }
}
@media (max-width: 375px){
  #clx-modal .lead-modal-title{ font-size:1.05rem; }
  #clx-modal .lead-modal-text{ font-size:.93rem; }
}


/* ---------- SELECT: caja + icono robusto ---------- */
/* 1) No muestres borde rojo hasta que el form esté validado */
.clx-form select:invalid { border-color: #e6e6e6; box-shadow: none; }
.clx-form.was-validated select:invalid {
  border-color: #e11d48;
  box-shadow: none;
}

/* 2) Evita recorte del desplegable y superpón el select en foco */
.clx-grid { overflow: visible; }
.clx-field { position: relative; }
.clx-field:has(> select:focus) { z-index: 5; }

/* 3) Flecha consistente (Edge/Chromium) y altura cómoda */
.clx-field select,
.clx-phone__code{
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  min-height: 48px;                     /* altura uniforme */
  padding: 12px 44px 12px 14px;         /* espacio para la flecha */
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  outline-offset: 2px;                  /* evita halo pegado al borde */
}

/* 4) Hover/focus refinado */
.clx-field select:hover,
.clx-phone__code:hover { border-color: rgba(0,0,0,.25); }

.clx-field select:focus,
.clx-phone__code:focus {
  outline: none;
  border-color: #0db14b;
  box-shadow: 0 0 0 3px rgba(13,177,75,.18);
}

/* 5) Elimina caret antiguo de IE/Edge heredado */
.clx-field select::-ms-expand,
.clx-phone__code::-ms-expand { display: none; }

/* 6) Opciones (lo que permite el navegador) */
.clx-field select option,
.clx-phone__code option{
  color: #0f172a;
  background: #fff;
}

/* 7) Scrollbar del popup (Chromium/WebKit) */
.clx-field select::-webkit-scrollbar,
.clx-phone__code::-webkit-scrollbar{ width: 10px; }
.clx-field select::-webkit-scrollbar-track,
.clx-phone__code::-webkit-scrollbar-track{ background: rgba(0,0,0,.05); border-radius: 8px; }
.clx-field select::-webkit-scrollbar-thumb,
.clx-phone__code::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); border-radius: 8px; }
.clx-field select::-webkit-scrollbar-thumb:hover,
.clx-phone__code::-webkit-scrollbar-thumb:hover{ background: rgba(0,0,0,.28); }

/* 8) Mobile compacto */
@media (max-width: 640px){
  .clx-field select,
  .clx-phone__code{
    padding-right: 40px;
    border-radius: 10px;
  }
}


/* ====== LISTA DESPLEGABLE DEL SELECT (lo que permite cada navegador) ====== */
/* ============== SELECTS GLOBALES (nativos) ============== */

/* Caja base para cualquier select del sitio */
.clx-field select,
.clx-phone__code,
select.clx-any {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;        /* espacio para la flecha */
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius, 12px);
  background-color: var(--surface, #fff);
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  font: inherit;
  color: var(--ink-900, #0f172a);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  outline-offset: 2px;
}

/* Hover / Focus */
.clx-field select:hover,
.clx-phone__code:hover,
select.clx-any:hover { border-color: rgba(0,0,0,.25); }

.clx-field select:focus,
.clx-phone__code:focus,
select.clx-any:focus {
  outline: none;
  border-color: var(--brand-green, #0db14b);
  box-shadow: 0 0 0 3px rgba(13,177,75,.18);
}

/* IE/antiguo Edge: oculta caret nativo */
.clx-field select::-ms-expand,
.clx-phone__code::-ms-expand,
select.clx-any::-ms-expand { display: none; }

/* En formularios validados, muestra el rojo de inválido */
.clx-form select:invalid { border-color: rgba(0,0,0,.15); box-shadow: none; }
.clx-form.was-validated select:invalid { border-color: #e11d48; }

/* Scrollbar del popup (Chromium/WebKit — lo que permite el navegador) */
.clx-field select::-webkit-scrollbar,
.clx-phone__code::-webkit-scrollbar,
select.clx-any::-webkit-scrollbar { width: 10px; }
.clx-field select::-webkit-scrollbar-track,
.clx-phone__code::-webkit-scrollbar-track,
select.clx-any::-webkit-scrollbar-track { background: rgba(0,0,0,.05); border-radius: 8px; }
.clx-field select::-webkit-scrollbar-thumb,
.clx-phone__code::-webkit-scrollbar-thumb,
select.clx-any::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 8px; }
.clx-field select::-webkit-scrollbar-thumb:hover,
.clx-phone__code::-webkit-scrollbar-thumb:hover,
select.clx-any::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.28); }

/* Tipografía y “alto de fila” del popup (limitado por cada OS) */
.clx-field select,
.clx-field select option,
.clx-phone__code,
.clx-phone__code option,
select.clx-any,
select.clx-any option {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
}

/* Opciones — estilo que sí respetan algunos motores */
.clx-field select option,
.clx-phone__code option,
select.clx-any option {
  color: var(--ink-900, #0f172a);
  background: var(--surface, #fff);
  text-indent: .4rem;              /* “padding” simulado a la izquierda */
  -webkit-text-fill-color: currentColor;
}

/* Opción seleccionada dentro de la lista (cuando se abre el menú) */
.clx-field select option:checked,
.clx-phone__code option:checked,
select.clx-any option:checked {
  background: color-mix(in oklab, var(--brand-green, #0db14b) 16%, white);
  color: var(--ink-900, #0f172a);
}

/* Firefox permite hover/teclado en opciones */
@-moz-document url-prefix() {
  .clx-field select option:hover,
  .clx-phone__code option:hover,
  select.clx-any option:hover {
    background: color-mix(in oklab, var(--brand-green, #0db14b) 20%, white);
  }
  .clx-field select:-moz-focusring > option:checked,
  .clx-phone__code:-moz-focusring > option:checked,
  select.clx-any:-moz-focusring > option:checked {
    background: color-mix(in oklab, var(--brand-green, #0db14b) 24%, white);
  }
}

/* Evita que el menú se corte por stacking de contenedores */
.clx-grid { overflow: visible; }
.clx-field { position: relative; }
.clx-field:has(> select:focus) { z-index: 5; }

/* Móvil compacto */
@media (max-width: 640px){
  .clx-field select,
  .clx-phone__code,
  select.clx-any {
    padding-right: 40px;
    border-radius: calc(var(--radius, 12px) - 2px);
    min-height: 46px;
  }
}

/* Alto contraste (Windows/UA) */
@media (forced-colors: active){
  .clx-form select:focus { outline: 1px solid Highlight; outline-offset: 2px; }
  .clx-form select:invalid { border-color: Highlight; }
}

/* ============== SELECT PERSONALIZADO (listbox .clx-select) ============== */

/* Wrapper accesible (puedes usarlo en cualquier select “mejorado” del sitio) */
.clx-select {
  position: relative;
  font-size: 15px;
}

/* Oculta el select nativo pero mantiene envío/validez */
.clx-select select.clx-select__native {
  position: absolute;
  inset: 0;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Botón que simula el select cerrado */
.clx-select__button {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius, 12px);
  background: var(--surface, #fff);
  color: var(--ink-900, #0f172a);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.clx-select__button:hover { border-color: rgba(0,0,0,.25); }
.clx-select__button:focus-visible {
  outline: none;
  border-color: var(--brand-green, #0db14b);
  box-shadow: 0 0 0 3px rgba(13,177,75,.18);
}

/* Flecha */
.clx-select__button::after{
  content:"";
  position:absolute; right:12px; top:50%;
  transform: translateY(-50%);
  width:18px; height:18px; background:#64748b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Lista desplegable */
.clx-select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 20;
  max-height: 240px;
  overflow: auto;
  background: var(--surface, #fff);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  padding: 6px;
  display: none;
}
.clx-select[aria-expanded="true"] .clx-select__list { display: block; }

/* Opción */
.clx-select__option {
  list-style: none;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-900, #0f172a);
  cursor: pointer;
}
.clx-select__option[aria-selected="true"] {
  background: color-mix(in oklab, var(--brand-green, #0db14b) 16%, white);
  font-weight: 600;
}
.clx-select__option:hover,
.clx-select__option[aria-current="true"] {
  background: rgba(13,177,75,.08);
}

/* Scrollbar de la lista personalizada */
.clx-select__list::-webkit-scrollbar { width: 10px; }
.clx-select__list::-webkit-scrollbar-track { background: rgba(0,0,0,.05); border-radius: 8px; }
.clx-select__list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 8px; }
.clx-select__list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.28); }

/* Móvil */
@media (max-width: 640px){
  .clx-select__button { padding-right: 40px; border-radius: calc(var(--radius, 12px) - 2px); }
}

/* Alto contraste */
@media (forced-colors: active){
  .clx-select__option[aria-selected="true"] { outline: 1px solid Highlight; }
}

/* ====== FORZAR MISMO LOOK EN EL SELECT DE TELÉFONO ====== */
.clx-phone .clx-phone__code {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  width: 100%;
  min-width: 110px;          /* tu ancho mínimo */
  min-height: 48px;
  padding: 12px 44px 12px 14px;  /* espacio para la flecha */
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--radius, 12px);
  background-color: var(--surface, #fff) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px 18px !important;

  font: inherit;
  color: var(--ink-900, #0f172a);
  line-height: 1.3;
  outline-offset: 2px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* hover/focus */
.clx-phone .clx-phone__code:hover {
  border-color: rgba(0,0,0,.25);
}
.clx-phone .clx-phone__code:focus {
  outline: none;
  border-color: var(--brand-green, #0db14b);
  box-shadow: 0 0 0 3px rgba(13,177,75,.18);
}

/* oculta caret antiguo de IE/Edge */
.clx-phone .clx-phone__code::-ms-expand { display: none; }

/* tipografía/alto de fila del popup (limitado por el SO) */
.clx-phone .clx-phone__code,
.clx-phone .clx-phone__code option {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
}

/* opciones del desplegable (lo que permite el navegador) */
.clx-phone .clx-phone__code option {
  color: var(--ink-900, #0f172a);
  background: var(--surface, #fff);
  text-indent: .4rem;
  -webkit-text-fill-color: currentColor;
}
.clx-phone .clx-phone__code option:checked {
  background: color-mix(in oklab, var(--brand-green, #0db14b) 16%, white);
  color: var(--ink-900, #0f172a);
}

/* Firefox: hover/focus en opciones */
@-moz-document url-prefix() {
  .clx-phone .clx-phone__code option:hover {
    background: color-mix(in oklab, var(--brand-green, #0db14b) 20%, white);
  }
  .clx-phone .clx-phone__code:-moz-focusring > option:checked {
    background: color-mix(in oklab, var(--brand-green, #0db14b) 24%, white);
  }
}

/* scrollbar del menú (Chromium/WebKit) */
.clx-phone .clx-phone__code::-webkit-scrollbar { width: 10px; }
.clx-phone .clx-phone__code::-webkit-scrollbar-track { background: rgba(0,0,0,.05); border-radius: 8px; }
.clx-phone .clx-phone__code::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 8px; }
.clx-phone .clx-phone__code::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.28); }

/* móvil compacto */
@media (max-width: 640px){
  .clx-phone .clx-phone__code {
    padding-right: 40px;
    border-radius: calc(var(--radius, 12px) - 2px);
    min-height: 46px;
  }
}
