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

/* ------------------------------------------------------------------------- *
 * drface.es — repairs made by the order-7 technical pass
 * ------------------------------------------------------------------------- */

/* The Enfold icon font (entypo-fontello) is NOT in the archive: no .woff/.ttf/.eot/.svg exists
   anywhere on disk, and the theme's own @font-face was neutralised to `src: none`. The glyphs are
   private-use codepoints injected by `[data-av_icon]:before{content:attr(data-av_icon)}`, so with
   no font behind them every one renders as a tofu box — 4 to 18 per page, which qa_visitor_paths
   reports as "icon glyphs drawn as boxes". There is nothing to restore the font from, so the
   pseudo-content is suppressed and the few controls that were icon-ONLY are given a readable form
   below. */
#top [data-av_icon]:before,
#top .avia-font-entypo-fontello:before,
#top .image-overlay .image-overlay-inside:before,
#top .more-link-arrow:after,
#top .av-submenu-indicator:before { content: none !important; }

/* …the social links in the top bar and the footer were the icon and nothing else: their label is
   in a span the theme hides. Show the label instead of an empty 20px box. */
#top .social_bookmarks li a .avia_hidden_link_text { display: inline; }
#top .social_bookmarks li a { width: auto; min-width: 0; padding: 0 10px; font-size: 13px;
  line-height: 30px; text-indent: 0; }
#top .social_bookmarks { width: auto; }
#top #footer .social_bookmarks li a,
#top #socket .social_bookmarks li a { line-height: 30px; }

/* …and the back-to-top control, whose only content was the glyph, gets a plain arrow from a font
   that exists. */
#top #scroll-top-link:before { content: "\2191" !important; font-family: inherit !important;
  font-size: 18px; line-height: 36px; }
#top #scroll-top-link .avia_hidden_link_text { display: none; }

/* …a decorative icon that duplicates a link already present as text next to it has no substitute
   worth showing: it would be an empty link in the tab order. */
#top a.iconbox_icon, #top div.iconbox_icon, #top a.avia-team-icon,
#top .iconlist_icon, #top .progressbar-char, #top .related-format-icon,
#top .avia_button_icon, #top .avia_message_box_icon { display: none !important; }
#top .avia-icon-list .iconlist_content, #top .avia-icon-list article { margin-left: 0; }

/* The top bar prints its phone number and its BLOG link at 11px in #808080 on #ffffff — 3.85:1,
   under AA, and under the 12px floor. Same for the breadcrumb's "Tú estás aquí:". Darkened and
   enlarged; the colours stay in the theme's own grey family. */
#top #header_meta .phone-info span,
#top #header_meta .sub_menu,
#top #header_meta .sub_menu > ul > li > a { font-size: 13px; color: #595959; }
#top #header_meta .sub_menu > ul > li > a:hover { color: #222222; }
#top .breadcrumb, #top .breadcrumb a, #top .breadcrumb .breadcrumb-title,
#top .breadcrumb span { font-size: 13px; color: #5a5a5a; }
#top .breadcrumb a { text-decoration: underline; padding: 4px 2px; display: inline-block; }

/* The footer "Noticias" entries are links whose text carries no colour change, no underline and
   no weight difference from the paragraph beside them, so on a phone nothing says they are
   tappable until you tap one. */
#top #footer .news-wrap .news-link { text-decoration: underline; display: block;
  padding: 3px 0; }
#top #footer .news-wrap .news-link .news-time { text-decoration: none; }

/* "Quizás te interese" shows three related posts as a thumbnail above a title. Not one of the 61
   thumbnails in this site was archived, so every wrapper held nothing but the icon-font glyph
   suppressed above - an empty box over each title. The wrapper is collapsed; the titles remain
   and they are the links. */
#top .related_entries_container .related_image_wrap { display: none !important; }
#top .related_entries_container .av-related-title { display: block; padding: 4px 0;
  text-decoration: underline; }

/* Under the 12px floor, measured by qa_legibility: the socket's copyright line and the masonry
   post dates on the blog roll. Both are the theme's own "meta" sizes. */
#top #socket .copyright { font-size: 13px; }
#top .av-masonry-date, #top .av-masonry-text-sep, #top .av-masonry-author { font-size: 12px; }

