:root{
  --ae-orange:#ff7a18;
  --ae-orange-2:#ff9a3c;
  --ae-ink:#111827;
  --ae-muted:#6b7280;
  --ae-surface:#ffffff;
  --ae-bg:#fff7ed;
  --ae-border: rgba(17,24,39,.10);
  --ae-shadow: 0 18px 45px rgba(17,24,39,.08);
}

html{
  font-size: 16px;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body{
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(255,122,24,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,154,60,.16), transparent 55%),
    var(--ae-bg);
  color: var(--ae-ink);
}

.ae-app{ max-width: 520px; }

.ae-topbar{
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
  background: rgba(255,247,237,.72);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.ae-title{
  letter-spacing: -.3px;
  font-weight: 900;
  line-height: 1.1;
}

.ae-card{
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  box-shadow: var(--ae-shadow);
  border-radius: 22px;
}

.ae-input{
  border-radius: 18px;
  border: 1px solid var(--ae-border);
  padding: 14px 14px;
  font-weight: 800;
  font-size: 1rem;
}
.ae-input:focus{
  border-color: rgba(255,122,24,.55);
  box-shadow: 0 0 0 .25rem rgba(255,122,24,.18);
}

.ae-btn-ghost{
  border-radius: 18px;
  font-weight: 900;
  border: 1px solid var(--ae-border);
  background: #fff;
  padding: 12px 14px;
}

.ae-btn-primary{
  background: linear-gradient(135deg, var(--ae-orange), var(--ae-orange-2));
  border: 0;
  color: #fff;
  font-weight: 900;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 28px rgba(255,122,24,.22);
}
.ae-btn-primary:active{ transform: scale(.99); }

.ae-list-item{
  border-radius: 18px;
  border: 1px solid var(--ae-border);
  background: #fff;
  padding: 14px 14px;
  transition: transform .08s ease, box-shadow .08s ease;
  cursor: pointer;
  position: relative;
}
.ae-list-item:hover{
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
  transform: translateY(-1px);
}

.ae-tool-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 10px 18px rgba(17,24,39,.06);
  flex: 0 0 auto;
}

.ae-searchbar{
  position: sticky;
  top: 74px;
  z-index: 1025;
}

.modal-content{
  border-radius: 22px;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: var(--ae-shadow);
  overflow: hidden;
}

.ae-small{
  color: var(--ae-muted);
  font-weight: 800;
  font-size: .92rem;
}

#mDesc{
  white-space: pre-line;
}

/* WhatsApp flotante */
.ae-wa-float{
  position: fixed;
  right: 8px;
  bottom: 62px;
  z-index: 1200;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  text-decoration: none;
  user-select: none;
  max-width: 90px;
  overflow: visible;
}
.ae-wa-float img{
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: .88;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(17,24,39,.22));
  transition: transform .08s ease, opacity .08s ease;
}
.ae-wa-float:active img{ transform: scale(.98); opacity: .78; }

.ae-logo-mini{
  width: 48px;
  height: auto;
  opacity: .85;
  filter: drop-shadow(0 6px 14px rgba(255,122,24,.18));
  flex: 0 0 auto;
}

.ae-brand{
  font-weight: 950;
  letter-spacing: -.4px;
  line-height: .9;
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--ae-orange);
  text-shadow: 0 10px 24px rgba(255,122,24,.22);
}

.ae-accent{
  color: var(--ae-ink);
  text-shadow: none;
}

.ae-brand-sub{
  margin-top: 0;
  line-height: 1.2;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ae-muted);
  letter-spacing: .1px;
}

/* Footer */
.ae-page-pad{ padding-bottom: 88px !important; }

.ae-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  height: 68px;
  background: linear-gradient(135deg, var(--ae-orange), var(--ae-orange-2));
  box-shadow: 0 -14px 32px rgba(17,24,39,.16);
  overflow: visible;
}

.ae-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  pointer-events:none;
}

.ae-footer-nav{
  position: relative;
  height: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  padding: 4px 8px 8px;
}

.ae-footer-item{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.97);
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 6px 16px;
  user-select: none;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}

.ae-footer-item:active{
  transform: scale(.97);
}

.ae-footer-icon{
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  opacity: .98;
}

.ae-footer-icon svg{
  width: 100%;
  height: 100%;
  display: block;
}

