/* Estilos propios del clon estático (modales, spinner, mensajes) */
.h-\[90\%\] { height: 90%; }
.h-\[340px\] { height: 340px; }
.h-\[50px\] { height: 50px; }
.w-\[300px\] { width: 300px; }
@media (min-width: 768px) { .md\:w-\[287px\] { width: 287px; } }

/* Carrusel */
.carrusel .overflow-hidden > .flex { transition: transform 0.4s ease; will-change: transform; }
.carrusel img { user-select: none; -webkit-user-drag: none; }

/* Modal (equivalente al Dialog del original) */
.cl-modal { display: none; }
.cl-modal.open { display: block; }
.cl-modal__overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.8); }
.cl-modal__content {
  position: fixed; left: 50%; top: 50%; z-index: 51; display: grid; width: 100%; max-width: 720px;
  transform: translate(-50%, -50%); gap: 1rem; border: 1px solid #e5e7eb; background: #fff;
  padding: 1.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  height: 90%; overflow: hidden; overflow-y: auto; margin: 0;
}
@media (min-width: 640px) { .cl-modal__content { border-radius: 0.5rem; } }
.cl-modal__close {
  position: absolute; right: 1rem; top: 1rem; border-radius: 2px; opacity: 0.7; background: transparent;
  border: 0; cursor: pointer; padding: 0; line-height: 0; color: #111;
}
.cl-modal__close:hover { opacity: 1; }
.cl-modal .modal-content { width: auto; margin: 0; border: 0; }

/* Spinner de carga (#cargando) */
#cargando.hidden { display: none; }
#cargando.show { display: flex; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.animate-spin { animation: cl-spin 1s linear infinite; }

/* Mensaje de demostración */
.demo-msg {
  margin: 10px 0 20px; padding: 12px 16px; border: 1px solid #da291c; border-radius: 6px;
  background: #fff5f5; color: #333; font-size: 0.9rem; line-height: 1.4;
}
.demo-msg strong { color: #da291c; }

/* Mensajes del captcha */
.havas-captcha div.mensajes { position: relative; min-height: 0; }
.havas-captcha div.mensajes div { position: relative; left: auto; right: auto; }

/* Texto privacidad */
.modal-textoPrivacidad p { font-size: 14px; line-height: 20px; margin: 0 0 12px; }

/* =========================================================
   Campos de formulario: tamaño cómodo y uniforme (44px / 16px)
   ========================================================= */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], select, .cl-input {
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box; display: block;
  width: 100%; max-width: 320px; height: 44px; min-height: 44px;
  margin: 0 auto 10px; padding: 0 14px !important;
  font-family: Roboto, helvetica, sans-serif !important;
  font-size: 16px !important; font-weight: 400; line-height: 42px; color: #333;
  background: #fff; border: 1px solid #cfcfcf; border-radius: var(--border, 6px);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #9b9b9b; opacity: 1; }
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="number"]:focus,
input[type="password"]:focus, select:focus, .cl-input:focus {
  border-color: #da291c; box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.12);
}
.input-resumenCompra input, .input-codigoPromocional input { text-align: center; letter-spacing: 0.5px; }
.input-resumenCompra { width: 100%; }
.input-resumenCompra > p, .paquetesEspeciales-resumenCompra > li > p { text-align: center; }
fieldset.tel, fieldset.mp_obligatorio { position: relative; width: 100%; }
fieldset.error input[type="tel"], fieldset.error input[type="text"], fieldset.error input[type="email"] {
  border: 1px solid #e0565b !important; box-shadow: 0 0 0 3px rgba(224, 86, 91, 0.15) !important;
}
fieldset.error i {
  position: static; display: block; width: fit-content; margin: -4px auto 10px; padding: 2px 10px;
  background: #e0565b; color: #fff; border-radius: 3px; font-size: 13px; font-style: normal;
}
.paquetesEspeciales-resumenCompra { width: 100%; max-width: 460px; }
.paquetesEspeciales-resumenCompra > li { width: 100%; }
.paquetesEspeciales-resumenCompra > li > h2 { text-align: center; }

