/* Ajustes de legibilidad y uso táctil para formularios y seguimiento público. */
@media (max-width:760px){
  .ce-public-header>p{font-size:12px}.ce-public-header>span{font-size:14px;line-height:1.45}.ce-public-header>a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
  .ce-form-steps b{height:40px;width:40px}.ce-privacy-notice strong{font-size:13px}.ce-privacy-notice p{font-size:12px;line-height:1.55}
  .ce-form-section h2{font-size:17px}.ce-form-section header p{font-size:12px;line-height:1.4}.ce-form-grid label{font-size:14px}
  .ce-form-grid input,.ce-form-grid select{font-size:16px;height:48px;padding:10px 12px}.ce-search-input svg{height:19px;top:19px;width:19px}.ce-search-input input{padding-left:39px}
  .ce-optional{font-size:11px}.ce-cups-help{padding:11px 12px}.ce-cups-help p,.ce-cups-empty{font-size:12px}.ce-cups-results button{min-height:52px;padding:11px}.ce-cups-results button span b{font-size:11px}.ce-cups-results button span strong{font-size:12px;line-height:1.35}.ce-cups-results button i{font-size:11px}
  .ce-preparation strong{font-size:12px}.ce-preparation p{font-size:12px}.ce-upload{min-height:82px}.ce-upload strong{font-size:13px}.ce-upload small{font-size:11px;line-height:1.35;max-width:none;overflow-wrap:anywhere;white-space:normal}.ce-upload>b{font-size:11px;min-height:40px;display:grid;place-items:center}
  .ce-anesthesia-title strong{font-size:13px}.ce-anesthesia-title small{font-size:11px}.ce-reset,.ce-submit{min-height:48px;font-size:14px}.ce-submit b{font-size:14px}.ce-submit small{font-size:11px}.ce-form-actions>div>a{align-items:center;display:flex;font-size:13px;justify-content:center;min-height:44px}
  .ce-lookup-card>p{font-size:14px}.ce-lookup-card form label>span{font-size:13px}.ce-lookup-card form label>small{font-size:10px}.ce-lookup-card input{font-size:16px;height:48px}.ce-lookup-card form>button{font-size:14px;height:48px}.ce-lookup-card>aside{font-size:11px;line-height:1.4}
  .ce-lookup-results-detailed>header h2{font-size:17px}.ce-lookup-results-detailed>header p{font-size:11px}.ce-lookup-form-mark span{font-size:10px}.ce-lookup-form-mark strong{font-size:13px}.ce-lookup-request-heading>strong{font-size:14px;overflow-wrap:anywhere}.ce-lookup-form-name{font-size:10px}.ce-lookup-request dt{font-size:10px}.ce-lookup-request dd{font-size:12px}.ce-lookup-state{font-size:9px;padding:6px 8px}.ce-lookup-results-detailed>a.ce-lookup-request{min-height:44px}
  .ce-public-status>header h1{font-size:23px}.ce-public-status>header p{font-size:13px}.ce-status-summary>div>small{font-size:12px}.ce-status-summary>div>strong{font-size:clamp(17px,5vw,21px);overflow-wrap:anywhere}.ce-status-summary>div>p{font-size:11px}.ce-status-summary>aside strong{font-size:13px}.ce-status-summary>aside small{font-size:11px}.ce-48-hours{font-size:12px;line-height:1.45}
  .ce-status-data h2{font-size:14px}.ce-status-data dt{font-size:10px}.ce-status-data dd{font-size:12px;overflow-wrap:anywhere}.ce-status-card>footer a,.ce-status-not-found>a{align-items:center;display:flex;font-size:12px;justify-content:center;min-height:44px}
}
@media (max-width:560px){
  .ce-status-summary{grid-template-columns:48px minmax(0,1fr);gap:12px}.ce-status-summary>span{height:48px;width:48px}.ce-status-summary>aside{grid-column:1/-1;width:100%}
  .ce-lookup-request-heading{align-items:flex-start;flex-direction:column}.ce-lookup-state{white-space:normal}
}
@media (max-width:460px){
  .ce-status-timeline{gap:5px;grid-template-columns:1fr;margin:18px 0}.ce-status-timeline:before{bottom:18px;height:auto;left:17px;right:auto;top:18px;width:2px}.ce-status-timeline li{display:grid;gap:2px 11px;grid-template-columns:35px 1fr;text-align:left}.ce-status-timeline b{grid-row:1/3}.ce-status-timeline strong{font-size:12px;margin:1px 0 0}.ce-status-timeline small{font-size:11px;margin:0}.ce-status-card>footer{gap:10px}.ce-status-card>footer a{width:100%}
  .ce-lookup-card form label>small{display:block;float:none;margin-top:3px}.ce-lookup-results-detailed>header{align-items:flex-start;gap:8px}.ce-lookup-request dl{grid-template-columns:1fr}.ce-lookup-request dl .description{grid-column:1}.ce-lookup-results-detailed>a.ce-lookup-request{gap:9px;padding:11px}
}
@media (hover:none) and (pointer:coarse){
  .ce-cups-results button,.ce-reset,.ce-submit,.ce-lookup-card form>button,.ce-status-card>footer a,.ce-lookup-card>footer a{min-height:44px}
}

