/* 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 fixer, 2026-10-16 — clinicadentalidentis.com
   ------------------------------------------------------------------------------------------ */

/* A PICTURE SLOT WITH NO PICTURE IS A 213px WHITE RECTANGLE.
   `.mod_featuregallery_picture` is a fixed 213px-tall box painted entirely by a CSS
   background-image, and 118 of them on 14 pages name a thumbnail the archive never captured
   (/img/w148_h70_p2/…, /img/w500_h0_p1/… and friends: 393 such urls, of which 333 had a
   full-size original on disk to be repointed at and the rest had nothing). /diccionario/ alone
   carried 27 of them — about 5,700px of blank page. The empty slot is withdrawn rather than left
   at zero height, so the anchor stretched across it (`.mod_featuregallery_picture a{height:100%}`)
   goes with it: a 0x0 link is still a control, and the card's own title and "Leer Más" already
   lead to the same page. A slot that HAS a background is untouched — the selector tests the
   element's own style attribute. */
.mod_featuregallery_picture:not([style*="background-image"]) { display: none !important; }

/* The same shape one module along: a picture-box whose photograph was never archived. It has no
   height of its own, so it costs nothing on the page, but it is still an empty container. */
.mod_picturebox .mod_picturebox_picture:empty { display: none !important; }

/* THIS SITE HAD NO MOBILE LAYOUT AT ALL.
   Its 2014 CMS theme pins `#site{min-width:1000px}`, `#top_content{min-width:970px}`,
   `#hmenu{min-width:1070px}` and `.website_sectioncontent{min-width:1070px}`, and the only
   @media blocks it ships are one rule for a feature gallery and the font-size of the takedown
   notice. At 390 the page therefore rendered a ~1240px desktop layout clipped at the right: the
   logo cut in half, the menu off-canvas, the main column off screen entirely, and the fixed badge
   rail sitting on top of the sidebar text.
   Nothing is restyled above 1070px - the desktop rendering is the one the clinic designed. Below
   it the fixed widths are released, the columns stack, and the badge rail (four `position:fixed`
   anchors at left:20px) stops covering the page; it is hidden there rather than dropped into the
   middle of the document, which is where its markup sits. */
@media only screen and (max-width: 1070px) {
  #site,
  #top_content,
  #hmenu,
  .website_sectioncontent {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }
  #top_content,
  .website_sectioncontent { padding-left: 14px !important; padding-right: 14px !important; }

  /* the header's absolutely-positioned corners have nowhere to go on a phone */
  .t_right,
  #t_social { position: static !important; width: auto !important; text-align: center; }
  .telefonos_top { text-align: center !important; margin-left: 0 !important; }
  .logo { width: auto !important; max-width: 280px; }

  /* The two-column body: small column over big column, both full width. The section class has
     to be in the selector - `.website_smallbigsection .website_columnsmall{width:28.2%!important}`
     is (0,2,0) and an `!important` of its own, so a plain `.website_columnsmall` override loses
     and the sidebar stayed 110px wide at 390 with the main column off screen beside it. */
  .website_section .website_column,
  .website_smallbigsection .website_columnsmall,
  .website_smallbigsection .website_columnbig,
  .website_bigsmallsection .website_columnsmall,
  .website_bigsmallsection .website_columnbig,
  .website_triplesection .website_columntriplet,
  .website_simplesection .website_columnfullsize,
  .website_sections .website_column {
    float: none !important;
    width: auto !important;
    margin: 0 0 18px !important;
    min-height: 0 !important;
  }

  /* the menu bar wraps instead of running off the screen */
  #hmenu .horizontalmenu { height: auto !important; padding: 4px 0; }
  #hmenu .horizontalmenu > li { display: inline-block; }

  /* four anchors with an inline `position: fixed` that overlap the content below 1070px */
  [id="top_button"][style*="position: fixed"] { display: none !important; }

  img { max-width: 100%; height: auto; }
}

/* The floating "Dra. Luz Aguiló" badge lost its background when /theme/dr-luz.jpg turned out
   never to have been archived, and its inline `font-size:9px` left a 75x75 white box with a line
   of type too small to read in it. The label is given the button's own 13px instead. */
#top_button.dr_luz > span { font-size: 13px !important; line-height: 1.15; top: 24px !important; }

/* Two more fixed widths that kept the page 1070px wide inside a 390px screen after the first
   mobile pass: the footer bar and the slider's dot strip. Measured by qa_legibility as
   "HORIZONTAL OVERFLOW 1070px in 390px" (and in 1024px) on every page. */
@media only screen and (max-width: 1070px) {
  #footer_content { width: auto !important; }
  .nivo-controlNav { min-width: 0 !important; width: auto !important; }
}

/* `.mod_text{color:#777}` is the body copy of this theme and measures 4.48:1 on white - AA for
   normal text wants 4.5, so every paragraph on the site missed it by two hundredths. #757575 is
   4.61:1 and is the same grey to the eye. Nothing else about the type changes. */
