/* 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 ---- */

/* ===== ORDER 7 FIX ROUND (2026-10-17) ===================================================== */

/* HERO BANNER. The "slider" is a one-picture gallery module whose script is gone, so it printed
   as a bulleted list: the same banner twice, each with the upload path as a caption. The picture
   IS the heading text ("ODONTOLOGIA A COSTES COMPETITIVOS."), so it is shown once, whole, and
   scaled to the column. */
#m1911 .pics { list-style: none; margin: 0; padding: 0; }
#m1911 .pics li:nth-child(n+2) { display: none; }
#m1911 .pics li { list-style: none; }
#m1911 .caption { display: none; }
#m1911 .thumb, #m1911 .thumbInner { display: block; width: auto; height: auto; padding: 0; }
#m1911 img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
#m1911 a { pointer-events: none; cursor: default; }
/* ROUND 3: if a second slide ever appears, only the first is drawn. */
#m1911 .slide + .slide { display: none; }

/* EMPTY BANNER ROW. The page-header photo was a 1x1 gif here and the row kept 200px of padding
   above and below it: a 400px white rectangle under the header on every main page. The row holds
   nothing but a spacer, so it goes. */
#r4954, #r4333, #r3635 { display: none; }

/* EMPTY MAP SLOT. The map was the cookie-gated embed and is gone; its column kept the grey band
   open 350px (500px on a phone) below the address items. */
.col:has(> .module.map), .module.map { display: none; }

/* ICON FONT. The icon glyphs are Font Awesome codepoints (header/footer: U+F0E0 envelope, F095
   phone, F124 location; contact band: <i class="fa ..."> classes) and the stylesheets linked on
   these pages declare NO @font-face for them, so every glyph drew as a tofu box. The files are
   on disk and served; the faces are declared here, so it no longer depends on which of the
   three grids/external-libs variants a page links. */
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-display: block;
  src: url("/fonts/fa-solid-900-23a71350.woff2") format("woff2"), url("/fonts/fa-solid-900-a078d27b.ttf") format("truetype"); }
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 400; font-display: block;
  src: url("/fonts/fa-regular-400-b25fda65.woff2") format("woff2"), url("/fonts/fa-regular-400-2947d706.ttf") format("truetype"); }
@font-face { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; font-display: block;
  src: url("/fonts/fa-brands-400-82958837.woff2") format("woff2"), url("/fonts/fa-brands-400-3d52a46b.ttf") format("truetype"); }
.iconfont { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; }
/* The contact band's icon list: bullets and a small box beside each icon. */
ul.module.iconlist { list-style: none; margin: 0 0 8px; padding: 0; text-align: center; }
ul.module.iconlist li { list-style: none; }
ul.module.iconlist .iconItem { font-size: 34px; line-height: 1; }
/* ROUND 3 - THE BURGER. The phone menu's button is NOT an element: the grids stylesheet draws it as
   `nav:before { content: "0c9"; font-family: "FontAwesome" }` (and the chevrons/close glyphs the same way).
   Only "Font Awesome 6 Free" was declared above, so the family named "FontAwesome" resolved to nothing and
   the button drew as an empty or crossed tofu box on every page at 390. The same solid face is declared
   under the old v4 name; U+F0C9 (bars) exists in it. Governs every glyph the grids css draws with that name. */
@font-face { font-family: "FontAwesome"; font-style: normal; font-weight: normal; font-display: block;
  src: url("/fonts/fa-solid-900-23a71350.woff2") format("woff2"), url("/fonts/fa-solid-900-a078d27b.ttf") format("truetype"); }
/* Burger button of the phone menu: same face. */
.burger, .navToggle, .menuToggle, nav.module.nav .mobileToggle { font-family: "Font Awesome 6 Free"; font-weight: 900; }

/* 404. The authored page's text sits straight in the full-width container with no padding, on
   the theme's dark grey page ground (#575757) shared with campo-de-intervencion. Give it the
   same boxed white band every other page has, and let the dark ground below the footer be the
   footer's own colour instead of a second grey. */
