/* MEDECAL: una única página de inicio y vistas clínicas funcionales */
html{scroll-padding-top:142px}
body{background:#f7f9fc;color:#2a3c4a}
body>.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #d8e0eb;z-index:50}
body>.site-header .nav-wrap{max-width:1190px;min-height:65px;display:flex;gap:18px;align-items:center}
body>.site-header .brand{font-size:20px;color:#25384c;font-weight:800}
body>.site-header .brand-symbol{background:#355879;width:35px;height:35px;font-size:20px;border-radius:6px;color:#fff;display:grid;place-items:center;line-height:1;text-align:center;padding:0;flex-shrink:0}
body>.site-header .main-nav{display:flex;align-items:center;gap:12px;margin-left:auto}
body>.site-header .main-nav a{font-size:12px;font-weight:720;white-space:nowrap;padding:9px 10px}
body>.site-header .main-nav a[href="#inicio"]{border-radius:6px}
body>.site-header .main-nav a[aria-current="page"]{color:#355879;background:#eaf0f7}
body>.site-header .main-nav a.me-nav-calculators{background:#355879;color:white;border-radius:7px;padding:10px 13px}
body>.site-header .main-nav a.me-nav-calculators:hover{background:#233f5b;color:white}
body>.site-header .menu-toggle{border:0;background:none}
body>.me-section-context{top:65px;z-index:45}
#contenido[data-me-view="inicio"]:not(.is-active){display:none!important}
#contenido[data-me-view="inicio"].is-active{display:block!important;animation:me-home-in .3s ease-out}
#contenido .hero{min-height:440px;background:linear-gradient(115deg,#f7f9fc,#fff 65%,#f5f1ef);padding:0}
#contenido .hero-inner{max-width:1020px;text-align:left;padding:59px 0 30px}
#contenido .hero .hero-kicker{font-size:11px;color:#986e6c;letter-spacing:.1em;margin-bottom:12px}
#contenido .hero h1{font-size:clamp(34px,4.1vw,52px);letter-spacing:-.04em;line-height:1.13;margin:0 0 17px;color:#243749}
#contenido .hero h1 span{color:#ae6d60}
#contenido .hero-description{max-width:760px;margin:0 0 25px;color:#5c7384;line-height:1.7}
#contenido .hero-search{margin:0;max-width:730px;border:1px solid #c9d6e0;box-shadow:none;padding:6px 7px 6px 15px;background:#fff}
#contenido .hero-search button{background:#355879;color:white}
#contenido .hero-search button:hover{background:#243f5c}
#contenido .search-caption{text-align:left;margin:9px 0 20px}
#contenido .quick-links{justify-content:flex-start;gap:8px}
#contenido .quick-links a{background:#fff;color:#355879;border:1px solid #c6d6e4;padding:8px 13px;border-radius:5px}
#contenido .quick-links a:hover{background:#e9eff7}
#contenido .browse-link{font-size:12px;padding-bottom:22px}
#contenido .me-divider{height:4px;background:linear-gradient(90deg,#355879 62%,#ae6d60 62%)}
#contenido .library{background:#f3f5f8;padding:48px 0 61px}
#contenido .library h2{color:#233849;font-size:34px}
#contenido .section-kicker{color:#ae6d60}
#contenido .modules-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#contenido .module-card{background:white;border-color:#dce6e9;box-shadow:none;min-height:195px;transform:none}
#contenido .module-card:hover{border-color:#a9bed0;box-shadow:0 8px 20px rgba(36,65,93,.07)}
#contenido .module-symbol{color:#355879;background:#edf2f8}
#contenido .module-bottom{color:#355879}
#contenido .library-footer a{color:#355879}
#medecal-main{min-height:calc(100vh - 200px);background:#f7f9fc}
#medecal-main .mc-section{padding-top:36px}
#medecal-main .mc-section .container{max-width:1150px}
#medecal-main .mc-page-head h1{padding-top:0}
#medecal-main .mc-catalogue{background:#f9fbfd}
#medecal-main .mc-tox-section{background:#f7f9fc}
body>.site-footer{background:white;border-top:1px solid #e0e8ec}
body>.site-footer .footer-wrap{max-width:1150px}
@keyframes me-home-in{from{opacity:.7;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1030px){
 body>.site-header .main-nav{gap:4px}
 body>.site-header .main-nav a{padding:8px;font-size:11px}
 #contenido .modules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #contenido .hero-inner{padding-inline:25px}
}
@media(max-width:760px){
 html{scroll-padding-top:162px}
 body>.site-header .nav-wrap{min-height:59px}
 body>.site-header .menu-toggle{display:block;margin-left:auto}
 body>.site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;background:#fff;border-bottom:1px solid #cddde9;padding:14px 17px;box-shadow:0 12px 20px rgba(29,51,72,.12);max-height:calc(100vh - 62px);overflow:auto}
 body>.site-header .main-nav.is-open{display:flex}
 body>.site-header .main-nav a{font-size:13px;padding:10px 12px}
 body>.me-section-context{top:59px}
 #contenido .hero-inner{padding:47px 18px 35px}
 #contenido .hero{min-height:0}
 #contenido .hero h1{font-size:clamp(31px,8vw,45px)}
 #contenido .hero-description{font-size:14px}
 #contenido .library{padding:37px 0 52px}
 #contenido .modules-grid{grid-template-columns:1fr}
 #contenido .module-card{min-height:175px}
 #medecal-main .mc-section{padding-top:28px}
}
@media(prefers-reduced-motion:reduce){#contenido[data-me-view="inicio"].is-active{animation:none}}


/* Portada universal: resultados locales, búsqueda farmacológica y acceso a todos los módulos. */
#contenido .me-home-search-results[hidden],#contenido .me-home-hub[hidden]{display:none!important}
#contenido .me-home-search-results{margin:17px 0 24px;padding:18px;border:1px solid #cadae3;border-radius:14px;background:#fff;text-align:left;box-shadow:0 16px 45px rgba(33,71,95,.09)}
#contenido .me-home-search-status{color:#4b6a7e;font-size:13px;font-weight:600;margin:0 0 8px}
#contenido .me-home-results-title{color:#163e55;font-size:18px;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}
#contenido .me-home-results-group{margin:15px 0;padding-top:12px;border-top:1px solid #e1eaf0}
#contenido .me-home-results-group h3{font-size:14px;color:#315772;margin:0 0 10px}
#contenido .me-home-results-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#contenido .me-home-result{font:inherit;width:100%;min-width:0;border:1px solid #cbdce6;border-radius:10px;background:#f8fbfd;color:#16445d;padding:11px 12px;text-align:left;display:flex;flex-direction:column;gap:3px;text-decoration:none;cursor:pointer}
#contenido .me-home-result:hover,#contenido .me-home-result:focus-visible{border-color:#2a8793;background:#eef8f7;outline-offset:2px}
#contenido .me-home-result strong{font-size:13px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#contenido .me-home-result small{font-size:11px;color:#587384;line-height:1.45}
#contenido .me-home-result-description{font-size:12px;color:#486479;line-height:1.45}
#contenido .me-home-search-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:14px;border-top:1px solid #dbe6ed}
#contenido .me-home-search-actions .me-home-result{width:auto;flex:1 1 195px;background:#f4f8fa}
#contenido .me-home-results-empty{font-size:13px;color:#567286;margin:10px 0}
#contenido .me-home-hub{padding:34px 0 42px;background:linear-gradient(#ffffff,#f4f8fb)}
#contenido .me-home-hub-heading h2{font-size:clamp(22px,3.8vw,30px);font-weight:800;letter-spacing:-.025em;color:#173d54;margin:0 0 7px}
#contenido .me-home-hub-heading p:last-child{color:#526d7f;font-size:14px;line-height:1.6;margin:0 0 22px}
#contenido .me-home-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#contenido .me-home-hub-grid a{display:flex;flex-direction:column;align-items:flex-start;min-height:114px;border:1px solid #d0dfe8;border-radius:12px;background:#fff;padding:17px 15px;text-decoration:none;box-shadow:0 5px 20px rgba(18,56,80,.035);transition:background .15s,border-color .15s}
#contenido .me-home-hub-grid a:hover,#contenido .me-home-hub-grid a:focus-visible{background:#f0f8f8;border-color:#258b91}
#contenido .me-home-hub-grid strong{font-size:14px;color:#154761;line-height:1.35;margin-bottom:8px}
#contenido .me-home-hub-grid span{font-size:12px;color:#536d7d;line-height:1.45}
#contenido .me-home-feature-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:22px 0 0;font-size:12px;color:#587286}
#contenido .me-home-feature-links span{font-weight:700}
#contenido .me-home-feature-links a{display:inline-block;padding:6px 9px;background:#fff;border:1px solid #c9dce5;border-radius:7px;color:#1f5871;font-weight:700;text-decoration:none}
#contenido .me-home-feature-links a:hover{background:#e9f5f5;text-decoration:underline}
@media(max-width:850px){#contenido .me-home-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){
 #contenido .me-home-search-results{padding:13px;margin-top:13px}
 #contenido .me-home-results-list{grid-template-columns:minmax(0,1fr)}
 #contenido .me-home-search-actions{flex-direction:column}
 #contenido .me-home-search-actions .me-home-result{width:100%;flex:auto}
 #contenido .me-home-hub{padding:20px 0 32px}
 #contenido .me-home-hub-grid{gap:8px}
 #contenido .me-home-hub-grid a{min-height:120px;padding:12px 10px}
 #contenido .me-home-hub-grid strong{font-size:12.5px}
 #contenido .me-home-hub-grid span{font-size:11.5px}
 #contenido .me-home-feature-links{margin-top:15px}
}
@media(max-width:355px){#contenido .me-home-hub-grid{grid-template-columns:1fr}#contenido .me-home-hub-grid a{min-height:80px}}


/* MEDECAL mobile-first · interacciones reales y navegación sin superposiciones */
#contenido .me-home-suggestion-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:13px 0 8px}
#contenido .me-home-suggestion-bar>span{font-size:12px;font-weight:750;color:#587587;margin-right:2px}
#contenido .me-home-suggestion-bar button{font-family:inherit;font-size:12px;font-weight:650;line-height:1.25;color:#164f62;border:1px solid #b7d5dc;background:#edf7f7;border-radius:999px;padding:9px 12px;cursor:pointer;min-height:36px}
#contenido .me-home-suggestion-bar button:hover,#contenido .me-home-suggestion-bar button:focus-visible,#contenido .me-home-suggestion-bar button[aria-pressed="true"]{background:#d8efec;border-color:#0c8586;color:#07505c}
#contenido .me-home-results-top{display:flex;gap:10px;align-items:center;justify-content:space-between}
#contenido .me-home-results-top .me-home-search-status{margin:0}
#contenido .me-home-search-close{flex:none;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;border:1px solid #c9dce6;border-radius:9px;color:#315a6c;background:#f4f8fa;padding:9px 12px;cursor:pointer;min-height:36px}
#contenido .me-home-hub-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 17px}
#contenido .me-home-hub-filters button{font-family:inherit;font-size:13px;font-weight:700;line-height:1.3;border:1px solid #cedfe6;border-radius:999px;padding:9px 14px;min-height:40px;background:#fff;color:#476c7d;cursor:pointer}
#contenido .me-home-hub-filters button[aria-pressed="true"]{background:#0b6975;color:#fff;border-color:#0b6975}
#contenido .me-home-hub-filters button:focus-visible{outline:3px solid #48bab6;outline-offset:2px}
#contenido .me-home-hub-grid a[hidden]{display:none!important}
#contenido .me-home-hub-symbol{display:grid;place-items:center;width:36px;height:36px;margin:0 0 11px;border-radius:11px;background:#e7f3fa;color:#23728a;font-family:inherit;font-size:15px;font-weight:850;line-height:1;letter-spacing:-.03em}
#contenido .me-home-hub-grid a:nth-child(4n+2) .me-home-hub-symbol{background:#f3eaf9;color:#795c96}
#contenido .me-home-hub-grid a:nth-child(4n+3) .me-home-hub-symbol{background:#e3f6ec;color:#19775f}
#contenido .me-home-hub-grid a:nth-child(4n+4) .me-home-hub-symbol{background:#fff0e0;color:#9c6430}
#contenido .me-home-hub-grid a{position:relative;transition:transform .16s,box-shadow .16s,border-color .16s}
#contenido .me-home-hub-grid a:active{transform:scale(.98)}
.me-mobile-dock{display:none}
@media(max-width:760px){
 html{scroll-padding-top:72px}
 body:has(.me-mobile-dock){padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 #contenido .hero{min-height:0;background:linear-gradient(145deg,#f5faff,#fafffd 65%,#eaf7f5)}
 #contenido .hero-inner{padding:23px 18px 16px!important}
 #contenido .hero-kicker{font-size:10px;letter-spacing:.08em;margin-bottom:8px}
 #contenido .hero h1{font-size:clamp(36px,10vw,48px);line-height:1.06;letter-spacing:-.055em;margin-bottom:11px}
 #contenido .hero-description{font-size:14px;line-height:1.5;margin:0 0 17px;max-width:450px}
 #contenido .hero-search{width:100%;max-width:none;box-sizing:border-box;gap:7px;min-height:57px;border-radius:15px;padding:5px 6px 5px 14px;box-shadow:0 6px 20px rgba(11,68,83,.06)}
 #contenido .hero-search>svg{width:19px;height:19px;flex:0 0 19px}
 #contenido .hero-search input{font-size:16px;min-width:0;line-height:1.3;padding:12px 0}
 #contenido .hero-search button{flex:none;display:flex;justify-content:center;align-items:center;min-width:51px;width:51px;height:47px;min-height:47px;border-radius:11px;padding:0;font-size:24px;background:linear-gradient(125deg,#176a91,#009987)}
 #contenido .hero-search button .me-home-submit-label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
 #contenido .hero-search button .me-home-submit-arrow{display:block;margin:0}
 #contenido .search-caption{font-size:12px;line-height:1.45;color:#567280;margin:10px 0 0}
 #contenido .me-home-suggestion-bar{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:11px -18px 0;padding:0 18px 8px;gap:7px}
 #contenido .me-home-suggestion-bar::-webkit-scrollbar{display:none}
 #contenido .me-home-suggestion-bar>span{flex:none}
 #contenido .me-home-suggestion-bar button{flex:none;min-height:35px;font-size:12px;padding:8px 11px}
 #contenido .me-home-links{display:none}
 #contenido .me-home-hub{padding:18px 0 26px}
 #contenido .me-home-hub-heading .hero-kicker{margin-bottom:6px}
 #contenido .me-home-hub-heading h2{font-size:22px;line-height:1.2;margin-bottom:6px}
 #contenido .me-home-hub-heading p:last-child{font-size:12.5px;line-height:1.4;margin-bottom:13px}
 #contenido .me-home-hub-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:12px;gap:7px}
 #contenido .me-home-hub-filters::-webkit-scrollbar{display:none}
 #contenido .me-home-hub-filters button{white-space:nowrap;min-height:36px;padding:7px 13px;font-size:12px}
 #contenido .me-home-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #contenido .me-home-hub-grid a{min-height:123px;border-radius:14px;padding:12px;box-shadow:0 4px 14px rgba(10,48,69,.04)}
 #contenido .me-home-hub-grid strong{font-size:13px;line-height:1.25;margin-bottom:4px}
 #contenido .me-home-hub-grid span:not(.me-home-hub-symbol){font-size:11px;line-height:1.35}
 #contenido .me-home-hub-symbol{width:33px;height:33px;border-radius:10px;margin-bottom:8px;font-size:13px}
 #contenido .me-home-feature-links{gap:7px}
 #contenido .me-home-search-results{margin:12px 0 9px;padding:12px;border-radius:13px}
 #contenido .me-home-results-title{font-size:16px}
 #contenido .me-home-results-group{margin:10px 0}
 .me-mobile-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:600;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);border-top:1px solid #c7dce2;box-shadow:0 -8px 25px rgba(14,59,80,.10);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
 .me-mobile-dock a,.me-mobile-dock button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;box-sizing:border-box;text-decoration:none;border:0;border-radius:9px;min-width:0;min-height:50px;padding:4px 1px;background:transparent;color:#456b7b;font-family:inherit;cursor:pointer}
 .me-mobile-dock a span,.me-mobile-dock button span{font-size:24px;line-height:1.1}
 .me-mobile-dock small{font-size:10px;line-height:1.2;font-weight:700}
 .me-mobile-dock [aria-current="page"],.me-mobile-dock button:focus-visible,.me-mobile-dock a:focus-visible{color:#046b73;background:#e7f4f3;outline-offset:1px}
 body>.site-header .menu-toggle{background:#e9f5f6;border-radius:10px;min-width:44px;min-height:44px;padding:10px;display:grid;align-content:center}
 body>.site-header .menu-toggle span{background:#1e6675;height:2.5px;width:22px;border-radius:4px}
 body>.site-header .main-nav a{font-size:15px;min-height:43px;display:flex;align-items:center;border-radius:8px}
 body>.site-header .main-nav{z-index:700;gap:5px}
}
@media(max-width:355px){
 #contenido .me-home-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #contenido .me-home-hub-grid a{padding:9px;min-height:120px}
 #contenido .hero-description{font-size:13px}
 .me-mobile-dock small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){#contenido .me-home-hub-grid a{transition:none}}
