
:root{
  color-scheme:light;
  --blue:#1479C9;--blue-dark:#075A9B;--blue-pale:#EAF4FF;
  --ink:#171C24;--muted:#4D6176;--line:#D3E0EC;--bg:#F4F7FB;
  --card:#FFFFFF;--orange:#AA4609;--amber:#F5B74B;--green:#207B52;
  --shadow:0 8px 24px rgba(9,56,102,.07);
}
*{box-sizing:border-box}
html{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;color:var(--ink);scroll-behavior:smooth}
body{margin:0;background:var(--bg);line-height:1.48}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.53;cursor:not-allowed}
a{color:var(--blue-dark)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #D98115;outline-offset:3px}
h1,h2,h3,p{overflow-wrap:break-word}
h1,h2,h3{line-height:1.2}
.app-shell{min-height:100dvh;padding-bottom:0}
.demo-banner{background:#FFF0D4;color:#663800;border-bottom:1px solid #E9B45D;padding:8px 16px;text-align:center;font-weight:700;font-size:13px;line-height:1.3}
.loading{padding:64px 18px;text-align:center;color:var(--blue-dark);font-size:20px}
.site-header{background:var(--blue-dark);color:white}
.header-inner{max-width:1200px;margin:auto;min-height:78px;padding:10px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{width:56px;height:56px;flex:0 0 auto;object-fit:contain;background:#F1F6F7;padding:3px;border-radius:13px}
.brand-copy{min-width:0}
.brand-name{font-size:clamp(20px,2.3vw,26px);font-weight:800;line-height:1.15;color:#fff}
.brand-sub{color:#DDEDFC;font-size:15px;font-weight:650;margin-top:4px}
.reset-button{min-height:43px;border-radius:9px;border:1px solid #87C0EC;background:transparent;color:#fff;padding:9px 12px;font-size:14px;font-weight:650;flex:0 0 auto}
.reset-button:hover{background:#ffffff20}
.main-nav{background:#FFFFFF;border-bottom:1px solid #C9DFF1}
.main-nav-inner{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:11px 18px}
.main-tab{display:flex;align-items:center;justify-content:center;gap:10px;min-height:51px;border:2px solid #0C69AD;border-radius:10px;background:#1479C9;color:#fff;font-size:17px;font-weight:750}
.main-tab:hover,.main-tab.active{background:#075A9B;border-color:#05477C}
.main-tab.active{box-shadow:0 0 0 2px #91C7F2}
.nav-icon{width:22px;height:22px;flex:0 0 auto}
.subnav{background:#EAF4FF;border-bottom:1px solid #C4DDEE}
.subnav-inner{max-width:1200px;margin:auto;padding:10px 18px;display:flex;gap:8px;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch}
.subtab{background:#FFFFFF;color:#075A9B;border:1px solid #8EBEE2;border-radius:9px;padding:9px 16px;min-height:45px;white-space:nowrap;font-size:15px;font-weight:750}
.subtab:hover{background:#DAEFFF}
.subtab.active{background:#075A9B;color:#fff;border-color:#075A9B}
.section-historico .subtab[data-tab="historico"]{background:#F5B74B;color:#4A2F0A;border-color:#CD8719}
.section-historico .subtab[data-tab="historico"].active{background:#AA4609;color:#FFFFFF;border-color:#873506}
.subtab[data-tab="historico"]:not(.active){border-color:#DBAA5B}
.mobile-nav{display:none}
.container{width:min(100%,1200px);margin:0 auto;padding:22px 18px 54px}
.home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:250px;display:flex;align-items:flex-end;margin-bottom:19px;border-radius:17px;background:#075A9B url('/hero-atoyac.jpg') center/cover no-repeat;box-shadow:var(--shadow)}
.home-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#082D4FCF,#103E64A8 55%,#075A9B28),linear-gradient(0deg,#0B304B60,transparent 75%);z-index:-1}
.home-hero-content{position:relative;padding:28px;max-width:850px;color:#fff;text-shadow:0 2px 7px #091D3C80}
.home-hero-content h2{font-size:clamp(34px,4vw,51px);font-weight:800;line-height:1.08;letter-spacing:-.02em;color:#fff;margin:0}
.home-hero-content h2 span{display:block;font-size:clamp(27px,3vw,38px);margin-top:5px}
.overview-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:7px 0 15px}
.overview-head h1{font-size:clamp(27px,3vw,34px);margin:2px 0 3px;color:#103D67}
.overview-head p{margin:0;font-size:17px;color:var(--muted);font-weight:600}
.eyebrow{color:#40688B;font-size:14px;font-weight:750;letter-spacing:.01em}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 17px}
.metric{border:1px solid #C4DAED;background:#FFFFFF;border-radius:14px;padding:17px 16px;box-shadow:var(--shadow)}
.metric .value{font-size:clamp(29px,3.1vw,38px);font-weight:800;line-height:1.12;color:#075A9B}
.metric .caption{margin-top:8px;font-size:16px;line-height:1.25;color:#3C5268;font-weight:650}
.home-task-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:13px}
.home-action,.home-branch{border:1px solid #C4DAED;background:#FFFFFF;border-radius:15px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.home-action h2{margin:4px 0 5px;font-size:24px;color:#075A9B}
.home-action p,.home-branch p{margin:4px 0;font-size:16px;color:#425870;line-height:1.43}
.home-branch .branch-flag{font-size:16px}
.home-cta{width:100%;max-width:320px}
.branch-flag{display:inline-flex;align-items:center;gap:8px;border:1px solid #C6D8E8;border-radius:100px;padding:8px 12px;font-size:15px;font-weight:750;color:#35536A;background:#FFFFFF}
.branch-flag::before{content:"";width:12px;height:12px;border-radius:50%;border:1px solid currentColor;background:currentColor;display:block}
.branch-flag.branch-orange{background:#FFF0D3;color:#87450A;border-color:#DFA147}
.branch-flag.branch-red{background:#FFE6E4;color:#9E242C;border-color:#D07A7E}
.branch-flag.branch-green{background:#DFF5E9;color:#206841;border-color:#8AC2A4}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.head h1{background:#075A9B;color:#fff;border-radius:11px;padding:10px 16px;font-size:clamp(26px,2.9vw,33px);margin:0;font-weight:800;line-height:1.18}
.head .subtext{font-size:16px;line-height:1.5;margin:9px 0 0}
.subtext{font-size:16px;color:#496178;line-height:1.5;margin:8px 0 0}
.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.btn{border:1px solid #C3D7E7;background:#fff;color:#17384F;border-radius:10px;padding:10px 15px;font-size:16px;font-weight:750;min-height:46px;line-height:1.25}
.btn:hover{background:#E9F4FF;border-color:#85B6D8}
.btn.primary{background:#1479C9;border-color:#1479C9;color:white}
.btn.primary:hover{background:#075A9B}
.btn.danger{border-color:#E8B5B9;color:#A12431}
.btn.small{font-size:14px;min-height:43px;padding:8px 11px}
.panel{border:1px solid #D1DFEB;border-radius:15px;background:#fff;padding:18px;margin:0 0 15px;box-shadow:var(--shadow)}
.panel h2{font-size:21px;color:#075A9B;border-left:5px solid #1479C9;padding-left:10px;margin:0 0 13px}
.row{display:flex;flex-wrap:wrap;gap:11px;align-items:center}
.row.between{justify-content:space-between}
.row-card{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;background:#F0F7FF;border:1px solid #CDE2F2;border-radius:10px;padding:11px}
.row-card span{font-size:16px}
.mt9{margin-top:9px}
.info,.warn{border-radius:10px;padding:12px 14px;font-size:16px;line-height:1.45;margin:9px 0 14px}
.info{background:#E4F2FF;color:#07528A;border:1px solid #B6D6EF}
.warn{background:#FFF0CE;color:#7B440C;border:1px solid #E8C174}
.muted{color:var(--muted)}
.success{color:#186E49}
.small-text{font-size:14px}
.pill{display:inline-block;padding:5px 9px;white-space:normal;border-radius:100px;font-size:14px;font-weight:750;color:#075A9B;background:#E2F0FF;border:1px solid #B4D4EF}
.pill.participo{background:#E1F5E9;color:#206943;border-color:#86C5A5}
.pill.pendiente{background:#FFF0CF;color:#7D4A0B;border-color:#E6BE76}
.pill.no_participo,.pill.trasladado{background:#EEF0F3;color:#42546A;border-color:#CCD6E0}
.pill.inactivo{background:#FFF0D8;color:#7A4E1A;border-color:#E1C79C}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.4}
.table th{background:#075A9B;color:white;font-size:14px;font-weight:750;text-align:left;letter-spacing:0;white-space:nowrap;padding:12px}
.table td{border-bottom:1px solid #D0E0ED;vertical-align:middle;padding:12px;overflow-wrap:anywhere}
.table tbody tr:nth-child(odd){background:#EDF6FF}
.table tbody tr:nth-child(even){background:#FFFFFF}
.table tbody tr:hover{background:#D7E9FA}
.table tbody tr[hidden]{display:none!important}
.table strong{font-weight:750;color:#075A9B}
.table .namecell{min-width:166px}
.table input,.table select{font-size:16px;min-width:64px;max-width:154px}
.table input[type=number]{max-width:88px}
.table textarea{min-width:170px;max-width:340px;width:100%}
.focused-report{outline:3px solid #DD8B13;outline-offset:-2px;background:#FFF2D8!important}
.field{display:flex;flex-direction:column;gap:6px;color:#40556B;font-size:15px;font-weight:650;min-width:0}
.field input,.field select,.field textarea,.search{width:100%;font-size:16px;min-height:44px;border:1px solid #B8CDD9;border-radius:9px;padding:9px 11px;background:#fff;color:#171C24}
.field input:disabled,.field select:disabled,.field textarea:disabled{background:#E9EDF1}
.field .checkbox{display:flex;align-items:center;gap:9px;font-size:15px;color:#23364B;font-weight:500}
.checkbox input{width:19px;height:19px;min-height:19px;margin:0;flex:0 0 auto}
.forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.filters{display:flex;align-items:end;flex-wrap:wrap;gap:11px;margin:0 0 14px}
.filters .field{min-width:155px}
.filters .search{min-width:230px}
.details-extra{margin:14px 0}
.details-extra summary{font-size:16px;font-weight:750;color:#075A9B;cursor:pointer;padding:10px;background:#EAF4FF;border-radius:9px;margin:0 0 12px}
.month-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:13px 0}
.month-item{background:#EDF5FF;border-radius:10px;border:1px solid #C8DBEA;padding:12px 6px;text-align:center;min-height:61px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#075A9B}
.month-item strong{font-size:15px;line-height:1.2}
.month-item span{font-size:13px;color:#425C72}
.month-item.open{background:#FFF0D4;border-color:#DFC384}
.month-link{cursor:pointer}
.month-link:hover{background:#D6EAFE;border-color:#075A9B}
.year-chips{display:flex;gap:8px;flex-wrap:wrap}
.empty{padding:15px;color:#53687D;font-size:16px}
.section-historico .head h1{background:#AA4609}
.section-historico .panel h2{color:#AA4609;border-color:#F0B049}
.section-historico .table th{background:#90400D}
.section-historico .table tbody tr:nth-child(odd){background:#FFF2DA}
.section-historico .table tbody tr:nth-child(even){background:#FFFCF7}
.section-historico .month-item{background:#FFE4A9;border-color:#DDA45D}
.branch-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:15px 0}
.branch-card{background:#fff;border:2px solid #A5CAE7;border-radius:13px;padding:18px;overflow:hidden}
.branch-card h2{font-size:19px;background:#075A9B;color:#fff;border:0;border-radius:0;margin:-18px -18px 13px;padding:13px 16px}
.branch-line{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #D1E3F0;padding:10px 0;font-size:16px}
.branch-line strong{font-size:23px;color:#075A9B}
.branch-status{display:flex;align-items:center;gap:12px;border:2px solid #CCD8E4;border-radius:12px;padding:14px;background:#fff;font-size:16px;color:#345067}
.branch-status strong{font-size:19px}
.branch-status-dot{width:18px;height:18px;border-radius:50%;background:currentColor;flex:0 0 auto}
.branch-status.branch-orange{background:#FFF0D3;border-color:#DA9D45;color:#854B12}
.branch-status.branch-red{background:#FFE8E6;border-color:#C7575D;color:#9D252C}
.branch-status.branch-green{background:#E1F5E9;border-color:#66B28D;color:#1D6947}
/* Informe tardío: ámbar hasta que se confirme el envío, verde después. */
.report-late-note{margin-top:6px;max-width:300px;line-height:1.35}
.report-late-note .pill{font-size:12px;padding:4px 8px}
.pill.late-assigned{background:#FFF0CF;color:#7D4A0B;border-color:#E6BE76}
.pill.late-included{background:#E1F5E9;color:#206943;border-color:#86C5A5}
.report-late-note .small-text{color:#476176;margin-top:4px;font-weight:400}
.branch-equation-panel{border:2px solid #C5DFEF}
.branch-equation-panel .small-text{margin:10px 0 0}
.branch-equation{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 8px}
.branch-equation-term{display:flex;flex:1 1 145px;align-items:center;justify-content:center;flex-direction:column;min-width:116px;gap:5px;padding:13px 10px;background:#F0F7FE;border:1px solid #BFD9ED;border-radius:12px;text-align:center}
.branch-equation-term strong{font-size:35px;line-height:1.05;color:#075A9B;font-variant-numeric:tabular-nums}
.branch-equation-term span{font-size:14px;font-weight:700;color:#34546A}
.branch-equation-term.late{background:#FFF5DF;border-color:#E6C47D}
.branch-equation-term.late strong{color:#85500C}
.branch-equation-term.total{background:#E1F5E9;border-color:#86C5A5}
.branch-equation-term.total strong{color:#206943}
.branch-equation-operator{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:30px;color:#34546A;padding:0 3px}
@media(max-width:520px){
 .branch-equation{gap:5px}
 .branch-equation-term{min-width:88px;flex:1 1 95px;padding:10px 5px}
 .branch-equation-term strong{font-size:27px}
 .branch-equation-term span{font-size:12px}
 .branch-equation-operator{font-size:20px;padding:0}
}
.pre-notes{max-width:300px}
.ui-shortgrid{margin:15px 0}
#lateForm .forms{margin-bottom:14px}
#lateForm>.field{margin-bottom:12px}
#branchAttendance{max-width:210px}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:#071B2A9B;display:flex;align-items:center;justify-content:center;padding:15px}
.modal{position:relative;background:#fff;box-shadow:0 18px 70px #091B3299;border-radius:16px;padding:22px;width:min(100%,800px);max-height:92dvh;overflow:auto}
.modal .head h1{font-size:26px}
.close{border:1px solid #D0DFEC;background:#fff;color:#17384F;min-width:44px;min-height:44px;border-radius:9px;font-size:26px;line-height:1}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:999;background:#114B76;color:#fff;border-radius:11px;padding:12px 18px;font-size:15px;max-width:min(90vw,510px);box-shadow:0 8px 25px #001f3f55}
.toast.error{background:#942834}
.login-page{min-height:90dvh;display:flex;align-items:center;justify-content:center;padding:20px}
.login{width:min(100%,420px);padding:28px;border-radius:16px;background:#fff;border:1px solid #D7E4EE;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:15px}
.login img{height:76px;width:76px;margin:auto;object-fit:contain}
.login h1{text-align:center;font-size:26px;color:#075A9B;margin:0}
.login p{text-align:center;font-size:16px;margin:0}
.message{font-size:15px}
@media(max-width:950px){
 .branch-cards{grid-template-columns:1fr}
 .home-hero{min-height:225px}
 .main-nav-inner,.header-inner,.subnav-inner{padding-left:14px;padding-right:14px}
 .main-tab{gap:7px;font-size:16px}
 .table{font-size:15px}
 .table th{font-size:14px}
}
@media(max-width:760px){
 .app-shell{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 .demo-banner{font-size:12px;padding:6px 10px}
 .header-inner{min-height:65px;padding:8px 12px}
 .brand{gap:9px}
 .brand img{height:47px;width:47px;padding:2px}
 .brand-name{font-size:19px}
 .brand-sub{font-size:13px;margin-top:2px}
 .reset-button{font-size:12px;min-height:40px;padding:7px 9px}
 .main-nav{display:none}
 .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:70;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#FFFFFF;border-top:1px solid #BFD5E7;box-shadow:0 -6px 22px #14395B20;padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px))}
 .mobile-nav .main-tab{display:flex;flex-direction:column;gap:2px;min-width:0;min-height:66px;padding:6px 1px 4px;border:0;border-radius:9px;background:transparent;color:#386084;font-size:12px;font-weight:750;box-shadow:none}
 .mobile-nav .main-tab.active{color:#075A9B;background:#DFEDFC;box-shadow:inset 0 -3px #1479C9}
 .mobile-nav .main-tab:hover{color:#075A9B;background:#ECF5FF}
 .mobile-nav .nav-icon{width:24px;height:24px}
 .subnav-inner{padding:8px 10px;gap:7px}
 .subtab{min-height:43px;padding:8px 12px;font-size:14px}
 .container{padding:13px 12px 26px}
 .home-hero{min-height:160px;margin-bottom:15px;border-radius:12px;background-position:54% center}
 .home-hero-video{object-position:54% center}
 .home-hero-shade{background:linear-gradient(0deg,#092A48DC,#0B385F77 70%,#0B385F22)}
 .home-hero-content{padding:16px}
 .home-hero-content h2{font-size:clamp(29px,6vw,37px)}
 .home-hero-content h2 span{font-size:clamp(23px,4.6vw,30px);margin-top:3px}
 .overview-head{margin:0 0 11px}
 .overview-head h1{font-size:27px}
 .overview-head p{font-size:15px}
 .eyebrow{font-size:13px}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .metric{padding:12px}
 .metric .value{font-size:31px}
 .metric .caption{font-size:15px;margin-top:6px}
 .home-task-grid{grid-template-columns:1fr;gap:10px}
 .home-action,.home-branch{padding:15px}
 .home-action h2{font-size:21px}
 .home-action p,.home-branch p{font-size:15px}
 .home-cta{max-width:none}
 .head{align-items:stretch;gap:10px}
 .head h1{font-size:26px}
 .head .subtext{font-size:15px}
 .actions{width:100%}
 .actions .btn{flex:1 1 auto}
 .panel{padding:13px}
 .panel h2{font-size:19px}
 .forms{grid-template-columns:minmax(0,1fr)}
 .filters .field{flex:1 1 145px;min-width:125px}
 .filters .search{min-width:100%}
 .month-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .table-wrap{overflow:visible}
 .table{display:block;width:100%;min-width:0}
 .table thead{display:none}
 .table tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 .table tbody tr{display:block;border:1px solid #C9DBE8;border-radius:11px;background:#fff!important;padding:3px 10px;overflow:hidden}
 .table tbody tr:nth-child(odd){background:#EDF6FF!important}
 .table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border:0;border-top:1px solid #D3E0EA;padding:10px 2px;min-width:0;font-size:15px;word-break:break-word}
 .table tbody td:first-child{border-top:0}
 .table tbody td::before{content:attr(data-label);flex:0 0 38%;min-width:0;font-size:14px;font-weight:750;color:#365C7B;line-height:1.4}
 .table tbody td[colspan]{display:block}
 .table tbody td[colspan]::before{content:none}
 .table tbody td .pill{text-align:right}
 .table tbody td .field{width:100%}
 .table input,.table select,.table textarea{max-width:min(180px,53vw);width:100%;min-width:0}
 .table .namecell{min-width:0}
 .table tbody td.report-extra{display:block}
 .table tbody td.report-extra::before{display:block;margin-bottom:8px}
 .table tbody td.report-extra .field{margin-bottom:9px}
 .table tbody td.report-extra input,.table tbody td.report-extra textarea{max-width:100%}
 .row-card{align-items:flex-start}
 .branch-line{font-size:15px}
 .branch-line strong{font-size:21px}
 .branch-card{padding:13px}
 .branch-card h2{font-size:18px;margin:-13px -13px 12px}
 .branch-status{font-size:15px}
 .branch-status strong{font-size:17px}
 .modal-backdrop{align-items:flex-start;padding:6px}
 .modal{max-height:98dvh;padding:14px}
 .toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){
 .brand-name{font-size:17px}
 .brand img{width:44px;height:44px}
 .reset-button{font-size:11px;padding:7px}
 .mobile-nav .main-tab{font-size:11px}
 .mobile-nav .nav-icon{width:23px;height:23px}
 .home-hero{min-height:156px}
 .home-hero-content h2{font-size:27px}
 .home-hero-content h2 span{font-size:21px}
 .overview-head h1{font-size:25px}
 .metric .value{font-size:29px}
 .metric .caption{font-size:14px}
 .container{padding:12px 10px 24px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
 .home-hero-video{display:none}
}


/* Visita del viajante: dos documentos y novedades de seis meses. */
.circuit-section{border-left:4px solid #1479C9}
.circuit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.circuit-summary>div{border:1px solid #BFD8ED;background:#EDF6FF;border-radius:11px;padding:12px;display:flex;flex-direction:column;gap:4px}
.circuit-summary strong{font-size:29px;color:#075A9B;line-height:1.1}
.circuit-summary span{font-weight:650;font-size:14px;color:#355B79;line-height:1.3}
.circuit-subheading{margin:23px 0 10px;font-size:18px;font-weight:750;color:#075A9B}
#visitEventForm .forms{margin:14px 0}
#visitEventForm .actions{margin-bottom:6px}
.circuit-section .actions{gap:10px;flex-wrap:wrap}
.circuit-section .actions .btn{white-space:normal}
@media(max-width:760px){
 .circuit-summary{gap:7px}
 .circuit-summary>div{padding:9px 7px}
 .circuit-summary strong{font-size:24px}
 .circuit-summary span{font-size:12px}
 .circuit-section .actions{display:grid;grid-template-columns:1fr}
 .circuit-section .actions .btn{width:100%}
}

/* Los campos opcionales de una ficha no deben quedar visibles cuando [hidden] está activo. */
[hidden]{display:none!important}

/* Ayuda opcional: una línea visible, explicación solo cuando se solicita. */
.help-details{margin:10px 0 14px;border:1px solid #D6E6F3;border-radius:10px;background:#F7FBFF;padding:8px 12px;color:#35536C}
.help-details summary{font-size:14px;font-weight:700;color:#075A9B;cursor:pointer;list-style-position:inside}
.help-details summary:focus-visible{outline:3px solid #1479C9;outline-offset:3px;border-radius:5px}
.help-details[open] summary{margin-bottom:7px}
.help-details p{margin:0 0 2px;font-size:14px;line-height:1.5}

/* Informes mensuales: diferenciar visualmente las opciones sin depender solo del color. */
.report-state[data-state="pendiente"]{background:#FFF0C7!important;border:2px solid #C8871D!important;color:#704204!important;font-weight:750}
.report-state[data-state="no_participo"]{background:#FFE2E3!important;border:2px solid #C63C45!important;color:#97212B!important;font-weight:750}
.report-state[data-state="participo"]{background:#E0F5E9!important;border:2px solid #4C9A6F!important;color:#14663A!important;font-weight:750}
.pill.no_participo{background:#FFE2E3;color:#97212B;border-color:#CA4850}

/* Ficha de persona: la falta de fechas antiguas se avisa sin bloquear el guardado. */
.pill.profile-review{background:#FFF2D5;color:#82510B;border:1px solid #DDB268;font-size:12px;margin-top:5px}
.toast.warning{background:#FFF0CD;border:2px solid #B78125;color:#65400C;font-weight:650}
.modal .head .small-text{margin:6px 0 0;max-width:560px}

/* Guardado automático y revisión final de informes mensuales. */
.report-save-status{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:110px;font-size:13px;font-weight:700;color:#526579}
.report-save-status[data-status="saving"]{color:#886009}
.report-save-status[data-status="saved"]{color:#18794E}
.report-save-status[data-status="error"]{color:#AE252C}
.save-retry{padding:5px 9px;min-height:33px;font-size:13px}
.month-final-review{border:2px solid #B42F3E;background:#FFF5F4}
.month-final-review[hidden]{display:none!important}
.month-final-review h2{color:#A32734}
.month-final-review.review-advisory{background:#FFF8E6;border-color:#D7A64A}
.month-final-review.review-advisory h2{color:#895814}
.month-final-review .review-question{font-weight:700;font-size:17px;margin:8px 0 13px}
.month-final-review .review-details{margin:9px 0 13px}
.month-final-review .review-details p{margin:7px 0;line-height:1.5}
.month-final-review .review-complete{color:#18794E;font-weight:750}
.month-final-review .actions{display:flex;gap:9px;flex-wrap:wrap}
.month-final-review .btn.danger{background:#A72A37;border-color:#A72A37;color:white}
.month-final-review .btn.danger:hover{background:#861F2A}
.month-final-review .btn[hidden]{display:none!important}

.month-final-review.review-critical{border-color:#B42F3E;background:#FFF5F4}