.ae-footer-label{
  font-size: 10.5px;
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: .05px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.10);
  max-width: 90px;
}

.ae-footer-item-center{
  position: relative;
  height: 96px;        /* como antes */
  margin-top: -10px;   /* acá ajustás fino */
  justify-content: center;
  padding-top: 0;
  z-index: 2;
}

.ae-footer-icon-center{
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.88);
  box-shadow:
    0 12px 22px rgba(17,24,39,.18),
    0 6px 14px rgba(255,122,24,.16);
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ae-footer-icon-center::before{
  display: none;
}

.ae-footer-user-svg{
  position: relative;
  width: 34px;
  height: 34px;
  color: var(--ae-orange);
  filter: none;
}

.ae-footer-label-center{
  display: none;
}

#aeFooterEscribano .ae-footer-nav{
grid-template-columns: 1fr 1fr 1fr 1fr !important;
}

@media (max-width: 420px){
  #aeFooterEscribano .ae-footer-nav{
    grid-template-columns: repeat(4, 72px) !important;
    justify-content: center;
    gap: 6px;
  }
}

#aeFooterCliente .ae-footer-nav{
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
}

#aeFooterEscribano .ae-footer-item-center{
  pointer-events: auto !important;
  z-index: 5;
}

#aeFooterEscribano .ae-footer-icon-center{
  pointer-events: auto !important;
}

#aeFooterEscribano .ae-footer-icon-center img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}

/* Mis trámites modal */
#modalMisTramites .modal-dialog{
  max-width: 520px;
  margin: 0 auto;
}

#modalMisTramites .modal-header.ae-mt-header{
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(17,24,39,.08);
  background: rgba(255,247,237,.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

#modalMisTramites .modal-header.ae-mt-header::before{
  content:"";
  position:absolute;
  left:-20%;
  top:-70%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 30% 35%, rgba(255,122,24,.20), transparent 55%);
  transform: rotate(8deg);
  pointer-events:none;
}

.ae-mt-top{
  position: relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.ae-mt-user{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 12px 26px rgba(17,24,39,.06);
}

.ae-mt-avatar{
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 14px 30px rgba(255,122,24,.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.ae-mt-avatar-img{
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: .94;
  filter: drop-shadow(0 6px 14px rgba(255,122,24,.16));
}

.ae-mt-name{
  font-size: 1.20rem;
  font-weight: 950;
  letter-spacing: -.35px;
  color: var(--ae-ink);
  text-shadow: 0 10px 24px rgba(255,122,24,.10);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ae-mt-email{
  margin-top: 2px;
  font-size: .90rem;
  font-weight: 850;
  color: rgba(17,24,39,.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ae-mt-logout{
  display:inline-block;
  margin-top: 6px;
  font-size: .86rem;
  font-weight: 950;
  color: rgba(17,24,39,.72);
  text-decoration: none;
  border-bottom: 1px dashed rgba(17,24,39,.35);
  line-height: 1.1;
}
.ae-mt-logout:hover{
  color: rgba(17,24,39,.92);
  border-bottom-color: rgba(17,24,39,.45);
}
.ae-mt-logout:active{ transform: scale(.99); }

.ae-mt-actions{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

#modalMisTramites .modal-body{
  position: relative;
  z-index: 1;
  padding-top: 14px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 80px;
}

.ae-mt-card{
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: var(--ae-shadow);
  border-radius: 22px;
  padding: 14px;
}

.ae-mt-title{
  font-weight: 900;
  letter-spacing: -.2px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.ae-mt-sub{
  margin-top: 4px;
  color: rgba(17,24,39,.62);
  font-weight: 800;
  font-size: .9rem;
}

#modalMisTramites .btn:disabled,
#modalMisTramites .btn.disabled{
  opacity: 1 !important;
  background: #fff !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  color: rgba(107,114,128,.75) !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: not-allowed !important;
}

#modalMisTramites .ae-tool-logo{
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

#modalMisTramites .ae-btn-state{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 950;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.04);
  color: rgba(17,24,39,.78);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
  cursor: default;
}

#modalMisTramites .ae-btn-state::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.35);
  box-shadow: 0 0 0 4px rgba(17,24,39,.08);
}

#modalMisTramites .ae-btn-state::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 16px;
  pointer-events:none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.35) 50%,
    transparent 100%);
  transform: translateX(-70%);
  opacity: .45;
  animation: aeStateShimmer 1.6s linear infinite;
}

@keyframes aeStateShimmer{
  to{ transform: translateX(70%); }
}

#modalMisTramites .ae-btn-state.ae-state--proc{
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.25);
  color: rgba(17,24,39,.86);
}
#modalMisTramites .ae-btn-state.ae-state--proc::before{
  background: rgba(59,130,246,.95);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