/* Finger-sized controls. restore-legibility.css deliberately ships NO tap-target overlay (an
   ::after band steals hit rows from whatever stacks next to it), so the growing is done here with
   padding, per site, on the three controls the gate measured under 24px: the page title, which is
   a link; the breadcrumb, which is absolutely positioned so growing it moves nothing; and the
   portfolio grid titles on the homepage. */
#top .title_container .main-title a { display: inline-block; padding: 10px 2px; }
#top .title_container .main-title { line-height: 1.6em; }
#top .breadcrumb a { padding: 8px 4px; }
#top .grid-entry-title a, #top .av-masonry-entry-title a { display: inline-block; padding: 10px 2px; }

/* The top bar's social links print their label (the icon font is gone, see above) in the theme's
   #808080 on white - 3.85:1. The footer and socket copies sit on dark grounds and keep theirs. */
#top #header_meta .social_bookmarks li a { color: #595959; }
#top #header_meta .social_bookmarks li a:hover { color: #222222; }

/* The icon list draws a dashed vertical "timeline" at left:32px, joining the 64px circles that
   held the icons. With the circles hidden (the icon font is gone) the line would hang in empty
   space beside the text, and the 60px minimum row height exists only to clear the circle. */
#top .avia-icon-list .iconlist-timeline { display: none !important; }
#top .avia-icon-list li { min-height: 0; padding-bottom: 18px; }

/* LAYERSLIDER NEVER STARTS, so its stage was an empty band 351px tall at the top of / and of
   /la-clinica/. The plugin's inline `layerSlider(...)` call is in no capture of either page, and
   its own stylesheet keeps the stage invisible until that call runs:
   `.ls-container{visibility:hidden}` and `.ls-slide{visibility:hidden !important;
   position:absolute !important}`. Each page has exactly ONE slide, so there is no slideshow to
   rebuild - the honest form is a static hero. The archived photograph (a face on the left, an
   empty pale field on the right) is laid in as the ground and the two layers the slide carries,
   the logo and the clinic's own line, are stacked over the pale side where the original put them,
   instead of at the absolute pixel offsets the plugin would have animated them to. */
#top .avia-layerslider { height: auto !important; }
#top .ls-wp-container { visibility: visible !important; width: 100% !important;
  height: auto !important; max-width: 100%; }
#top .ls-wp-container .ls-slide {
  visibility: visible !important; position: relative !important; display: block !important;
  overflow: hidden; min-height: 300px; padding: 40px 24px; box-sizing: border-box; }
#top .ls-wp-container .ls-slide > img.ls-bg {
  position: absolute !important; left: 0; top: 0; width: 100% !important; height: 100% !important;
  max-width: none; object-fit: cover; object-position: left center; z-index: 0; }
#top .ls-wp-container .ls-slide > .ls-l,
#top .ls-wp-container .ls-slide > img.ls-l {
  position: relative !important; top: auto !important; left: auto !important; z-index: 1;
  display: block; height: auto; max-width: 100%; width: auto;
  margin: 0 0 16px auto; text-align: center; }
#top .ls-wp-container .ls-slide > .ls-l { max-width: 560px; }
#top .ls-wp-container .ls-slide h4 { margin: 0; line-height: 1.35; }
@media only screen and (max-width: 767px) {
  #top .ls-wp-container .ls-slide { min-height: 220px; padding: 26px 16px; }
  #top .ls-wp-container .ls-slide > img.ls-bg { object-position: right center; }
  #top .ls-wp-container .ls-slide > .ls-l,
  #top .ls-wp-container .ls-slide > img.ls-l { margin-left: auto; margin-right: auto; }
}

/* The top bar's social links are 30px icon cells in the theme; with the label showing instead of
   the icon they printed on top of one another ("FacebPinkeTesitter"). Let the cell size to its
   text. */
#top .social_bookmarks, #top .social_bookmarks li, #top .social_bookmarks li a {
  width: auto !important; min-width: 0 !important; overflow: visible !important;
  text-indent: 0 !important; }
#top .social_bookmarks li a { padding: 0 9px !important; white-space: nowrap; }
#top #socket .social_bookmarks li { border-radius: 15px; }

