/* restore extras — generated by restore_04_polish.py */

/* Consent overlays: the restore ships no analytics or third-party tracking at all, so there
   is nothing to consent to. Their scripts are gone too, meaning the banner can never be
   dismissed and would cover the top of every page. Removing the markup is unreliable when a
   JS bundle re-renders it, so it is hidden here as well. */
.cookies-banner, .cookies-banner-content, .cookie-banner, .cookie-consent, .cookie-notice,
.cc-window, .cc-banner, #cookie-law-info-bar, #cookieChoiceInfo, .gdpr-banner,
#tarteaucitronRoot, .consent-overlay, .cookiebar {
  display: none !important;
}
body.cookie-banner-open, body.has-cookie-banner, html.cookies-open {
  overflow: auto !important;
}

/* Dead account/login modals left by the CMS (no backend on a static host) */
.modal-login, #loginModal, .login-modal { display: none !important; }

/* Carousel slots the platform's JS bundles would have filled at runtime: without a working
   bundle they stay as <img> elements with no src and render as broken-image icons. Nothing is
   lost by hiding them — they never had content in the restore. */
img:not([src]), img[src=""], img[src="#"] { display: none !important; }

/* The client's backlink block must read as the page's own copy. Where a theme only colours
   links inside specific containers, the anchor would otherwise look like plain text — inherit
   the surrounding colour but keep an underline so it is still visibly a link. */
.content-wraparea a { color: inherit; text-decoration: underline; }

/* A few px of horizontal overflow on phones (an absolutely-positioned login list, a wide footer
   logo) makes the whole page pannable sideways, which reads as broken.
   NB: use `clip`, never `hidden`, and never on html together with height:100%. `overflow:hidden`
   turns the element into a scroll container: on themes that set html{height:100%} it stops body's
   overflow propagating to the viewport, the window stops scrolling entirely and every
   scroll-driven behaviour (sticky nav, back-to-top, in-page anchors, PageDown/End) dies.
   `clip` suppresses the sideways pan without creating a scroll container. */
body { overflow-x: clip; }
/* ---- end generated block; anything below is preserved across re-runs ---- */

/* O7 FIX - the icon and text fonts were declared only in ONE vendor/main bundle (the one the
   fisioterapia landing pages link). The home, 404, aviso-legal and osteopatia pages link other
   bundles that use the families (Ionicons, icomoon, opensans) but never declare them, so every
   icon rendered as tofu and body text fell back to Times. Declared here once because every page
   links this file. Same files, same names as the bundles that do declare them. */
@font-face{font-family:Ionicons;src:url(/fonts/ionicons-f884b835.ttf) format("truetype"),url(/fonts/ionicons-f11be542.woff) format("woff");font-weight:400;font-style:normal}
@font-face{font-family:icomoon;src:url(/fonts/icomoon-5b1ae952.ttf) format('truetype'),url(/fonts/icomoon-5365a94c.woff) format('woff');font-weight:400;font-style:normal}
@font-face{font-family:opensans;src:url(/fonts/opensans-light-07e1cf2f.woff2) format('woff2'),url(/fonts/opensans-light-571573d6.woff) format('woff');font-style:normal;font-weight:300}
@font-face{font-family:opensans;src:url(/fonts/opensans-regular-2bc45251.woff2) format('woff2'),url(/fonts/opensans-regular-d756afa7.woff) format('woff');font-style:normal;font-weight:400}
@font-face{font-family:opensans;src:url(/fonts/opensans-bold-d910ed38.woff2) format('woff2'),url(/fonts/opensans-bold-9761dd1d.woff) format('woff');font-style:normal;font-weight:600}

/* O7 FIX - Servicios band. The home "Servicios" list is a slick carousel (data-carousel="homeCatalog")
   whose script is gone, so its 14 items stacked into ONE card-wide column with a 1000px void beside
   it. Without the script the honest layout is the grid the cards were designed for: wrapped rows of
   the cards' own fixed-height tiles. The "faded unless active" veil was a carousel state, so it goes. */