#modalMisTramites .ae-btn-state.ae-state--pay{
  background: rgba(255,122,24,.12);
  border-color: rgba(255,122,24,.32);
  color: rgba(17,24,39,.86);
}
#modalMisTramites .ae-btn-state.ae-state--pay::before{
  background: rgba(255,122,24,.98);
  box-shadow: 0 0 0 4px rgba(255,122,24,.16);
}

#modalMisTramites .ae-btn-state.ae-state--paid{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.28);
  color: rgba(17,24,39,.86);
}
#modalMisTramites .ae-btn-state.ae-state--paid::before{
  background: rgba(16,185,129,.98);
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}

#modalMisTramites .ae-btn-state.ae-state--done{
  background: rgba(17,24,39,.06);
  border-color: rgba(17,24,39,.14);
  color: rgba(17,24,39,.70);
}
#modalMisTramites .ae-btn-state.ae-state--done::before{
  background: rgba(17,24,39,.45);
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}
#modalMisTramites .ae-btn-state.ae-state--done::after{
  display:none;
}

#modalMisTramites .ae-btn-mini:not(:disabled){
  border: 1px solid rgba(17,24,39,.18);
}

#aeToast{
  opacity: .85;
  backdrop-filter: blur(8px);
  border-radius: 16px;
  min-width: 260px;
}

#aeToastBody{
  font-size: 1.1rem;
  padding: 14px 18px;
}

.ae-item-disabled{
  opacity: .45;
  filter: grayscale(1);
  cursor: not-allowed;
}

.ae-item-disabled:hover{
  box-shadow: none;
  transform: none;
}

.ae-item-disabled::after{
  content: "NO DISPONIBLE";
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Pago panel */
.ae-pay-panel{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 40px rgba(17,24,39,.10);
  overflow: hidden;
}

.ae-pay-panel .ae-pay-top{
  position: relative;
  padding: 12px 12px 10px 12px;
  background: linear-gradient(135deg, rgba(255,122,24,.12), rgba(255,154,60,.10));
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.ae-pay-panel .ae-pay-top::before{
  content:"";
  position:absolute;
  inset:-55%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.42), transparent 48%);
  transform: rotate(12deg);
  opacity: .85;
  pointer-events:none;
}

.ae-pay-head{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
}

.ae-pay-banklogo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 12px 24px rgba(17,24,39,.10);
  flex: 0 0 auto;
}

.ae-pay-title{
  font-weight: 950;
  letter-spacing: -.3px;
  line-height: 1.05;
  font-size: 1.02rem;
  margin: 0;
}

.ae-pay-sub{
  margin-top: 2px;
  color: var(--ae-muted);
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.15;
}

.ae-pay-body{ padding: 12px; }

.ae-pay-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
}

.ae-pay-label{
  color: var(--ae-muted);
  font-weight: 900;
  font-size: .80rem;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.ae-pay-value{
  font-weight: 950;
  letter-spacing: .2px;
  font-size: 1.05rem;
  color: var(--ae-ink);
  line-height: 1.05;
  text-align:right;
  word-break: break-all;
}

.ae-pay-copy{
  border-radius: 14px;
  font-weight: 950;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  padding: 10px 12px;
  white-space: nowrap;
}

.ae-pay-copy:active{ transform: scale(.99); }

.ae-pay-wa{
  width: 100%;
  border-radius: 16px;
  font-weight: 950;
  border: 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--ae-orange), var(--ae-orange-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,122,24,.22);
}

.ae-pay-wa-soft{
  width: 100%;
  border-radius: 16px;
  font-weight: 950;
  padding: 12px 14px;
  border: 1px solid rgba(17,24,39,.14);
  background: #fff;
  color: rgba(17,24,39,.88);
  box-shadow: 0 10px 22px rgba(17,24,39,.06);
}

.ae-pay-wa:active,
.ae-pay-wa-soft:active{ transform: scale(.99); }

