:root{--ink:#18282e;--muted:#68787d;--line:#dce4e5;--brand:#117b84;--deep:#07545c;--pale:#eaf5f5;--bg:#f6f8f8;--white:#fff}*{box-sizing:border-box}html{font-family:Montserrat,Arial,sans-serif;color:var(--ink)}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{width:min(1160px,calc(100% - 40px));margin:auto}.topbar{background:#fff;border-bottom:1px solid var(--line)}.topbar-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between}.logo{max-width:176px;max-height:56px;object-fit:contain}.exit{font-size:13px;font-weight:700;color:var(--deep)}.intro{padding:64px 0 32px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--brand);font-weight:800}.intro h1{font-size:clamp(30px,4vw,48px);letter-spacing:-.045em;line-height:1.13;margin:12px 0}.intro p{color:var(--muted);font-size:16px;line-height:1.7;margin:0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start;padding-bottom:80px}.card,.info-card,.period-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 15px 40px rgba(12,51,55,.035)}.main-card{overflow:hidden}.tabs{display:flex;gap:8px;padding:18px 30px 0;border-bottom:1px solid var(--line)}.tab{background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);font-weight:700;font-size:13px;padding:15px 20px 17px}.tab.active{color:var(--deep);border-color:var(--brand)}.panel{padding:38px 42px 46px}.panel[hidden],#history-results[hidden]{display:none}.section-heading{display:flex;gap:16px;align-items:flex-start;margin-bottom:34px}.step{background:var(--pale);color:var(--deep);border-radius:10px;font-size:13px;font-weight:800;padding:12px}.section-heading h2{font-size:23px;letter-spacing:-.035em;margin:0 0 8px}.section-heading p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}.field{min-width:0;margin:0 0 22px}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:9px}.field small{display:block;margin-top:9px;color:var(--muted);font-size:11px;line-height:1.5}.field input,.field select{display:block;width:100%;height:48px;border:1px solid #cfdbdd;border-radius:8px;background:#fff;padding:0 14px;color:var(--ink);font-size:13px;outline:none}.field input:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #117b841c}.field input::placeholder{color:#9aa8ab}.uppercase{text-transform:uppercase}.inline{display:flex;gap:10px}.inline input{flex:1}.btn{border:0;border-radius:8px;padding:0 22px;min-height:48px;font-weight:700;font-size:12px;white-space:nowrap}.primary{background:var(--deep);color:white}.primary:hover{background:#0b737d}.secondary{background:var(--pale);color:var(--deep)}.secondary:hover{background:#d5ebec}.btn:disabled{opacity:.6;cursor:wait}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.wide{grid-column:1/-1}.inline-status{font-size:12px;color:var(--deep);min-height:20px;margin:0 0 14px}.status-error{color:#aa342f}.form-footer{border-top:1px solid var(--line);padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.form-footer p{max-width:330px;font-size:11px;line-height:1.6;color:var(--muted);margin:0}.side{display:grid;gap:17px}.info-card,.period-card{padding:27px}.info-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:var(--pale);color:var(--deep);font-weight:800}.side h2{font-size:16px;margin:21px 0 15px}.side ol{counter-reset:item;list-style:none;padding:0;margin:0}.side li{counter-increment:item;position:relative;padding:0 0 16px 30px;font-size:12px;color:var(--muted);line-height:1.55}.side li:before{content:counter(item,decimal-leading-zero);position:absolute;left:0;color:var(--brand);font-weight:800;font-size:11px}.period-card{background:#eef7f7}.period-card strong{display:block;margin:12px 0;font-size:19px;line-height:1.3}.period-card p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.guide{display:flex;justify-content:space-between;font-size:12px;font-weight:700;color:var(--deep);padding:14px 4px}.notice{border-radius:10px;padding:17px 20px;margin-bottom:20px;font-size:13px;line-height:1.6}.error{background:#fff0ef;color:#a5342c;border:1px solid #f3c7c2}.success{background:#eaf7f1;color:#176944;border:1px solid #bde5ce}.results-head{display:flex;justify-content:space-between;align-items:end;gap:12px;border-bottom:1px solid var(--line);padding:16px 0}.results-head h3{font-size:17px;margin:8px 0 0}.count{font-size:11px;color:var(--muted);white-space:nowrap}.invoice-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.invoice-detail{display:flex;align-items:center;gap:12px}.file-icon{display:grid;place-items:center;background:var(--pale);color:var(--brand);border-radius:9px;width:38px;height:40px;font-size:20px}.invoice-detail strong{display:block;text-transform:capitalize;font-size:12px}.invoice-detail small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.invoice-actions{display:flex;gap:7px}.invoice-actions form{margin:0}.download{background:white;border:1px solid #bed9dc;border-radius:7px;color:var(--deep);font-size:11px;font-weight:800;padding:9px 11px}.download:hover{background:var(--pale)}.empty{font-size:13px;color:var(--muted);padding:25px 0}footer{text-align:center;padding:25px;color:#849296;font-size:11px;border-top:1px solid var(--line)}@media(max-width:870px){.layout{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}.guide{grid-column:1/-1}.intro{padding-top:42px}}@media(max-width:600px){.shell{width:min(100% - 28px,1160px)}.topbar-inner{min-height:70px}.logo{max-width:140px}.intro{padding:35px 0 26px}.intro p{font-size:13px}.tabs{padding:10px 12px 0}.tab{flex:1;padding:14px 7px;font-size:12px}.panel{padding:27px 19px 32px}.section-heading h2{font-size:20px}.grid{grid-template-columns:1fr}.wide{grid-column:auto}.inline{flex-direction:column}.inline .btn{width:100%}.form-footer{align-items:stretch;flex-direction:column}.side{grid-template-columns:1fr}.guide{grid-column:auto}.invoice-row{align-items:flex-start;flex-direction:column}.invoice-actions{margin-left:50px}.results-head{align-items:start;flex-direction:column}}
/* Identidad visual del sitio principal registro.medipass.com.mx/index2.php. */
@font-face{font-family:'Clash';src:url('https://registro.medipass.com.mx/ClashGrotesk-Regular.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Clash';src:url('https://registro.medipass.com.mx/ClashGrotesk-Medium.woff') format('woff');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Clash';src:url('https://registro.medipass.com.mx/ClashGrotesk-Semibold.woff') format('woff');font-style:normal;font-weight:600 900;font-display:swap}
@font-face{font-family:'SF Pro Display';src:url('https://registro.medipass.com.mx/sfdisplay.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
:root{--ink:#212529;--muted:#55535a;--line:#dbd0e0;--brand:#111112;--deep:#000;--pale:#f6e3ff;--bg:#f6e3ff;--white:#fff}
html{font-family:'SF Pro Display',Arial,sans-serif}
body{background:linear-gradient(180deg,#f8e9ff 0%,#f6e3ff 45%,#cfa8e1 100%);min-height:100vh;color:var(--ink)}
button,input,select{font-family:'SF Pro Display',Arial,sans-serif}
.shell{max-width:970px}
.topbar{border-bottom:2px solid #f8e062;background:white}
.topbar-inner{min-height:89px}
.logo{max-width:184px;max-height:58px}
.exit{font-family:'Clash',Georgia,serif;font-weight:500;font-size:15px;color:#111112;border:1px solid #111112;border-radius:22px;padding:11px 25px;transition:background .2s,color .2s}
.exit:hover{background:#111112;color:white}
.intro{padding:58px 0 36px}
.intro .eyebrow{font-family:'Clash',Georgia,serif;color:#111112;letter-spacing:.12em;font-size:12px}
.intro h1{font-family:'Clash',Georgia,serif;font-weight:600;letter-spacing:-.035em;line-height:1.08;font-size:clamp(35px,5vw,64px);margin:15px 0 21px;color:#212529}
.intro p{color:#212529;font-size:21px;line-height:1.5}
.layout{grid-template-columns:minmax(0,1fr) 255px;gap:20px}
.card,.info-card,.period-card{box-shadow:0 14px 35px rgba(57,24,69,.08);border-color:#e3d2e9;border-radius:18px}
.tabs{border-color:#ede3ef}
.tab{font-family:'Clash',Georgia,serif;font-weight:500;color:#49414d;font-size:14px}
.tab.active{color:#000;border-color:#111112}
.section-heading h2,.side h2,.results-head h3{font-family:'Clash',Georgia,serif;font-weight:600}
.section-heading h2{font-size:25px}
.section-heading p,.period-card p,.form-footer p,.field small,.side li{color:#55535a}
.step,.info-icon,.file-icon{background:#f6e3ff;color:#111112}
.field label{font-family:'Clash',Georgia,serif;font-weight:500;color:#222}
.field input,.field select{border-color:#d6c6dc}
.field input:focus,.field select:focus{border-color:#111112;box-shadow:0 0 0 3px rgba(207,168,225,.35)}
.btn{font-family:'Clash',Georgia,serif;border-radius:23px;font-weight:500;font-size:13px}
.primary{background:#000;color:#fff}.primary:hover{background:#343039}
.secondary{background:transparent;color:#111112;border:1px solid #111112}.secondary:hover{background:#f6e3ff}
.period-card{background:#fbf2ff}
.period-card strong{font-family:'Clash',Georgia,serif}
.eyebrow{color:#5d336c}
.guide,.inline-status{color:#222}
.download{border:1px solid #111112;color:#111112;border-radius:20px;font-family:'Clash',Georgia,serif;font-weight:500;background:white}
.download:hover{background:#f6e3ff}
footer{border-top:1px solid rgba(0,0,0,.13);color:#453a49}
@media(max-width:870px){.layout{grid-template-columns:1fr}.side{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.topbar-inner{min-height:75px}.logo{max-width:143px}.exit{font-size:11px;padding:10px 13px}.intro{padding:38px 0 27px}.intro h1{font-size:clamp(32px,9vw,46px)}.intro p{font-size:16px}.side{grid-template-columns:1fr}.tab{font-size:13px}.btn{border-radius:23px}}
.header-actions{display:flex;align-items:center;gap:10px}
.help-link{font-family:'Clash',Georgia,serif;font-weight:500;font-size:15px;color:#111112;border:1px solid #111112;border-radius:22px;padding:11px 20px;transition:background .2s,color .2s}
.help-link:hover,.help-link:focus-visible{background:#111112;color:#fff}
.exit-short{display:none}
@media(max-width:600px){.header-actions{gap:7px}.help-link,.exit{font-size:11px;padding:10px 12px}}
@media(max-width:400px){.logo{max-width:115px}.exit-full{display:none}.exit-short{display:inline}.help-link,.exit{padding:9px 10px}}
.invoice-actions{flex-wrap:wrap;justify-content:flex-end}
.email-box{margin:0 0 16px 50px;padding:15px 18px;background:#fbf2ff;border:1px solid #e4d3ea;border-radius:10px}
.email-box[hidden]{display:none}
.email-box p{margin:0 0 12px;font-size:12px;line-height:1.55;color:#46384a}
.email-box .btn{min-height:38px;padding:0 18px}
.email-box .send-status{margin:10px 0 0;min-height:0;font-size:12px}
.send-success{color:#176944!important}.send-error{color:#a5342c!important}
.download:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.invoice-actions{margin-left:0;justify-content:flex-start}.email-box{margin-left:0}}
.notice.sandbox{background:#fff8e7;color:#69410a;border:1px solid #f3dca8}
.tabs .tab-history:not(.active) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #087f8c;
  background: #e7f7f8;
  border: 2px solid #087f8c;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  animation: destacar-mis-facturas 2.2s ease-in-out infinite;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tabs .tab-history:not(.active):hover,
.tabs .tab-history:not(.active):focus-visible {
  color: #fff;
  background: #087f8c;
  animation: none;
  transform: translateY(-2px);
}

.tabs .tab-history .tab-arrow {
  font-size: 18px;
  transition: transform .2s ease;
}

.tabs .tab-history:not(.active):hover .tab-arrow {
  transform: translateX(3px);
}

@keyframes destacar-mis-facturas {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(8, 127, 140, .22);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(8, 127, 140, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs .tab-history:not(.active) {
    animation: none;
  }
}