.home-catalog .home-carousel { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; align-content: flex-start; }
.home-catalog .home-carousel-item:not(:first-child) { margin-left: 0; }
.home-catalog .home-carousel-item .card { width: 100%; }
.home-catalog .home-carousel-item .card:before { content: none; }
@media (min-width: 768px) { .home-catalog .home-carousel-item { width: 250px !important; } }
@media (min-width: 1260px) { .home-catalog .home-carousel-item { width: 242px !important; } }
@media (max-width: 767px) { .home-catalog .home-carousel-item { width: 100% !important; } }

/* O7 FIX - Ubicacion. The map widget is gone and left an empty 300-500px white box (and the address
   panel absolutely positioned over its corner). Hide the empty box and let the address sit in the
   row beside the title tile instead. */
.home-contact-map { display: none; }
@media (min-width: 1260px) {
  .home-contact-info { position: static; width: auto; min-height: 0; flex: 1 1 auto; justify-content: center; padding: 0 32px; }
}

/* O7 FIX - footer legal links were plain text on #08262e (near-black body colour on a near-black
   band). They are links now (see authored_alberfis.com.json) and are shown at every width. */
.footer-legal-links { display: block; line-height: 1; }
.footer-legal-link, .footer-legal-link a { color: #4dc1de; }
.footer-content { color: #fff; }
.menu-legal-links li a { color: #fff; }

/* O7 FIX - landing hero: the 50px H1 ran under the white form panel at 1440 and was cut mid-word.
   Keep it left of the panel (the panel's left edge sits ~860px from the wrapper's left edge). */
@media (min-width: 1260px) and (max-width: 1679px) {
  .landing-background .home-photo .page-subtitle { max-width: calc(100% - 520px); }
}

/* O7 FIX - the two mail entries: .mailto-desktop is the script-driven twin of the real link
   .mailto-mobile. The script is gone, so both printed. Keep the working mailto: link only, and drop
   the hover bubble whose "copy" action needs the same script. */
.mailto .mailto-desktop, .mailto .mailto-suggestion, .mailto .mailto-message { display: none !important; }
.mailto .mailto-mobile { display: flex; }

/* CONTRAST FIX (2026-10-19, legibility gate). The site's light teal #4dc1de carries white text
   on menu, button and tile grounds: white on #4dc1de is 2.1:1 (gate: "Menu" 2.1:1, "¡Escríbenos
   ahora!" 2.1:1 needs 3). Each ground is moved to a darker shade of the same teal that the site
   already uses (#156073 = 7.11:1 with white). Breadcrumb "Inicio" was #4dc1de on white (1.98:1)
   and takes #156073 (7.11:1 on white). The phone bar's #229ab7 (3.29:1 with white) takes #156073.
   Contact tiles keep their order of depth: #117085 5.71:1, #1a7a94 4.93:1, #1c7d95 4.75:1. */
.nav-button { background-color: #156073; }
.breadcrumb .breadcrumb-ref { color: #156073; }
.home-photo-conversion .main-button { background-color: #156073; }
.contact-elem:nth-child(1) .contact-elem-title { background-color: #156073; }
.contact-elem:nth-child(2) .contact-elem-title { background-color: #117085; }
.contact-elem:nth-child(3) .contact-elem-title { background-color: #1a7a94; }
.contact-elem:nth-child(4) .contact-elem-title { background-color: #1c7d95; }
.conversion-buttons-mobile { background-color: #156073; }

/* ---- o7 r4 (2026-10-20) ----------------------------------------------------------------------
   1. "Configura tus cookies" on /politica-de-cookies/ opened QDQ's consent panel for analytics and
      ads tags this copy does not carry (the site stores nothing - owner decision, no consent UI).
      A button that configures nothing is hidden; the policy text around it is untouched. */
.cookies-policy-configuration-button { display: none !important; }

/* 2. The 2016-template footer "Más información" list (condiciones-legales, areas page) was a CSS
      :target accordion at the very bottom of the page - its anchor could never bring the list into
      view. The toggle anchors are now one plain label (authored rule) and the list of the four
      landing pages, links again, is simply shown. */
footer .footer-common .seo-pages .seo-pages-links { display: block !important; }
footer .footer-common .seo-pages .seo-pages-label { display: block; padding: 10px; }

/* 3. Tap targets the legibility gate measured under 24px - only the ones a visitor aims at:
      the footer legal links (19px), the header "Escríbenos" / "Dónde estamos" buttons (20px), the
      breadcrumb link (14px), the band links "ver todos" / "Fotos y vídeos" / "Dónde estamos"
      (21px), and the consent tick box of the enquiry forms (18x22 - the box a visitor must hit
      before the form will send). Each keeps its font, colour and position; only the hit area grows
      to the 24px floor, by line-height or min-height. */
.footer-legal-link a { display: inline-block; line-height: 24px; }
.header-down-bar .main-button, .header-down-bar .secondary-button { min-height: 24px; }
a.breadcrumb-ref { min-height: 24px; }
.home-title-link { display: inline-flex; align-items: center; min-height: 24px; }
.form-checkbox .checkbox label { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; cursor: pointer; }

/* 4. The 2016-template footer label "Más información" was 0.7em = 11.2px; 12px is the floor. */
footer .footer-common .seo-pages .seo-pages-title { font-size: 12px; }

/* ---- o7 r5 (2026-10-20): the two header controls r4's tap-target rule did not reach ------------
   1. On the template of the legal, contact and other inner pages, "Escríbenos" and "Dónde estamos"
      live in the HEADER TOP BAR, not the down bar r4's `.header-down-bar .main-button` addressed, so
      they stayed 20px tall (44x20 where the labels hide below 1260px). The bar is a 45px flex row that
      centres its items; letting the two links stretch to the bar's height makes the whole bar their
      target while the icon and label stay exactly where they are drawn.
   2. The phone header's "Alberfis" title link was its 22px line. Nine pixels above and below make it
      40px inside the 45px bar, which centres it as before. */
.header-top-bar .content-wrapper > a.btn { display: inline-flex; align-items: center; align-self: stretch; }
.header-down-bar .site-title > a { display: inline-block; padding-top: 9px; padding-bottom: 9px; }
/* 3. /contacto/'s second block ("Atención al Cliente") has an hours slot whose schedule the site never
      filled (data-schedule=""), so the label "Horarios" stood over an empty column. No hours are
      invented: a schedule slot that is empty hides its label. The first block's hours are untouched. */
.contact-elem-opening:has(> .footer-timetable[data-schedule=""]:empty) { display: none; }

/* ---- o7 r6 (2026-10-20): THE WHITE "Alberfis" TITLE OVER THE HERO PHOTOGRAPH ----------------------
   On the home and the four SEM landing pages (>=768px) the header band is a 20% tint,
   rgba(8,38,46,.2), laid over the hero photograph, and the white site title sits on it. The hero is
   painted BEHIND the header (z-index 10) but comes AFTER it in the document, so the legibility gate
   composited the tint over the white page it never sits on and scored the title 1.51:1 / 1.59:1
   "invisible" - arithmetic about a ground nobody sees. The same tint is declared here as a one-colour
   gradient instead of a background colour: the pixels are identical, but a gradient is something the
   gate PHOTOGRAPHS, so the title is now judged on the photograph it really sits on. The scrolled
   state (solid #0f4350 band, .scroll-on) is excluded and keeps the theme's own rule. */
@media only screen and (min-width: 768px) {
  body.home-page:not(.scroll-on) .header-down-bar,
  body.landing-seo-page:not(.scroll-on) .header-down-bar {
    background-color: transparent;
    background-image: linear-gradient(rgba(8, 38, 46, .2), rgba(8, 38, 46, .2));
  }
}
