/* Pie de página compartido y acceso directo a contacto en todas las páginas. */
.site-footer{padding:0;border:0;background:#15343c;color:#f3f7f7}
.footer-layout{display:grid;grid-template-columns:1.05fr 1.08fr 1.06fr 1fr;gap:32px;max-width:1120px;padding-block:84px}
.footer-layout> *{min-width:0}
.footer-services{display:block;position:static;width:auto;padding:0;background:none;box-shadow:none}
.footer-identity{align-self:center}
.footer-identity .brand{display:inline-block}
.footer-identity .brand img{width:245px;max-height:none}
.footer-identity>p{max-width:250px;margin-top:34px;color:#dce8e9;font-size:13px;line-height:1.85}
.footer-layout h2{font-family:var(--sans);font-size:18px;font-weight:600;letter-spacing:0;line-height:1.4;margin-bottom:26px;color:#fff}
.footer-menu{list-style:none;padding:0;margin:0;display:grid;gap:17px}
.footer-menu a{position:relative;display:block;padding-left:19px;font-size:12px;line-height:1.7;color:#eff6f7;white-space:normal;overflow-wrap:anywhere}
.footer-menu a:after{display:none}
.footer-menu a:before{content:'';position:absolute;left:0;top:.5em;border-left:6px solid #1186a3;border-block:5px solid transparent}
.footer-layout a{transition:color .2s ease}
.footer-layout a:hover{color:#a9e1eb}
.footer-contact address{font-style:normal;display:grid;gap:18px}
.footer-contact-row{display:flex;align-items:flex-start;gap:18px;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.footer-contact-row svg{width:23px;height:23px;flex:none;color:#1687a2;margin-top:1px}
.footer-channels{display:flex;gap:10px;flex-wrap:wrap;margin-block:20px}
.footer-channels a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#087a96;color:white}
.footer-channels a:hover{background:#1592ac;color:white}
.footer-channels svg{width:22px;height:22px}
.footer-policies{gap:18px}
.footer-map{height:350px;background:#234650;border-radius:2px;overflow:hidden}
.footer-map iframe{display:block;width:100%;height:100%;border:0;background:#e3edeb}
.footer-map-link{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:12px;color:#c1dbe0;line-height:1.5}
.footer-bottom{background:#08758e;text-align:center;padding:10px 0 12px;color:#fff}
.footer-bottom .container{max-width:1120px}
.footer-bottom p{font-size:12px;line-height:1.8}
.footer-bottom p+p{margin-top:5px;color:#e3f1f4}
.footer-bottom a:hover{text-decoration:underline;text-underline-offset:3px}
.site-footer a:focus-visible{outline:2px solid #a9e1eb;outline-offset:5px;border-radius:2px}
.whatsapp-float{position:fixed;z-index:30;right:max(28px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#20cd65;color:white;box-shadow:0 8px 28px #052b3540;transition:background .2s,transform .2s,box-shadow .2s}
.whatsapp-float>svg{width:36px;height:36px}
.whatsapp-float:hover{background:#13b955;transform:translateY(-3px);box-shadow:0 12px 30px #052b3555}
.whatsapp-float:focus-visible{outline:3px solid white;outline-offset:4px;box-shadow:0 0 0 7px #08758e}
.whatsapp-tooltip{position:absolute;right:calc(100% + 12px);top:50%;transform:translate(5px,-50%);background:#15343c;color:white;white-space:nowrap;padding:9px 13px;border-radius:4px;font-size:12px;line-height:1.4;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s}
.whatsapp-float:focus-visible .whatsapp-tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}
@media(hover:hover){.whatsapp-float:hover .whatsapp-tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}}
@media(max-width:1050px){.footer-layout{grid-template-columns:1fr 1fr;gap:42px 50px;padding-block:64px}.footer-identity{align-self:start}.footer-identity>p{max-width:350px}.footer-map{height:300px}}
@media(max-width:600px){.footer-layout{grid-template-columns:1fr;gap:38px;padding-block:48px}.footer-identity>p{margin-top:23px;max-width:330px}.footer-layout h2{margin-bottom:20px;font-size:18px}.footer-menu{gap:14px}.footer-menu a,.footer-contact-row{font-size:13px}.footer-map{height:310px}.footer-credit{display:block}.footer-bottom{padding:14px 64px 18px 0;text-align:left}.footer-bottom p{font-size:12px}.whatsapp-float{width:54px;height:54px;right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom))}.whatsapp-float>svg{width:32px;height:32px}.whatsapp-tooltip{max-width:calc(100vw - 100px);white-space:normal}}
@media(prefers-reduced-motion:reduce){.whatsapp-float,.whatsapp-tooltip,.footer-layout a{transition:none}.whatsapp-float:hover{transform:none}}
@media print{.site-footer,.whatsapp-float,.reading-progress{display:none!important}}

/* Selector de idioma con banderas. El <select> nativo queda oculto pero accesible para el script. */
.language-menu{position:relative;display:flex;align-items:center}
.site-header .language-control.language-enhanced{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
.language-button{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:6px 10px;border:1px solid #ffffff38;border-radius:4px;background:#ffffff0f;color:#fff;font:inherit;font-size:13px;line-height:1;cursor:pointer;white-space:nowrap;transition:background .2s,border-color .2s}
.language-button:hover,.language-menu.is-open .language-button{background:#ffffff1f;border-color:#ffffff66}
.language-button:focus-visible{outline:2px solid #a9e1eb;outline-offset:2px}
.language-flag{display:inline-block;flex:none;width:22px;height:15px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px #00000026;line-height:0}
.language-flag svg{display:block;width:100%;height:100%}
.language-code{display:none;font-size:12px;letter-spacing:.06em}
.language-chevron{flex:none;width:11px;height:8px;transition:transform .2s}
.language-menu.is-open .language-chevron{transform:rotate(180deg)}
.language-list{position:absolute;z-index:60;top:calc(100% + 8px);right:0;min-width:178px;margin:0;padding:6px;list-style:none;background:#fff;border-radius:6px;box-shadow:0 16px 40px #04253433,0 0 0 1px #0b20271a}
.language-list[hidden]{display:none}
.language-list li{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:4px;color:#17323c;font-size:14px;line-height:1.2;cursor:pointer;outline:none}
.language-list li:hover,.language-list li:focus-visible{background:#eef5f6}
.language-list li[aria-selected="true"]{font-weight:600;background:#e3f0f2}
.language-list li[aria-selected="true"]:after{content:'';margin-left:auto;width:6px;height:11px;border:solid #08758e;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}
@media(max-width:760px){.language-name{display:none}.language-code{display:inline}.language-button{gap:7px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.language-button,.language-chevron{transition:none}}
/* Local privacy choices and optional external map. */
.footer-map iframe[hidden],.footer-map-consent[hidden]{display:none}
.footer-map-consent{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:18px;padding:25px;min-height:250px;height:100%;background:#164554;color:#c6dde5}
.footer-map-consent p{font:400 13px/1.8 var(--sans);margin:0;max-width:260px}
.footer-map-consent button{font:600 12px/1.5 var(--sans);padding:11px 15px;border:1px solid #92b4c0;border-radius:2px;min-height:44px;color:#fff}
.footer-map-consent button:hover{background:#285d70}
.privacy-preferences-row{max-width:1580px;margin:0 auto;padding:10px 6.25vw 24px}
.privacy-preferences-row button{font:400 12px/1.8 var(--sans);color:#c6dde5;border-bottom:1px solid #7494a0;padding-block:5px;min-height:36px}
.privacy-settings-open{overflow:hidden}
.privacy-preferences-dialog{width:min(560px,calc(100% - 32px));padding:30px;border:1px solid #bdd2d9;border-radius:5px;background:#f6f9f8;color:#103e4c;max-height:90svh;overflow:auto}
.privacy-preferences-dialog::backdrop{background:#062532ad;backdrop-filter:blur(5px)}
.privacy-preferences-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:30px}
.privacy-preferences-heading h2{font:400 30px/1.2 var(--serif)}
.privacy-preferences-close{width:42px;height:42px;flex:none;border:1px solid #c5d7dd;border-radius:50%;font-size:27px;line-height:1}
.privacy-preferences-dialog h3{font:600 13px/1.6 var(--sans);margin-bottom:16px}
.privacy-preferences-dialog label{display:flex;align-items:flex-start;gap:13px;font:400 14px/1.8 var(--sans)}
.privacy-preferences-dialog input{width:20px;height:20px;flex:none;margin-top:3px;accent-color:#1a5c70}
.privacy-choice-note{font:400 12px/1.8 var(--sans);color:#577684;margin:20px 0}
.privacy-preferences-actions{display:flex;gap:12px;flex-wrap:wrap}
.privacy-preferences-actions button{min-height:46px;padding:12px 15px;background:#103e4c;border:1px solid #103e4c;color:#fff;font:500 12px/1.5 var(--sans)}
.privacy-preferences-actions button+button{color:#103e4c;background:transparent}
@media(max-width:480px){.privacy-preferences-dialog{padding:24px 20px}.privacy-preferences-heading h2{font-size:27px}.privacy-preferences-actions{flex-direction:column}.privacy-preferences-row{padding-inline:24px}}
/* ---------- Tarea 1.3 · Pie por familias (componente común) ----------
   Marcado en _componentes/pie.html; se inserta con _tools/build-footer.py.
   Fila 1: identidad + servicios por familias. Fila 2: firma, contacto y ubicación. */
.site-footer{background:var(--petroleo)}
/* Los nav del pie no heredan el estilo del menú de la cabecera (flex / oculto en móvil). */
.site-footer nav{display:block;position:static;top:auto;width:auto;max-height:none;padding:0;background:none;box-shadow:none;overflow:visible}
.footer-layout{grid-template-columns:repeat(12,minmax(0,1fr));gap:56px 32px;max-width:1240px;padding-block:88px 64px}
.footer-identity{grid-column:1/span 3;align-self:start}
.footer-identity .brand img{width:210px}
.footer-identity>p{max-width:260px;margin-top:26px;font-size:var(--fs-note);line-height:1.7;color:#d3e3e6}
.footer-identity .footer-channels{margin-block:26px 0}
.footer-services{grid-column:4/-1}
.footer-firm{grid-column:1/span 3}
.footer-contact{grid-column:4/span 4}
.footer-location{grid-column:8/-1}
.site-footer .footer-firm,.site-footer .footer-contact,.site-footer .footer-location{padding-top:44px;border-top:1px solid #ffffff1f}
.footer-layout h2{margin-bottom:24px;font-family:var(--sans);font-size:var(--fs-label);font-weight:600;letter-spacing:.16em;text-transform:uppercase;line-height:1.5;color:var(--teal-pale)}
.footer-layout h2.footer-subheading{margin-top:36px}
.footer-families{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 28px}
.footer-family h3{margin:0 0 16px;font-family:var(--serif);font-size:21px;font-weight:400;letter-spacing:-.01em;line-height:1.2;color:var(--white)}
.footer-menu{gap:11px}
.footer-menu a{padding-left:16px;font-size:var(--fs-note);line-height:1.5;color:#e4eff1}
.footer-menu a:before{top:.55em;border-left-width:5px;border-block-width:4px;border-left-color:var(--teal-pale);opacity:.7}
.footer-menu a:hover{color:var(--white)}
.footer-menu a:hover:before{opacity:1}
.footer-sectors{margin-top:14px}
.footer-sectors>summary{display:inline-flex;align-items:center;gap:8px;min-height:36px;cursor:pointer;font-size:var(--fs-note);color:var(--teal-pale);list-style:none}
.footer-sectors>summary::-webkit-details-marker{display:none}
.footer-sectors>summary:after{content:'+';font-size:18px;line-height:1;transition:transform var(--dur)}
.footer-sectors[open]>summary:after{transform:rotate(45deg)}
.footer-sectors>.footer-menu{margin-top:10px;padding-left:12px;border-left:1px solid #ffffff26}
.footer-sectors>summary:focus-visible{outline:2px solid #a9e1eb;outline-offset:4px}
.footer-contact address{gap:14px}
.footer-contact-row{gap:14px;font-size:var(--fs-note);line-height:1.6}
.footer-contact-row svg{width:20px;height:20px;color:var(--teal-pale)}
.footer-map{height:230px;border-radius:var(--radius)}
.footer-map-link{font-size:var(--fs-note)}
.footer-bottom{background:#0a3341}
.footer-bottom p{font-size:13px}
@media(max-width:1100px){
.footer-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 40px;padding-block:72px 56px}
.footer-identity,.footer-services,.footer-location{grid-column:1/-1}
.footer-firm{grid-column:1}
.footer-contact{grid-column:2}
.footer-identity{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px}
.footer-identity>p{margin-top:0;max-width:340px}
.footer-identity .footer-channels{margin:0}
.site-footer .footer-location{padding-top:0;border-top:0}
}
@media(max-width:760px){.footer-families{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
.footer-layout{grid-template-columns:1fr;gap:40px;padding-block:56px 40px}
.footer-firm,.footer-contact{grid-column:1/-1}
.footer-identity{display:block}
.footer-identity>p{margin-top:20px}
.footer-identity .footer-channels{margin-top:22px}
.footer-families{grid-template-columns:1fr;gap:28px}
.site-footer .footer-location{padding-top:40px;border-top:1px solid #ffffff1f}
.footer-bottom p{font-size:13px}
}

/* Point 18: WhatsApp capsule inspired by the CumpliDatos reference. */
.whatsapp-float{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:auto;height:48px;padding:0 22px 0 18px;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));border-radius:999px;background:#25d366;color:#fff;box-shadow:0 16px 36px -14px #040f1f99;transition:transform .25s cubic-bezier(.2,.7,.2,1),background .25s ease}
.whatsapp-float>svg{width:24px;height:24px;flex:none}
.whatsapp-caption{font:600 16px/1.2 var(--sans);white-space:nowrap}
.whatsapp-float:hover{background:#20bd5a;transform:translateY(-3px);box-shadow:0 16px 36px -14px #040f1f99}
@media(max-width:600px){.whatsapp-float{height:48px;width:auto;max-width:calc(100vw - 32px);padding:0 18px 0 15px;right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));gap:9px}.whatsapp-float>svg{width:24px;height:24px}.whatsapp-caption{font-size:14px}}
@media(prefers-reduced-motion:reduce){.whatsapp-float{transition:none}.whatsapp-float:hover{transform:none}}
@media print{.whatsapp-float{display:none!important}}

/* Quiet, refined map link without an external-link arrow. */
.site-footer .footer-map-link{display:inline-flex;justify-content:flex-start;align-items:center;min-height:44px;margin-top:12px;padding-block:8px;color:#c1dbe0;letter-spacing:.02em;text-decoration:none}
.site-footer .footer-map-link>span{position:relative;display:inline-block;padding-bottom:3px}
.site-footer .footer-map-link>span:after{content:'';position:absolute;left:0;bottom:0;width:100%;height:1px;background:currentColor;transform:scaleX(.25);transform-origin:left;opacity:.45;transition:transform .3s ease,opacity .3s ease}
.site-footer .footer-map-link:is(:hover,:focus-visible){color:#fff}
.site-footer .footer-map-link:is(:hover,:focus-visible)>span:after{transform:scaleX(1);opacity:.85}
.site-footer .footer-map-link:focus-visible{outline:2px solid #9fcac8;outline-offset:5px;border-radius:3px}
@media(prefers-reduced-motion:reduce){.site-footer .footer-map-link>span:after{transition:none}}

/* Higher contrast interactive footer links, all languages and all pages. */
.site-footer a:not(.brand):not(.footer-channels a),
.site-footer .footer-sectors>summary {
  transition: color .22s ease, text-shadow .22s ease, border-color .22s ease;
}
.site-footer a:not(.brand):not(.footer-channels a):is(:hover,:focus-visible),
.site-footer .footer-sectors>summary:is(:hover,:focus-visible) {
  color:#fff !important;
  text-shadow:0 0 9px rgba(196,249,255,.58),0 0 20px rgba(129,223,238,.32);
}
.site-footer .footer-menu a:is(:hover,:focus-visible)::before {
  border-left-color:#e8fcff;
  filter:drop-shadow(0 0 5px rgba(188,245,255,.9));
  opacity:1;
}
.site-footer .footer-contact-row:is(:hover,:focus-within) svg {color:#f1feff;filter:drop-shadow(0 0 4px #b7edf5)}
@media(prefers-reduced-motion:reduce){.site-footer a,.site-footer .footer-sectors>summary{transition:none}}

/* Preserve an open, editorial services heading across languages. */
#servicios.services-section>.container>.section-heading{border-bottom:none!important;}