/* THE MASONRY GRIDS HAVE NO PHOTOGRAPHS LEFT. Not one of the images behind /tratamientos/,
   /blogdrface/ or /la-clinica/instalaciones/ was archived, so every tile rendered as a 290px
   empty box with a small title along its bottom edge - 41 of them on /tratamientos/ alone. Two
   things are wrong at once and both are fixed here rather than by inventing pictures:
     * the tile's height came from .av-inner-masonry-sizer, an empty element whose only job is to
       hold the aspect ratio of a picture that is gone;
     * the entries the plan dropped lost their wrapping <a> during the restore, so their <figure>
       is a LOOSE sibling of the real tiles rather than a grid item.
   Making the container a CSS grid treats both the same way - every direct child becomes a cell -
   and the sizer is taken out of the flow, so each cell is as tall as the words in it. */
#top .av-masonry .av-masonry-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px; align-items: stretch; }
#top .av-masonry .av-inner-masonry-sizer { display: none !important; }
#top .av-masonry .av-masonry-entry,
#top .av-masonry figure.av-inner-masonry {
  position: relative !important; width: auto !important; height: auto !important;
  min-height: 0 !important; left: auto !important; top: auto !important;
  transform: none !important; margin: 0 !important; }
#top .av-masonry .av-inner-masonry-content {
  position: relative !important; display: block !important; height: auto !important;
  width: auto !important; bottom: auto !important; padding: 22px 18px; }
#top .av-masonry .av-inner-masonry-content-pos,
#top .av-masonry .av-inner-masonry-content-pos-content { display: block !important; }
#top .av-masonry .av-masonry-entry-title { margin: 0; }
#top .av-masonry .av-masonry-entry .avia-arrow { display: none; }
@media only screen and (max-width: 767px) {
  #top .av-masonry .av-masonry-container { grid-template-columns: 1fr; }
}
/* …and the grid's own empty placeholder element (Enfold emits one <div class="av-masonry-entry">
   with no content as the isotope sizer) must not become a visible cell. */
#top .av-masonry .av-masonry-entry:empty { display: none !important; }

/* The previous/next tabs Enfold fixes to the edges of a single post showed nothing but the
   missing glyph - a blank grey tab at the left of the window. Give them a real arrow from a font
   that exists; the neighbouring post's title still slides out on hover. */
#top .avia-post-nav .label.iconfont:before { content: "\2039" !important;
  font-family: inherit !important; font-size: 30px; line-height: 1; }
#top .avia-post-nav.avia-post-next .label.iconfont:before { content: "\203A" !important; }

/* The breadcrumb is absolutely positioned at right:50px with line-height:15px, sized for the
   theme's 11px. At the 13px this pass gives it (11px is under the legibility floor) a long trail
   wraps inside a 15px line and prints over itself - "Inicio / / VARICES Y ARAÑAS VASCULARES
   Belleza" on the varices post. Floating it instead of pinning it lets the row grow. */
#top .title_container .breadcrumb { position: static !important; float: right; right: auto;
  top: auto; margin: 0; line-height: 1.7; max-width: 62%; text-align: right; }
#top .title_container .main-title { float: left; max-width: 36%; }
#top .title_container .container { overflow: hidden; }
@media only screen and (max-width: 767px) {
  #top .title_container .breadcrumb, #top .title_container .main-title { float: none;
    max-width: 100%; text-align: left; }
}

/* WHAT restore-legibility.js COULD NOT REACH. It measures each element against the ground it is
   painted on and refuses to guess when that ground is an IMAGE - and Enfold paints these sections
   with its own diagonal pattern, so the four classes below stayed as the theme drew them while the
   gate, which photographs, measured 3.1-3.5:1 against 4.5. They are raised here by hand, keeping
   the hue: the accent teal #2997ab (3.26:1 on white) becomes #19697a (5.0:1), and the two greys
   (#888888 on the title bar, #8D8D8D in the icon lists) become dark enough to read. */
#top .title_container .main-title, #top .title_container .main-title a { color: #3f3f3f; }
#top .avia-icon-list .iconlist_content,
#top .avia-icon-list .iconlist_content * { color: #585858; }
#top .entry-content-wrapper strong, #top .avia_textblock strong,
#top .iconbox_content_container strong, #top .post-entry strong { color: #19697a; }
#top .av-masonry-sort a, #top .av-masonry-sort .inner_sort_button,
#top .sort_by_cat a { color: #19697a; }
#top .av-masonry-sort a.active_sort, #top .sort_by_cat a.active_sort { color: #11505e; }
/* …and on a phone the three labels no longer fit beside the copyright line, so they go under it
   rather than being clipped to "Fac Pin Twi". */