/* Escala de escritorio para formularios y seguimiento público. */
@media (min-width:1101px){
  .external-consultation-form-page .guest-shell{width:min(1560px,calc(100vw - 64px))}
  .external-consultation-form-page{padding:24px 32px 52px}
  .ce-public-header{margin-bottom:24px}
  .ce-public-header img{margin-bottom:10px;width:180px}
  .ce-public-header>p{font-size:15px;margin-bottom:7px}
  .ce-public-header h1{font-size:clamp(32px,2.7vw,42px);max-width:1350px}
  .ce-public-header>span{font-size:20px;margin-top:10px}
  .ce-public-header>a{font-size:17px;margin-top:11px}
  .ce-public-card{border-radius:20px}
  .ce-form-steps{gap:52px;padding:25px 51px}
  .ce-form-steps li{gap:16px}
  .ce-form-steps b{font-size:20px;height:53px;width:53px}
  .ce-form-steps strong{font-size:17px}
  .ce-form-steps small{font-size:14px;margin-top:4px}
  .ce-privacy-notice{gap:15px;margin:22px 38px 3px;padding:17px 20px}
  .ce-privacy-notice>span{font-size:17px;height:32px;width:32px}
  .ce-privacy-notice strong{font-size:17px}
  .ce-privacy-notice p{font-size:14px;line-height:1.5}
  .ce-form-section{padding:25px 38px}
  .ce-form-section>header{gap:18px;margin-bottom:20px}
  .ce-section-icon{height:60px;width:60px}
  .ce-section-icon svg{height:30px;width:30px}
  .ce-form-section h2{font-size:24px}
  .ce-form-section header p{font-size:14px;margin-top:5px}
  .ce-form-grid{gap:18px 24px}
  .ce-form-grid label{font-size:16px}
  .ce-form-grid input,.ce-form-grid select{font-size:16px;height:54px;padding:12px 16px}
  .ce-location-help,.ce-optional{font-size:13px}
  .ce-search-input svg{height:21px;top:20px;width:21px}
  .ce-search-input input{padding-left:44px}
  .ce-cups-help{gap:13px;padding:16px 18px}
  .ce-cups-help p,.ce-cups-empty{font-size:14px;line-height:1.5}
  .ce-cups-results button{min-height:66px;padding:15px 17px}
  .ce-cups-results button span b{font-size:14px}
  .ce-cups-results button span strong{font-size:16px}
  .ce-cups-results button i{font-size:14px}
  .ce-preparation strong,.ce-preparation p{font-size:15px}
  .ce-document-grid{gap:18px}
  .ce-upload{min-height:105px;padding:17px}
  .ce-upload-icon{font-size:14px;height:48px;width:48px}
  .ce-upload strong{font-size:16px}
  .ce-upload small{font-size:14px;line-height:1.4}
  .ce-upload>b{font-size:14px;padding:11px 15px}
  .ce-form-actions{padding:22px 38px}
  .ce-reset,.ce-submit{min-height:57px}
  .ce-reset,.ce-form-actions>div>a{font-size:16px}
  .ce-submit{padding:10px 24px}
  .ce-submit b{font-size:17px}
  .ce-submit small{font-size:13px}

  .public-form-page .guest-shell{width:min(1500px,calc(100vw - 64px))}
  .ce-public-lookup{width:min(870px,100%)}
  .ce-tracking-logo{margin-bottom:27px;width:180px}
  .ce-lookup-card,.ce-status-not-found{border-radius:21px;padding:42px}
  .ce-lookup-icon{height:83px;margin-bottom:20px;width:83px}
  .ce-lookup-icon svg{height:35px;width:35px}
  .ce-lookup-card>h1{font-size:36px}
  .ce-lookup-card>p{font-size:18px;max-width:645px;margin:11px auto 30px}
  .ce-lookup-card form label>span{font-size:15px}
  .ce-lookup-card form label>small{font-size:12px}
  .ce-lookup-card input{border-radius:12px;font-size:17px;height:63px;margin-top:9px;padding:0 17px}
  .ce-lookup-card form>button{border-radius:12px;font-size:17px;height:65px;margin-top:20px}
  .ce-lookup-or{gap:15px;margin:18px 0}
  .ce-lookup-or b{font-size:14px;height:35px;width:35px}
  .ce-lookup-card>aside{border-radius:11px;font-size:14px;gap:12px;margin-top:20px;padding:14px}
  .ce-lookup-card>aside b{height:27px;width:27px}
  .ce-lookup-card>footer{font-size:14px;margin-top:24px}
  .ce-lookup-results-detailed>header{margin-bottom:15px}
  .ce-lookup-results-detailed>header h2{font-size:24px}
  .ce-lookup-results-detailed>header p{font-size:14px}
  .ce-lookup-results-detailed>header>span{font-size:15px;padding:9px 15px}
  .ce-lookup-results-detailed>a.ce-lookup-request{gap:18px;grid-template-columns:177px minmax(0,1fr) auto;padding:18px}
  .ce-lookup-form-mark{padding:14px}
  .ce-lookup-form-mark span{font-size:12px}
  .ce-lookup-form-mark strong{font-size:15px}
  .ce-lookup-request-heading>strong{font-size:18px}
  .ce-lookup-form-name{font-size:12px}
  .ce-lookup-request dt{font-size:11px}
  .ce-lookup-request dd{font-size:12px}
  .ce-lookup-state{font-size:11px;padding:7px 10px}

  .ce-public-status{width:min(1470px,100%)}
  .ce-public-status>.ce-tracking-logo{margin-bottom:24px;width:180px}
  .ce-public-status>header>span{font-size:44px;height:78px;width:78px}
  .ce-public-status>header h1{font-size:36px;margin-top:16px}
  .ce-public-status>header p{font-size:18px;margin-top:8px}
  .ce-status-card{border-radius:20px;margin-top:24px;padding:36px}
  .ce-status-summary{gap:22px;grid-template-columns:86px minmax(0,1fr) 360px}
  .ce-status-summary{position:relative}
  .ce-status-cancel{left:50%;position:absolute;top:3px;transform:translateX(-50%)}
  .ce-status-cancel button{align-items:center;background:#fff3f3;border:1px solid #ef8b8b;border-radius:14px;color:#9f1d1d;cursor:pointer;display:flex;gap:13px;min-height:82px;padding:14px 20px;text-align:left;width:310px}
  .ce-status-cancel button:hover{background:#b91c1c;border-color:#b91c1c;color:#fff;box-shadow:0 10px 24px rgba(185,28,28,.2)}
  .ce-status-cancel button>span{background:#fee2e2;border-radius:50%;display:grid;flex:none;font-size:25px;height:38px;place-items:center;width:38px}
  .ce-status-cancel button:hover>span{background:rgba(255,255,255,.18)}
  .ce-status-cancel strong,.ce-status-cancel small{display:block}.ce-status-cancel strong{font-size:16px}.ce-status-cancel small{font-size:12px;margin-top:4px}
  .ce-status-summary>span{font-size:30px;height:86px;width:86px}
  .ce-status-summary>div>small{font-size:15px}
  .ce-status-summary>div>strong{font-size:30px;margin-top:5px}
  .ce-status-summary>div>p{font-size:14px;margin-top:6px}
  .ce-status-summary>aside{border-radius:14px;gap:15px;min-height:82px;padding:16px 20px}
  .ce-status-summary>aside>b{font-size:22px;height:38px;width:38px}
  .ce-status-summary>aside strong{font-size:16px}
  .ce-status-summary>aside small{font-size:13px;margin-top:4px}
  .ce-status-timeline{margin:34px 0 30px}
  .ce-status-timeline b{font-size:20px;height:52px;width:52px}
  .ce-status-timeline strong{font-size:15px;margin-top:10px}
  .ce-status-timeline small{font-size:12px;margin-top:4px}
  .ce-48-hours{border-radius:13px;font-size:15px;gap:14px;margin:20px 0;padding:16px 18px}
  .ce-48-hours>b{font-size:14px;min-height:30px;min-width:30px}
  .ce-48-hours strong{font-size:16px}
  .ce-48-hours p{font-size:15px;line-height:1.5;margin-top:5px}
  .ce-48-hours .button{font-size:15px;margin-top:12px;min-height:48px;padding:12px 18px}
  .ce-status-data{border-radius:14px;margin-top:20px}
  .ce-status-data>header{gap:12px;padding:17px 19px}
  .ce-status-data>header>span{font-size:15px;height:32px;width:32px}
  .ce-status-data h2{font-size:18px}
  .ce-status-data dl>div{min-height:86px;padding:17px 19px}
  .ce-status-data dt{font-size:12px}
  .ce-status-data dd{font-size:15px;line-height:1.45;margin-top:6px}
  .ce-public-appointment-list{gap:20px!important}
  .ce-public-appointment-list>article{border-radius:18px!important;padding:24px!important}
  .ce-public-appointment-list>article>div>small{font-size:16px!important}
  .ce-public-appointment-list>article>div>strong{font-size:22px!important;margin-top:8px!important}
  .ce-public-appointment-list>article>div>p{font-size:16px;margin-top:6px!important}
  .ce-public-appointment-list dl{margin-top:18px!important}
  .ce-status-card>footer{gap:12px;margin-top:28px}
  .ce-status-card>footer a{border-radius:10px;font-size:15px;min-height:50px;padding:13px 18px}
  .ce-status-not-found{width:min(870px,100%)}
  .ce-status-not-found>span{font-size:38px;height:76px;width:76px}
  .ce-status-not-found h1{font-size:32px}
  .ce-status-not-found p{font-size:17px}
  .ce-status-not-found>a{font-size:16px;min-height:50px;padding:13px 20px}

  .ce-public-back{border-radius:15px;font-size:18px;gap:10px;left:27px;min-height:57px;padding:11px 18px;top:27px}
  .ce-public-back svg{height:28px;width:28px}
}
@media(max-width:1100px){.ce-status-cancel{grid-column:1/-1;position:static;transform:none}.ce-status-cancel button{justify-content:center;width:100%}}
.ce-identity-actions{display:flex;justify-content:flex-end;margin-top:18px}.ce-identity-submit{align-items:center;background:linear-gradient(135deg,#0864ee,#0753bd);border:0;border-radius:9px;box-shadow:0 8px 20px rgba(8,100,238,.22);color:#fff;cursor:pointer;display:inline-flex;font:inherit;font-size:13px;font-weight:800;gap:9px;justify-content:center;min-height:46px;padding:11px 19px}.ce-identity-submit:hover{filter:brightness(1.05);transform:translateY(-1px)}.ce-identity-submit:disabled{cursor:wait;opacity:.65;transform:none}.ce-identity-submit span{font-size:18px}.ce-email-status{display:block;font-size:10px;font-weight:650;line-height:1.35;margin-top:5px;min-height:14px}.ce-email-status.checking{color:#526d92}.ce-email-status.valid{color:#087b59}.ce-email-status.error{color:#b42318}
.ce-identity-section .ce-form-grid.patient{display:grid;gap:14px 18px;grid-template-columns:repeat(2,minmax(0,1fr))}.ce-identity-section .ce-form-grid.patient label{color:#09255a;display:flex;flex-direction:column;font-size:12px;font-weight:800;gap:7px;min-width:0}.ce-identity-section .ce-form-grid.patient label em{color:#e22937;font-style:normal}.ce-identity-section .ce-form-grid.patient input,.ce-identity-section .ce-form-grid.patient select{appearance:none;background-color:#fff;border:1px solid #b8cde8;border-radius:8px;color:#102f5f;font:inherit;font-size:14px;font-weight:650;height:46px;min-width:0;padding:0 13px;width:100%}.ce-identity-section .ce-form-grid.patient select{background-image:linear-gradient(45deg,transparent 50%,#41658f 50%),linear-gradient(135deg,#41658f 50%,transparent 50%);background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-repeat:no-repeat;background-size:5px 5px;padding-right:34px}.ce-identity-section .ce-form-grid.patient input:focus,.ce-identity-section .ce-form-grid.patient select:focus{border-color:#0864ee;box-shadow:0 0 0 3px rgba(8,100,238,.12);outline:0}
@media(max-width:640px){.ce-identity-section .ce-form-grid.patient{grid-template-columns:1fr}.ce-identity-actions{margin-top:14px}.ce-identity-submit{min-height:48px;width:100%}}
