/*
Theme Name: Dr. Ríos | Premium Editorial
Theme URI: https://coloproctologopanama.com/
Author: The Agency LATAM
Description: Tema clásico ligero, con home editorial, carrusel de banners editables, contenido y fotografías gestionables desde Personalizar, páginas Gutenberg y SEO preparado para AIOSEO.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: rios-premium
*/


:root{--blue:#2854a4;--navy:#102644;--muted:#52627b;--light:#f5f8fc;--line:#e5ebf4;--white:#fff;--max:1192px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--navy);background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}img{display:block;max-width:100%}.wrap{width:min(var(--max),calc(100% - 72px));margin:auto}.eyebrow{letter-spacing:.21em;font-size:11px;text-transform:uppercase;font-weight:760;color:var(--blue)}.head{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #edf0f5}.head-inner{height:86px;display:flex;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:12px;min-width:240px}.brand img{width:55px;height:55px;object-fit:contain}.brand-name{font-weight:770;font-size:15px;line-height:1.25;letter-spacing:-.025em}.brand-name span{display:block;color:var(--blue);font-size:10px;font-weight:670;letter-spacing:.08em;margin-top:4px}.nav{display:flex;align-items:center;gap:26px;margin-left:auto;font-size:12.5px;font-weight:600}.nav a:hover{color:var(--blue)}.nav-cta,.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--blue);color:white;border:1px solid var(--blue);border-radius:7px;font-weight:720;box-shadow:0 12px 24px rgba(40,84,164,.1);transition:background .22s,transform .22s}.nav-cta{padding:12px 17px;font-size:12px;white-space:nowrap;margin-left:9px}.primary:hover,.nav-cta:hover{background:#1d448c;transform:translateY(-1px)}.ghost{border:1px solid #b8c8e2;color:var(--navy);background:rgba(255,255,255,.84);display:inline-flex;align-items:center;justify-content:center;gap:11px;padding:14px 19px;font-size:13px;font-weight:730;border-radius:7px}.ghost:hover{border-color:var(--blue);color:var(--blue)}.hamb{display:none}
.hero{background:#f7f9fd;position:relative;overflow:hidden}.hero-content{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;min-height:600px;gap:42px;position:relative}.hero:before{content:"";position:absolute;right:-130px;top:-160px;width:650px;height:650px;border-radius:50%;border:1px solid #e9eff8;box-shadow:0 0 0 90px rgba(255,255,255,.34),0 0 0 180px rgba(255,255,255,.25)}.hero-copy{position:relative;z-index:2;padding:58px 0 75px}.hero h1,.hero h2.slide-title{font-size:clamp(44px,4.25vw,64px);line-height:1.07;letter-spacing:-.064em;font-weight:770;max-width:625px;margin:19px 0 23px}.hero .intro{color:#4d5d75;font-size:16px;line-height:1.85;max-width:530px;margin:0 0 27px}.tiny-rule{display:flex;align-items:center;gap:10px;color:#5a6880;font-weight:600;font-size:12px;margin-bottom:32px}.tiny-rule:before{content:"";width:24px;height:2px;background:var(--blue)}.hero-actions{display:flex;gap:11px;flex-wrap:wrap}.hero-actions .primary{padding:14px 19px;font-size:13px}.hero-visual{position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;min-height:600px}.hero-visual:before{content:"";position:absolute;width:450px;height:450px;max-width:93%;border-radius:50%;background:#eaf0f9;bottom:18px;left:50%;transform:translateX(-50%)}.hero-visual img{object-fit:contain;object-position:bottom;height:540px;width:min(100%,500px);position:relative;z-index:1;filter:drop-shadow(0 15px 34px rgba(14,38,75,.12))}.hero-visual.surgery-photo:before{width:100%;height:90%;border-radius:40% 40% 12px 12px;background:#e8eef7}.hero-visual.surgery-photo img{object-fit:cover;object-position:50% 35%;height:500px;width:530px;border-radius:10px 10px 0 0}.hero-slider{position:relative}.hero-slide{display:none}.hero-slide.active{display:block;animation:slidein .68s ease both}@keyframes slidein{from{opacity:.25;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.slider-controls{position:absolute;bottom:38px;left:0;z-index:5;display:flex;align-items:center;gap:14px}.slider-controls button{border:1px solid #bfcbe0;background:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;color:var(--blue);display:grid;place-items:center}.dots{display:flex;gap:7px;align-items:center}.dots button{height:5px;width:22px;border:0;padding:0;border-radius:3px;background:#bfcee4;cursor:pointer}.dots button.on{background:var(--blue);width:42px}.slider-count{font-size:11px;color:#74849b;font-weight:800;letter-spacing:.1em}.slide-image{display:none}.slide-image.active{display:flex;animation:slidein .75s ease both}.mobile-menu{display:none}
.location-line{background:#fff;border-bottom:1px solid var(--line)}.location-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:82px}.location-inner p{margin:0;font-size:12.5px;color:#54647b}.location-inner strong{color:#1c3557}.location-inner a{font-size:12px;font-weight:720;color:var(--blue)}.section{padding:98px 0}.section.soft{background:#f7f9fc}.section-title{font-size:clamp(30px,3.2vw,43px);line-height:1.14;letter-spacing:-.05em;margin:15px 0 0;font-weight:760}.section-lead{font-size:15px;color:#53647a;line-height:1.75;max-width:480px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:39px}.editorial-grid{display:grid;grid-template-columns:1.04fr 1fr 1fr;gap:16px}.service{border:1px solid var(--line);border-radius:10px;padding:25px 23px;min-height:192px;display:flex;flex-direction:column;position:relative;background:#fff;transition:box-shadow .2s,transform .2s}.service:hover{box-shadow:0 14px 40px rgba(22,55,97,.075);transform:translateY(-3px)}.service.big{grid-row:span 2;min-height:400px;background:#eff4fb;border-color:#eff4fb;padding:31px}.service.big:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.52);right:-70px;bottom:-95px}.service .n{font-size:10px;letter-spacing:.13em;color:var(--blue);font-weight:790}.service h3{font-size:19px;font-weight:760;letter-spacing:-.035em;margin:16px 0 10px}.service.big h3{font-size:32px;line-height:1.14;margin:48px 0 20px;max-width:245px}.service p{font-size:13px;line-height:1.72;color:#596b82;margin:0;max-width:290px}.service .link{margin-top:auto;padding-top:26px;font-size:12px;font-weight:780;color:var(--blue)}.service.big .link{padding-top:40px}.more-link{margin-top:28px;font-size:12px;font-weight:770;color:var(--blue);display:inline-block}.about{display:grid;grid-template-columns:.89fr 1.11fr;gap:80px;align-items:center}.about-img{border-radius:9px;overflow:hidden;aspect-ratio:1.1;background:#e9ecf0}.about-img img{width:100%;height:100%;object-fit:cover;object-position:center}.about h2{max-width:620px}.about p{font-size:15px;color:#526078;line-height:1.82}.credential{display:grid;grid-template-columns:18px 1fr;gap:14px;border-top:1px solid var(--line);padding:17px 0;font-size:13.5px;color:#314964}.credential strong{color:var(--blue);font-size:13px}.credential span{font-size:11px;color:#657790;display:block;margin-top:4px}.about .ghost{margin-top:20px}.symptom{display:grid;grid-template-columns:.88fr 1.12fr;gap:80px;align-items:center}.symptom-list{display:grid;grid-template-columns:1fr 1fr;gap:0 32px}.symptom-list div{padding:16px 0;border-bottom:1px solid #dfe7f2;display:flex;gap:12px;font-size:13px;line-height:1.55;color:#41536e}.check{background:#e3edf9;color:var(--blue);width:21px;height:21px;flex:none;border-radius:50%;font-size:11px;display:grid;place-items:center;font-weight:850}.procedure{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.procedure article{border:1px solid #e8edf3;border-radius:9px;overflow:hidden}.procedure img{width:100%;height:237px;object-fit:cover}.procedure article:nth-child(1) img{object-position:50% 25%}.procedure article:nth-child(3) img{object-position:50% 39%}.procedure article div{padding:23px}.procedure h3{font-size:19px;letter-spacing:-.04em;margin:0 0 9px}.procedure p{font-size:13px;line-height:1.68;color:#52637b;margin:0 0 18px}.procedure a{font-size:12px;font-weight:780;color:var(--blue)}.faq{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px}.qa{border-bottom:1px solid #dce6f1;padding:20px 0}.qa summary{cursor:pointer;font-size:14px;font-weight:720;padding-right:25px;list-style:none;position:relative}.qa summary:after{content:'+';position:absolute;right:0;color:var(--blue);font-size:21px;line-height:15px}.qa[open] summary:after{content:'−'}.qa p{font-size:13px;color:#52637b;line-height:1.75;margin:15px 25px 0 0}.contact{background:var(--navy);color:#fff;padding:75px 0}.contact-inner{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.contact h2{font-size:clamp(35px,3.5vw,49px);line-height:1.12;letter-spacing:-.055em;margin:18px 0}.contact p{color:#cbd5e5;line-height:1.75;font-size:14px}.contact .primary{background:white;color:var(--navy);border-color:white;padding:14px 19px;font-size:13px}.contact-detail{display:grid;gap:17px;border-left:1px solid #50617b;padding-left:45px;font-size:14px}.contact-detail b{display:block;margin-bottom:5px}.contact-detail span{color:#c3d0e1}.footer{padding:37px 0}.footer-inner{display:flex;gap:45px;align-items:center;justify-content:space-between}.footer p{font-size:11px;color:#74839b}.footer-links{display:flex;gap:24px;font-size:12px;font-weight:650}.footer-links a:hover{color:var(--blue)}
@media(max-width:1100px){.nav{gap:14px}.nav-cta{padding:10px 12px}.wrap{width:min(100% - 44px,var(--max))}.about{gap:45px}}
@media(max-width:800px){.head-inner{height:75px}.nav,.nav-cta{display:none}.hamb{display:block;margin-left:auto;border:1px solid #e5ebf4;color:var(--navy);background:#fff;border-radius:7px;padding:10px 12px;font-size:19px}.mobile-menu.open{display:grid;gap:15px;padding:18px 25px 25px;background:#fff}.mobile-menu a{font-size:14px;font-weight:650}.hero-content{grid-template-columns:1fr;gap:0;min-height:unset}.hero-copy{padding:65px 0 45px}.hero-visual{min-height:430px}.hero-visual img{height:430px}.hero-visual.surgery-photo img{height:410px}.slider-controls{bottom:20px}.location-inner{flex-wrap:wrap;padding:15px 0}.editorial-grid{grid-template-columns:1fr 1fr}.service.big{grid-row:auto;grid-column:span 2;min-height:300px}.about,.symptom,.faq,.contact-inner{grid-template-columns:1fr;gap:34px}.section{padding:70px 0}.section-header{display:block}.procedure{grid-template-columns:1fr 1fr}.footer-inner{flex-wrap:wrap}}
@media(max-width:550px){.wrap{width:calc(100% - 36px)}.hero h1,.hero h2.slide-title{font-size:42px}.hero .intro{font-size:14px}.brand{min-width:unset}.brand img{width:48px;height:48px}.brand-name{font-size:13px}.brand-name span{font-size:8px}.hero-visual{min-height:350px}.hero-visual img{height:345px}.hero-visual.surgery-photo img{height:330px}.hero-visual:before{height:310px;width:310px}.section-header .section-lead{margin-top:18px}.editorial-grid{grid-template-columns:1fr}.service.big{grid-column:span 1;min-height:340px}.symptom-list,.procedure{grid-template-columns:1fr}.footer-links{flex-wrap:wrap}.contact-detail{padding-left:21px}.location-inner{align-items:flex-start}.section-title{font-size:33px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Premium v2: responsive refinements and accessible conversion areas */
.section-cta{display:flex;justify-content:space-between;align-items:center;gap:46px;padding:34px 42px;margin-top:-38px;margin-bottom:40px;border:1px solid #dbe6f5;border-radius:16px;background:linear-gradient(110deg,#f7f9fd,#eaf2fc)}
.section-cta h2{font-size:clamp(24px,2.5vw,34px);margin:10px 0 9px;letter-spacing:-.04em}.section-cta p{max-width:660px;color:#53647b;line-height:1.7;font-size:14px;margin:0}.section-cta a{white-space:nowrap;padding:15px 22px;font-size:13px}
.reviews-section{background:#f8fafc}.review-shell{background:white;border:1px solid #e1e9f3;border-radius:15px;padding:32px;display:grid;grid-template-columns:48px 1fr auto;gap:14px 23px;align-items:center}.google-symbol{font-weight:800;font-size:37px;color:#4285f4}.review-summary strong{font-size:19px;letter-spacing:-.02em}.review-summary p{font-size:13px;color:#607085;max-width:675px;line-height:1.6}.reviews-slot{grid-column:1 / -1;min-height:105px;padding:22px;background:#f6f8fc;border:1px dashed #ccd9eb;border-radius:10px;display:grid;place-items:center}.review-pending{font-size:13px;text-align:center;color:#607085}.review-action{color:var(--blue);font-size:13px;font-weight:770;white-space:nowrap}
.floating-wa{position:fixed;right:24px;bottom:24px;z-index:120;display:flex;gap:9px;align-items:center;padding:12px 17px;border-radius:999px;background:#188e58;color:#fff;box-shadow:0 15px 34px rgba(6,89,54,.22);font-size:13px;font-weight:770;transition:transform .2s}.floating-wa:hover{transform:translateY(-3px);background:#087f4a}.floating-wa:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #98c2ff;outline-offset:3px}
@media(max-width:800px){.section-cta{padding:26px 23px;flex-direction:column;align-items:start}.review-shell{grid-template-columns:40px 1fr}.review-action{grid-column:1/-1}.reviews-slot{min-height:110px}.floating-wa span{display:none}.floating-wa{padding:16px;right:15px;bottom:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* V3: photographic architecture; one original photograph per banner, no layered graphics */
:root {--blue:#234985;--navy:#152d4d;--muted:#53647b;--light:#f6f8fb;--line:#e6eaf0}
.head-inner {height:84px;gap:18px}
.brand {min-width:224px}
.brand img{height:59px;width:46px;object-fit:contain;object-position:center}
.brand-name{font-size:15px}
.nav{gap:18px}
.hero{background:#fff;}
.hero:before,.hero-visual:before{display:none!important;content:none!important}
.hero-content{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:clamp(24px,4vw,64px);min-height:588px;align-items:stretch}
.hero-slider{display:flex;align-items:center;min-height:588px}
.hero-slide.active{width:100%}
.hero-copy{padding:52px 0 80px}
.hero h1,.hero h2.slide-title{font-size:clamp(39px,3.6vw,59px);line-height:1.12;letter-spacing:-.055em;max-width:550px}
.hero .intro{font-size:16px;line-height:1.76;max-width:500px}
.hero-visual{height:588px;min-height:588px;position:relative;overflow:hidden;align-self:stretch;display:block;background:#e8edf3}
.hero-visual .slide-image,.hero-visual .slide-image.active{position:absolute;inset:0;height:100%;width:100%;overflow:hidden;align-items:stretch;justify-content:stretch}
.hero-visual .slide-image{display:none;}
.hero-visual .slide-image.active{display:block;animation:photo-in .75s ease both}
.hero-visual .slide-image img,.hero-visual .slide-image.surgery-photo img {height:100%!important;width:100%!important;max-width:none;object-fit:cover!important;object-position:center 23%;border-radius:0;filter:none;box-shadow:none;display:block;}
.hero-visual .slide-image.surgery-photo img{object-position:center 42%}
.hero-visual .slide-image[data-image="1"] img{object-position:center 24%}
.hero-visual .slide-image[data-image="2"] img{object-position:center 47%}
@keyframes photo-in{from{opacity:.5;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
.slider-controls{bottom:34px}
.slider-count,.service .n{display:none!important}
.service.big h3{margin-top:38px}
.service.big{min-height:350px}
.service.big:after{display:none}
.nav-cta,.primary{background:var(--blue);border-color:var(--blue)}
.nav-cta:hover,.primary:hover{background:#18396a}
.hero .eyebrow{letter-spacing:.16em}
.section-header .section-title{max-width:680px}
.review-pending{font-size:13px}
@media(max-width:1100px){.nav{gap:11px;font-size:12px}.brand{min-width:188px}.nav-cta{font-size:11px;margin-left:0}}
@media(max-width:800px){
 .hero-content{grid-template-columns:1fr;gap:0;min-height:0}
 .hero-slider{min-height:450px}
 .hero-copy{padding:44px 0 79px}
 .hero-visual{height:460px;min-height:460px;margin:0 -22px}
 .hero h1,.hero h2.slide-title{font-size:clamp(35px,7.2vw,47px)}
}
@media(max-width:550px){
 .hero-slider{min-height:480px}
 .hero-visual{height:380px;min-height:380px;margin:0 -18px}
 .hero-visual .slide-image img{object-position:center 16%}
 .hero-copy{padding:36px 0 82px}
 .brand img{height:53px;width:38px}
 .brand-name{font-size:13px}
}




:root{--blue:#224aac;--navy:#10254a;--muted:#53657c;--max:1230px}
body{font-size:15px} .wrap{width:min(var(--max),calc(100% - 76px))}
.eyebrow{font-size:12px;letter-spacing:.18em}.section-lead{font-size:16px;line-height:1.8}
.head{background:#fff}.head-inner{height:92px}.brand{min-width:231px;gap:11px}.brand img{height:68px;width:48px;object-fit:contain}.brand-name{font-size:16px}.brand-name span{font-size:10px}.nav{font-size:13.5px;gap:19px}.nav-cta{font-size:13px}
/* ONE FULL-BLEED PHOTOGRAPH PER SLIDE, matching the supplied website reference. */
.hero.hero-cover{height:min(690px,calc(100svh - 90px));min-height:590px;position:relative;background:var(--navy);overflow:hidden}
.hero.hero-cover::before{display:none}
.hero-photo{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity 900ms ease,visibility 900ms ease}
.hero-photo.active{opacity:1;visibility:visible;z-index:1}
.hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}
.hero-cover .hero-wrap{position:relative;z-index:3;height:100%;display:flex;align-items:center}
.hero-copy-col{width:min(620px,57%);padding:60px 0 75px}
.hero-copy-item{display:none;animation:hero-text-enter .7s ease both}
.hero-copy-item.active{display:block}.hero-copy-item[hidden]{display:none!important}
@keyframes hero-text-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.hero-copy-col .eyebrow{color:#a3d8de;font-size:12px;font-weight:760}
.hero-cover h1,.hero-cover h2.slide-title{font-size:clamp(46px,4.4vw,70px);line-height:1.08;letter-spacing:-.048em;color:white;font-weight:790;max-width:630px;margin:20px 0}
.hero-lead{font-size:17px;line-height:1.8;color:#e4edf7;max-width:570px;margin:0 0 26px}
.hero-address{font-size:13.5px;font-weight:680;color:#b5dfe8;margin:0 0 27px;letter-spacing:.012em}
.hero-cover .hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero-cover .primary{background:#fff;color:var(--navy);border-color:#fff;font-size:14px;padding:15px 23px}.hero-cover .primary:hover{background:#dff0f1;color:#10254a}
.hero-cover .ghost{font-size:14px;color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.55);padding:15px 23px}.hero-cover .ghost:hover{background:rgba(255,255,255,.16);color:#fff}
.hero-controls{position:absolute;left:0;bottom:28px;display:flex;align-items:center;gap:12px;z-index:4}
.hero-controls button{border:1px solid rgba(255,255,255,.6);color:white;background:transparent;width:37px;height:37px;border-radius:50%;font-size:25px;cursor:pointer;line-height:1}
.hero-controls button:hover{background:rgba(255,255,255,.15)}.hero-dots{display:flex;gap:8px}.hero-dots button{width:28px;height:4px;padding:0;border:0;border-radius:6px;background:rgba(255,255,255,.5);transition:width .2s,background .2s}.hero-dots button.active{background:#8de1e2;width:44px}
.location-inner{min-height:74px}.location-inner p,.location-inner a{font-size:13.5px}
.section{padding:84px 0}.section-title{font-size:clamp(32px,3.3vw,45px)}.service p,.procedure p{font-size:14px}.service h3{font-size:20px}.service .link,.procedure a{font-size:13px}
.about p{font-size:16px}.credential{font-size:14px}.symptom-list div{font-size:14px}.qa summary{font-size:15px}.qa p{font-size:14px}
/* Footer patterned on supplied reference: CTA bar + brand/nav/contact + legal line */
.footer-footer{background:#10254a;color:white;padding:0}
.footer-footer .wrap{max-width:1230px}
.footer-cta{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:70px 0 58px;border-bottom:1px solid rgba(255,255,255,.21)}
.footer-small{font-size:12px;letter-spacing:.18em;font-weight:760;color:#8bdddf;margin:0 0 18px}
.footer-cta h2{font-size:clamp(36px,4vw,57px);line-height:1.06;letter-spacing:-.045em;margin:0;font-weight:760}
.footer-pill{flex:none;display:inline-flex;gap:22px;align-items:center;border:1px solid rgba(255,255,255,.48);border-radius:99px;padding:8px 9px 8px 22px;font-size:13px;font-weight:750;white-space:nowrap;transition:background .2s}
.footer-pill:hover{background:rgba(255,255,255,.1)}.footer-pill span{display:grid;place-items:center;background:#80d7d7;color:#10254a;border-radius:50%;height:41px;width:41px;font-size:23px}
.footer-main{display:grid;grid-template-columns:1.1fr .76fr 1fr;gap:96px;padding:52px 0 48px}
.footer-brand img{height:86px;width:76px;object-fit:contain;object-position:left center;background:#fff;border-radius:7px;padding:5px}.footer-brand p{max-width:260px;color:#c7d2e4;line-height:1.72;font-size:13px;margin:17px 0}.footer-brand p strong{color:#fff;font-weight:700}
.footer-nav h3,.footer-contact h3{font-size:12px;letter-spacing:.13em;margin:0 0 27px;color:#fff}.footer-nav a{display:block;color:#c7d2e4;font-size:14px;margin:0 0 15px}.footer-nav a:hover,.footer-contact a:hover{color:#8bdddf}
.footer-contact-item{display:flex;gap:14px;margin-bottom:23px}.footer-contact-item>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#203b5c;color:#8bdddf;flex:none;font-size:19px}.footer-contact-item strong{font-size:13.5px}.footer-contact-item p{color:#c7d2e4;line-height:1.65;margin:7px 0;font-size:13px}.footer-contact-item a{font-size:13px;color:#dce9f1}
.footer-base{border-top:1px solid rgba(255,255,255,.21);padding:22px 0 25px;display:flex;justify-content:space-between;gap:30px;color:#9fb0c7;font-size:11.5px}
@media(max-width:1080px){.nav{gap:12px;font-size:12px}.brand{min-width:196px}.footer-main{gap:55px}}
@media(max-width:800px){.wrap{width:calc(100% - 38px)}.head-inner{height:76px}.hero.hero-cover{height:auto;min-height:630px}.hero-cover .hero-wrap{min-height:630px}.hero-copy-col{width:min(100%,600px);padding:65px 0 96px}.hero-cover h1,.hero-cover h2.slide-title{font-size:clamp(37px,9vw,57px)}.hero-photo img{object-position:63% center}.hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,37,74,.65),rgba(16,37,74,.12))}.hero-lead{font-size:16px}.hero-controls{bottom:19px}.footer-main{grid-template-columns:1fr 1fr;gap:38px}.footer-brand{grid-column:1/-1}.footer-cta{padding:53px 0 42px;flex-direction:column;align-items:start;gap:28px}.footer-cta h2{font-size:38px}}
@media(max-width:540px){.hero.hero-cover{min-height:665px}.hero-cover .hero-wrap{min-height:665px}.hero-photo img{object-position:62% center}.hero-copy-col{padding:54px 0 94px}.hero-cover h1,.hero-cover h2.slide-title{font-size:38px}.hero-lead{font-size:15.5px;line-height:1.67;max-width:430px}.hero-cover .hero-actions{align-items:stretch}.hero-cover .hero-actions a{font-size:12.5px;padding:13px 12px}.hero-address{font-size:12px}.footer-main{grid-template-columns:1fr;gap:26px}.footer-brand{grid-column:auto}.footer-nav{border-top:1px solid rgba(255,255,255,.15);padding-top:25px}.footer-base{flex-direction:column;gap:9px}.footer-cta h2{font-size:34px}.footer-pill{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hero-photo,.hero-copy-item{transition:none;animation:none}}

/* V5: blancos reales del logo y controles editables de imagen de portada. */
.footer-brand img{background:transparent!important;padding:0!important;border-radius:0!important;width:88px!important;height:112px!important;object-position:left center}
.hero.hero-cover{height:var(--rios-hero-height,690px);}
.hero-photo img{object-position:var(--rios-photo-x,center) var(--rios-photo-y,center)}
.hero.hero-cover:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(16,37,74,var(--rios-overlay,.16)) 0%,rgba(16,37,74,calc(var(--rios-overlay,.16) * .58)) 45%,transparent 76%)}
.head-inner .nav ul.menu{display:flex;align-items:center;gap:19px;list-style:none;padding:0;margin:0}
.head-inner .nav ul.menu li{padding:0;margin:0}
.footer-nav ul.menu{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.prose{max-width:840px;margin:0 auto;font-size:17px;line-height:1.8;color:#334965}
.prose h2{font-size:clamp(27px,3vw,38px);line-height:1.25;margin:2.3em 0 .6em;color:var(--navy)}
.prose h3{font-size:clamp(21px,2vw,27px);line-height:1.35;margin:1.8em 0 .5em;color:var(--navy)}
.prose p{margin:0 0 1.35em}
.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.prose figure img{border-radius:10px;max-width:100%;height:auto}
.prose .wp-block-image figcaption{font-size:13px;color:#556781;text-align:center}
.prose ul,.prose ol{padding-left:1.55em;margin-bottom:1.4em}
.prose li{margin:.5em 0}
.prose .wp-block-button__link{background:var(--blue);color:#fff;border-radius:7px;text-decoration:none}
.prose .wp-block-table table{border-collapse:collapse;width:100%}
.prose .wp-block-table td,.prose .wp-block-table th{padding:13px;border:1px solid #dfe7f0}
.prose .alignwide{max-width:1100px;width:min(1100px,calc(100vw - 48px));margin-left:50%;transform:translateX(-50%)}
.inner-hero{padding:94px 0 80px;background:linear-gradient(120deg,#10254a,#1e477e);color:#fff}
.inner-hero .eyebrow{color:#9bdbde}
.inner-hero h1{font-size:clamp(36px,5vw,58px);letter-spacing:-.045em;line-height:1.12;max-width:900px;margin:15px 0 18px}
.inner-hero p{font-size:17px;line-height:1.7;color:#e4ebf5;max-width:830px}
.inner-body{padding:72px 0 92px}
.inner-feature{max-width:1100px;margin:0 auto 48px;width:100%;border-radius:14px;overflow:hidden}
.inner-feature img{display:block;width:100%;height:auto;max-height:470px;object-fit:cover}
.inner-cta{margin:76px auto 0;max-width:1000px;border-radius:13px;padding:31px 36px;background:#edf3fa;display:flex;align-items:center;justify-content:space-between;gap:22px}
.inner-cta h2{font-size:25px;margin:0 0 6px}
.inner-cta p{margin:0;color:#4f6077}
.inner-cta .primary{padding:13px 19px;font-size:14px}
.article-meta{font-size:13px;color:#a7c4db}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.blog-card{border:1px solid #e4eaf2;border-radius:12px;overflow:hidden}
.blog-card img{width:100%;height:210px;object-fit:cover}
.blog-card .body{padding:24px}
.blog-card h2{font-size:21px;line-height:1.3;margin:0 0 10px}
.blog-card p{font-size:14px;line-height:1.7;color:#52637b}
.blog-card a{color:var(--blue)}
@media(max-width:800px){
.hero.hero-cover{height:var(--rios-hero-mobile-height,600px);min-height:480px}
.hero-photo img{object-position:var(--rios-mobile-x,var(--rios-photo-x,center)) var(--rios-mobile-y,var(--rios-photo-y,center))}
.hero.hero-cover:after{background:linear-gradient(90deg,rgba(16,37,74,.74),rgba(16,37,74,.3))}
.blog-grid{grid-template-columns:repeat(2,1fr)}
.inner-cta{flex-direction:column;align-items:flex-start}
}
@media(max-width:550px){.blog-grid{grid-template-columns:1fr}.inner-hero{padding:72px 0 64px}.inner-body{padding:45px 0 70px}.prose{font-size:16px}.footer-brand img{width:73px!important;height:94px!important}}
@media(prefers-reduced-motion:reduce){.hero-photo,.hero-copy-item{animation:none!important;transition:none!important}}

/* V5.2: fotografía opcional editable en la tarjeta principal de colonoscopia.
   La fotografía ocupa su propia área sin superponerse al texto. */
.service.big .service-copy{position:relative;z-index:1;display:flex;flex-direction:column;flex:1}
.service.big.has-photo{padding:0;overflow:hidden;min-height:435px;background:#f2f6fc}
.service.big.has-photo .service-copy{padding:27px 28px 18px;flex:0 0 auto}
.service.big.has-photo h3{margin:0 0 13px;font-size:clamp(25px,2.3vw,30px);max-width:none}
.service.big.has-photo p{max-width:none;line-height:1.55}
.service.big.has-photo .link{padding-top:14px}
.service.big.has-photo .service-photo{display:block;position:relative;flex:1 0 160px;min-height:160px;width:100%;overflow:hidden}
.service.big.has-photo .service-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:800px){.service.big.has-photo{min-height:420px}}
@media(max-width:550px){.service.big.has-photo{min-height:440px}.service.big.has-photo .service-photo{min-height:185px}}

/* V5.3: fotos y listas ilimitadas, editables en Biblioteca y Editor Dr. Ríos. */
.service.has-photo{padding:0;overflow:hidden}.service.has-photo .service-copy{padding:31px;display:flex;flex:1;flex-direction:column}.service.has-photo .service-photo{position:relative;height:185px;overflow:hidden}.service.has-photo .service-photo img{width:100%;height:100%;object-fit:cover;display:block}.service.has-photo.big h3{margin:12px 0 14px}.service.has-photo.big .link{margin-top:auto;padding-top:23px}.service.has-photo.big:after{display:none}
.service.small-has-photo{padding:0;overflow:hidden}.service.small-has-photo img{width:100%;height:130px;object-fit:cover;display:block}.service.small-has-photo .service-copy{padding:16px 23px 22px;display:flex;flex-direction:column;flex:1}.service.small-has-photo h3{margin:0 0 10px}
.edit-credential{display:flex;align-items:flex-start;gap:16px;border-top:1px solid var(--line);padding:16px 0}.edit-credential:before{content:'';flex:none;width:9px;height:9px;background:var(--blue);border-radius:50%;margin-top:8px}.edit-credential strong{font-size:13px;color:var(--navy)}.edit-credential p{font-size:12px!important;margin:5px 0 0!important;line-height:1.55!important}.faq .qa .faq-answer p{margin:12px 25px 5px 0;font-size:13px;line-height:1.75}.faq .qa .faq-answer ul{padding-left:25px}.faq .qa .faq-answer a{color:var(--blue);text-decoration:underline}.review-shell .reviews-slot{min-width:0}
@media(max-width:550px){.service.has-photo .service-photo{height:190px}.service.small-has-photo img{height:180px}}

.mobile-menu .menu{list-style:none;padding:0;margin:0;display:grid;gap:15px}.mobile-menu .sub-menu{list-style:none;padding-left:18px;display:grid;gap:8px;margin-top:9px}