.mod_text,
.mod_featuregallery_text,
.mod_featuregallery_text a,
.mod_mailform_label { color: #757575; }

/* 23 links per page were under the 24px a finger needs: the header's two telephone links, the
   ESP/ENG/FR switcher, the social row and the footer's inline list. They are inline anchors in a
   line box of 21-22px, so they get a real box rather than a new layout. */
.telefonos_top a,
.telefonos_top a.s_item,
.languages a,
#t_social a,
#t_social a.s_item,
.social_footer a,
.social_footer a.f_item,
.social_footer a.s_item,
#footer_content a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
  vertical-align: middle;
}

/* The form field labels were `<div class="mod_mailform_label">` and are now real
   `<label for="cms_field_N">` elements, so the shared mailto sender can name each field in the
   message the clinic receives ("Nombre: …" instead of "5: …") and a click on the label focuses
   its box. A div is block and a label is inline, so the block box is restored here; the CSS that
   colours and sizes them targets the CLASS and is untouched. */
label.mod_mailform_label { display: block; }

/* ------------------------------------------------------------------------------------------
   order-7 fixer round 2 — clinicadentalidentis.com
   ------------------------------------------------------------------------------------------ */

/* THE MAILFORM'S VALIDATION BLOCK MUST START HIDDEN.
   The CMS hid `.mod_mailform_error` and its inner divs with a rule that lives only in
   /img/webobjectcss-*.php - a stylesheet whose URL ends in .php and which a static host does not
   serve as text/css, so the browser drops it and the four error sentences ("Su formulario no
   cumple con los siguientes criterios...") printed above the first field of every form before
   anything was typed. The same rule is restated here in a real .css file. The CMS script reveals
   the block with an inline `display:block` after a failed submit, which beats this rule, so a
   genuinely invalid form still says so. */
.mod_mailform_error,
.mod_mailform_error div { display: none; }

/* The gallery cards animate every property for 0.5s. On /preguntas-frecuentes/bruxismo/ the
   lower two rows of the "Casos clinicos reales" gallery were captured as white void; a card
   that is mid-transition when the page is painted is the only moving part there, so the cards
   are made static (the hover tint and the zoom-on-hover still apply, they just do not tween). */
.mod_featuregallery_feature,
.mod_featuregallery_picture { transition: none !important; }
.mod_featuregallery { height: auto; }

/* The treatment list is a stack of buttons; each <li> kept its disc bullet, which floated above
   the button's left end. */
ul.sec_menu, ul.sec_menu li { list-style: none; }

/* A long unbroken URL (the deontology PDF, a support.google.com link) must wrap inside the
   content panel instead of running under its right edge. */
.textcontent a, .mod_text a { overflow-wrap: anywhere; }

/* The consent label wraps onto two lines at 390; a line-height smaller than the font printed the
   second line over the first. */
label.mod_mailform_label { line-height: 1.35; }

/* ===== ORDER 7 FIX ROUND 3 (2026-10-17) ===================================================== */
/* THE PAID LINK MUST LOOK LIKE A LINK. Rule `.content-wraparea a { text-decoration: underline }` above
   never worked on this theme: cache_master.css ends with `a { text-decoration: none !important }`, and a
   normal declaration cannot beat an !important one, so the anchor drew in body grey with no underline.
   Colour (4.5:1+ on white: #3b5f86) and underline are therefore set here with !important. Governs
   only anchors inside .content-wraparea; the block's markup is unchanged. */
