:root{--navy:#041d3b;--red:#c90037;--ink:#072449}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:var(--ink)}body{background:#fff}.v4-shell{min-height:100svh;display:flex;flex-direction:column;overflow:hidden}.v4-header{height:clamp(94px,13.9vh,126px);flex:none;position:relative;background:#fff;display:flex;align-items:center;overflow:hidden;z-index:3}.v4-brand{display:flex;align-items:center;gap:clamp(14px,1.6vw,30px);margin-left:clamp(25px,8.4vw,150px);position:relative;z-index:2}.v4-brand img{width:clamp(105px,10vw,176px);height:clamp(76px,10.2vh,102px);object-fit:contain}.v4-divider{height:clamp(55px,8vh,82px);width:2px;background:#23436d}.v4-brand strong{font-size:clamp(18px,1.72vw,31px);letter-spacing:-.045em;line-height:1.08;display:block;font-weight:800}.v4-brand small{display:block;font-size:clamp(9px,.65vw,12px);letter-spacing:.26em;margin-top:9px;color:#40597d;font-weight:700}.v4-chiapas{position:absolute;right:0;top:0;width:38%;height:100%;background:linear-gradient(90deg,#fff 0%,#ffffff00 35%),url('/assets/mi-portal/chiapas-v4.webp') center right/cover no-repeat}.v4-main{flex:1;display:grid;grid-template-columns:66% 34%;min-height:0;position:relative;background:linear-gradient(115deg,#062447 0%,#075b9b 66%,#052b5d 100%)}.v4-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(32px,7.3vh,70px) 3.6% clamp(52px,8.8vh,90px) 4%;background:radial-gradient(ellipse at 60% 75%,#0479b9 0%,#084774 30%,#062a51 65%,#041c39 100%);min-width:0}.v4-story:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 35%,#2b9ed02b 36%,transparent 58%),linear-gradient(140deg,transparent 61%,#00b1f422 62%,transparent 72%);pointer-events:none}.v4-copy{position:relative;z-index:2}.v4-eyebrow{display:flex;align-items:center;gap:13px;font-size:clamp(12px,1.12vw,20px);letter-spacing:.13em;font-weight:800;color:#fff;white-space:nowrap}.v4-eyebrow span{width:clamp(42px,4vw,73px);height:14px;border-radius:20px;background:#e90042;display:block}.v4-copy h1{font-size:clamp(30px,2.7vw,52px);line-height:1.17;letter-spacing:-.035em;color:#fff;font-weight:800;margin:clamp(24px,4vh,39px) 0 18px;position:relative;z-index:2}.v4-copy h1 em{font-style:normal;background:linear-gradient(115deg,#e90043,#c60036);border-radius:10px;display:inline-block;padding:2px 13px 5px;transform:skew(-5deg);box-shadow:0 7px 17px #03122b22}.v4-white-rule{display:block;width:112px;height:4px;background:#fff;border-radius:3px;margin:13px 0 20px}.v4-copy p{font-size:clamp(14px,1.12vw,20px);line-height:1.52;color:#f5f8ff;margin:0;max-width:540px}.v4-directivos{position:absolute;right:-1%;bottom:clamp(150px,22%,210px);width:58%;height:62%;background:url('/assets/mi-portal/directivos-v4.png') center bottom/contain no-repeat;z-index:1;pointer-events:none}.v4-services{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(8px,.8vw,15px);z-index:2;position:relative;width:100%;margin-top:clamp(70px,12vh,130px)}.v4-service{border:1px solid #a2d8f3a3;border-radius:19px;min-height:clamp(107px,15vh,145px);background:linear-gradient(145deg,#10476bde,#021b3be8);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;box-shadow:0 7px 18px #001b3a44;color:#fff;font-size:clamp(11px,.95vw,16px);font-weight:700}.v4-service svg{width:clamp(27px,2.7vw,44px);height:clamp(27px,2.7vw,44px);fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.v4-service i{display:block;width:42px;height:6px;border-radius:10px;background:#e5003f;margin-top:3px}.v4-login-side{position:relative;display:flex;align-items:center;justify-content:center;padding:clamp(20px,3vw,50px);min-width:0}.v4-login-card{background:#fff;border-radius:29px;padding:clamp(25px,2.3vw,42px);width:min(100%,485px);box-shadow:0 20px 60px #001b3b4a;text-align:center;z-index:1}.v4-people{color:#d0003d;width:66px;height:58px;margin-bottom:13px}.v4-login-card h2{font-size:clamp(30px,2.6vw,48px);letter-spacing:-.05em;margin:0 0 6px;font-weight:800}.v4-subtitle{font-size:clamp(13px,1vw,17px);color:#516784;margin:0 0 clamp(20px,2.3vw,34px)}.v4-form{text-align:left}.v4-form label{display:block;font-weight:800;font-size:clamp(12px,.95vw,16px);margin:14px 0 7px}.v4-input-wrap{height:clamp(45px,3.5vw,57px);display:flex;align-items:center;border:1.5px solid #b7c8da;border-radius:13px;background:#fff;overflow:hidden}.v4-input-wrap:focus-within{border-color:#1370a6;box-shadow:0 0 0 3px #1370a61a}.v4-input-wrap>svg{flex:none;width:24px;height:24px;margin-left:14px;stroke:#0061b4;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.v4-input-wrap input{width:100%;height:100%;min-width:0;border:0;outline:0;padding:0 12px;font-size:clamp(13px,1vw,16px);font-family:inherit;color:#17385d;background:transparent}.v4-input-wrap input::placeholder{color:#687b95}.v4-eye{border:0;background:transparent;cursor:pointer;padding:12px;color:#6082a7}.v4-eye svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2}.v4-submit{width:100%;height:clamp(50px,4vw,62px);background:linear-gradient(90deg,#cf003a,#c40035);border:0;border-radius:12px;color:#fff;font-size:clamp(15px,1.2vw,19px);font-weight:800;cursor:pointer;margin-top:21px;box-shadow:0 10px 18px #bc00332b}.v4-submit span{font-size:24px;margin-left:10px;vertical-align:middle}.v4-submit:hover{filter:brightness(1.06)}.v4-help{font-size:clamp(12px,.93vw,15px);color:#526d8c;line-height:1.35;margin:20px 0}.v4-help strong{color:#0064b0}.v4-security{display:flex;gap:12px;align-items:center;text-align:left;border-top:1px solid #c7d3e0;padding:18px 10px 0;margin-top:16px}.v4-security svg{width:43px;height:43px;fill:none;stroke:#0756a3;stroke-width:1.7;flex:none}.v4-security b{display:block;font-size:clamp(13px,1vw,16px)}.v4-security small{display:block;font-size:clamp(11px,.9vw,14px);color:#61758c;margin-top:4px}.v4-errors{padding:12px;background:#fff0f3;border:1px solid #f0b7c4;border-radius:8px;color:#a0002c;font-size:13px;margin-bottom:12px}.v4-footer{height:clamp(58px,9.5vh,84px);background:linear-gradient(100deg,#b80031,#d1003c 58%,#c00035);display:flex;align-items:center;justify-content:center;gap:clamp(13px,2vw,40px);color:#fff;font-size:clamp(12px,1vw,17px);font-weight:800;position:relative;flex:none;z-index:2}.v4-footer:before{content:"";position:absolute;left:0;right:0;top:-23px;height:32px;background:#fff;clip-path:polygon(0 45%,45% 0,72% 14%,100% 68%,100% 100%,0 100%)}.v4-footer:after{content:"";position:absolute;left:0;right:0;top:-12px;height:24px;background:#c90037;clip-path:polygon(0 55%,45% 0,72% 12%,100% 60%,100% 100%,0 100%)}.v4-footer>*{position:relative;z-index:2}.v4-footer i{font-style:normal;opacity:.85}@media(min-width:1200px) and (min-height:700px){.v4-shell{height:100svh}}@media(max-width:1150px){.v4-main{grid-template-columns:60% 40%}.v4-copy h1{font-size:clamp(28px,3vw,42px)}.v4-directivos{width:67%;height:50%;bottom:19%}.v4-story{padding-left:4%}.v4-service{border-radius:12px}.v4-login-side{padding:22px}}@media(max-width:800px){.v4-shell{min-height:100svh;height:auto}.v4-header{height:auto;min-height:95px;padding:12px 0}.v4-brand{margin-left:16px;gap:10px}.v4-brand img{width:85px;height:70px}.v4-brand strong{font-size:clamp(14px,3.2vw,22px)}.v4-brand small{font-size:8px;letter-spacing:.1em}.v4-divider{height:50px}.v4-chiapas{display:none}.v4-main{display:flex;flex-direction:column}.v4-story{min-height:650px;padding:30px 20px 66px}.v4-copy h1{font-size:clamp(30px,5.2vw,43px)}.v4-directivos{width:75%;height:300px;bottom:160px;right:0}.v4-services{margin-top:310px;gap:7px}.v4-service{min-height:100px;font-size:11px}.v4-service svg{width:27px;height:27px}.v4-login-side{padding:30px 18px 60px}.v4-login-card{max-width:500px}.v4-footer{height:auto;min-height:65px;flex-wrap:wrap;padding:18px 20px;gap:12px;font-size:12px}}@media(max-width:480px){.v4-copy h1{font-size:32px}.v4-copy h1 br{display:none}.v4-copy p{font-size:14px}.v4-desktop{display:none}.v4-story{min-height:720px}.v4-directivos{width:100%;height:270px;bottom:225px;right:0}.v4-services{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:300px}.v4-service{min-height:92px}.v4-eyebrow{font-size:11px}.v4-eyebrow span{width:30px;height:9px}.v4-footer i{display:none}}

/* SIDICOBACH_V41_START */
/* La altura total puede crecer si el contenido no cabe: nunca se recorta el formulario. */
html,body{min-height:100%;height:auto}
.v4-shell{height:auto!important;min-height:100vh;min-height:100svh;overflow:visible;display:flex;flex-direction:column}
.v4-header{flex:0 0 auto}
.v4-main{flex:1 0 auto;min-height:690px;display:grid;grid-template-columns:minmax(0,66%) minmax(0,34%);align-items:stretch}
.v4-story{min-height:690px;padding:38px 3.6% 40px 4%;justify-content:space-between;isolation:isolate}
.v4-copy h1{font-size:clamp(32px,2.7vw,48px);margin:26px 0 12px;max-width:640px}
.v4-copy p{max-width:450px}
.v4-directivos{right:0;bottom:150px;width:56%;height:58%;background-position:center bottom;background-size:contain;z-index:1}
.v4-services{flex:none;margin-top:auto;padding-top:32px;position:relative;z-index:3;align-self:stretch}
.v4-service{min-height:108px;border-radius:15px}
.v4-login-side{min-height:690px;padding:26px 26px 38px;align-items:center}
.v4-login-card{padding:clamp(24px,2.1vw,36px);border-radius:24px}
.v4-footer{height:auto;min-height:66px;padding:20px 24px;flex:0 0 auto;z-index:2;isolation:isolate}
.v4-footer:before,.v4-footer:after{pointer-events:none}
@media(min-width:1200px) and (min-height:900px){
  .v4-main{min-height:calc(100svh - 192px);flex:1 0 auto}
  .v4-story,.v4-login-side{min-height:calc(100svh - 192px)}
}
@media(min-width:801px) and (max-height:820px){
  .v4-header{height:94px}
  .v4-main,.v4-story,.v4-login-side{min-height:660px}
  .v4-story{padding-top:25px;padding-bottom:32px}
  .v4-copy h1{margin:18px 0 10px;font-size:clamp(30px,2.5vw,43px)}
  .v4-copy p{font-size:14px}
  .v4-services{padding-top:18px}
  .v4-service{min-height:94px}
  .v4-directivos{bottom:125px;height:54%}
  .v4-login-card{padding:22px 26px}
  .v4-subtitle{margin-bottom:15px}
  .v4-form label{margin-top:10px}
  .v4-help{margin:12px 0}
  .v4-security{padding-top:12px;margin-top:10px}
}
@media(max-width:1150px) and (min-width:801px){
  .v4-main{grid-template-columns:minmax(0,60%) minmax(0,40%)}
  .v4-directivos{width:63%;height:48%;bottom:145px}
  .v4-services{gap:6px}
  .v4-service{font-size:11px}
}
@media(max-width:800px){
  .v4-main{display:flex;flex-direction:column;min-height:0}
  .v4-story{min-height:650px;padding:30px 20px 38px}
  .v4-directivos{width:76%;height:290px;bottom:155px;right:0}
  .v4-services{margin-top:300px;padding-top:0}
  .v4-login-side{min-height:0;padding:30px 18px 44px}
  .v4-footer{padding:20px 15px}
}
@media(max-width:480px){
  .v4-story{min-height:730px}
  .v4-directivos{width:100%;height:260px;bottom:235px}
  .v4-services{margin-top:295px;grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* SIDICOBACH_V41_END */

/* SIDICOBACH_V42_START */
/* Pie: texto visible, centrado y sin superposiciones. */
.v4-footer{
  box-sizing:border-box!important;
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:clamp(8px,1.35vw,22px)!important;
  height:auto!important;
  min-height:46px!important;
  padding:9px 22px!important;
  margin:0!important;
  line-height:1.25!important;
  font-size:clamp(11px,.78vw,13px)!important;
  font-weight:700!important;
  letter-spacing:.025em!important;
  text-align:center!important;
  color:#fff!important;
  background:linear-gradient(100deg,#a90032 0%,#c9003b 52%,#b80036 100%)!important;
  overflow:visible!important;
  z-index:5!important;
}
.v4-footer *{color:#fff!important;line-height:1.25!important;position:relative;z-index:1}
.v4-footer:before{content:none!important}
.v4-footer:after{content:none!important}
.v4-footer a{text-decoration:none!important}
.v4-footer a:hover{text-decoration:underline!important}
/* Ajuste vertical: nunca esconder campos ni tarjetas para quitar la barra. */
@media (min-width:1100px) and (min-height:740px){
  html,body{margin:0!important;min-height:100%!important}
  .v4-shell{
    box-sizing:border-box!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .v4-header{flex:0 0 104px!important;height:104px!important;min-height:0!important}
  .v4-main{
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:minmax(0,66%) minmax(0,34%)!important;
  }
  .v4-story{
    box-sizing:border-box!important;
    min-height:0!important;
    height:100%!important;
    padding:clamp(19px,2.4vh,32px) 3.6% 20px 3.8%!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .v4-copy h1{font-size:clamp(30px,2.5vw,46px)!important;margin:clamp(12px,2vh,23px) 0 10px!important;line-height:1.12!important}
  .v4-copy p{font-size:clamp(13px,.95vw,16px)!important;line-height:1.55!important}
  .v4-directivos{bottom:clamp(108px,14vh,160px)!important;height:clamp(235px,46vh,420px)!important;max-height:59%!important}
  .v4-services{margin-top:auto!important;padding-top:12px!important;flex:0 0 auto!important;position:relative!important;z-index:3!important}
  .v4-service{min-height:clamp(78px,10.2vh,104px)!important;padding:9px 5px!important}
  .v4-login-side{
    box-sizing:border-box!important;
    min-height:0!important;
    height:100%!important;
    padding:14px clamp(14px,2vw,28px)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .v4-login-card{box-sizing:border-box!important;max-height:100%!important;padding:clamp(17px,2.2vh,28px) clamp(20px,2vw,32px)!important}
  .v4-footer{flex:0 0 auto!important}
}
/* Alturas intermedias: conservar desplazamiento antes que recortar. */
@media (min-width:801px) and (max-height:739px){
  .v4-shell{height:auto!important;min-height:100vh!important;overflow:visible!important}
  .v4-main{min-height:650px!important}
}
@media (max-width:1099px){
  .v4-shell{height:auto!important;min-height:100vh!important;overflow:visible!important}
  .v4-footer{padding:13px 15px!important;gap:8px 13px!important}
}
@media (max-width:600px){
  .v4-footer{font-size:11px!important;line-height:1.5!important}
}
/* SIDICOBACH_V42_END */
