/* Shared site footer (footer-dentalink) — used across all pages */

/* Header logo size — kept consistent across all pages */
.logo-area .logo img {
  height: 46px;
  width: auto;
}

/* Floating WhatsApp button. Deliberately NOT the theme's .rts-dark-light
   class (that markup was copy-pasted from the theme's dark/light toggle
   widget, keeping its classes for the free floating-circle-button CSS).
   main.js watches for any ".rts-dark-light" element on the page and, if it
   finds one, auto-sets [data-theme="dark"] on <html> whenever the visitor's
   OS is in dark mode (see its "THEME MODE SWITCHER" block) — there's no
   real toggle anywhere on this site (that widget's own markup is HTML-
   commented-out on every page), so this WhatsApp button was the only thing
   ever matching that selector, silently flipping phones with system dark
   mode (common on Android, e.g. Vivo) into a theme these pages were never
   designed for: [data-theme="dark"] repoints the theme's --color-body/
   --color-heading-1 variables to white, which blanked the white-on-white
   "Quiénes somos"/"Cobertura integral" copy and hid the header's logo (only
   a .light logo <img> exists in the markup; that theme rule shows it solely
   under [data-theme="light"] and hides it under "dark", with no .dark
   counterpart to swap in). This class carries over just the two cosmetic
   rules .rts-dark-light used to contribute (the icon's 36px size and the
   hover transition) so the button still looks the same. */
.rts-wa-fab {
  transition: all 0.4s;
  cursor: pointer;
  font-size: 20px;
}
.rts-wa-fab i {
  transition: all 0.4s;
  font-size: 36px;
}

/* Consistent paragraph spacing across all pages — overrides the many
   ad-hoc line-height/margin values scattered through style.css and
   page-level <style> blocks so body copy reads the same everywhere. */
p.disc,
.ha-lead,
.ha-card p,
.ha-service-body p.desc,
.ha-diff-item p,
.ha-method-desc,
.ha-final-cta p.body,
.value-card p,
.team-info p.bio,
.cb-value-card p,
.cb-solution-card p {
  line-height: 1.7;
  margin-bottom: 16px;
}

p.disc:last-child,
.ha-card p:last-child,
.ha-service-body p.desc:last-child,
.ha-diff-item p:last-child,
.value-card p:last-child,
.team-info p.bio:last-child,
.cb-value-card p:last-child,
.cb-solution-card p:last-child {
  margin-bottom: 0;
}

.footer-dentalink {
  background: #ffffff;
  border-top: 1px solid #eaeaea;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: #333;
}

/* Contenedor principal */
.footer-container {
  max-width: 1300px;
  margin: auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  /* 4 columns, single row: Logo, Contacto, Ubícanos, Recursos. Spacing
     between the logo and the lists comes from `gap` alone now (no spacer
     div/track), so the count here always matches the 4 .footer-col
     elements in the markup. Logo's share is narrower than Contacto's on
     purpose — the logo image just shrinks to fit (width:100% + max-width
     cap), while Contacto holds phone numbers that must each stay on one
     line, so it gets the extra room instead. */
  grid-template-columns: 1.6fr 1.8fr 1.5fr 1.5fr;
  gap: 2.5rem;
}

/* Columnas */
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #7a86a1;
}

/* Logo — was 370px, crowding the other 3 columns at the container's own
   max-width. Scaled down so it reads as one column among four instead of
   dominating the row. */
.footer-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* Texto */
.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: #444;
}

/* Listas */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  font-size: 13px;
  margin-bottom: 0.6rem;
  color: #444;
}

/* Flag/mail icons in the Contacto and Ubícanos lists — scaled down to match
   the smaller list text (was 24px, oversized next to 13px type). */
.footer-list li img {
  width: 18px !important;
}

/* Links */
.footer-list a,
.footer-email a,
.footer-legal a {
  font-size: 11px;
  text-decoration: none;
  color: #444;
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-email a:hover,
.footer-legal a:hover {
  color: #0063a5;
}

/* Redes sociales */
.footer-social {
  margin-top: 6rem;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-size: 2.3rem;
  color: #333;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #0063a5;
}

/* Email */
.footer-email {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.footer-email i {
  font-size: 1.1rem;
  color: #333;
}

/* Footer inferior */
.footer-bottom {
  border-top: 1px solid #eaeaea;
  padding: 1.5rem;
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: #666;
}

/* Links legales */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    /* Two fixed buttons stack at the bottom-right on mobile: "back to top"
       (bottom:30px) and the floating WhatsApp button (bottom:100px), each
       60px tall — together they occupy ~30-160px above the bottom edge.
       Once the page is scrolled all the way down that zone lands on top of
       this row's last centered line ("Términos y Condiciones"). Padding the
       row itself pushes the real text above that zone instead. */
    padding-bottom: 180px;
  }

  .footer-legal {
    justify-content: center;
  }
}