.ae-pay-mini-link{
  display:inline-block;
  margin-top: 10px;
  font-weight: 900;
  color: rgba(17,24,39,.70);
  text-decoration: none;
  border-bottom: 1px dashed rgba(17,24,39,.30);
}

.ae-pay-mini-link:active{ transform: scale(.99); }

@keyframes aePayIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

.ae-pay-anim{
  animation: aePayIn .16s ease both;
}

.ae-pay-amount{
  margin-left: auto;
  text-align: right;
  font-weight: 950;
  letter-spacing: -.6px;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--ae-ink);
  text-shadow: 0 10px 22px rgba(17,24,39,.10);
  flex: 0 0 auto;
}

.ae-pay-amount small{
  display:block;
  margin-top: 3px;
  font-size: .78rem;
  font-weight: 900;
  color: rgba(107,114,128,.90);
  letter-spacing: .1px;
}

.ae-mt-note{
  color: #c75c10;
  font-weight: 400;
}

/* Splash */
html.ae-loading, body.ae-loading{
  height: 100%;
  overflow: hidden !important;
}

.ae-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(255,122,24,.14), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,154,60,.12), transparent 55%),
    rgba(255,247,237,.985);
  backdrop-filter: blur(10px);
  opacity: 1;
  pointer-events: all;
}

.ae-splash{
  display: grid;
  place-items: center;
  gap: 14px;
}

.ae-splash-icon{
  width: 214px;
  height: 214px;
  border-radius: 38px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow:
    0 26px 70px rgba(17,24,39,.16),
    0 28px 85px rgba(255,122,24,.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.ae-splash-icon img{
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 12px 28px rgba(255,122,24,.16));
}

.ae-splash-type{
  font-weight: 950;
  letter-spacing: -.4px;
  line-height: 1;
  font-size: 1.6rem;
  user-select: none;
  white-space: nowrap;
  text-shadow: 0 10px 24px rgba(255,122,24,.10);
}

.ae-type-a{ color: var(--ae-ink); }
.ae-type-b{ color: var(--ae-orange); }

.ae-type-caret{
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1.1em;
  border-radius: 2px;
  background: rgba(17,24,39,.55);
  animation: aeCaret 1s steps(1,end) infinite;
  opacity: .9;
}

@keyframes aeCaret{
  50% { opacity: 0; }
}

.ae-loader.is-hidden{
  animation: aeLoaderOut .24s ease forwards;
  pointer-events: none;
}

@keyframes aeLoaderOut{
  to { opacity: 0; transform: scale(1.015); }
}

.ae-type-b.is-glow{
  text-shadow:
    0 10px 24px rgba(255,122,24,.22),
    0 0 22px rgba(255,122,24,.22);
}

/* Selector / fake loader */
.ae-selector{
  position: fixed;
  inset: 0;
  background: rgba(255,247,237,.98);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease;
}

.ae-selector-box{
  width: 100%;
  max-width: 320px;
  padding: 20px;
}

.ae-mode-hidden{
  display:none !important;
}

.ae-selector-enter{
  animation: aeSelectorIn .35s ease both;
}

.ae-selector-exit{
  animation: aeSelectorOut .28s ease both;
}

@keyframes aeSelectorIn{
  from{
    opacity:0;
    transform: scale(.985) translateY(10px);
  }
  to{
    opacity:1;
    transform: scale(1) translateY(0);
  }
}

@keyframes aeSelectorOut{
  from{
    opacity:1;
    transform: scale(1) translateY(0);
  }
  to{
    opacity:0;
    transform: scale(.985) translateY(8px);
  }
}

.ae-world-enter{
  animation: aeWorldEnter .38s ease both;
}

@keyframes aeWorldEnter{
  from{
    opacity:0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to{
    opacity:1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.ae-fade-soft{
  animation: aeFadeSoft .24s ease both;
}

@keyframes aeFadeSoft{
  from{ opacity:0; }
  to{ opacity:1; }
}

.ae-loader-logo{
  width: 82px;
  height: 82px;
  display: block;
  margin: 0 auto 10px auto;
  object-fit: contain;
  animation: aeBreathe 2.2s ease-in-out infinite;
}

@keyframes aeBreathe{
  0%,100%{ transform:scale(1); opacity:.9; }
  50%{ transform:scale(1.06); opacity:1; }
}

.ae-loader-title{
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.2px;
  color: #111827;
  min-height: 1.4em;
  text-align: center;
}

.ae-loader-step{
  font-size: .9rem;
  color: #6b7280;
  opacity: .85;
  transition: opacity .25s ease;
  min-height: 1.4em;
  text-align: center;
}

.ae-loader-progress{
  width:100%;
  height:4px;
  background:rgba(0,0,0,.06);
  border-radius:999px;
  overflow:hidden;
}

.ae-loader-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#ff7a18,#ff9a3c);
  border-radius:999px;
  transition:width .5s cubic-bezier(.4,0,.2,1);
}

#aeFakeLoader{
  z-index: 100000;
}

#aeFakeLoader .ae-selector-card{
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#aeLoaderTitle,
#aeLoaderStep{
  display: block;
}

/* Desktop */
@media (min-width: 992px){

  main.container.ae-app{
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .ae-searchbar{
    position: static;
    top: auto;
  }

  #tools{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px !important;
  }

  .ae-footer{
    height: 72px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    margin: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .ae-footer-nav{
    max-width: 760px;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: unset;
  }

  .ae-footer-item{
    height: 72px;
  }

  .ae-footer-icon{
    width: 34px;
    height: 34px;
  }

  .ae-footer-label{
    font-size: 11px;
    max-width: 105px;
  }

  .ae-footer-item-center{
    height: 72px;
    margin-top: 0;
  }

  .ae-footer-icon-center{
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .ae-footer-icon-center img{
    width: 34px;
    height: 34px;
    object-fit: contain;
	 opacity: 0.85;
   filter: brightness(0) invert(1);
  }

  .ae-footer-label-center{
    display: block;
    font-size: 11px;
    font-weight: 850;
    color: #fff;
  }

  main.ae-page-pad,
  .ae-page-pad{
    padding-bottom: 96px !important;
  }

  #modalMisTramites .modal-dialog{
    max-width: 820px !important;
    width: min(820px, calc(100% - 48px));
    margin: 28px auto !important;
  }

  #modalMisTramites .modal-dialog.modal-dialog-centered{
    align-items: flex-start;
    min-height: calc(100% - 56px);
  }

  #modalMisTramites .modal-content{
    border-radius: 22px;
  }

  #modalMisTramites .modal-body{
    padding-bottom: 32px;
  }

  body.modal-open{
    padding-right: 0 !important;
  }

  .modal{
    padding-right: 0 !important;
  }
}

