@font-face{font-family:"Red Hat Text";font-style:normal;font-weight:300 700;font-display:swap;src:url("fonts/red-hat-text.woff2") format("woff2")}
@font-face{font-family:"Red Hat Display";font-style:normal;font-weight:300 900;font-display:swap;src:url("fonts/red-hat-display.woff2") format("woff2")}
body.prevision-blocks{--p-ink:#17333e;--p-muted:#4a626b;--p-accent:#087c98;--p-brand-blue:#0096C4;--p-brand-grey:#B9B9B9;--p-line:#dbe7eb;--p-soft:#eaf6fa;--p-admin:0px;margin:0;background:#fff;color:var(--p-ink);font-family:"Red Hat Text",Arial,sans-serif}
body.prevision-blocks.admin-bar{--p-admin:32px}
body.prevision-blocks .wp-site-blocks{padding:0}
.prevision-blocks .wp-site-blocks>*{margin-block-start:0}
.prevision-blocks .p-container{box-sizing:border-box;width:100%;max-width:1264px;padding-inline:var(--p-gutter,32px);margin-inline:auto}
.prevision-blocks .p-header,.prevision-blocks .p-drawer,.prevision-blocks .p-page-hero{box-sizing:border-box;font-family:"Red Hat Text",Arial,sans-serif}
.prevision-blocks .p-header *,.prevision-blocks .p-drawer *{box-sizing:border-box}
.p-header a,.p-drawer a{text-decoration:none}
.p-header button,.p-drawer button{font:inherit}
.p-header a,.p-header button,.p-header summary,.p-drawer a,.p-drawer button{touch-action:manipulation}
.p-header :focus-visible,.p-drawer :focus-visible,.p-page-hero a:focus-visible{outline:3px solid #087c98;outline-offset:4px}
/* Header: contact centred above navigation; search left and appointment right. */
body.prevision-blocks {
  --p-gutter: clamp(10px, 3vw, 32px);
  --p-header-brand-height: 96px;
  --p-header-nav-height: 60px;
}
.p-header-space {
  position: relative;
  width: 100%;
  height: calc(var(--p-header-brand-height) + var(--p-header-nav-height) + 2px);
}
.p-header-sentinel { position: absolute; top: calc(var(--p-header-brand-height) - 1px); left: 0; width: 1px; height: 1px; pointer-events: none; }
.p-header { position: fixed; inset: var(--p-admin) 0 auto; width: 100%; z-index: 40; background: #fff; color: var(--p-ink); border-bottom: 1px solid var(--p-line); }
.p-brand-row {
  height: var(--p-header-brand-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(4px, 2vw, 20px);
  padding-block: 6px;
}
.p-brand-row > * { min-width: 0; }
.p-logo { display: block; justify-self: start; line-height: 0; }
.p-logo img { display: block; width: clamp(84px, 28vw, 210px); max-width: 100%; height: auto; }
.p-brand-socials { display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: end; gap: 2px; }
.p-social-set,.p-language-set { display: flex; align-items: center; justify-content: center; gap: 2px; }
.p-icon-button,.p-header .p-icon-button,.p-drawer .p-icon-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 7px; background: transparent; color: inherit; padding: 0; cursor: pointer; line-height: 1; box-shadow: none; text-decoration: none; }
.p-brand-socials .p-icon-button { width: 36px; height: 32px; flex-basis: 36px; }
.p-icon-button svg { width: 22px; height: 22px; display: block; stroke-width: 1.7; }
.p-header .p-social-set .p-icon-button { color: var(--p-ink); }
.p-icon-button:hover,.p-header .p-social-set .p-icon-button:hover { color: var(--p-accent); background: var(--p-soft); }
.p-header .p-language-current,.p-drawer .p-language-current { background: var(--p-soft); cursor: default; }
.p-flag { display: block; width: 24px; height: 17px; overflow: hidden; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgb(23 51 62 / .1); }
.p-flag img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.p-flag-mixed { display: grid; grid-template-columns: 1fr 1fr; }
.p-flag-mixed img { width: 12px; object-fit: cover; }
.p-contact { display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: stretch; min-width: 0; font-size: 13px; line-height: 1.35; text-align: center; }
.p-contact a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; max-width: 100%; color: var(--p-accent); font-weight: 500; }
.p-phone-row { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; white-space: nowrap; }
.p-phone-symbol { display: inline-flex; align-items: center; flex-shrink: 0; }
.p-contact .p-phone-whatsapp { width: 24px; min-width: 24px; min-height: 24px; flex: 0 0 24px; padding: 0; border-radius: 4px; color: #128c7e; }
.p-contact .p-phone-whatsapp:hover { background: #eaf6fa; color: #0c6f60; }
.p-contact .p-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-contact .p-location { white-space: normal; }
.p-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-contact svg { width: 17px; height: 17px; flex: 0 0 17px; }
.p-navigation-band { border-top: 1px solid #edf2f4; background: #fff; }
.p-nav-row {
  --p-actions-width: clamp(88px, 26vw, 102px);
  --p-nav-gap: clamp(6px, 1.5vw, 20px);
  position: relative;
  height: var(--p-header-nav-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--p-nav-gap);
  padding-block: 4px;
}
.p-nav-start { display: flex; align-items: center; grid-column: 1; grid-row: 1; justify-self: start; width: var(--p-actions-width); min-width: 0; }
/* Measurable while hidden, entirely to the left so it cannot widen the page. */
.p-desktop-nav { position: absolute; right: 100%; visibility: hidden; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 28px); width: max-content; font-size: 15px; font-weight: 500; }
.p-header[data-nav-mode="full"] .p-desktop-nav { position: static; grid-column: 2; grid-row: 1; visibility: visible; }
.p-desktop-nav > a,.p-specialties > summary,.p-specialties-link { display: flex; align-items: center; min-height: 44px; color: inherit; white-space: nowrap; }
.p-header .p-desktop-nav > a { color: inherit; }
.p-desktop-nav > a:hover,.p-specialties-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.p-specialties { position: relative; }
.p-specialties-group { display: flex; align-items: center; }
.p-header .p-specialties-link { color: inherit; padding-right: 2px; }
.p-specialties > summary { list-style: none; justify-content: center; width: 32px; cursor: pointer; border-radius: 6px; }
.p-specialties > summary:hover { background: var(--p-soft); color: var(--p-accent); }
.p-specialties > summary::-webkit-details-marker { display: none; }
.p-specialties > summary svg { width: 16px; height: 16px; }
.p-specialties[open] > summary svg { transform: rotate(180deg); }
.p-specialties-list { position: absolute; z-index: 50; top: calc(100% + 4px); right: -8px; width: 265px; display: flex; flex-direction: column; margin: 0; padding: 10px; list-style: none; background: #fff; color: var(--p-ink); box-shadow: 0 10px 35px rgb(23 51 62 / .12); border: 1px solid var(--p-line); border-radius: 10px; }
.p-about-group .p-specialties-list { left: 0; right: auto; }
.p-specialties-list li { margin: 0; padding: 0; list-style: none; }
.p-specialties-list a { display: block; padding: 12px 10px; color: inherit; border-radius: 4px; line-height: 1.3; }
.p-specialties-list a:hover { background: var(--p-soft); }
.p-specialties-overview { border-bottom: 1px solid var(--p-line); font-weight: 600; }
.p-header .p-menu-trigger { display: inline-flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; color: var(--p-ink); background: transparent; border: 0; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.p-menu-trigger svg { width: 24px; height: 24px; flex-shrink: 0; }
.p-header .p-menu-trigger:hover { background: var(--p-soft); }
.p-header[data-nav-mode="full"] .p-menu-trigger { display: none; }
.p-nav-actions { display: flex; align-items: center; grid-column: 3; grid-row: 1; justify-self: end; width: var(--p-actions-width); min-width: 0; }
.p-header .p-search-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 36px; padding: 4px 8px; border: 1px solid var(--p-line); border-radius: 7px; color: var(--p-ink); background: var(--p-soft); font-size: 12px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.p-search-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.p-header .p-search-button:hover { background: #dceef5; }
.p-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding: 0 17px; background: var(--p-ink); color: #fff !important; border-radius: 5px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.p-cta:hover { background: #087c98; color: #fff; }
.p-cta svg { width: 18px; height: 18px; }
.p-header .p-nav-actions .p-cta { width: 100%; min-height: 36px; padding: 4px 8px; border-radius: 7px; background: var(--p-accent); font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
.p-header .p-nav-actions .p-cta:hover { background: var(--p-ink); }
.p-header.is-compact { box-shadow: 0 3px 18px rgb(23 51 62 / .1); }
.p-header.is-compact .p-brand-row { display: none; }
/* Sticky instead of fixed (24-11-2026, Claude Code, asked by Alipio). The whole 158 px
   header used to stay fixed until the sentinel made it compact at ~96 px of scroll, so
   during that first stretch it covered the top of the next section (it sliced the home
   hero's photo) and then the page jumped. Now the brand row scrolls away with the page
   and only the navigation row sticks: nothing is covered and nothing jumps. The brand
   row stays in the box (it is above the viewport by then), so is-compact only adds the
   shadow and the nav logo; shell.js sets it from the brand row's position, because the
   sentinel now travels with the header. :has() reaches the template-part wrapper; browsers without
   it keep the fixed header above. */
@supports selector(:has(*)) {
  .wp-block-template-part:has(> [data-prevision-header]) {
    position: sticky;
    /* 1px more: the brand row's bottom border, so no hairline shows above the nav row */
    top: calc(var(--p-admin, 0px) - var(--p-header-brand-height) - 1px);
    z-index: 40;
  }
  .wp-block-template-part:has(> [data-prevision-header]) > .p-header-space { height: 0; }
  .wp-block-template-part:has(> [data-prevision-header]) > .p-header { position: relative; inset: auto; }
  .wp-block-template-part:has(> [data-prevision-header]) > .p-header.is-compact .p-brand-row { display: grid; }
}
.p-skip { position: absolute; left: 16px; top: 0; transform: translateY(-160%); padding: 12px 16px; background: var(--p-ink); color: #fff; z-index: 80; }
.p-skip:focus { transform: translateY(0); }
@media (max-width: 1180px) { .p-contact .p-email { display: none; } }
@media (max-width: 1000px) {
  .p-desktop-nav { font-size: 14px; gap: 14px; }
  .p-contact { font-size: 12px; }
  .p-address-prefix,.p-address-postcode { display: none; }
}
@media (max-width: 700px) { body.prevision-blocks { --p-header-brand-height: 84px; } }
@media (max-width: 600px) {
  .p-brand-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
  .p-phone-row { gap: 3px; }
  .p-brand-socials .p-icon-button { width: 28px; height: 32px; flex-basis: 28px; }
  .p-brand-socials .p-icon-button svg { width: 19px; height: 19px; }
  .p-brand-socials .p-flag { width: 22px; height: 16px; }
  .p-brand-socials .p-flag-mixed img { width: 11px; }
  .p-contact { font-size: 11px; }
  .p-contact a { gap: 3px; }
  .p-contact svg { width: 13px; height: 13px; flex-basis: 13px; }
}
@media (max-width: 360px) {
  .p-contact .p-phone { font-size: 10px; }
  .p-brand-socials .p-icon-button { width: 26px; flex-basis: 26px; }
  .p-contact { font-size: 10.5px; }
  .p-header .p-menu-trigger { gap: 6px; padding-inline: 6px; font-size: 14px; }
}

.p-main,.prevision-main{scroll-margin-top:80px}
.p-page-hero{position:relative;isolation:isolate;overflow:hidden}
.p-page-hero>.p-container{position:relative;z-index:1}
.p-page-hero--compact{padding:16px 0 24px;background:var(--p-brand-blue);color:#fff;text-align:center}
.p-page-hero--compact .p-breadcrumb{justify-content:center;margin-bottom:12px;color:#fff}
.prevision-blocks .p-page-hero--compact .p-breadcrumb>a{color:#fff;background:rgb(23 51 62 / .45);padding:4px 10px;border-radius:4px}
.p-page-hero .p-breadcrumb [aria-current="page"]{color:#087c98;background:#fff;padding:4px 10px;border-radius:4px;font-weight:600}
.prevision-blocks .p-page-hero--compact h1{color:#fff;font-size:clamp(30px,3.5vw,44px);font-weight:700;text-shadow:0 1px 2px rgb(23 51 62 / .25)}
.p-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 16px;font-size:12px;line-height:1.4;color:var(--p-muted)}
.p-breadcrumb a{color:inherit;text-decoration:none}
.p-breadcrumb a:hover{text-decoration:underline;text-underline-offset:4px}
.p-page-hero h1{font-family:"Red Hat Display",Arial,sans-serif;font-weight:600;letter-spacing:-.025em;line-height:1.1;font-size:clamp(34px,4.4vw,56px);margin:0;color:inherit;text-wrap:balance}
.p-page-hero--photo{display:flex;align-items:flex-end;min-height:280px;padding:32px 0;color:#fff;background:#17333e}
.p-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 48%;z-index:-2}
.p-page-hero--photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgb(0 0 0 / .72),rgb(0 0 0 / .55) 55%,rgb(0 0 0 / .2));z-index:-1}
.p-page-hero--photo .p-breadcrumb,.p-page-hero--photo p{color:#fff}
.prevision-blocks .p-page-hero--photo h1,.prevision-blocks .p-page-hero--photo p,.prevision-blocks .p-page-hero--photo .p-breadcrumb{color:#fff}
.p-page-hero--photo h1{max-width:23ch}
.prevision-legacy-heading{display:none!important}
.p-existing-footer{margin:0}
.p-fallback-footer{padding-block:48px}
.p-drawer{position:fixed;inset:var(--p-admin) 0 0 auto;width:100%;height:calc(100dvh - var(--p-admin));max-height:none;max-width:440px;margin:0;padding:28px;border:0;background:#fff;color:var(--p-ink);overflow-y:auto;z-index:100}
.p-drawer::backdrop{background:rgb(9 29 38 / .45)}
.p-drawer[open]{animation:p-drawer-in .18s ease-out}
.p-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:30px}
.p-drawer-heading h2{font-family:"Red Hat Display",Arial,sans-serif;font-size:24px;font-weight:600;margin:0;line-height:1.15}
.p-drawer .p-icon-button{flex-shrink:0}
.p-drawer-nav{display:flex;flex-direction:column;font-size:21px;line-height:1.4;gap:6px}
.p-drawer-nav>a,.p-drawer-nav .p-specialties-link{padding:12px 0;min-height:52px;color:var(--p-ink)}
.p-drawer-nav .p-specialties-group{position:relative;display:block}
.p-drawer-nav .p-specialties-link{padding-right:52px}
.p-drawer-nav .p-specialties{position:static}
.p-drawer-nav .p-specialties>summary{position:absolute;right:0;top:4px;width:44px;height:44px;color:var(--p-ink)}
.p-drawer-nav .p-specialties-list{position:static;width:auto;padding:0 0 6px 18px;border:0;box-shadow:none;font-size:17px;gap:0}
.p-drawer-cta{margin-top:28px;min-height:46px;font-size:16px;width:100%}
.p-drawer-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:18px;border-top:1px solid var(--p-line)}
.p-panel-label{font-size:14px;color:var(--p-accent);font-weight:600}
.p-assistant h2{font-family:"Red Hat Display",Arial,sans-serif;line-height:1.15;font-size:36px;font-weight:600;margin:0 0 16px;letter-spacing:-.02em}
.p-assistant>p{font-size:17px;line-height:1.6;color:var(--p-muted);margin:0 0 28px}
.p-search-form label{display:block;font-size:14px;margin-bottom:8px}
.p-search-form>div{display:flex;border:1px solid #8ba2ac;border-radius:6px;padding:4px;gap:4px}
.p-search-form input{box-sizing:border-box;min-width:0;flex:1;width:100%;border:0;padding:0 8px;font:inherit;font-size:16px;background:#fff;color:var(--p-ink);border-radius:4px}
.p-search-form input::placeholder{color:#506670}
.p-search-form button{background:var(--p-ink);color:#fff}
.p-assistant-links{display:flex;flex-direction:column;gap:4px;margin-top:30px}
.p-assistant-links a{display:flex;align-items:center;justify-content:space-between;color:var(--p-ink);padding:15px 0;border-bottom:1px solid var(--p-line);font-size:17px}
.p-assistant-links svg{width:18px;height:18px}
.p-assistant-phone{display:flex;align-items:center;gap:8px;margin-top:28px;font-size:15px;color:var(--p-accent)}
.p-assistant-phone svg{width:18px;height:18px}
.p-notice{position:fixed;z-index:120;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);box-sizing:border-box;background:#17333e;color:#fff;padding:13px 18px;border-radius:8px;font-size:15px;box-shadow:0 4px 22px rgb(23 51 62 / .18)}
.p-notice[hidden]{display:none}
body.p-dialog-open{overflow:hidden}
.p-modal-notice{font-size:15px;line-height:1.5;color:var(--p-accent);margin:18px 0 0}
.p-modal-notice:empty,.p-modal-notice[hidden]{display:none}
.p-search-page{padding-block:40px 64px}
.p-search-page h1{font-size:clamp(30px,4vw,44px);line-height:1.2;margin-bottom:24px}
.p-search-page .wp-block-search{margin-bottom:36px}
.p-search-result{padding-block:24px;border-bottom:1px solid var(--p-line)}
.p-search-result h2{font-size:26px;margin:0 0 12px}
.p-search-result .wp-block-post-excerpt{font-size:17px;color:var(--p-muted)}
.p-search-page .wp-block-query-pagination{padding-top:28px}
.prevision-blocks .p-specialties-index{padding-block:36px 64px}
.p-specialties-index>.p-specialties-intro{max-width:62ch;font-size:18px;line-height:1.6;margin:0 0 28px;color:var(--p-muted)}
.prevision-blocks .p-specialty-row{position:relative;display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:24px;align-items:center;padding:25px 40px 25px 0;border-bottom:1px solid var(--p-line);margin:0}
.p-specialty-row:first-of-type{border-top:1px solid var(--p-line)}
.p-specialty-row:hover,.p-specialty-row:focus-within{background:#f4fafc}
.p-specialty-row:focus-within{outline:2px solid var(--p-accent);outline-offset:3px}
.p-specialty-row::before{content:"↗";position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:24px;color:var(--p-accent)}
.prevision-blocks .p-specialty-row .p-specialty-name{font-size:clamp(22px,2.3vw,28px);line-height:1.2;margin:0;color:var(--p-ink)}
.p-specialty-name a{color:inherit;text-decoration:none}
.p-specialty-name a::after{content:"";position:absolute;inset:0}
.p-specialty-name a:focus-visible{outline:none}
.prevision-blocks .p-specialty-row .p-specialty-description{font-size:16px;line-height:1.6;margin:0;color:var(--p-muted)}
@media(max-width:650px){.prevision-blocks .p-specialty-row{grid-template-columns:1fr;gap:8px;padding-block:22px}}
@keyframes p-drawer-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1000px){
 .p-page-hero--compact{padding:14px 0 20px}.p-page-hero--compact .p-breadcrumb{margin-bottom:10px;font-size:12px}
 .prevision-blocks .p-page-hero--compact h1{font-size:32px}
 .p-page-hero--photo{min-height:238px;padding:24px 0}.p-hero-photo{object-position:58% center}
 .p-page-hero--photo::after{background:linear-gradient(90deg,rgb(0 0 0 / .75),rgb(0 0 0 / .52))}
 .p-drawer{padding:24px}.p-specialties-list{font-size:17px}
}
@media(max-width:782px){body.prevision-blocks.admin-bar{--p-admin:46px}}
@media(prefers-reduced-motion:reduce){.p-drawer[open]{animation:none}html{scroll-behavior:auto}}

/* Cabecera movil: solo los simbolos de telefono, WhatsApp y ubicacion.
   Peticion de Alipio, 28-10-2026. El texto se oculta VISUALMENTE pero sigue en
   el DOM: si se usara display:none los enlaces se quedarian sin nombre
   accesible. Ver COORDINACION.md. */
@media (max-width: 600px) {
  .p-contact .p-phone-text,
  .p-contact .p-location > span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
  .p-contact { flex-direction: row; align-items: center; gap: 6px; }
  .p-phone-row { gap: 6px; }
  .p-contact .p-phone,
  .p-contact .p-phone-whatsapp,
  .p-contact .p-location {
    width: 36px; min-width: 36px; flex: 0 0 36px;
    height: 36px; min-height: 36px;
    justify-content: center; border-radius: 6px;
  }
  .p-contact svg { width: 20px; height: 20px; flex: 0 0 20px; }
}

/* ---------------------------------------------------------------------------
   Barra compacta: logo a la izquierda y la lupa junto a «Solicitar cita».
   Petición de Alipio, 29-10-2026. Al desplazarse se ocultaba la fila de marca
   entera y con ella el logo; ahora la banda de navegación tiene el suyo.
   --------------------------------------------------------------------------- */

.p-nav-logo { display: none; }

.p-header.is-compact .p-nav-logo {
  display: block;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  line-height: 0;
}

.p-header.is-compact .p-nav-logo img {
  display: block;
  width: clamp(96px, 24vw, 150px);
  height: auto;
}

/* Cuatro columnas solo en compacta: logo · menú · lupa · cita */
.p-header.is-compact .p-nav-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.p-header.is-compact .p-desktop-nav,
.p-header.is-compact .p-menu-trigger { grid-column: 2; justify-self: center; }

.p-header.is-compact .p-nav-start,
.p-header.is-compact .p-nav-actions {
  grid-column: auto;
  width: auto;
  justify-self: end;
}

/* La lupa se queda sola: el nombre se oculta a la vista, no al lector de
   pantalla, y el botón ya tiene su aria-label. */
.p-header.is-compact .p-search-button {
  width: 38px;
  min-width: 38px;
  padding-inline: 0;
}

.p-header.is-compact .p-search-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Idiomas, siempre como desplegable. Antes eran dos banderas sueltas.
   La clase p-popover la reconoce shell.js: cierra con Escape y al pulsar fuera.
   --------------------------------------------------------------------------- */

.p-languages { position: relative; }

.p-languages > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 6px;
  border-radius: 7px;
  list-style: none;
  cursor: pointer;
}

.p-languages > summary::-webkit-details-marker { display: none; }
.p-languages > summary:hover { background: var(--p-soft); }
.p-languages > summary:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.p-languages > summary svg { width: 15px; height: 15px; transition: transform .2s ease; }
.p-languages[open] > summary svg { transform: rotate(180deg); }

.p-languages-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(23 51 62 / .14);
}

/* Dentro del cajón lateral se abre hacia arriba, que abajo no hay sitio. */
.p-drawer .p-languages-panel { top: auto; bottom: calc(100% + 6px); right: auto; left: 0; }

.p-languages-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--p-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.p-languages-option:hover { background: var(--p-soft); }
.p-languages-option:focus-visible { outline: 3px solid var(--p-accent); outline-offset: -2px; }
.p-languages-option.is-current { background: var(--p-soft); font-weight: 600; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .p-languages > summary svg { transition: none; }
}

/* Links. The Elementor kit used to force Tahoma and its own blue on every link; links
   now inherit the theme's font and use its accent, which reaches 4.8:1 on white. :where
   keeps this at the lowest weight, so any component's own link colour still wins. */
:where(body.prevision-blocks) a { color: var(--p-accent); font-family: inherit; }

/* Cookie notice. The plugin puts white text on its cyan buttons (1.7:1). Accepting and
   rejecting must both be readable and carry the same weight. */
#moove_gdpr_cookie_info_bar button.mgbutton,
#moove_gdpr_cookie_modal .mgbutton { color: #102d39 !important; }
#moove_gdpr_cookie_info_bar button.change-settings-button { border-color: #fff !important; color: #fff !important; opacity: 1 !important; }
