:root{--bomberos-wine:#80052f;--bomberos-wine-action:#9a2b44;--bomberos-gold:rgb(187,148,93);--bomberos-text:rgb(86,66,68);--bomberos-line:rgb(220,192,194)}
        *{box-sizing:border-box}html,body{margin:0;min-height:100%}body{display:flex;min-height:100vh;flex-direction:column;background:#f7f8f8;color:#25292d;font-family:"Montserrat Local","Segoe UI",Arial,sans-serif}
        .bc-top-line{height:5px;flex:0 0 auto;background:var(--bomberos-wine)}
        .bc-header{position:sticky;z-index:1030;top:0;background:#fff;border-bottom:1px solid var(--bomberos-line);box-shadow:0 3px 14px rgba(0,0,0,.06)}
        .bc-shell{width:1200px;max-width:calc(100% - 32px);margin:0 auto}.bc-header-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:28px}
        .bc-brand{display:flex;align-items:center;text-decoration:none}.bc-brand img{display:block;width:auto;height:62px;max-width:230px;object-fit:contain}
        .bc-header-right,.bc-nav,.bc-user{display:flex;align-items:center}.bc-header-right{gap:24px}.bc-nav{gap:6px}.bc-nav a{padding:10px 12px;border-radius:5px;color:var(--bomberos-text);font-size:13px;font-weight:700;text-decoration:none}.bc-nav a:hover,.bc-nav a:focus{background:#f7eef1;color:var(--bomberos-wine)}
        .bc-user{gap:8px;color:var(--bomberos-wine);font-size:13px;font-weight:700}.bc-user svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
        .bc-hero{width:1200px;max-width:calc(100% - 32px);margin:30px auto 0;padding:54px 32px;position:relative;overflow:hidden;border-radius:12px;background:var(--bomberos-wine);color:#fff;text-align:center;box-shadow:0 5px 18px rgba(91,5,40,.17)}.bc-hero:after{content:"";position:absolute;right:-90px;bottom:-125px;width:430px;height:330px;background:url("https://pagos.tijuana.gob.mx/PagosEnLinea/themeTj/v5.0/img/aguila.png") center/contain no-repeat;opacity:.045}.bc-hero>*{position:relative;z-index:1}.bc-hero h1{margin:0 0 9px;color:var(--bomberos-gold);font-size:38px;line-height:1.25;font-weight:700}.bc-hero p{margin:0;font-size:18px;line-height:28px;font-weight:400}
        .bc-content{flex:1 0 auto}.bc-actions{padding:42px 0}.bc-action-card{height:100%;display:flex;flex-direction:column;padding:24px;border:1px solid #dfe3e3;border-radius:10px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 3px 11px rgba(24,42,40,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.bc-action-card:hover,.bc-action-card:focus{color:inherit;transform:translateY(-3px);border-color:#cfb27c;box-shadow:0 8px 20px rgba(24,42,40,.12)}.bc-card-head{display:flex;align-items:center;gap:16px;margin-bottom:22px}.bc-card-icon{display:grid;place-items:center;width:72px;height:72px;flex:0 0 auto;color:var(--bomberos-gold)}.bc-card-icon svg{width:52px;height:52px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bc-action-card h2{margin:0 0 4px;color:var(--bomberos-text);font-size:18px;font-weight:700}.bc-action-card p{margin:0;color:#697073;font-size:14px;line-height:20px}.bc-card-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:auto;padding:10px 14px;border-radius:5px;background:var(--bomberos-wine-action);color:#fff;font-size:12px;font-weight:700;text-align:center}.bc-card-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
        .bc-alert{margin-top:30px;padding:20px 22px;border-left:4px solid var(--bomberos-wine-action);border-radius:0 8px 8px 0;background:#fff2f4;color:#6d2637}.bc-alert-title{display:flex;align-items:center;gap:9px;margin-bottom:11px;color:var(--bomberos-wine);font-size:14px;font-weight:700}.bc-alert-title svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}.bc-alert ul{margin:0;padding-left:22px}.bc-alert li{margin-bottom:7px;font-size:14px;line-height:21px}.bc-alert li:last-child{margin-bottom:0}
        .bc-info{padding:46px 0;background:var(--bomberos-wine);color:#fff}.bc-info h3{margin:0 0 14px;color:#fff;font-size:19px;font-weight:700}.bc-info p{margin:0 0 12px;color:#fff;font-size:14px;line-height:22px;font-weight:400}.bc-info a{color:#fff;font-weight:400}.bc-contact{padding:42px 0;background:#ead2ad;color:#382a19}.bc-contact h3{margin:0 0 10px;color:var(--bomberos-wine);font-size:18px;font-weight:700}.bc-contact p{margin:0 0 6px;font-size:14px;line-height:21px}.bc-contact a{color:var(--bomberos-wine)}.bc-payment-card{display:flex;align-items:center;justify-content:center;height:100%;min-height:118px;padding:20px;border-radius:8px;background:#fff;box-shadow:0 3px 10px rgba(50,35,18,.1)}.bc-payment-card img{width:auto;height:34px;max-width:100%}
        .modalBackground{background:#000;opacity:.65}.bc-modal{width:560px;max-width:calc(100vw - 30px);padding:0;border:0;border-radius:9px;background:#fff;box-shadow:0 12px 35px rgba(0,0,0,.3);overflow:hidden}.bc-modal-header{padding:16px 20px;background:var(--bomberos-wine);color:#fff}.bc-modal-body{padding:22px;color:var(--bomberos-text);font-size:14px;line-height:22px}.bc-modal-footer{padding:0 22px 22px}.bc-modal-close{width:100%;min-height:42px;border:0;border-radius:5px;background:var(--bomberos-wine-action);color:#fff;font-weight:700}
        @media(max-width:900px){.bc-header-inner{min-height:70px}.bc-brand strong{font-size:15px}.bc-nav{display:none}.bc-hero{margin-top:20px;padding:42px 24px}.bc-hero h1{font-size:30px}.bc-actions{padding:30px 0}.bc-info,.bc-contact{padding:36px 0}}
        @media(max-width:575px){.bc-shell,.bc-hero{max-width:calc(100% - 20px)}.bc-brand img{width:auto;height:48px;max-width:175px}.bc-user{font-size:11px}.bc-user svg{display:none}.bc-hero{padding:34px 18px;border-radius:8px}.bc-hero h1{font-size:25px}.bc-hero p{font-size:16px;line-height:24px}.bc-action-card{padding:19px}.bc-alert{padding:17px}.bc-info,.bc-contact{padding:30px 0}}

/* Variables globales e integraciÃ³n institucional para MasterServicios */
:root {
  --tj-wine: #80052f;
  --tj-wine-action: #a62a4a;
  --tj-green: #80052f;
  --tj-gold: rgb(187, 148, 93);
  --tj-line: #e0e3e4;
  --bomberos-wine: #80052f;
  --bomberos-wine-action: #9a2b44;
  --bomberos-gold: rgb(187, 148, 93);
  --bomberos-text: rgb(86, 66, 68);
  --bomberos-line: rgb(220, 192, 194);
}





/* ==========================================================================
   Estilos Reutilizables, Adaptativos & Sticky Footer (v5.0)
   ========================================================================== */
:root {
  --tj-wine: #80052f;
  --tj-wine-action: #a62a4a;
  --tj-green: #80052f;
  --tj-gold: rgb(187, 148, 93);
  --tj-line: #e0e3e4;
  --bomberos-wine: #80052f;
  --bomberos-wine-action: #9a2b44;
  --bomberos-gold: rgb(187, 148, 93);
  --bomberos-text: rgb(86, 66, 68);
  --bomberos-line: rgb(220, 192, 194);
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6f6;
  color: #24292d;
  font-family: "Montserrat Local", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

form#form1 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
}

* {
  box-sizing: border-box;
}

/* Barra superior horizontal - Color Vino Institucional */
.tj-top {
  position: fixed;
  z-index: 1051;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: var(--tj-wine) !important;
}

.tj-header {
  position: fixed;
  z-index: 1050;
  top: 5px;
  left: 0;
  right: 0;
  width: 100%;
  height: 84px;
  background: #fff;
  border-bottom: 1px solid rgb(220, 192, 194);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .07);
  box-sizing: border-box;
}

.tj-shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.tj-header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tj-logo {
  display: block;
  height: 62px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.tj-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tj-nav a {
  color: rgb(86, 66, 68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 5px;
}

.tj-nav a:hover {
  background: #f8eef2;
  color: var(--tj-wine);
}

/* Contenido Principal con Flex para Sticky Footer */
.tj-main {
  width: 100%;
  max-width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 89px;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(246, 247, 247, .85));
  box-sizing: border-box;
}

.tj-login-stage {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 0 auto;
  padding-bottom: 28px !important;
  background-image: linear-gradient(to bottom, transparent 0, transparent calc(100% - 28px), #f7f8f8 calc(100% - 28px), #f7f8f8 100%), url("img/banner.png") !important;
  box-sizing: border-box !important;
}

.tj-info-section {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-top: auto !important;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.tj-info {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: .82fr 1fr 1.12fr;
  gap: 54px;
  align-items: start;
  padding: 50px 36px 48px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.tj-info-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgb(86, 66, 68);
  width: 100%;
  justify-self: center;
  transform: none;
  padding-top: 0;
}

.tj-info-brand img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin: 0 auto 4px;
  transform: translate(2px, 10px);
}

.tj-info-brand strong {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 22px;
  letter-spacing: 1.5px;
}

.tj-info-brand span {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.tj-info article {
  padding: 0;
}

.tj-info article + article {
  border: 0;
}

.tj-info article:last-child {
  width: 100%;
  max-width: 350px;
}

.tj-info article:last-child p {
  text-align: justify;
}

.tj-info h3 {
  color: var(--tj-gold);
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 18px;
}

.tj-info p {
  color: rgb(86, 66, 68);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.tj-info p strong {
  font-weight: 700;
}

.tj-info .tj-email {
  color: rgb(86, 66, 68);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tj-info .tj-email:hover {
  text-decoration: underline;
}

.tj-bank-cards {
  display: block;
  width: auto;
  height: 32px;
  max-width: 100%;
  margin-top: 16px;
  object-fit: contain;
}

/* Pie de PÃ¡gina Fijo en la parte Inferior (Sticky Footer) */
.tj-footer {
  width: 100%;
  max-width: 100%;
  margin-top: auto !important;
  flex-shrink: 0;
  background: var(--tj-wine, #80052f) !important;
  color: #ffffff !important;
  padding: 20px 0 !important;
  min-height: 60px !important;
  box-sizing: border-box;
}

.tj-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 0 !important;
  box-sizing: border-box;
}

.tj-footer p,
.tj-footer-copy,
.tj-footer a,
.tj-footer-links a {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  margin: 0;
  text-decoration: none;
}

.tj-footer a:hover,
.tj-footer a:focus,
.tj-footer-links a:hover,
.tj-footer-links a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.tj-footer-logo {
  width: 48px;
  filter: grayscale(1) brightness(0) invert(1);
  margin-right: 15px;
}

.tj-address {
  display: flex;
  align-items: center;
}

.tj-footer .tj-address p {
  font-size: 12px;
}

.tj-footer .tj-address strong {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 16px;
}

/* TipografÃ­a institucional estandarizada */
.text-body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.text-body-sm {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.text-headline-lg {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -.01em;
  font-weight: 700;
}

.font-bold {
  font-weight: 700;
}

.tj-login-page .text-body-lg {
  font-size: 18px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
}

.tj-login-page .text-body-sm {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.tj-footer .text-body-sm {
  font-size: 14px !important;
  line-height: 20px !important;
}

.tj-footer .font-bold {
  font-weight: 700 !important;
}

.tj-login-page .text-headline-lg {
  font-size: 32px !important;
  line-height: 40px !important;
  letter-spacing: -.01em !important;
  font-weight: 700 !important;
}

.tj-login-page .font-bold {
  font-weight: 700 !important;
}

.tj-login-page .tj-welcome {
  background: var(--tj-wine) !important;
}

.tj-login-page .tj-eyebrow,
.tj-login-page .tj-welcome h1,
.tj-login-page .tj-login-panel > h2 {
  color: var(--tj-gold) !important;
}

.tj-login-page .tj-gold-rule {
  background: var(--tj-gold) !important;
}

.tj-login-page .tj-protection {
  margin-top: 27px !important;
  padding: 28px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 0 !important;
}

.tj-login-page .tj-protection-image img {
  filter: none !important;
}

.tj-login-page .tj-consult,
.tj-login-page .tj-consult:visited {
  background: #ffffff !important;
  color: #80052f !important;
  text-decoration: none !important;
}

.tj-login-page .tj-consult:hover,
.tj-login-page .tj-consult:focus {
  background: #fff9f0 !important;
  color: #9a2b44 !important;
}

.tj-login-page .tj-consult span {
  color: #80052f !important;
}

.tj-login-page input.tj-login-button {
  background: var(--tj-wine-action) !important;
}

.tj-login-page input.tj-login-button:hover,
.tj-login-page input.tj-login-button:focus {
  background: #891e3b !important;
}

.tj-login-page .tj-create-button {
  background: var(--tj-gold) !important;
}

.tj-login-page .tj-create-button:hover,
.tj-login-page .tj-create-button:focus {
  background: #a87d45 !important;
}

.tj-login-page .tj-llave-button {
  border-color: #936027 !important;
  color: #74421d !important;
}

.tj-login-page .tj-field .form-control:focus {
  border-color: var(--tj-wine-action) !important;
  box-shadow: 0 0 0 3px rgba(166, 42, 74, .1) !important;
}

/* Responsividad mejorada para mÃ³viles (pantallas reducidas) */
@media(max-width:900px) {
  html, body, form#form1 {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .tj-header, .tj-header-inner {
    height: 70px !important;
  }
  .tj-main {
    margin-top: 75px !important;
    padding-top: 0 !important;
  }
  .tj-logo {
    height: 48px !important;
    max-width: 175px !important;
  }
  .tj-nav a:not(.exit) {
    display: none !important;
  }
  .tj-shell {
    max-width: 100% !important;
    padding: 0 12px !important;
  }
  .tj-login-stage {
    padding: 22px 0 28px !important;
  }
  .tj-login-page {
    width: 100% !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "welcome" "access" !important;
    border-radius: 8px !important;
  }
  .tj-login-page .tj-welcome, .tj-login-page .tj-access {
    padding: 28px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .tj-login-page .tj-welcome {
    min-height: 0 !important;
  }
  .tj-login-page .tj-protection {
    padding-top: 22px !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
  }
  .tj-info {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 30px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tj-info article + article {
    border: 0 !important;
  }
  .tj-info article:last-child {
    max-width: 100% !important;
  }
  .tj-info-brand img {
    width: 112px !important;
    height: 112px !important;
  }
  .tj-info h3 {
    margin-bottom: 12px !important;
  }
  .tj-bank-cards {
    margin-top: 14px !important;
  }
  .tj-footer-inner {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
}

@media(max-width:700px) {
  .tj-login-page .tj-protection {
    padding-top: 22px !important;
  }
}

/* ==========================================================================
   Ajustes Compactos para la Tarjeta de Login (indexP.aspx)
   ========================================================================== */
.tj-login-stage {
  padding: 22px 0 22px !important;
}

.tj-login-page {
  align-items: stretch !important;
  box-shadow: 0 4px 18px rgba(23, 42, 40, .12) !important;
}

.tj-login-page .tj-welcome {
  min-height: 0 !important;
  padding: 34px 40px 28px !important;
}

.tj-login-page .tj-gold-rule {
  margin: 12px 0 16px !important;
}

.tj-login-page .tj-intro {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.tj-login-page .tj-protection {
  min-height: 0 !important;
  margin-top: 18px !important;
  padding: 14px 16px !important;
}

.tj-login-page .tj-access {
  padding: 32px 42px 26px !important;
}

.tj-login-page .tj-access-subtitle {
  margin-bottom: 16px !important;
  font-size: 13px !important;
}

.tj-login-page .tj-field {
  margin-bottom: 14px !important;
}

.tj-login-page input.tj-login-button {
  margin-top: 16px !important;
  height: 44px !important;
  line-height: 44px !important;
}

.tj-login-page .tj-create-button {
  margin-top: 10px !important;
  height: 42px !important;
  line-height: 42px !important;
}

@media(max-width:900px) {
  .tj-login-stage {
    padding: 16px 0 18px !important;
  }
  .tj-login-page .tj-welcome,
  .tj-login-page .tj-access {
    padding: 24px 18px !important;
  }
}

/* ==========================================================================
   Ajuste Elegante y Amplio para la Tarjeta de Login (indexP.aspx)
   ========================================================================== */
.tj-login-stage {
  padding: 30px 0 30px !important;
}

.tj-login-page {
  align-items: stretch !important;
  box-shadow: 0 5px 22px rgba(23, 42, 40, .14) !important;
}

.tj-login-page .tj-welcome {
  min-height: 420px !important;
  padding: 42px 45px 34px !important;
}

.tj-login-page .tj-gold-rule {
  margin: 15px 0 20px !important;
}

.tj-login-page .tj-intro {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.tj-login-page .tj-protection {
  min-height: 0 !important;
  margin-top: 22px !important;
  padding: 16px 20px !important;
}

.tj-login-page .tj-access {
  padding: 38px 45px 32px !important;
}

.tj-login-page .tj-access-subtitle {
  margin-bottom: 20px !important;
  font-size: 14px !important;
}

.tj-login-page .tj-field {
  margin-bottom: 16px !important;
}

.tj-login-page input.tj-login-button {
  margin-top: 20px !important;
  height: 46px !important;
  line-height: 46px !important;
}

.tj-login-page .tj-create-button {
  margin-top: 12px !important;
  height: 44px !important;
  line-height: 44px !important;
}

@media(max-width:900px) {
  .tj-login-stage {
    padding: 20px 0 22px !important;
  }
  .tj-login-page .tj-welcome,
  .tj-login-page .tj-access {
    padding: 28px 20px !important;
  }
}

/* ==========================================================================
   Estilos de Prerregistro (preRegistro.aspx) - v5.0
   ========================================================================== */
.tj-preregistro-stage {
  width: 100%;
  padding: 34px 0 45px;
  box-sizing: border-box;
}

.tj-preregistro-card {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 48px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dfe3e3;
  box-shadow: 0 5px 22px rgba(23, 42, 40, .10);
  box-sizing: border-box;
}

.tj-preregistro-header {
  margin-bottom: 20px;
}

.tj-preregistro-header .tj-eyebrow {
  margin: 0 0 6px;
  color: var(--tj-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tj-preregistro-header h1 {
  margin: 0;
  color: var(--tj-wine);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.tj-preregistro-instructions {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fffaf3;
  border-left: 4px solid var(--tj-gold);
  border-radius: 0 8px 8px 0;
  color: rgb(86, 66, 68);
  font-size: 14px;
  line-height: 1.6;
}

.tj-preregistro-instructions ul {
  margin: 0;
  padding-left: 20px;
}

.tj-preregistro-instructions li {
  margin-bottom: 6px;
}

.tj-preregistro-instructions li:last-child {
  margin-bottom: 0;
}

.tj-convenio-box {
  width: 100%;
  height: 350px;
  overflow-y: auto;
  margin: 22px 0 28px;
  padding: 22px 26px;
  border: 1px solid #d4d8d9;
  border-radius: 8px;
  background: #fafbfc;
  color: #333;
  font-size: 13px;
  line-height: 1.65;
  box-sizing: border-box;
}

.tj-convenio-box p {
  margin: 0 0 14px;
}

.tj-convenio-box ul {
  margin: 0 0 14px;
  padding-left: 24px;
}

.tj-convenio-box li {
  margin-bottom: 8px;
}

.tj-preregistro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.tj-btn-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 46px;
  padding: 0 28px;
  border-radius: 6px;
  background: var(--tj-wine-action);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(128, 5, 47, .25);
  transition: background .18s ease, transform .18s ease;
}

.tj-btn-accept:hover,
.tj-btn-accept:focus {
  background: #891e3b;
  color: #fff !important;
  transform: translateY(-1px);
}

.tj-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 46px;
  padding: 0 28px;
  border-radius: 6px;
  background: #e0e3e4;
  color: rgb(86, 66, 68) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s ease;
}

.tj-btn-cancel:hover,
.tj-btn-cancel:focus {
  background: #d2d6d8;
  color: #24292d !important;
}

@media(max-width:700px) {
  .tj-preregistro-stage {
    padding: 18px 0 28px;
  }
  .tj-preregistro-card {
    padding: 24px 18px;
    border-radius: 8px;
  }
  .tj-preregistro-header h1 {
    font-size: 25px;
  }
  .tj-convenio-box {
    height: 280px;
    padding: 16px;
  }
  .tj-preregistro-actions {
    flex-direction: column;
    width: 100%;
  }
  .tj-btn-accept,
  .tj-btn-cancel {
    width: 100%;
  }
}

/* ==========================================================================
   Estilos de Registro (Registro.aspx) - v5.0
   ========================================================================== */
.tj-registro-stage {
  width: 100%;
  padding: 34px 0 45px;
  box-sizing: border-box;
}

.tj-registro-card {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 48px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dfe3e3;
  box-shadow: 0 5px 22px rgba(23, 42, 40, .10);
  box-sizing: border-box;
}

.tj-registro-header {
  margin-bottom: 24px;
}

.tj-registro-header .tj-eyebrow {
  margin: 0 0 6px;
  color: var(--tj-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tj-registro-header h1 {
  margin: 0;
  color: var(--tj-wine);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.tj-registro-header .tj-intro {
  margin: 12px 0 0;
  color: rgb(86, 66, 68);
  font-size: 15px;
}

.tj-registro-card label {
  font-weight: 600;
  font-size: 13px;
  color: #404446;
  margin-bottom: 6px;
  display: block;
}

.tj-registro-card .form-control {
  height: 44px;
  border-radius: 6px;
  border: 1px solid #cdd2d4;
  font-size: 14px;
  color: #24292d;
}

.tj-registro-card .form-control:focus {
  border-color: var(--tj-wine-action);
  box-shadow: 0 0 0 3px rgba(166, 42, 74, .12);
}

.tj-registro-note {
  margin: 22px 0 24px;
  padding: 16px 20px;
  border-left: 4px solid var(--tj-gold);
  border-radius: 0 8px 8px 0;
  background: #fffaf3;
  color: rgb(86, 66, 68);
  font-size: 13px;
  line-height: 1.55;
}

.tj-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 6px;
  background: var(--tj-wine-action);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(128, 5, 47, .25);
  transition: background .18s ease, transform .18s ease;
}

.tj-btn-submit:hover,
.tj-btn-submit:focus {
  background: #891e3b;
  color: #fff !important;
  transform: translateY(-1px);
}

.tj-validation-text {
  color: #c92a2a;
  font-weight: 700;
  margin-left: 4px;
}

@media(max-width:700px) {
  .tj-registro-stage {
    padding: 18px 0 28px;
  }
  .tj-registro-card {
    padding: 24px 18px;
    border-radius: 8px;
  }
  .tj-registro-header h1 {
    font-size: 25px;
  }
  .tj-btn-submit {
    width: 100%;
  }
}

/* ==========================================================================
   Estilos Adaptados para Mi Perfil (usuarioDatos.aspx) - Theme v5.0
   ========================================================================== */
.tj-profile-page {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
}

.tj-profile-heading {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px 32px;
    border-radius: 10px;
    background: var(--tj-wine, #80052f) !important;
    color: #fff;
    box-shadow: 0 4px 15px rgba(128, 5, 47, .18);
}

.tj-profile-heading:after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -85px;
    width: 270px;
    height: 220px;
    background: url("../themeTj/v5.0/img/aguila.png") center/contain no-repeat;
    opacity: .06;
}

.tj-profile-heading > div {
    position: relative;
    z-index: 1;
}

.tj-profile-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--tj-gold, rgb(187, 148, 93));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
}

.tj-profile-heading h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.tj-profile-heading p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.tj-profile-notice {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-left: 4px solid var(--tj-gold, rgb(187, 148, 93));
    border-radius: 4px;
    background: #fff9f0;
    color: rgb(86 66 68 / 1);
    font-size: 12px;
    line-height: 1.5;
}

.tj-profile-card {
    overflow: hidden;
    border: 1px solid #dfe2e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(24, 42, 40, .07);
}

.tj-profile-card-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px 15px;
    border-bottom: 1px solid rgb(220, 192, 194);
}

.tj-profile-card-title h2 {
    margin: 0;
    color: rgb(86 66 68 / 1);
    font-size: 18px;
    font-weight: 700;
}

.tj-profile-card-title span {
    color: #73797c;
    font-size: 10px;
}

.tj-profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tj-profile-table tr {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    border-bottom: 1px solid #edf0f0;
}

.tj-profile-table tr:last-child {
    border-bottom: 0;
}

.tj-profile-table td {
    width: auto !important;
    height: auto !important;
    padding: 11px 20px !important;
    border: 0 !important;
    background: #fff !important;
    text-align: left !important;
    color: rgb(86 66 68 / 1);
    font-size: 12px;
}

.tj-profile-table td:first-child {
    padding-left: 24px !important;
    font-weight: 600;
}

.tj-profile-table .form-control {
    width: 100%;
    height: 42px;
    border: 1px solid #d0d5d6;
    border-radius: 5px;
    font-family: "Montserrat Local", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.tj-profile-table input[readonly],
.tj-profile-table select:disabled {
    background: #f0f2f2 !important;
    color: #697074 !important;
    cursor: not-allowed;
    opacity: 1;
}

.tj-profile-table input[type="password"] {
    border-color: #b8bfc0;
    background: #fff !important;
    color: #25292d !important;
    cursor: text;
}

.tj-profile-table input[type="password"]:focus {
    border-color: var(--tj-wine-action, #9a2b44);
    box-shadow: 0 0 0 3px rgba(154, 43, 68, .1);
    outline: none;
}

.tj-profile-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    background: var(--tj-wine-action, #9a2b44);
    color: #fff;
    font-family: "Montserrat Local", "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tj-profile-save:hover,
.tj-profile-save:focus {
    background: var(--tj-wine, #80052f);
}

.tj-profile-note {
    margin-top: 8px;
    padding: 11px 13px;
    border-radius: 5px;
    background: #f5f6f6;
    color: #656b6e;
    font-size: 10px;
    line-height: 1.45;
}

.tj-profile-table br {
    display: none;
}

.tj-profile-table .alert-danger {
    display: block;
    margin-top: 7px;
    color: #9a2b44;
    font-size: 10px;
}

.tj-profile-table span[id*="lblUsuario"],
.tj-profile-table span[id*="txtEmail"] {
    font-weight: 600;
    color: #343a3d;
}

.blink {
    animation: blink-border 0.5s steps(2, start) infinite;
    border: 2px solid orange !important;
}

@keyframes blink-border {
    50% {
        border-color: transparent !important;
    }
}

input.form-control.valid {
    border-color: green !important;
}

input.form-control.invalid {
    border-color: red !important;
}

@media(max-width:700px) {
    .tj-profile-page {
        width: 100%;
    }

    .tj-profile-heading {
        padding: 24px 20px;
        border-radius: 7px;
    }

    .tj-profile-heading h1 {
        font-size: 25px;
    }

    .tj-profile-card-title {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px 18px 13px;
    }

    .tj-profile-table tr {
        grid-template-columns: 1fr;
    }

    .tj-profile-table td,
    .tj-profile-table td:first-child {
        padding: 8px 16px !important;
    }

    .tj-profile-table td:first-child {
        padding-bottom: 2px !important;
    }

    .tj-profile-table td:nth-child(2) {
        padding-top: 3px !important;
        padding-bottom: 12px !important;
    }

    .tj-profile-save {
        width: 100%;
    }
}

/* ==========================================================================
   Estilos Adaptados para Seguro / Protección Ciudadana (seguro/index.aspx)
   ========================================================================== */
.tj-seguro-page {
    width: 1160px;
    max-width: calc(100% - 32px);
    margin: 28px auto 40px;
}

.tj-seguro-heading {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 32px 36px;
    border-radius: 12px;
    background: var(--tj-wine, #80052f) !important;
    color: #fff;
    box-shadow: 0 4px 18px rgba(128, 5, 47, .18);
}

.tj-seguro-heading:after {
    display: none !important;
}

.tj-seguro-heading > div {
    position: relative;
    z-index: 1;
}

.tj-seguro-heading span.tj-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--tj-gold, rgb(187, 148, 93));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
}

.tj-seguro-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.tj-seguro-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: .95;
}

.tj-seguro-card {
    border: 1px solid #dfe3e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(24, 42, 40, .06);
    overflow: hidden;
    margin-bottom: 24px;
}

.tj-seguro-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #e2e6e7;
    background: #fcfcfc;
}

.tj-seguro-card-header h2 {
    margin: 0;
    color: var(--tj-wine, #80052f);
    font-size: 20px;
    font-weight: 700;
}

.tj-seguro-card-body {
    padding: 32px 28px;
    text-align: center;
}

.tj-seguro-search-box {
    max-width: 480px;
    margin: 0 auto;
}

.tj-seguro-search-box .form-control {
    height: 48px;
    padding: 10px 16px;
    border: 1px solid #c4c9cb;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tj-seguro-search-box .form-control:focus {
    border-color: var(--tj-wine, #80052f);
    box-shadow: 0 0 0 3px rgba(128, 5, 47, .12);
    outline: none;
}

.tj-seguro-hint {
    display: block;
    margin-top: 8px;
    color: #6c7378;
    font-size: 12px;
}

.tj-seguro-msg {
    margin-top: 14px;
    font-size: 14px;
}

.tj-seguro-info {
    margin-top: 24px;
    text-align: center;
}

.tj-seguro-info img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .1);
}

.tj-seguro-notes {
    padding: 18px 24px;
    border-left: 4px solid var(--tj-gold, rgb(187, 148, 93));
    border-radius: 6px;
    background: #fff9f0;
    color: #564244;
    font-size: 13px;
    line-height: 1.6;
}

.tj-seguro-notes p {
    margin: 0 0 6px;
}

.tj-seguro-notes p:last-child {
    margin: 0;
}

@media (max-width: 700px) {
    .tj-seguro-page {
        width: 100%;
        max-width: calc(100% - 24px);
        margin: 18px auto 30px;
    }
    .tj-seguro-heading {
        padding: 24px 20px;
    }
    .tj-seguro-heading h1 {
        font-size: 24px;
    }
    .tj-seguro-card-body {
        padding: 24px 18px;
    }
}