/* SOLO escribanos */
  #aeFooterEscribano .ae-footer-label-center{
    display: none;
  }

  #aeFooterEscribano .ae-footer-icon-center{
    width: 50px;
    height: 50px;
  }

  #aeFooterEscribano .ae-footer-icon-center img{
    width: 50px;
    height: 50px;
  }

}

@media (max-width: 991.98px){
  #aeFooterEscribano .ae-footer-icon-center img{
    width: 58px;
    height: 58px;
  }

  #modalMisTramites .modal-dialog{
    margin: 8px auto !important;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 420px){
  .ae-footer{
    height: 66px;
  }

  .ae-footer-nav{
    padding: 3px 2px 7px;
  }
  
   #aeFooterCliente .ae-footer-item-center{
    margin-top: -14px; !important;
  }

  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center){
    padding-bottom: 14px;
  }

  .ae-footer-item{
    height: 64px;
    padding-left: 2px;
    padding-right: 2px;
	padding-bottom: 5px;
  }

  .ae-footer-icon{
    width: 29px;
    height: 29px;
  }

  .ae-footer-label{
    font-size: 10px;
    max-width: 86px;
  }

  .ae-footer-item-center{
    height: 78px;
    margin-top: -8px;
  }

  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center){
    padding-bottom: 10px;
  }
  
  #aeFooterEscribano .ae-footer-item:not(.ae-footer-item-center){
  padding-bottom: 20px;
}

  .ae-footer-icon-center{
   width: 68px;
    height: 68px;
    border-radius: 22px;
  }

  .ae-footer-label-center{
    font-size: 10px;
  }

  .ae-page-pad{
    padding-bottom: 86px !important;
  }
}

@media (max-width: 360px){
  #modalMisTramites .ae-mt-name{ font-size: 1.12rem; }
  #modalMisTramites .ae-mt-email{ font-size: .86rem; }
}

/* Tool modal */
#toolModal .modal-content{
  position: relative !important;
}