@media only screen and (max-width: 767px) {
  #top #socket .social_bookmarks { float: none; margin: 10px 0 0; }
  #top #socket .social_bookmarks li { float: left; margin-right: 8px; }
  #top #socket .copyright { display: block; }
}

/* The hero line is one long sentence with a hard <br> in the middle, drawn for a 1140px stage: at
   390 the first half ran off both edges of the slide and was clipped. Let it wrap, drop the hard
   break on a phone, and give it a size that fits. */
#top .ls-wp-container .ls-slide .ls-l, #top .ls-wp-container .ls-slide h4,
#top .ls-wp-container .ls-slide h4 b { white-space: normal !important; }
@media only screen and (max-width: 767px) {
  #top .ls-wp-container .ls-slide h4 { font-size: 15px; }
  #top .ls-wp-container .ls-slide h4 br { display: none; }
  #top .ls-wp-container .ls-slide > img.ls-l { max-width: 70%; }
}

/* A masonry cell whose entry kept its link and one whose link the plan retired were being drawn at
   two different title sizes, because only the linked one sits inside .av-masonry-entry. */
#top .av-masonry .av-masonry-entry-title,
#top .av-masonry figure.av-inner-masonry .av-masonry-entry-title { font-size: 15px; line-height: 1.35; }
#top .av-masonry .av-masonry-entry-content p { font-size: 14px; line-height: 1.5; }
/* …and every direct child of the grid stays in flow. isotope positions masonry items absolutely
   from script, which with a grid container let a two-line title at 390 slide under the cell above
   it. Covering the children as a group also catches the loose <figure> cells, which carry none of
   the classes the theme's own rules key on. */
#top .av-masonry .av-masonry-container > * {
  position: relative !important; left: auto !important; top: auto !important;
  transform: none !important; width: auto !important; }
/* The cell is now sized by its words, so it must not carry a maximum height - but it MUST keep
   the theme's `#top .av-inner-masonry{overflow:hidden}`. Letting that overflow out was tried and
   photographed: on /blogdrface/ it released one clipped line, and on /tratamientos/, whose
   entries are mostly bare <figure> cells with no wrapping anchor, it collapsed the whole grid to
   130px with the titles printing over each other. Height yes, overflow no. */
#top .av-masonry figure.av-inner-masonry, #top .av-masonry .av-masonry-entry,
#top .av-masonry .av-inner-masonry-content { max-height: none !important; }
#top .av-masonry .avia-arrow { display: none !important; }

/* HOME: THE FIVE TREATMENT TILES (order-7 fixer round; defect "five grey caption boxes").
   The Enfold portfolio grid at the foot of the home page lost every picture in the archive (the
   treatments' images were uploads that were never captured, and none of the 36px thumbnails in
   /img/ belongs to these five), leaving boxes of different height that still carried the
   notch arrow pointing up at an image. No picture is invented: the grid becomes what it can
   honestly be, an even row of five named treatments. Two of the five keep the link the archive
   kept; the other three never had a page in the restore and stay plain titles. */
#top .grid-sort-container.isotope {
  display: flex !important; flex-wrap: wrap; justify-content: center;
  gap: 12px; height: auto !important; padding: 0 12px; box-sizing: border-box;
}
#top .grid-sort-container .grid-entry {
  float: none !important; position: relative !important; left: auto !important; top: auto !important;
  transform: none !important; margin: 0 !important;
  width: calc(20% - 10px) !important; min-width: 150px; display: flex;
}
#top .grid-sort-container .grid-entry .inner-entry {
  width: 100%; border: 1px solid #d9d9d9; display: flex;
}
#top .grid-sort-container .grid-entry .grid-content {
  width: 100%; min-height: 96px; padding: 14px 12px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
#top .grid-sort-container .grid-entry .avia-arrow { display: none !important; }
#top .grid-sort-container .grid-entry-title { margin: 0; line-height: 1.3; }
#top .grid-sort-container .grid-entry-title a { text-decoration: underline; }
@media only screen and (max-width: 767px) {
  #top .grid-sort-container .grid-entry { width: calc(50% - 6px) !important; min-width: 0; }
}