#r5002 > .container > .col:has(> h1.headline) {
  box-sizing: border-box; max-width: 1170px; margin: 0 auto; padding: 48px 15px 56px;
  background: #fff; min-height: 45vh; }
#r5002:has(> .container > .col > h1.headline) { background: #fff; }
html:has(#r5002 > .container > .col > h1.headline) { background: #252525; }
#r5002 > .container > .col > h1.headline { color: #1e5f8f; }
@media (max-width: 767px) {
  #r5002 > .container > .col:has(> h1.headline) { padding: 32px 15px 40px; }
  #r5002 > .container > .col > h1.headline { overflow-wrap: anywhere; }
}

/* CONTACT FORM LAYOUT. The platform's form script sized the fields and replaced the native
   checkbox with a drawn square; neither script survives, so the fields collapsed to their
   intrinsic ~175px and every consent line showed BOTH the native box and the drawn one.
   Fields span the column; the native box is hidden visually (kept focusable and clickable via its
   label) so only the styled square shows. Governs only .form inside this site. */
.form .fields, .form .optins { width: 100%; }
.form .field { width: 100%; max-width: 100%; box-sizing: border-box; }
.form .field input[type=text], .form .field textarea { width: 100%; max-width: 100%; box-sizing: border-box; display: block; }
.form .field textarea { min-height: 140px; }
.form .form_option { position: relative; }
.form .form_option input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.form .form_option input[type=checkbox] + label { margin-left: 0; display: inline-block; }

/* ===== ORDER 7 ROUND 2026-10-20 (one agent looked, fixed and re-measured) ================= */

/* ROBOTO, SELF-HOSTED. Every page linked Roboto 300,500 from css-fonts.eu.extra-cdn.com, the
   builder's font CDN: a live third-party dependency (qa_invariance NOT STANDALONE) that drops the
   whole site to a fallback face the day that CDN goes. The link is gone from the HTML (rule in
   authored_*.json) and the same two weights are declared here from the variable Roboto file
   (latin + latin-ext, the Google subsets), so weight matching is what the CDN gave: 400 resolves
   to the 500 face, exactly as it did on the live site. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/fonts/roboto-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/fonts/roboto-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/roboto-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/roboto-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* THE BURGER (js/restore-nav.js). Below 1200px the builder's panel is position:fixed at left:100%,
   i.e. parked just past the right edge of the window. Parked, it is now also visibility:hidden:
   off-canvas links are not on screen, must not take keyboard focus, and were being measured by
   qa_legibility as nav text at 1.14:1. Open, it slides in from the right (direction=right in the
   nav's data-settings) on the site's own #e6e5e5 ground (sitestyle: nav.opened-menu > ul). The
   button replaces the builder's `nav:before` glyph with the same glyph, size and colour. */
.restore-navtoggle { display: none; }
@media only screen and (max-width: 1199px) {
  nav.module.nav:not(.opened-menu) > ul.navContainer { visibility: hidden; }
  nav.module.nav.opened-menu > ul.navContainer { visibility: visible; left: auto !important; right: 0 !important; }
  nav.module.nav.restore-nav-js:before { content: none; display: none; }
  nav.module.nav .restore-navtoggle {
    display: inline-block; box-sizing: border-box; min-width: 42px; min-height: 42px; margin: 0;
    padding: 10px; border: 0; background: transparent; cursor: pointer; vertical-align: middle;
    color: rgb(30, 97, 147); font-size: 21px; line-height: 1; }
  nav.module.nav .restore-navtoggle:before { content: "\f0c9"; font-family: "FontAwesome"; font-weight: normal; }
  nav.module.nav > ul .closeBtn { cursor: pointer; min-width: 40px; min-height: 40px; box-sizing: border-box;
    text-align: center; line-height: 1; }
}
@media only screen and (max-width: 767px) {
  nav.module.nav .restore-navtoggle { font-size: 18px; }
}

/* PICTURE LINKS. The logo links (`a.imageModuleWrap`) are inline boxes around an inline <img>, so
   the box a finger or a hit test meets is one text line (19px) while the picture is 116-220px
   tall: qa_legibility counted every logo as a 263x19 tap target. Making the anchor a block of the
   picture's own width changes nothing on screen and makes the whole picture the target. The card
   pictures that never linked anywhere (href="#", onclick return false) are no longer anchors with
   an href at all - rule in authored_*.json. */
a.imageModuleWrap { display: block; width: fit-content; max-width: 100%; }

/* CONTACT FORM CONSENT LINES. The privacy line is a label holding a link, and both measured 19-23px
   tall: the one control on the page that must be ticked before the form will send. 3px of padding
   lifts both over the 24px floor without moving the text. */
.form .form_option label { padding-top: 2px; padding-bottom: 2px; }
.form .form_option a.optinLink { display: inline-block; padding: 3px 0; }

/* LONG URLs ON THE COOKIES PAGE. The clinic's own cookie text prints browser-help URLs in full and
   the longest is wider than a 390px phone, so the page scrolled sideways (414 in 390). Break them
   where they would overflow; nothing that fits is affected. */
.module.text p, .module.text li { overflow-wrap: break-word; }
.module.text a[href^="http"] { overflow-wrap: anywhere; }

/* THE DROPDOWN CHEVRON THAT IS NEVER DRAWN. grids.css gives every desktop nav link an ::after
   chevron in "FontAwesome" and then hides it with display:none on links that have no submenu
   (`a:only-child`) - which is all of them. A hidden pseudo-element still reports its icon
   codepoint, and on pages with no other visible FontAwesome glyph the face is never requested,
   so qa_visitor_paths read four "icon glyphs drawn as boxes". Saying content:none says what
   display:none already did. */
@media only screen and (min-width: 768px) {
  nav ul li a:only-child:after { content: none; }
}

/* THE COOKIES TABLE ON A PHONE. The width that made /politica-de-cookies/ scroll sideways (414 in
   390) is its four-column cookie table, whose cells carry 20px of padding each side from
   sitestyle: four columns of 40px padding cannot fit in 360px. On a phone the table takes the
   column's width with equal columns, lighter padding, and words allowed to break - every cell
   still shows, nothing scrolls. */
@media only screen and (max-width: 767px) {
  .module.text table { width: 100%; max-width: 100%; table-layout: fixed; }
  .module.text table td, .module.text table th { padding: 10px 6px; overflow-wrap: anywhere; word-break: break-word; }
}

/* ===== ORDER 7 ROUND 2026-10-20, EVENING ================================================== */

/* THE FOUR HOMEPAGE CARD PICTURES ON A PHONE. They are 320x220 files at their natural size in a
   ~360px column, left-aligned, so each left a 40-55px white strip at its right while the text
   under it ran the full column - and on /sonrisas-saludables/ and /campo-de-intervencion/ the
   pictures do fill the column. On a phone they now take the column's width like the text does
   (a 12% upscale of the site's own files; nothing is cropped). */
@media only screen and (max-width: 767px) {
  #w_m1139, #w_m2546, #w_m2456, #w_m1577 { width: 100%; }
  #m1139, #m2546, #m2456, #m1577 { width: 100%; height: auto; }
}

/* THE PRIVACY CHECKBOX SAT ON A LINE OF ITS OWN ABOVE ITS LABEL ON A PHONE. The label is an
   inline-block whose drawn square is its own ::before (grids.css), followed by the privacy link,
   which the round before this one made an inline-block to give it a 24px target. At 390 that
   link is too long to sit beside the square, so it wrapped below it as one box and the square was
   left alone on the line above the words it belongs to. The label becomes a row: square, then
   the words, wrapping beside it. Nothing changes where the line already fitted. */
.form .form_option input[type=checkbox] + label { display: flex; align-items: flex-start; }
.form .form_option input[type=checkbox] + label:before { flex: 0 0 auto; }
.form .form_option input[type=checkbox] + label > a.optinLink { flex: 1 1 auto; min-width: 0; }