/* =========================================================
   Arma tu PrepaGO!: chips en fila
   ========================================================= */
.armaPrepago { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 10px; }
.menu-armaPrepago > li { width: 100%; }
.menu-armaPrepago .cl-chips {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px; margin: 6px auto 18px; padding: 0;
}
.menu-armaPrepago .cl-chips > li { margin: 0 !important; }
.menu-armaPrepago .cl-chips > li.menu-armaPrepago__Subtitulo { flex: 0 0 100%; text-align: center; margin: 0 0 4px !important; }
.menu-armaPrepago__Subtitulo h4 { font-size: 17px; font-weight: 500; color: var(--davisGrey); }
.menu-armaPrepago__titulo { justify-content: center; margin-bottom: 10px; }
.btn-gb, .btn-min, .btn-vig {
  width: auto; min-width: 74px; height: 40px; margin: 0; padding: 0 16px;
  font-size: 15px; font-weight: 500; line-height: 38px; white-space: nowrap;
  color: var(--graniteGray); background: #fff; border: 1px solid #bdbdbd; border-radius: 20px;
  transition: all .15s ease; -webkit-tap-highlight-color: transparent;
}
.btn-gb:hover, .btn-min:hover, .btn-vig:hover { border-color: var(--maximunRed); color: var(--maximunRed); }
.btn-gb.is-active, .btn-min.is-active, .btn-vig.is-active,
.btn-gb.border, .btn-min.border, .btn-vig.border {
  background: var(--maximunRed); color: #fff; border: 1px solid var(--maximunRed) !important;
  box-shadow: 0 2px 6px rgba(218, 41, 28, 0.3);
}
.btn-gb:focus-visible, .btn-min:focus-visible, .btn-vig:focus-visible { outline: 2px solid rgba(218,41,28,.5); outline-offset: 2px; }
@media (max-width: 480px) {
  .btn-gb, .btn-min, .btn-vig { min-width: 64px; height: 38px; line-height: 36px; padding: 0 12px; font-size: 14px; }
  .menu-armaPrepago .cl-chips { gap: 8px; }
}
.rrss-armaPrepago { margin: 6px auto 10px; }
.rrss-armaPrepago img { max-width: 260px; margin: 0 auto; }
.resumen-armaPrepago {
  width: 100%; max-width: 320px; margin: 10px auto; padding: 14px 16px;
  background: var(--ghostWhite); border: 1px solid #e6e6e6; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center;
}
.resumen-armaPrepago li { margin: 2px 0 !important; }
.resumen-armaPrepago h2 { color: var(--maximunRed); font-weight: 700; font-size: 28px; margin-top: 6px; }
.btn-armaPrepago { transition: background .15s, box-shadow .15s; display: block; }
.btn-armaPrepago:not(:disabled):hover { background-color: #c3241a; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.btn-armaPrepago:disabled { cursor: not-allowed; }

/* =========================================================
   Medio de pago + formulario de tarjeta
   ========================================================= */
.medioDePago .btn_mp {
  width: 180px !important; max-width: 60%; height: auto; margin: 10px auto !important; padding: 6px;
  background: #fff; border: 2px solid #ddd !important; border-radius: var(--border) !important;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.medioDePago .btn_mp:hover { border-color: #aaa !important; }
.medioDePago .btn_mp.border, .medioDePago .btn_mp.is-active {
  border: 2px solid var(--maximunRed) !important; box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}
.medioDePago fieldset.error .btn_mp { border-color: #e0565b !important; }
.medioDePago:empty { display: none; }

.cl-card-wrap { display: none; width: 100%; }
.cl-card-wrap.open { display: block; animation: cl-fade .25s ease; }
@keyframes cl-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cl-card {
  width: 100%; max-width: 400px; margin: 6px auto 10px; padding: 20px 18px 8px;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); text-align: left;
}
.cl-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--davisGrey); }
.cl-card__head h3 { font-size: 16px; font-weight: 500; margin: 0; }
.cl-card__head img { width: 22px; height: 22px; }
.cl-card__secure { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #4caf50; font-weight: 500; }
.cl-card__secure svg { width: 14px; height: 14px; }
.cl-card fieldset { position: relative; margin: 0 0 12px; padding: 0; border: 0; width: 100%; }
.cl-card label { display: block; margin: 0 0 5px 2px; font-size: 13px; font-weight: 500; color: var(--graniteGray); }
.cl-card input { max-width: 100%; margin: 0; text-align: left; letter-spacing: 0; }
.cl-card input.cl-num { letter-spacing: 2px; font-variant-numeric: tabular-nums; padding-right: 56px !important; }
.cl-card__brand {
  position: absolute; right: 12px; top: 33px; font-size: 11px; font-weight: 700; color: var(--taupeGray);
  text-transform: uppercase; letter-spacing: .5px; pointer-events: none;
}
.cl-card input.cl-upper { text-transform: uppercase; }
.cl-card__row { display: flex; gap: 12px; }
.cl-card__row fieldset { flex: 1 1 0; min-width: 0; }
.cl-card fieldset.error input { border: 1px solid #e0565b !important; box-shadow: 0 0 0 3px rgba(224, 86, 91, 0.15) !important; }
.cl-card fieldset i { display: none; }
.cl-card fieldset.error i {
  display: block; position: static; width: auto; margin: 5px 0 0 2px; padding: 0; background: none;
  color: #e0565b; font-size: 12px; font-style: normal; font-weight: 500;
}
.cl-card__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 8px; font-size: 12px; color: var(--taupeGray); }
.cl-card__foot img { height: 18px; width: auto; }
.cl-card__hint { font-size: 12px; color: var(--taupeGray); text-align: center; margin-top: 4px; }

/* Pantalla de procesamiento (spinner con texto) */
#cargando { flex-direction: column; gap: 14px; }
#cargando .cl-loading-text { font-size: 16px; font-weight: 500; color: var(--davisGrey); font-family: Roboto, helvetica, sans-serif; }
#cargando .cl-loading-sub { font-size: 13px; color: var(--taupeGray); margin-top: -8px; }
.cl-processing {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 420px; min-height: 260px; margin: 20px auto; padding: 30px 20px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; text-align: center; color: var(--davisGrey);
}
.cl-processing h3 { font-size: 18px; font-weight: 500; }
.cl-processing p { font-size: 14px; color: var(--taupeGray); }
.cl-processing .cl-dots::after { content: ''; animation: cl-dots 1.2s steps(4, end) infinite; }
@keyframes cl-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Centrado del resumen de compra y ajustes móviles */
#cl-resumen { display: flex; justify-content: center; width: 100%; }
#cl-resumen > .cardpaquetes-especiales { margin-left: auto; margin-right: auto; }
.paquetesEspeciales-resumenCompra .subTXTpago p { font-size: 14px; color: var(--taupeGray); margin-bottom: 6px; }
@media (max-width: 480px) {
  .cl-card { padding: 16px 14px 6px; }
  .cl-card__row { flex-direction: column; gap: 0; }
  .medioDePago .btn_mp { width: 160px !important; max-width: 70%; }
  input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="password"] { max-width: 100%; }
}

/* Código promocional (recarga celular): input + botón alineados */
fieldset.servRecarga-Celular__Captcha { height: auto !important; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.servRecarga-Celular__Captcha input[type="text"] { width: 55%; margin: 0; }
.servRecarga-Celular__Captcha button { width: auto; min-width: 120px; height: 44px; margin: 0; flex: 1 1 auto; }
@media (max-width: 480px) {
  .servRecarga-Celular__Captcha input[type="text"], .servRecarga-Celular__Captcha button { width: 100%; }
}