.textcontent .content-wraparea a,
.content-wraparea a {
  color: #3b5f86 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* CONTRAST (gate legibility, 2026-10-19). The plain top-bar badge "Financia a 5 años" carries an inline
   style colour:#ffffff, which is white text on the light header ground: 1.96:1 and 2.38:1 measured. Only
   the un-classed badge is touched (the classed te_llamamos / cita_online badges keep their own coloured
   grounds). The site's own text grey #5a5d5c (its hover colour) is used: 6.66:1 on white. !important is
   needed because the badge's colour is an inline style. */
a#top_button:not([class]) { color: #5a5d5c !important; }
/* CONTRAST. "Regresar" back link on the convenio page measured 4:1. Set to the site's own link blue #3b5f86
   (6.63:1 on white), the same colour the paid-link rule above uses. */
.mod_link.regresar a { color: #3b5f86 !important; }

/* ===== ORDER 7 ROUND 4 (2026-10-20): the controls qa_legibility still measured under 24px ======
   Each one is something a visitor aims at; none of them changes the layout around it. */
/* The header logo is the link home. It was an inline <a> around a block-sized image, so its own
   box was one 22px line high while the picture it stands for is ~120px: the anchor now wraps the
   picture it contains (block, so the image's width:100% still resolves against the 280px .logo). */
.logo > a { display: block; }
/* "FR" in the ESP / ENG / FR switcher is 19px wide; the three get a 24px minimum width, centred,
   so the row reads the same and the shortest code is as easy to hit as the others. */
.languages a { min-width: 24px; text-align: center; }
/* "«Regresar" (history.back) is a 14px line under every legal and content page. */
.mod_link.regresar a { display: inline-block; padding: 5px 0; }
/* "Enviar mensaje": the button's styling lived in the .php stylesheet a static host cannot serve,
   so it fell back to the browser's 21px default. It keeps that default look at a 32px height. */
.mod_mailform_submitfield button[type="submit"] { min-height: 32px; padding: 4px 14px; cursor: pointer; }
/* The cookie policy prints its seven browser and Google opt-out addresses as the link text, inside
   prose the CMS wrote as <div>s rather than <p>s; they are the only way that page offers to act on
   it. Each address gets a 26px box (it still wraps anywhere inside the column). Scoped to the
   cookie page (.page_213) so the clinic's other prose links keep their line. */
.page_213 .textcontent a[href^="http"] { display: inline-block; padding: 3px 0; max-width: 100%; }
/* The sidebar contact block on /cita-online/ links its e-mail address to /contacto/ on a line of
   its own; same box. */
#mod_text_3130 a[href="/contacto/"] { display: inline-block; padding: 3px 0; }
/* The homepage's welcome copy is written in <div>s, not <p>s, so its two in-sentence links
   ("El Equipo", "La Clínica") are measured as stand-alone controls (20px). 2px of vertical padding
   on an inline box enlarges what a finger can hit and moves nothing - inline padding does not
   change the line box. The client's .content-wraparea is excluded by name. */
.page_74 .textcontent > div:not(.content-wraparea) > a { padding: 2px 0; }

/* ===== ORDER 7 ROUND 6 (2026-10-20): what the second visual review still saw =================
   (a) A FEATURE CARD WHOSE PICTURE WAS NEVER ARCHIVED kept the theme's 40px top and bottom
   padding around a picture slot that the rule near the top of this file withdraws. The staff names
   on /quienes-somos/el-equipo/higienistas-y-auxiliares/ and /doctores/ then floated in ~130px bands
   of white. Only cards whose picture slot is withdrawn are tightened; a card WITH a picture keeps
   the theme's spacing exactly. */
.mod_featuregallery_feature:has(> .mod_featuregallery_picture:not([style*="background-image"])) {
  padding-top: 12px; padding-bottom: 12px;
}
/* (b) Two cards carry no picture, no name and no text at all - only &nbsp; in every slot: one in
   row 1 of /quienes-somos/el-equipo/doctores/ (a hole between Dra. Luz Aguiló and Dr. Jose Luis
   Gandía) and one on /quienes-somos/el-equipo/. An empty card says nothing; it is withdrawn. */
#mod_featuregallery_feature_962, #mod_featuregallery_feature_790 { display: none; }
/* (c) The authored /404.html sets its message in a bare .website_column, which has the theme's
   rounded border and shadow but none of the padding .website_columnbig gives the same box
   elsewhere: the heading sat flush on the left border and the box ended on the last baseline. */
#section_404 .website_column { padding: 18px 28px 28px; margin: 0 1.5%; background-color: #fff; }
/* (d) The privacy <select> on the forms is as wide as its longest option (~560px), so at 390 it ran
   past the right edge of the panel and was cut mid-word. A closed select shows its option
   truncated inside its own box, which is how every browser handles a long option. */
.mod_mailform select { max-width: 100%; }
/* (e) The legal notice prints the cgcom.es deontology PDF address as plain text (not a link), so the
   link rule above never reached it and at 390 it ran under the panel's right edge. break-word only
   acts on a word that cannot fit on its own line; ordinary prose is unaffected. */
.textcontent { overflow-wrap: break-word; }
/* (f) A slideshow inside a content column draws its (invisible: the dot images were never archived)
   control strip with the theme's `.nivo-controlNav{min-width:1070px}`, a width meant for the
   full-width homepage slider. Positioned from the left edge of the column, the strip ran 199px past
   the right edge of a 1440 window on /quienes-somos/el-equipo/higienistas-y-auxiliares/. Inside a
   column it is sized by its own dots, as the rule for narrow screens above already does. */
.website_column .nivo-controlNav { min-width: 0 !important; width: auto !important; }
/* (g) The consent sentence on the forms links "condiciones de uso" and "Política de privacidad" in
   the browser's default blue and visited purple: the theme's link colour lives in .textcontent,
   which a form label is not inside. The site's own darker link blue (used for the links above). */
.form-legacy-messsage a { color: #3b5f86; }
/* (h) The phone header's three buttons (Pide cita online / ¿Te llamamos? / Financia a 5 años) are
   right floats. On /cita-online/ - an older generation of the header with no ESP/ENG/FR line
   under the social icons - the first float rose beside the icon row and the other two dropped to
   a row of their own. Below 1070px the three are laid out as one centred row instead; row-reverse
   keeps the order the right floats gave them on every other page. */
@media only screen and (max-width: 1070px) {
  #top_content > #t_social { clear: both; display: flex; flex-direction: row-reverse;
    justify-content: center; flex-wrap: wrap; }
  #top_content > #t_social > #top_button { float: none; }
}