#toolModal .btn-close{
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  margin: 0 !important;
  z-index: 9999 !important;
}

#toolModal .modal-header{
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 36px 0 36px !important;
}

#toolModal .modal-header .btn-close{
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

#toolModal .modal-header > .w-100{
  text-align: center;
  margin: 0 auto;
}

#toolModal .modal-header .btn-close{
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

#toolModal .modal-body{
  text-align: center;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

#toolModal #btnSend,
#toolModal .modal-body > .btn{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#toolModal #mLogo{
  display: block !important;
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 8px auto 20px auto !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(17,24,39,.10) !important;
  box-shadow:
    0 18px 45px rgba(17,24,39,.10),
    0 18px 55px rgba(255,122,24,.14) !important;
  padding: 12px !important;
  overflow: visible !important;
}

#aeToolDivider{
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(17,24,39,.15),
    transparent
  );
  margin: 14px 0 10px 0;
  opacity: .9;
}

/* Misc */
.ae-pay-anim{
  animation: aePayIn .16s ease both;
}

#modalMisTramites.ae-modal-dim .modal-content {
  opacity: 0.35;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

#modalMisTramites .btn.btn-dark.w-100{
  background: linear-gradient(135deg, var(--ae-orange), var(--ae-orange-2)) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 950 !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  box-shadow: 0 14px 30px rgba(255,122,24,.22) !important;
}

#modalMisTramites .btn.btn-dark.w-100:active{
  transform: scale(.99);
}

@media (min-width: 992px){
  #modalMisTramites:has(.ae-mt-login-state) .modal-dialog{
    max-width: 420px !important;
    width: min(420px, calc(100% - 40px));
    margin: 60px auto !important;
  }
}

.ae-esc-hint{
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(17,24,39,.06);
}

.ae-esc-hint-title{
  font-weight: 900;
  letter-spacing: -.2px;
  margin-bottom: 4px;
  color: var(--ae-ink);
}

.ae-esc-hint-text{
  color: var(--ae-muted);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.4;
}

.form-check-input{
  cursor: pointer;
}

.form-check-label{
  cursor: pointer;
  color: var(--ae-ink);
}

/* Welcome checkbox más visible */
#modalWelcomeCliente .form-check-input,
#modalWelcomeEscribano .form-check-input{
  width: 18px;
  height: 18px;
  border: 2px solid #ff7a18;
  box-shadow: none;
}

#modalWelcomeCliente .form-check-input:checked,
#modalWelcomeEscribano .form-check-input:checked{
  background-color: #ff7a18;
  border-color: #ff7a18;
}

#modalWelcomeCliente .form-check-label,
#modalWelcomeEscribano .form-check-label{
  font-size: 0.95rem;
  color: #111827;
}

/* =========================
   TOOL MODAL SIZES (PC ONLY)
========================= */

#toolModal .modal-dialog.ae-toolmodal-normal{
  max-width: 520px;
}

#toolModal .modal-dialog.ae-toolmodal-wide{
  max-width: 820px; /* mismo que Mis Trámites */
}

/* Desktop only */
@media (min-width: 992px){

  #toolModal .modal-dialog.ae-toolmodal-wide{
    width: min(820px, calc(100% - 48px));
    margin: 28px auto !important;
    align-items: flex-start;
  }

}

/* Mobile: todo igual */
@media (max-width: 991.98px){

  #toolModal .modal-dialog.ae-toolmodal-normal,
  #toolModal .modal-dialog.ae-toolmodal-wide{
    max-width: none;
    width: auto;
    margin: 8px auto !important;
    padding-left: 8px;
    padding-right: 8px;
  }

}

/* Evitar scroll interno en modal tool */
#toolModal .modal-body{
  overflow: visible !important;
  max-height: none !important;
}

/* Cuando Bootstrap abre un modal, evitar doble scrollbar lateral */
html:has(.modal.show),
body.modal-open{
  overflow-y: hidden !important;
}

/* El scroll queda solo en el contenedor del modal */
#toolModal{
  overflow-y: auto !important;
}

/* Pero ocultamos visualmente la barra del modal */
#toolModal{
  scrollbar-width: none; /* Firefox */
}

#toolModal::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
}

/* ================================
   FOOTER CLIENTE - AJUSTES SOLO PC
   Orden: AE · EN LINEA · COMPARTIR · CAMBIAR
================================ */
.ae-footer-logo-pc{
  display:none;
}

