/* Prueba de paleta del app. Retirar este enlace restaura los colores anteriores. */
:root{--blue:#315577;--navy:#243f5b;--ink:#2e4b65;--muted:#6b7886;--line:#d5e0e9;--paper:#e8f3fd;--cyan:#67a5d5}
body,.directory-page{background:#e8f3fd}
.header{background:#e8f3fd;border-bottom-color:#d6e4ef}
.announcement{background:#dcecf9;color:#3e6383}
.announcement-note{color:#6e869b}
.brand-blue{color:#315577}
.button-primary,.chat-form .chat-send{background:#315577;box-shadow:0 5px 15px #2e4b6514}
.button-primary:hover{background:#254664}
.button-outline{color:#315577;border-color:#c3d2de}
.text-link,.near-me,.eyebrow{color:#315577}
.hero h1 span,.future-copy h2 span,.directory-intro h1 span{color:#315577}
.search-section,.specialty-card,.doctor-card,.ami-intro{background:#fff;border-color:#d5e0e9;box-shadow:0 6px 20px #2e4b650a}
#search-form .primary-search-field{border-color:#a5bed3;border-left-color:#315577;background:#f2f7fc;box-shadow:0 5px 18px #3155770b}
#search-form .primary-search-field>svg{color:#315577}
#search-form .primary-search-field:focus-within{border-color:#315577;box-shadow:0 0 0 3px #31557718}
#search-form .primary-search-field label{color:#2e4b65}
.ami-panel{background:#dfedf8}
.future-section{background:#e1eef8}
.chat-launcher,.ami-icon:not(.ami-logo-avatar){background:#315577}
.chat-dialog,.profile-dialog,.privacy-dialog{color:#2e4b65;background:#fff;border-color:#cedce7}
.chat-dialog .dialog-header{background:#315577;color:#fff}
.chat-dialog .dialog-header p{color:#e0ebf5}
.chat-dialog .dialog-header .icon-button{background:#edf4fa;color:#315577}
.demo-notice{background:#e8f3fd;color:#526c83}
.chat-messages{background:#f3f8fc}
.bubble-user{background:#315577;color:#fff}
.quick-replies button{color:#315577;border-color:#cbdbe8;background:#f0f6fb}
.header .patient-icon-button,.header #account-logout.patient-icon-button{color:#315577;border-color:#c3d2de}
.directory-filter-panel>summary,.account-dialog .password-section>summary{color:#315577}
.doctor-specialty,.chat-directory-link{color:#315577}
.doctor-avatar,.public-weekly-hours .hours-slot{background:#e7f0f8;color:#315577}
.doctor-result>.favorite-button[aria-pressed=true]{background:#e1edf7;border-color:#9cb8ce;color:#315577}
.public-pwa-button{background:#315577}
.closing{background:#315577}
/* Ajustes de contraste y separación de tarjetas de la paleta de prueba. */
.ami-panel,.ami-copy,.ami-copy h2,.ami-features strong{color:#243f5b}
.ami-copy>.eyebrow,.ami-copy h2 span,.ami-features>div>svg{color:#315577}
.ami-copy>p,.ami-features small,.ami-copy p.ami-caption{color:#405e78}
.closing,.closing h2,.closing .eyebrow,.closing p{color:#fff}
.closing .button{color:#315577;background:#fff;border-color:#fff}
.medapp-pwa-bar button,.medapp-pwa-dialog [data-native]{background:#315577;border-color:#6486a3;color:#fff}
.medapp-pwa-dialog [data-close]{color:#315577}
.doctor-results .doctor-card{background:#e1eef9;border:1px solid #adc6da;box-shadow:0 4px 12px #243f5b0c}
.doctor-results .doctor-card:hover{background:#d8e9f6;border-color:#6f98b8}
.doctor-results .doctor-avatar{background:#315577;color:#fff}
.doctor-results .doctor-card-more{border-color:#b7ccdd;color:#243f5b}
.header .brand img{width:53px;height:53px;object-fit:contain;background:transparent}
.footer .brand img{width:53px;height:53px;object-fit:contain;background:transparent}
@media(max-width:600px){.header .brand img,.footer .brand img{width:45px;height:45px}}
/* Ficha ampliada del médico: lectura y contraste. */
#doctor-dialog .profile-avatar{background:#315577;color:#fff;font-size:30px}
#doctor-dialog .profile-identity h2{font-size:25px}
#doctor-dialog .profile-identity>.doctor-specialty{font-size:14px}
#doctor-dialog .profile-identity .profile-eyebrow{font-size:11px}
#doctor-dialog .profile-section h3{font-size:18px}
#doctor-dialog .profile-description,#doctor-dialog .profile-networks{font-family:inherit;font-size:15px;line-height:1.8;color:#65758b}
#doctor-dialog .profile-networks li{font:inherit;line-height:inherit}
#doctor-dialog .doctor-detail-row dt{font-size:13px}
#doctor-dialog .doctor-detail-row dd{font-size:14px}
#doctor-dialog .profile-location-missing,#doctor-dialog .clinic-map-coordinates{font-size:14px;line-height:1.7}
#doctor-dialog .public-weekly-hours{font-size:15px}
#doctor-dialog .public-weekly-hours caption{font-size:14px}
#doctor-dialog .profile-actions .button{font-size:14px}
#doctor-dialog .profile-top,#doctor-dialog .doctor-detail-row,#doctor-dialog .public-weekly-hours th,#doctor-dialog .public-weekly-hours td,#doctor-dialog .profile-actions{border-color:#315577}
#doctor-dialog .clinic-map-canvas{border:1px solid #315577}
@media(max-width:600px){#doctor-dialog .profile-avatar{font-size:24px}#doctor-dialog .profile-identity h2{font-size:20px}#doctor-dialog .profile-identity .profile-eyebrow{font-size:10px}}
/* Chat Ami: incremento de 2 px en todos los textos. */
#chat-dialog .dialog-header h2{font-size:21px}
#chat-dialog .dialog-header p{font-size:12px}
#chat-dialog .demo-notice{font-size:12px}
#chat-dialog .bubble{font-size:14px}
#chat-dialog .quick-replies button,#chat-dialog .slot-button{font-size:12px}
#chat-dialog .quick-replies .chat-change-clinic{font-size:13px}
#chat-dialog .chat-form input{font-size:18px}
#chat-dialog .chat-date{font-size:10px}
#chat-dialog .chat-doctor-result strong,#chat-dialog .chat-directory-link{font-size:15px}
#chat-dialog .chat-doctor-result span{font-size:13px}
#chat-dialog .chat-actions .button{font-size:13px}
@media(max-width:600px){#chat-dialog .dialog-header h2{font-size:19px}#chat-dialog .demo-notice{font-size:11px}#chat-dialog .bubble{font-size:13px}#chat-dialog .chat-date{font-size:9px}}
#doctor-dialog .public-weekly-hours .hours-slot{font-size:13px}
#doctor-dialog .profile-actions a[href^="tel:"]{gap:7px}
/* Botones de navegación invertidos y textos informativos ampliados. */
.header .patient-nav .patient-icon-button,.header .directory-nav-actions .patient-icon-button,.header #account-logout.patient-icon-button,.directory-home{background:#315577;color:#fff;border-color:#315577}
.header .patient-nav .patient-icon-button:hover,.header .directory-nav-actions .patient-icon-button:hover,.header #account-logout.patient-icon-button:hover,.directory-home:hover{background:#254664;border-color:#254664;color:#fff}
.announcement{font-size:13px}
.footer-bottom,.footer-bottom button{font-size:11px}
@media(max-width:600px){.announcement{font-size:11px}.footer-bottom,.footer-bottom button{font-size:10px}}
/* Separación superior de portada y controles de paginación ampliados. */
body.home-page{padding-top:10px}
.directory-pagination span{font-size:14px}
.directory-pagination .button,.directory-pagination .page-jump label{font-size:13px}
.directory-pagination .page-jump input{font-size:18px}
.directory-footer .directory-home{width:auto;max-width:none;gap:8px;padding:10px 14px!important}
@media(max-width:600px){.directory-pagination span{font-size:12px}.directory-pagination .button{font-size:13px}}
/* Alineación constante del logo entre portada y directorio. */
body.home-page{padding-top:15px}
body.directory-page{padding-top:49px}
.home-page .announcement{height:34px;min-height:34px;box-sizing:border-box;line-height:15px;padding-block:2px}
.home-page .header .nav-wrap,.directory-page .header .directory-nav{padding-top:6px}
.home-page .header .brand,.directory-page .header .brand{align-self:flex-start}
body.directory-page{padding-top:15px}
.directory-page .announcement{height:34px;min-height:34px;box-sizing:border-box;line-height:15px;padding-block:2px}
/* Búsqueda principal más compacta en ambas páginas. */
#busqueda #search-form .primary-search-field{min-height:78px;padding-block:10px}
#busqueda #search-form .primary-search-field label{margin-bottom:5px}
@media(max-width:600px){#busqueda #search-form .primary-search-field{min-height:84px;padding-block:10px}}
/* Paginación: navegación en tres columnas y salto en una fila independiente. */
.directory-pagination{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px 10px;width:100%}
#directory-prev{grid-column:1;grid-row:1;justify-self:start}
#directory-page{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;min-width:0;line-height:1.5}
#directory-next{grid-column:3;grid-row:1;justify-self:end}
.directory-pagination .page-jump{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;align-items:center;gap:9px;margin:0}
.directory-pagination .page-jump input{font-size:16px;width:54px;height:36px;min-height:36px;padding:6px 8px;box-sizing:border-box}
.directory-pagination .page-jump .button{font-size:13px;height:36px;min-height:36px;padding:6px 12px;box-sizing:border-box}
@media(max-width:600px){.directory-pagination{column-gap:7px}.directory-pagination>#directory-prev,.directory-pagination>#directory-next{padding:8px 9px;font-size:12px}.directory-pagination #directory-page span{font-size:12px;white-space:nowrap}}
.directory-pagination>#directory-prev,.directory-pagination>#directory-next{width:92px;min-width:92px;justify-content:center}
@media(max-width:600px){.directory-pagination>#directory-prev,.directory-pagination>#directory-next{width:84px;min-width:84px}}
