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

/* ------------------------------------------------------------------------- *
 * doctoraibanez.com — repairs made by the order-7 technical pass
 * ------------------------------------------------------------------------- */

/* THE TEAM SECTION PRINTS EVERYTHING IN WHITE ON A YELLOW WASH. `.mask-verde` is
   rgba(213,204,31,.7) laid over a photograph of the team, and the theme sets `.member h4` and
   `.member p` to #fff: qa_legibility photographed "EQUIPO DE TRABAJO" at 1.73:1 and the names at
   2.3-2.8:1. restore-legibility.js cannot touch them because the ground is an IMAGE and it
   refuses to guess what is behind one. The wash is the site's own colour and stays; what sits on
   it goes dark, which is what reads on yellow. */
#team .section-title h2, #team h2, #team h3,
#team .member h4, #team .member p, #team .member .title { color: #262626 !important; }
#team .member .sep { background: #262626; opacity: .45; }

/* Two addresses printed at 10.5px on a phone, and their e-mail links owned 15px of height. */
@media only screen and (max-width: 767px) {
  #ubicacion .direccion, #contact .direccion,
  #ubicacion .about-text, #contact .about-text { font-size: 15px; line-height: 1.7; }
}
#ubicacion .direccion a[href^="mailto:"], #contact .direccion a[href^="mailto:"] {
  display: inline-block; padding: 7px 2px; }

/* The page was 12px wider than a 390 phone and 70px wider than a 1024 tablet. Nothing on it
   should be wider than the window: the sliders and the portfolio grid all size themselves from
   script and none of them needs to overflow. */
.slider-wrapper, .liquid-slider, #main-slider, .owl-carousel, .owl-wrapper-outer,
.team-slider, #grid-container, .cbp-l-grid-projects, .wrapper, .cbp-wrapper-outer {
  max-width: 100% !important; overflow-x: clip; }
img, iframe { max-width: 100%; }

/* The page still measured 15px wider than a 390 phone and 80px wider than a 1024 tablet. The
   width comes from inside the three sections that size themselves from script - the slider, the
   team carousel and the cubeportfolio grid all write pixel widths onto their own wrappers - so
   the overflow is clipped at the section, where it cannot reach the document's scroll width.
   `clip`, never `hidden`: hidden would turn the section into a scroll container. */
header, #ubicacion, #team, .team, #portfolio, #services, .services, #contact { overflow-x: clip; }

/* Finger-sized controls: the service buttons and the burger were 32-34px, and the two e-mail
   links 35-37px, against the 40px floor this project uses. */
#services .md-trigger { min-height: 42px; padding: 10px 16px; }
.navbar-toggle { min-height: 42px; }
#ubicacion .direccion a[href^="mailto:"], #contact .direccion a[href^="mailto:"] {
  padding: 11px 2px; }
@media only screen and (max-width: 767px) {
  #services .md-trigger { font-size: 13px; }
}

/* ORDER 7 FIX - closing footer + short header on authored pages (2026-10-17).
   The archived one-pager published no footer, so the legal pages were unreachable from every page.
   The 404 and the two policy pages opened on the full 810px homepage hero, which made a mistyped
   address look like the homepage; .short-hero keeps the nav and the site's own header backdrop but
   drops the slogan slider and the viewport-height box. */
header.short-hero { display: block !important; height: auto !important; min-height: 0 !important; }
header.short-hero .slider-wrapper { display: none !important; }
header.short-hero { padding-top: 96px; }
footer.site-legal { background: #4e5758; color: #fff; text-align: center; padding: 26px 15px; font-size: 14px; line-height: 1.7; }
footer.site-legal p { margin: 0; color: #fff; }
footer.site-legal a { color: #fff; text-decoration: underline; display: inline-block; padding: 8px 4px; }

/* LEGIBILITY (o-fix 2026-10-19): the client's paid block printed at 10.5px on a phone, below the
   12px floor the gate reads as "hold a magnifying glass to the screen". Styled from outside; the
   block's markup is untouched. Desktop sizes are left as the theme sets them. */
@media only screen and (max-width: 767px) {
  .content-wraparea, .content-wraparea p { font-size: 15px !important; line-height: 1.6; }
}

/* LEGIBILITY (o7 round 2026-10-20): THE POLICY PAGES AND THE 404 PRINTED AT 10.5px ON A PHONE.
   The cause is not the theme's own type: component.css (the codrops modal-effects demo the theme
   ships for its service pop-ups) carries `@media screen and (max-width: 32em) { body { font-size:
   75% } }`, so everything that inherits its size from body drops from 14px to 10.5px below 512px.
   The homepage's inheriting text was already raised piece by piece; the authored pages are made
   of nothing else, so they get the theme's own 14px back at the same breakpoint. */
@media screen and (max-width: 32em) {
  section.authored-page { font-size: 14px; }
}

/* THE EMPTY BAND UNDER THE POLICY TEXT (o7 round 2026-10-20, evening). On the 404 and the two
   policy pages the authored text was followed by ~200px of bare white before CONTACTO: the theme's
   70px `section` padding, plus the authored container's own 48px, plus #contact's 70px. The
   authored section drops its bottom padding, so the gap is the container's 48px plus the theme's
   usual 70px - the same rhythm as between any two sections of the homepage. */
section.authored-page { padding-bottom: 0; }

/* THE CLIENT'S BLOCK IN THE CONTACTO BAND, from outside (its markup is untouched). It followed the
   centred lead with ~10px of space and ran the full 1140px container, so it read as a footnote
   squeezed under the heading rather than a paragraph of the section. It now keeps the theme's own
   type and alignment, gets the space a paragraph has in this theme, and a reading width centred
   in the band, like the lead above it. */
#contact .content-wraparea { max-width: 820px; margin: 26px auto 10px; }
