/* ==========================================================
   OPORTUNA · encabezado y pie de página (tema hijo)
   Todo va con prefijo .opn- para no chocar con Blocksy.
   ========================================================== */

/* ---------- ENCABEZADO FIJO (queda pegado arriba al hacer scroll) ---------- */
/* el encabezado va fijo (position:fixed) y #header solo reserva su espacio: así no depende de ningún
   contenedor del tema (los overflow de Blocksy rompen el sticky en algunos celulares) */
body.opn-on #header{position:relative;z-index:999;height:93px}
@media (min-width:1101px) and (max-width:1280px){body.opn-on #header{height:83px}}
@media (max-width:1100px){body.opn-on #header{height:63px}}
body.opn-on .opn-hdr{position:fixed;top:0;left:0;right:0;z-index:999}
body.opn-on.admin-bar .opn-hdr{top:32px}
@media (max-width:782px){body.opn-on.admin-bar .opn-hdr{top:46px}}
@media (max-width:600px){body.opn-on.admin-bar .opn-hdr{top:0}}
/* páginas con el inicio propio: sin relleno blanco arriba/abajo */
body.opn-flush [data-vertical-spacing*=top]{padding-top:0}
body.opn-flush [data-vertical-spacing*=bottom]{padding-bottom:0}

html.opn-menu-lock{overflow:hidden}

/* ---------- ENCABEZADO ---------- */
.opn-hdr{--opn-navy:#1d2f63;--opn-blue:#33529a;--opn-orange:#f6664b;--opn-pink:#f7578e;--opn-lav:#8e93b6;--opn-green:#1a783c;--opn-sky:#e9edf8;--opn-ink:#1b2347;
 position:relative;width:100%;box-sizing:border-box;background:#fff;border-bottom:1px solid #e4e8f4;
 font-family:Roboto,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;font-size:16px;color:var(--opn-ink);line-height:1.35;text-align:left}
.opn-hdr *,.opn-hdr *::before,.opn-hdr *::after{box-sizing:border-box}
.opn-hdr a{text-decoration:none;color:inherit}
.opn-hdr ul{list-style:none;margin:0;padding:0}
.opn-hdr li{margin:0;padding:0}
.opn-hdr h3,.opn-hdr h4,.opn-hdr p{margin:0;padding:0;letter-spacing:normal;text-transform:none}
.opn-hdr button{-webkit-appearance:none;appearance:none;margin:0;font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none;min-height:0;line-height:inherit}
.opn-hdr svg{display:block}

.opn-bar{display:flex;align-items:center;gap:22px;max-width:1360px;margin:0 auto;padding:10px 28px}
.opn-logo{flex:0 0 auto;display:block}
.opn-logo img{display:block;height:72px;width:auto;max-width:none}
.opn-sep{flex:0 0 1px;align-self:stretch;margin:6px 0;background:#d5dbee}
.opn-nav{flex:1 1 auto;min-width:0}
.opn-menu{display:flex;justify-content:center;align-items:center;gap:4px}
.opn-menu>li{position:static}
.opn-menu>li>a,.opn-menu>li>button{position:relative;display:inline-flex;align-items:center;gap:0;font-size:16px;font-weight:500;line-height:1.2;white-space:nowrap;color:var(--opn-navy);background:none;border:0;border-radius:999px;padding:10px 14px;cursor:pointer;transition:background .15s,color .15s}
.opn-hdr .opn-ico{display:none;width:24px;height:24px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.opn-chev{display:inline-block;width:6px;height:6px;margin:-3px 0 0 9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.opn-menu a[aria-current="page"]{color:var(--opn-blue);font-weight:700}
.opn-menu>li>a[aria-current="page"]::after{content:"";position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;background:var(--opn-blue)}
.opn-has.is-open>button{background:var(--opn-orange);color:#fff}
.opn-has.is-open>button .opn-chev{transform:rotate(-135deg);margin-top:3px}
@media (hover:hover) and (min-width:1101px){
 .opn-menu>li>a:hover,.opn-menu>li>button:hover{background:var(--opn-orange);color:#fff}
 .opn-menu>li>a[aria-current="page"]:hover::after{background:transparent}
}
.opn-mcta{display:none}

.opn-cta{flex:0 0 auto;display:flex;align-items:center}
.opn-cta .opn-btn{padding:13px 28px;font-size:16px;white-space:nowrap}
.opn-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:15px;font-weight:600;line-height:1.2;text-align:center;color:#fff;border:2px solid transparent;border-radius:999px;padding:10px 22px;cursor:pointer;transition:transform .15s,box-shadow .15s,filter .15s}
.opn-hdr a.opn-btn,.opn-hdr a.opn-btn:hover,.opn-hdr a.opn-btn:focus{color:#fff}
.opn-btn:hover{}
.opn-btn--or{background:#f6664b}
.opn-btn--bl{background:var(--opn-blue)}
.opn-btn--gr{background:#1a783c}
.opn-btn--nv{background:var(--opn-navy)}
.opn-btn svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.opn-hdr :focus-visible{outline:3px solid #2d8cff;outline-offset:2px}

.opn-burger{display:none;flex:0 0 auto;width:46px;height:46px;border:0;background:none;cursor:pointer;padding:0;position:relative;color:var(--opn-blue)}
.opn-burger span,.opn-burger span::before,.opn-burger span::after{content:"";position:absolute;left:8px;width:32px;height:3px;background:currentColor;border-radius:3px;transition:transform .2s,opacity .2s,background .2s}
.opn-burger span{top:22px}
.opn-burger span::before{left:0;top:-9px}
.opn-burger span::after{left:0;top:9px}
.opn-burger[aria-expanded="true"] span{background:transparent}
.opn-burger[aria-expanded="true"] span::before{transform:translateY(9px) rotate(45deg)}
.opn-burger[aria-expanded="true"] span::after{transform:translateY(-9px) rotate(-45deg)}

/* carrito del encabezado: círculo azul con el número de servicios */
.opn-hdr a.opn-cart{position:relative;flex:0 0 auto;display:grid;place-items:center;width:52px;height:52px;margin-left:-6px;border-radius:50%;background:var(--opn-blue);color:#fff;transition:background-color .15s}
.opn-hdr a.opn-cart:hover,.opn-hdr a.opn-cart:focus{background:#2a4585;color:#fff}
.opn-cart svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.opn-cart-n{position:absolute;top:-5px;right:-5px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--opn-orange);color:#fff;font-size:12.5px;font-weight:700;line-height:22px;text-align:center}

/* paneles (aparecen al pasar el mouse) */
.opn-panel{display:none;position:absolute;left:50%;top:100%;transform:translateX(-50%);width:min(1000px,calc(100vw - 32px));max-height:calc(100vh - 150px);background:#fff;border:2px solid var(--opn-navy);border-radius:18px;overflow-x:hidden;overflow-y:auto;text-align:center;z-index:5}
.opn-has.is-open>.opn-panel{display:block;animation:opnIn .16s ease-out}
.opn-has.is-open::after{content:"";position:absolute;left:18%;right:18%;top:calc(100% - 46px);height:46px}
@keyframes opnIn{from{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%,0)}}
.opn-top{padding:18px 22px;background:var(--opn-sky);color:var(--opn-navy)}
.opn-top--nv{background:var(--opn-navy);color:#fff}
.opn-hdr .opn-top h3{font-size:22px;font-weight:700;line-height:1.2;color:inherit;margin:0 0 4px}
.opn-hdr .opn-top p{font-size:15.5px;line-height:1.4;color:inherit}
.opn-hdr .opn-top strong{color:var(--opn-orange);font-size:19px}
.opn-top--nv p{opacity:.92}
.opn-cols{display:grid;gap:14px;padding:16px}
.opn-cols--3{grid-template-columns:repeat(3,1fr)}
.opn-cols--2{grid-template-columns:repeat(2,1fr)}
.opn-col{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 16px 20px;border-radius:14px;background:#fff;border:1.5px solid #d5dbee;border-top:5px solid #d5dbee;cursor:pointer;transition:border-color .15s,background-color .15s}
.opn-col:hover,.opn-col:focus-within{background:var(--opn-sky);border-color:var(--opn-blue)}
.opn-col.is-sel{background:#fff4f1;border-color:var(--opn-orange)}
.opn-hdr .opn-col h4{font-size:19px;font-weight:700;line-height:1.2;color:var(--opn-navy)}
.opn-hdr .opn-col h4 small{font-weight:500;font-size:14px}
.opn-hdr .opn-col p{font-size:15px;line-height:1.4;color:#363d63}
.opn-hdr .opn-col ul{text-align:left;font-size:15px;color:#363d63;list-style:disc;padding-left:20px}
.opn-hdr .opn-col li{margin:2px 0}
.opn-hdr .opn-col ul.opn-ul--s{list-style:none;padding:0}
.opn-hdr .opn-col ul.opn-ul--s li{margin:6px 0}
.opn-hdr .opn-col ul.opn-ul--s strong{color:var(--opn-navy)}
.opn-col ul.opn-ul--s li small{display:block;font-size:13.5px;color:#4a5175}
.opn-col .opn-btn{margin-top:auto}

@media (min-width:1281px){.opn-menu{gap:12px}}

/* escritorio justo (1101–1280px) */
@media (min-width:1101px) and (max-width:1280px){
 .opn-bar{gap:14px;padding:10px 18px}
 .opn-logo img{height:62px}
 .opn-menu>li>a,.opn-menu>li>button{font-size:15px;padding:9px 10px}
 .opn-menu>li>a[aria-current="page"]::after{left:10px;right:10px}
 .opn-cta .opn-btn{font-size:14.5px;padding:11px 20px}
 .opn-hdr a.opn-cart{width:46px;height:46px}
}

/* ---------- MÓVIL / TABLET (hasta 1100px) ---------- */
@media (max-width:1100px){
 .opn-bar{flex-wrap:wrap;gap:0;padding:7px 18px;justify-content:space-between}
 .opn-logo img{height:48px}
 .opn-sep,.opn-cta{display:none}
 .opn-hdr a.opn-cart{margin:0 6px 0 auto;width:44px;height:44px}
 .opn-cart svg{width:23px;height:23px}
 .opn-cart-n{top:-4px;right:-5px;min-width:20px;height:20px;line-height:20px;font-size:11.5px;padding:0 5px}
 .opn-burger{display:block}
 .opn-nav{display:none}
 /* menú abierto: cubre toda la pantalla bajo el encabezado */
 .opn-nav.is-open{display:block;position:absolute;left:0;right:0;top:100%;z-index:1000;height:calc(100vh - var(--opn-hh,62px));height:calc(100dvh - var(--opn-hh,62px));padding:6px 18px 32px;background:#fff;overflow-y:auto;overscroll-behavior:contain}
 .opn-panel{max-height:none;overflow:visible}
 .opn-menu{flex-direction:column;align-items:stretch;gap:0}
 .opn-menu>li>a,.opn-menu>li>button{display:flex;width:100%;align-items:center;gap:18px;border-radius:0;padding:17px 6px;font-size:18px;text-align:left;background:none}
 .opn-menu>li>a>span,.opn-menu>li>button>span{flex:1 1 auto}
 .opn-hdr .opn-ico{display:block;width:26px;height:26px}
 .opn-chev{margin:0 6px 0 0;transform:rotate(-45deg);width:8px;height:8px}
 .opn-has.is-open>button{background:none;color:var(--opn-orange)}
 .opn-has.is-open>button .opn-chev{transform:rotate(45deg);margin-top:-3px}
 .opn-menu>li>a[aria-current="page"]{color:var(--opn-orange);font-weight:700;box-shadow:none}
 .opn-menu>li>a[aria-current="page"]::after{display:none}
 .opn-panel{position:static;transform:none;width:auto;box-shadow:none;border-radius:14px;margin:2px 0 14px;animation:none}
 .opn-has.is-open>.opn-panel{animation:none}
 .opn-has.is-open::after{display:none}
 .opn-cols--3,.opn-cols--2{grid-template-columns:1fr}
 .opn-hdr .opn-top h3{font-size:19px}
 .opn-mcta{display:flex;flex-direction:column;gap:12px;padding:18px 4px 0}
 .opn-hdr.is-menu{border-bottom-color:transparent}
 .opn-mcta .opn-btn{font-size:17px;padding:14px 22px}
}
/* redes sociales dentro del menú móvil */
.opn-msoc{margin-top:8px;padding-top:20px;border-top:1px solid #e4e8f4;text-align:center}
.opn-hdr .opn-msoc-t{margin:0 0 12px;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--opn-navy)}
.opn-soc{display:flex;justify-content:center;gap:14px}
.opn-hdr .opn-soc a,.opn-hdr .opn-soc a:visited{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#f6664b;color:#fff;transition:background-color .15s}
.opn-hdr .opn-soc a:hover,.opn-hdr .opn-soc a:focus{background:#f97b63;color:#fff}
.opn-soc svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.opn-has.is-open>.opn-panel{animation:none}.opn-btn,.opn-menu a,.opn-menu button{transition:none}}

/* ---------- PIE DE PÁGINA (azul de marca, letras blancas) ---------- */
.opn-ftr{--opn-blue:#33529a;--opn-orange:#f6664b;--opn-pink:#f7578e;--opn-lav:#8e93b6;box-sizing:border-box;width:100%;background:#33529a;color:#fff;font-family:Roboto,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;font-size:15px;line-height:1.5;padding:52px 20px 30px;border-top:4px solid var(--opn-orange);text-align:left}
.opn-ftr *,.opn-ftr *::before,.opn-ftr *::after{box-sizing:border-box}
.opn-ftr-in{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.25fr 1fr 1.2fr 1.3fr;gap:36px}
.opn-ftr details{margin:0;padding:0;border:0;background:none}
.opn-ftr summary{display:block;list-style:none;margin:0 0 14px;padding:0;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;cursor:default}
.opn-ftr summary::-webkit-details-marker{display:none}
.opn-ftr summary::marker{content:""}
.opn-ftr ul{list-style:none;margin:0;padding:0}
.opn-ftr li{margin:7px 0;padding:0}
.opn-ftr a{color:#fff;text-decoration:none}
.opn-ftr a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.opn-ftr img{display:block;height:58px;width:auto;max-width:100%;margin-bottom:14px}
.opn-ftr small{display:block;color:#dfe5f6;font-size:13.5px}
.opn-ftr-soc{display:flex;gap:10px;margin:2px 0 14px}
.opn-ftr .opn-ftr-soc a,.opn-ftr .opn-ftr-soc a:visited{display:inline-flex;width:40px;height:40px;border-radius:50%;background:#fff;color:#f6664b!important;align-items:center;justify-content:center;transition:background-color .15s}
.opn-ftr .opn-ftr-soc a:hover,.opn-ftr .opn-ftr-soc a:focus{background:#ffe6e0;color:#f6664b!important;text-decoration:none}
.opn-ftr .opn-ftr-soc a svg,.opn-ftr .opn-ftr-soc a svg *{stroke:#f6664b;color:#f6664b}
.opn-ftr-soc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.opn-ftr p{margin:5px 0;color:#fff}
.opn-ftr .opn-mob{display:none}
@media (max-width:900px) and (min-width:761px){.opn-ftr-in{grid-template-columns:1fr 1fr}}
/* móvil: marca centrada + secciones desplegables */
@media (max-width:760px){
 .opn-ftr{padding:40px 18px 26px;text-align:center}
 .opn-ftr .opn-dsk{display:none}
 .opn-ftr .opn-mob{display:block}
 .opn-ftr-in{grid-template-columns:1fr;gap:12px}
 .opn-fbrand{margin-bottom:10px}
 .opn-ftr .opn-fbrand img{height:54px;margin:0 auto 16px}
 .opn-fcol{border:1px solid rgba(255,255,255,.28);border-radius:14px;padding:0 18px;text-align:left}
 .opn-ftr summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 0;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .opn-ftr summary::after{content:"";flex:0 0 auto;width:9px;height:9px;border-right:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:rotate(45deg);margin:-4px 4px 0 0;transition:transform .2s}
 .opn-fcol[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
 .opn-fcol[open]>summary{border-bottom:1px solid rgba(255,255,255,.22)}
 .opn-ftr .opn-fcol ul{padding:6px 0 12px}
 .opn-ftr .opn-fcol li{margin:0}
 .opn-ftr .opn-fcol li a{display:block;padding:9px 0}
 .opn-fcol--ct .opn-allowcopy{padding:12px 0 14px}
 .opn-fcol--ct p{margin:0 0 10px}
 .opn-fcopy{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.25)}
 .opn-ftr .opn-fcopy small{font-size:13px;color:#dfe5f6}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){.opn-ftr summary::after{transition:none}}

/* botones: color plano, sin brillos ni sombras */
.opn-btn--or:hover{background:#e5573b}
.opn-btn--bl:hover{background:#2a4585}
.opn-btn--nv:hover{background:#15244f}
.opn-btn--gr:hover{background:#156530}

/* ---------- BOTÓN FLOTANTE DE WHATSAPP ---------- */
.opn-wafab{position:fixed;right:16px;bottom:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:990;display:grid;place-items:center;width:58px;height:58px;padding:0;background:#25a244;border:0;border-radius:50%;color:#fff;text-decoration:none;box-sizing:border-box;transition:background-color .15s}
.opn-wafab:hover,.opn-wafab:focus{background:#1a783c;color:#fff;text-decoration:none}
.opn-wafab svg{display:block;width:32px;height:32px;fill:currentColor}
.opn-wafab:focus-visible{outline:3px solid #33529a;outline-offset:2px}
@media (max-width:480px){.opn-wafab{right:12px;bottom:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:54px;height:54px}.opn-wafab svg{width:30px;height:30px}}
/* un solo botón: se oculta el de Joinchat mientras éste esté activo */
body.opn-wafab-on .joinchat{display:none!important}
/* que no tape el pie ni la barra de la tienda */
body.opn-wafab-on .opn-ftr{padding-bottom:84px}
@media (max-width:760px){body.opn-wafab-on .opn-ftr{padding-bottom:84px}}

/* aviso de cookies (solo inicio) */
.opn-ck{position:fixed;left:0;right:0;bottom:0;z-index:995;display:flex;align-items:center;justify-content:center;gap:20px;padding:14px 92px 14px 24px;background:#fff;border-top:2px solid var(--opn-navy);color:#2c3357}
.opn-ck[hidden]{display:none}
.opn-ck p{margin:0;max-width:62em;font-size:15px;line-height:1.45;color:#2c3357}
.opn-ck a{color:var(--opn-blue);text-decoration:underline;text-underline-offset:2px}
.opn-ck .opn-btn{flex:0 0 auto;padding:10px 26px}
.opn-wafab{transition:bottom .15s}
html.opn-ck-on .opn-wafab{bottom:calc(16px + var(--opn-ckh,0px) + env(safe-area-inset-bottom,0px))}
@media (max-width:760px){
 .opn-ck{flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px 16px}
 .opn-ck .opn-btn{width:100%}
 html.opn-ck-on .opn-wafab{bottom:calc(12px + var(--opn-ckh,0px) + env(safe-area-inset-bottom,0px))}
}