@media (min-width: 992px){
  #aeFooterEscribano .ae-footer-nav,
  #aeFooterCliente .ae-footer-nav{
    grid-template-columns: repeat(4, minmax(90px, 1fr)) !important;
    max-width: 660px;
    gap: 8px;
    align-items: center;
    padding: 6px 12px 8px;
  }
  
  
  
  
  

  #aeFooterCliente .ae-footer-item{
    height: 58px;
    padding: 0 6px 6px;
    gap: 2px;
  }

  #aeFooterCliente .ae-footer-item:nth-child(1){ order: 1; }
  #aeFooterCliente .ae-footer-item:nth-child(2){ order: 2; }
  #aeFooterCliente .ae-footer-item:nth-child(3){ order: 3; }
  #aeFooterCliente .ae-footer-item:nth-child(4){ order: 4; }

  #aeFooterCliente .ae-footer-item-center{
    margin-top: 0;
    padding-bottom: 6px;
  }

  #aeFooterCliente .ae-footer-icon{
    width: 26px;
    height: 26px;
  }

  #aeFooterCliente .ae-footer-icon-center{
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
  }

  #aeFooterCliente .ae-footer-user-svg-mobile{
  display:block !important;
}

#aeFooterCliente .ae-footer-logo-pc{
  display:none !important;
}

  #aeFooterCliente .ae-footer-label{
    font-size: 9.5px;
    line-height: 1.02;
    max-width: 82px;
    font-weight: 850;
  }

  #aeFooterCliente .ae-footer-label-center{
    display:block;
    color:#fff;
    font-size: 9.5px;
    max-width: 82px;
  }
}

@media (min-width: 992px){

  #aeFooterCliente .ae-footer-icon-center{
    width: 48px;
    height: 48px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.88);
    box-shadow:
      0 12px 22px rgba(17,24,39,.18),
      0 6px 14px rgba(255,122,24,.16);
  }

  #aeFooterCliente .ae-footer-user-svg{
    width: 34px;
    height: 34px;
    color: var(--ae-orange);
    filter: none;
  }

  #aeFooterCliente .ae-footer-item-center{
    height: 96px;
    margin-top: -10px;
  }

}

@media (min-width: 992px){
  #aeFooterCliente .ae-footer-label-center{
    display: none !important;
  }
}

@media (min-width: 992px){

  /* CONTENEDOR */
  #aeFooterEscribano .ae-footer-nav,
  #aeFooterCliente .ae-footer-nav{
    align-items: flex-start !important;
    padding-top: 0 !important;
  }

  /* BOTONES SECUNDARIOS (suben un poco) */
  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center){
    transform: translateY(7px);
  }

  /* BOTÓN CENTRAL (sube fuerte) */
  #aeFooterCliente .ae-footer-item-center{
    height: 118px !important;
    margin-top: -24px !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

}

@media (min-width: 992px){

  #aeFooterCliente .ae-footer-nav{
    align-items: flex-start !important;
    padding-top: 0 !important;
  }

  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center){
    height: 76px !important;
    padding: 0 6px 0 !important;
    gap: 1px !important;
    transform: translateY(-4px) !important;
  }

  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center) .ae-footer-icon{
    width: 23px !important;
    height: 23px !important;
  }

  #aeFooterCliente .ae-footer-item:not(.ae-footer-item-center) .ae-footer-label{
    font-size: 8.8px !important;
    line-height: 1 !important;
  }

  #aeFooterEscribano .ae-footer-item-center,
  #aeFooterCliente .ae-footer-item-center{
    height: 116px !important;
    margin-top: -24px !important;
    padding-bottom: 0 !important;
    transform: none !important;
  }

}

@media (min-width: 992px){

  #aeFooterEscribano .ae-footer-item:not(.ae-footer-item-center){
    height: 76px !important;
    padding: 0 6px 0px !important;
    gap: 1px !important;
	transform: translateY(-4px) !important;
  }

  #aeFooterEscribano .ae-footer-item:not(.ae-footer-item-center) .ae-footer-icon{
    width: 23px !important;
    height: 23px !important;
  }

  #aeFooterEscribano .ae-footer-item:not(.ae-footer-item-center) .ae-footer-label{
    font-size: 8.8px !important;
	 line-height: 1 !important;
  }

}