/*!
Theme Name: Kadence
Theme URI: https://www.liquidweb.com/software/kadence/
Author: Kadence WP
Author URI: https://www.liquidweb.com/
Description: Kadence Theme is a lightweight yet full featured WordPress theme for creating beautiful fast loading and accessible websites.
Version: 1.5.2
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence
Requires at least: 6.3
Requires PHP: 7.4
*/

/*
 * SSL Abogados, direction: editorial legal.
 * This draft layer preserves the site's navy, magenta and cyan identity while
 * improving hierarchy, readability, focus states and responsive behavior.
 */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ssl-ink: #0f2a47;
  --ssl-ink-deep: #081b2e;
  --ssl-pink: #e72a7c;
  --ssl-cyan: #91d8f6;
  --ssl-paper: #f7f9fc;
  --ssl-line: #d8e4ef;
  --ssl-muted: #52677b;
  --ssl-white: #ffffff;
  --ssl-radius: 14px;
  --ssl-content: 1240px;
}

body.home {
  background: var(--ssl-paper);
  color: var(--ssl-ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home #masthead {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(216, 228, 239, 0.9);
  box-shadow: 0 8px 26px rgba(8, 27, 46, 0.06);
}

body.home.admin-bar #masthead {
  top: 32px;
}

body.home .site-main-header-inner-wrap {
  max-width: 1440px;
  min-height: 78px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

body.home .custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

body.home .custom-logo {
  width: min(360px, 40vw);
  max-height: 68px;
  object-fit: contain;
}

body.home #site-navigation .primary-menu-container > ul > li > a {
  min-height: 46px;
  padding-inline: 0.85rem;
  color: var(--ssl-ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.home #site-navigation .primary-menu-container > ul > li > a:hover,
body.home #site-navigation .primary-menu-container > ul > li > a:focus-visible {
  color: var(--ssl-pink);
}

body.home #site-navigation .primary-menu-container > ul > li > a[href*="contacto"] {
  margin-left: 0.35rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  background: var(--ssl-ink);
  color: var(--ssl-white);
}

body.home #site-navigation .primary-menu-container > ul > li > a[href*="contacto"]:hover,
body.home #site-navigation .primary-menu-container > ul > li > a[href*="contacto"]:focus-visible {
  background: var(--ssl-pink);
  color: var(--ssl-white);
  transform: translateY(-1px);
}

body.home #site-navigation a:focus-visible,
body.home .entry-content a:focus-visible {
  outline: 3px solid var(--ssl-cyan);
  outline-offset: 4px;
}

body.home .entry-content {
  overflow: clip;
}

body.home .entry-content > .wp-block-group {
  width: 100%;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 1.5rem;
  align-items: center;
  min-height: clamp(500px, 58vh, 700px);
  background-color: var(--ssl-ink) !important;
  color: var(--ssl-white) !important;
  padding: clamp(5rem, 10vw, 8.5rem) clamp(1.25rem, 5vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(1)::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(300px, 34vw, 560px);
  aspect-ratio: 1;
  right: clamp(-220px, -8vw, -90px);
  top: clamp(-250px, -12vw, -120px);
  border: 1px solid rgba(145, 216, 246, 0.4);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(145, 216, 246, 0.08),
    0 0 0 44px rgba(145, 216, 246, 0.05),
    0 0 0 66px rgba(145, 216, 246, 0.03);
  pointer-events: none;
}

body.home .entry-content > .wp-block-group:nth-of-type(1)::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 10px;
  height: 10px;
  right: 16%;
  bottom: 18%;
  border-radius: 50%;
  background: var(--ssl-cyan);
  box-shadow: 0 0 0 10px rgba(145, 216, 246, 0.12);
  pointer-events: none;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-group__inner-container {
  width: min(100%, var(--ssl-content));
  margin-inline: auto;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) > h1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) > p {
  grid-column: 2;
  grid-row: 1;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-buttons {
  grid-column: 2;
  grid-row: 2;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 260px);
}

body.home .entry-content > .wp-block-group:nth-of-type(1) h1 {
  max-width: 820px;
  margin: 0 0 1.35rem;
  color: var(--ssl-white) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.65rem, 5.8vw, 5.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-align: left !important;
  text-wrap: balance;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) p {
  max-width: 710px;
  margin: 0 0 2.25rem;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(1.06rem, 1.7vw, 1.28rem) !important;
  line-height: 1.65;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-buttons,
body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-buttons {
  justify-content: flex-start;
  gap: 0.85rem;
}

body.home .entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.home .entry-content .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 27, 46, 0.16);
}

body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-button:first-child .wp-block-button__link,
body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button:first-child .wp-block-button__link {
  background: var(--ssl-pink) !important;
  color: var(--ssl-white) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-button:nth-child(2) .wp-block-button__link,
body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button:nth-child(2) .wp-block-button__link {
  background: var(--ssl-cyan) !important;
  color: var(--ssl-ink) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) {
  background: var(--ssl-white);
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container {
  width: min(100%, var(--ssl-content));
  margin-inline: auto;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) h2 {
  max-width: 900px;
  margin: 0 auto 0.75rem;
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.05rem, 4vw, 3.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: left !important;
  text-wrap: balance;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > p {
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--ssl-muted) !important;
  font-size: 1.08rem !important;
  line-height: 1.7;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .wp-block-columns {
  width: 100%;
  max-width: var(--ssl-content);
  gap: 1.25rem;
  margin: 0 auto 1.25rem;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .wp-block-column {
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card {
  display: flex;
  min-height: 238px;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 2.5vw, 2.4rem) !important;
  border: 0 !important;
  border-top: 3px solid var(--ssl-pink) !important;
  border-radius: 0 !important;
  background: var(--ssl-white) !important;
  box-shadow: 0 1px 0 var(--ssl-line);
  color: var(--ssl-ink) !important;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card:hover {
  background: var(--ssl-paper) !important;
  box-shadow: 0 16px 28px rgba(8, 27, 46, 0.08);
  transform: translateY(-4px);
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-icon-badge {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 1.35rem !important;
  border: 1px solid var(--ssl-line);
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--ssl-ink) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card h3 {
  margin: 0 0 0.7rem !important;
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card p {
  margin: 0 0 1.3rem !important;
  color: var(--ssl-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.65;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card > div:last-child {
  color: var(--ssl-pink) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2:nth-of-type(2) {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid var(--ssl-line);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2:nth-of-type(2) + p {
  margin-bottom: 2rem;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > .wp-block-columns:last-of-type .ssl-area-card {
  min-height: 190px;
  border-top-color: var(--ssl-cyan) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) {
  background: #eef7fb !important;
  border-top: 1px solid var(--ssl-line) !important;
  border-bottom: 1px solid var(--ssl-line) !important;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
  grid-row: 1 / span 3;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 1px solid rgba(15, 42, 71, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

body.home .entry-content > .wp-block-group:nth-of-type(3) .ssl-icon-badge {
  width: 104px !important;
  height: 104px !important;
  margin: 0 !important;
  border: 1px solid rgba(15, 42, 71, 0.18);
  border-radius: 50% !important;
  background: var(--ssl-white) !important;
  color: var(--ssl-ink) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) h2,
body.home .entry-content > .wp-block-group:nth-of-type(3) p {
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) h2 {
  margin: 0 0 0.8rem;
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) p {
  margin: 0 0 1.6rem;
  color: var(--ssl-muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.7;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) .wp-block-buttons {
  justify-content: flex-start;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) .wp-block-button__link {
  background: var(--ssl-ink) !important;
  color: var(--ssl-white) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) {
  background: var(--ssl-ink-deep) !important;
  color: var(--ssl-white) !important;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) h2,
body.home .entry-content > .wp-block-group:nth-of-type(4) p {
  grid-column: 1;
  max-width: 740px;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) h2 {
  margin: 0 0 0.8rem;
  color: var(--ssl-white) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 1.06rem !important;
  line-height: 1.7;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: stretch;
  min-width: 230px;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button,
body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button__link {
  width: 100%;
}

body.home .site-footer {
  background: var(--ssl-ink-deep);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(145, 216, 246, 0.16);
}

body.home .site-footer a {
  color: var(--ssl-cyan);
}

@media (max-width: 1024px) {
  body.home .site-main-header-inner-wrap {
    padding-inline: 1.25rem;
  }

  body.home .custom-logo {
    width: min(290px, 38vw);
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) .wp-block-columns {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  body.home.admin-bar #masthead {
    top: 46px;
  }

  body.home .site-main-header-inner-wrap {
    min-height: 68px;
    padding-inline: 1rem;
  }

  body.home .custom-logo {
    width: min(220px, 64vw);
    max-height: 54px;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) {
    min-height: 560px;
    padding: 4.5rem 1.25rem 5rem !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem) !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) p {
    font-size: 1rem !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-buttons,
  body.home .entry-content > .wp-block-group:nth-of-type(3) .wp-block-buttons,
  body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(1) .wp-block-button__link,
  body.home .entry-content > .wp-block-group:nth-of-type(3) .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(3) .wp-block-button__link,
  body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-button__link {
    width: 100%;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) {
    padding: 4rem 1.25rem !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) h2 {
    text-align: left !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) .ssl-area-card,
  body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > .wp-block-columns:last-of-type .ssl-area-card {
    min-height: 0;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) {
    padding: 4rem 1.25rem !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
    grid-row: auto;
    min-height: 180px;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) p {
    text-align: left !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) {
    padding: 4rem 1.25rem !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) h2,
  body.home .entry-content > .wp-block-group:nth-of-type(4) p {
    grid-column: 1;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

/* Structural corrections for the Gutenberg group markup used by the homepage. */
body.home .entry-content > .wp-block-group:nth-of-type(2) > h2:nth-of-type(2) {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid var(--ssl-line);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2:nth-of-type(2) + p {
  margin-bottom: 2rem;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-columns:last-of-type .ssl-area-card {
  min-height: 190px;
  border-top-color: var(--ssl-cyan) !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child {
  grid-row: 1 / span 3;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 1px solid rgba(15, 42, 71, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

body.home .entry-content > .wp-block-group:nth-of-type(4) > h2,
body.home .entry-content > .wp-block-group:nth-of-type(4) > p {
  grid-column: 1;
  max-width: 740px;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-buttons {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: stretch;
  min-width: 230px;
}

@media (max-width: 767px) {
  body.home .entry-content > .wp-block-group:nth-of-type(1) {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) > h1,
  body.home .entry-content > .wp-block-group:nth-of-type(1) > p,
  body.home .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) > p {
    margin-bottom: 0.5rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-buttons {
    width: 100%;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) {
    grid-template-columns: 1fr;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child {
    grid-row: auto;
    min-height: 180px;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(4) > p,
  body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-buttons {
    width: 100%;
  }
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child {
  width: min(100%, 260px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
}

@media (prefers-reduced-motion: reduce) {
  body.home *,
  body.home *::before,
  body.home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Global SSL Abogados surface system. */
body {
  background: var(--ssl-paper);
  color: var(--ssl-ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body #masthead {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(216, 228, 239, 0.9);
  box-shadow: 0 8px 26px rgba(8, 27, 46, 0.06);
}
body.admin-bar #masthead { top: 32px; }
body .site-main-header-inner-wrap {
  max-width: 1440px;
  min-height: 78px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
body .custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
body .custom-logo { width: min(360px, 40vw); max-height: 68px; object-fit: contain; }
body #site-navigation .primary-menu-container > ul > li > a {
  min-height: 46px;
  padding-inline: 0.85rem;
  color: var(--ssl-ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
body #site-navigation .primary-menu-container > ul > li > a:hover,
body #site-navigation .primary-menu-container > ul > li > a:focus-visible { color: var(--ssl-pink); }
body #site-navigation .primary-menu-container > ul > li > a[href*="contacto"] {
  margin-left: 0.35rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  background: var(--ssl-ink);
  color: var(--ssl-white);
}
body #site-navigation .primary-menu-container > ul > li > a[href*="contacto"]:hover,
body #site-navigation .primary-menu-container > ul > li > a[href*="contacto"]:focus-visible {
  background: var(--ssl-pink);
  color: var(--ssl-white);
  transform: translateY(-1px);
}
body #site-navigation a:focus-visible,
body .entry-content a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
  outline: 3px solid var(--ssl-cyan);
  outline-offset: 4px;
}
body .entry-content a {
  color: var(--ssl-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
body .entry-content a:hover { color: var(--ssl-pink); }
body .entry-content img { max-width: 100%; height: auto; }

body:not(.home) .entry-hero {
  background: var(--ssl-ink);
  color: var(--ssl-white);
  border: 0;
}
body:not(.home) .entry-hero .hero-section-overlay { background: transparent; }
body:not(.home) .entry-hero .entry-title {
  max-width: 980px;
  margin: 0;
  color: var(--ssl-white);
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body.page:not(.home):not(.blog):not(.page-id-43) .entry-hero { display: none; }
body.page:not(.home) #primary,
body.page:not(.home) .content-container,
body.single-post #primary,
body.single-post .content-container { width: 100%; }
body.page:not(.home) .content-container,
body.single-post .content-container {
  max-width: 1320px;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
body.page:not(.home) .entry-content.single-content,
body.single-post .entry-content.single-content { overflow: visible; color: var(--ssl-ink); }
body.page:not(.home) .entry-content.single-content > p,
body.single-post .entry-content.single-content > p {
  max-width: 72ch;
  margin-inline: auto;
  color: var(--ssl-muted);
  font-size: 1.08rem;
  line-height: 1.78;
}
body.page:not(.home) .entry-content.single-content > h2,
body.page:not(.home) .entry-content.single-content > h3,
body.single-post .entry-content.single-content > h2,
body.single-post .entry-content.single-content > h3 {
  max-width: 820px;
  margin-inline: auto;
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}
body.page:not(.home) .entry-content.single-content > h2,
body.single-post .entry-content.single-content > h2 {
  margin-top: clamp(2.75rem, 6vw, 5rem);
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
}
body.page:not(.home) .entry-content.single-content > h3,
body.single-post .entry-content.single-content > h3 {
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
body.page:not(.home) .entry-content.single-content > ul,
body.page:not(.home) .entry-content.single-content > ol,
body.single-post .entry-content.single-content > ul,
body.single-post .entry-content.single-content > ol {
  max-width: 72ch;
  margin: 1.25rem auto;
  color: var(--ssl-muted);
  line-height: 1.72;
}
body.page:not(.home) .entry-content.single-content > hr,
body.single-post .entry-content.single-content > hr {
  max-width: 820px;
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  border: 0;
  border-top: 1px solid var(--ssl-line);
}
body.page:not(.home) .entry-content > .wp-block-group.alignfull:first-child,
body.page:not(.home) .entry-content > div[style*="#0F2A47"]:first-child,
body.page:not(.home) .entry-content > section.alignfull:first-child,
body.page:not(.home) .entry-content > .ssl-homepage > section.alignfull:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ssl-ink) !important;
  color: var(--ssl-white) !important;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem) !important;
}
body.page:not(.home) .entry-content > .wp-block-group.alignfull:first-child h1,
body.page:not(.home) .entry-content > div[style*="#0F2A47"]:first-child h1,
body.page:not(.home) .entry-content > section.alignfull:first-child h1,
body.page:not(.home) .entry-content > .ssl-homepage > section.alignfull:first-child h1 {
  max-width: 920px;
  margin: 0 auto 1.15rem;
  color: var(--ssl-white) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.35rem, 5.5vw, 4.65rem) !important;
  font-weight: 700 !important;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
body.page:not(.home) .entry-content > .wp-block-group.alignfull:first-child p,
body.page:not(.home) .entry-content > div[style*="#0F2A47"]:first-child p,
body.page:not(.home) .entry-content > section.alignfull:first-child p,
body.page:not(.home) .entry-content > .ssl-homepage > section.alignfull:first-child p {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem) !important;
  line-height: 1.7;
  text-align: center;
}
body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) {
  background: var(--ssl-white);
  padding-block: clamp(3.5rem, 7vw, 6rem) !important;
}
body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > h2,
body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > p {
  max-width: 860px;
  margin-inline: auto;
}
body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > h2 {
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > p {
  color: var(--ssl-muted) !important;
  font-size: 1.06rem !important;
  line-height: 1.72;
  text-align: center;
}
body.page:not(.home) .entry-content .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ssl-pink) !important;
  color: var(--ssl-white) !important;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
body.page:not(.home) .entry-content .wp-block-button__link:hover {
  background: #c91b67 !important;
  color: var(--ssl-white) !important;
  box-shadow: 0 12px 24px rgba(8, 27, 46, 0.16);
  transform: translateY(-2px);
}
body.page:not(.home) .entry-content .ssl-area-card {
  min-height: 230px;
  padding: clamp(1.35rem, 2.4vw, 2.2rem) !important;
  border: 0 !important;
  border-top: 3px solid var(--ssl-pink) !important;
  border-radius: 0 !important;
  background: var(--ssl-white) !important;
  box-shadow: 0 1px 0 var(--ssl-line);
  color: var(--ssl-ink) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
body.page:not(.home) .entry-content .ssl-area-card:hover {
  background: var(--ssl-paper) !important;
  box-shadow: 0 16px 28px rgba(8, 27, 46, 0.08);
  transform: translateY(-4px);
}
body.page:not(.home) .entry-content .ssl-area-card h3 {
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}
body.page:not(.home) .entry-content .ssl-area-card p {
  color: var(--ssl-muted) !important;
  line-height: 1.65;
}
body.page:not(.home) .entry-content .wp-block-columns > .wp-block-column > div[style*="border:1px"] {
  padding: clamp(1.25rem, 2.5vw, 1.9rem) !important;
  border: 0 !important;
  border-top: 3px solid var(--ssl-cyan) !important;
  border-radius: 0 !important;
  background: var(--ssl-white) !important;
  box-shadow: 0 1px 0 var(--ssl-line);
}
body.page:not(.home) .entry-content .wp-block-columns > .wp-block-column > div[style*="border:1px"] h3 {
  color: var(--ssl-ink) !important;
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.2;
}
body.page:not(.home) .entry-content blockquote,
body.single-post .entry-content blockquote {
  max-width: 820px;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  border: 0;
  border-top: 3px solid var(--ssl-pink);
  background: #eef7fb;
  color: var(--ssl-ink);
}
body.page:not(.home) .entry-content form,
body.page:not(.home) .entry-content .kb-form,
body.page:not(.home) .entry-content .kadence-form {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-top: 3px solid var(--ssl-pink);
  background: var(--ssl-white);
  box-shadow: 0 1px 0 var(--ssl-line);
}
body.page:not(.home) .entry-content label {
  color: var(--ssl-ink);
  font-size: 0.9rem;
  font-weight: 700;
}
body.page:not(.home) .entry-content input,
body.page:not(.home) .entry-content select,
body.page:not(.home) .entry-content textarea {
  min-height: 48px;
  border: 1px solid var(--ssl-line);
  border-radius: 8px;
  background: var(--ssl-white);
  color: var(--ssl-ink);
  font: inherit;
}
body.page:not(.home) .entry-content textarea { min-height: 140px; }

body.blog .post-archive-hero-section,
body.page-id-43 .post-archive-hero-section {
  background: var(--ssl-ink);
  color: var(--ssl-white);
}
body.blog .post-archive-hero-section .hero-section-overlay,
body.page-id-43 .post-archive-hero-section .hero-section-overlay {
  background: transparent !important;
}
body.blog .post-archive-hero-section .hero-container,
body.page-id-43 .post-archive-hero-section .hero-container {
  position: relative;
  z-index: 1;
}
body.blog #archive-container,
body.page-id-43 #archive-container {
  background: transparent;
}
body.blog .post-archive-hero-section .archive-title,
body.page-id-43 .post-archive-hero-section .archive-title {
  color: var(--ssl-white);
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
body.blog #archive-container,
body.page-id-43 #archive-container {
  max-width: 1240px;
  padding-block: clamp(3rem, 6vw, 5rem);
}
body.blog #archive-container .loop-entry,
body.page-id-43 #archive-container .loop-entry {
  overflow: hidden;
  border: 0;
  border-top: 3px solid var(--ssl-pink);
  border-radius: 0;
  background: var(--ssl-white);
  box-shadow: 0 1px 0 var(--ssl-line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
body.blog #archive-container .loop-entry:hover,
body.page-id-43 #archive-container .loop-entry:hover {
  box-shadow: 0 16px 28px rgba(8, 27, 46, 0.09);
  transform: translateY(-3px);
}
body.blog #archive-container .post-thumbnail-inner,
body.page-id-43 #archive-container .post-thumbnail-inner {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
body.blog #archive-container .post-thumbnail-inner img,
body.page-id-43 #archive-container .post-thumbnail-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.blog #archive-container .entry-title,
body.page-id-43 #archive-container .entry-title {
  color: var(--ssl-ink);
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
}
body.blog #archive-container .entry-title a,
body.page-id-43 #archive-container .entry-title a {
  color: inherit;
  text-decoration: none;
}
body.blog #archive-container .entry-meta,
body.page-id-43 #archive-container .entry-meta { color: var(--ssl-muted); }
body.single-post .content-wrap {
  max-width: 1020px;
  margin-inline: auto;
}
body.single-post .article-post-thumbnail {
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
}
body.single-post .article-post-thumbnail .post-thumbnail-inner {
  max-height: 420px;
  overflow: hidden;
}
body.single-post .article-post-thumbnail img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
body.single-post article.entry {
  border-top: 3px solid var(--ssl-pink);
  background: var(--ssl-white);
  box-shadow: 0 1px 0 var(--ssl-line);
}
body.single-post article.entry .entry-content-wrap {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
body.single-post article.entry .entry-title {
  color: var(--ssl-ink);
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body.single-post article.entry .entry-meta {
  color: var(--ssl-muted);
  font-size: 0.9rem;
}
body.single-post article.entry .entry-content.single-content {
  max-width: 820px;
  margin-inline: auto;
}
body.single-post article.entry .entry-content.single-content > p:first-child {
  color: var(--ssl-ink);
  font-size: clamp(1.14rem, 1.8vw, 1.28rem);
}
body .site-footer {
  background: var(--ssl-ink-deep);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(145, 216, 246, 0.16);
}
body .site-footer a { color: var(--ssl-cyan); }
::selection {
  background: var(--ssl-pink);
  color: var(--ssl-white);
}
@media (max-width: 1024px) {
  body .site-main-header-inner-wrap { padding-inline: 1.25rem; }
  body .custom-logo { width: min(290px, 38vw); }
  body.page:not(.home) .content-container,
  body.single-post .content-container { padding-inline: 1.25rem; }
}
@media (max-width: 767px) {
  body.admin-bar #masthead { top: 46px; }
  body .site-main-header-inner-wrap {
    min-height: 68px;
    padding-inline: 1rem;
  }
  body .custom-logo {
    width: min(220px, 64vw);
    max-height: 54px;
  }
  body:not(.home) .entry-hero .entry-title {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }
  body.page:not(.home) .entry-content > .wp-block-group.alignfull:first-child,
  body.page:not(.home) .entry-content > div[style*="#0F2A47"]:first-child,
  body.page:not(.home) .entry-content > section.alignfull:first-child,
  body.page:not(.home) .entry-content > .ssl-homepage > section.alignfull:first-child {
    padding: 4rem 1.25rem !important;
  }
  body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) {
    padding-block: 3.5rem !important;
  }
  body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > h2,
  body.page:not(.home) .entry-content > .wp-block-group:not(:first-child) > p {
    text-align: left;
  }
  body.page:not(.home) .entry-content .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body.page:not(.home) .entry-content .wp-block-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  body.page:not(.home) .entry-content .wp-block-button,
  body.page:not(.home) .entry-content .wp-block-button__link {
    width: 100%;
  }
  body.single-post article.entry .entry-content-wrap { padding: 1.25rem; }
  body.single-post article.entry .entry-title {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
body.archive .entry-hero,
body.search .entry-hero,
body.error404 .entry-hero {
  background: var(--ssl-ink);
  color: var(--ssl-white);
}
body.archive .entry-hero .hero-section-overlay,
body.search .entry-hero .hero-section-overlay,
body.error404 .entry-hero .hero-section-overlay {
  background: transparent !important;
}
body.archive .entry-hero .entry-title,
body.search .entry-hero .entry-title,
body.error404 .entry-hero .entry-title {
  color: var(--ssl-white);
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}
body.archive #archive-container,
body.search #archive-container {
  max-width: 1240px;
  padding-block: clamp(3rem, 6vw, 5rem);
}
body.archive #archive-container .loop-entry,
body.search #archive-container .loop-entry {
  overflow: hidden;
  border: 0;
  border-top: 3px solid var(--ssl-pink);
  border-radius: 0;
  background: var(--ssl-white);
  box-shadow: 0 1px 0 var(--ssl-line);
}
body.archive #archive-container .entry-title,
body.search #archive-container .entry-title {
  color: var(--ssl-ink);
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.2;
}
body.error404 #primary {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}
body.error404 .content-wrap {
  max-width: 760px;
  padding: 3rem;
  border-top: 3px solid var(--ssl-pink);
  background: var(--ssl-white);
  text-align: center;
  box-shadow: 0 1px 0 var(--ssl-line);
}
body.error404 .content-wrap h1,
body.error404 .content-wrap h2 {
  color: var(--ssl-ink);
  font-family: 'Bitter', Georgia, serif;
}

/* Layout normalization: keep Gutenberg content inside the viewport.
   This overrides accumulated Customizer patches without changing page content. */
body.page:not(.home) .entry-content.single-content,
body.single-post .entry-content.single-content {
  min-width: 0;
  overflow: visible;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group,
body.single-post .entry-content.single-content > .wp-block-group {
  box-sizing: border-box;
  min-width: 0;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group > .wp-block-group__inner-container,
body.single-post .entry-content.single-content > .wp-block-group > .wp-block-group__inner-container {
  box-sizing: border-box;
  width: min(100%, 1120px);
  max-width: 1120px;
  min-width: 0;
  margin-inline: auto;
}

body.page:not(.home) .entry-content.single-content .wp-block-columns,
body.single-post .entry-content.single-content .wp-block-columns {
  box-sizing: border-box;
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  min-width: 0;
  margin-inline: auto;
  gap: clamp(1rem, 2vw, 2rem);
}

body.page:not(.home) .entry-content.single-content .wp-block-column,
body.single-post .entry-content.single-content .wp-block-column {
  box-sizing: border-box;
  min-width: 0 !important;
  width: auto !important;
  max-width: none;
  flex: 1 1 0 !important;
}

body.page:not(.home) .entry-content.single-content .ssl-area-card,
body.single-post .entry-content.single-content .ssl-area-card {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  writing-mode: horizontal-tb;
}

body.page:not(.home) .entry-content.single-content .ssl-area-card > *,
body.page:not(.home) .entry-content.single-content .ssl-area-card h3,
body.page:not(.home) .entry-content.single-content .ssl-area-card p,
body.page:not(.home) .entry-content.single-content .ssl-area-card span,
body.single-post .entry-content.single-content .ssl-area-card > *,
body.single-post .entry-content.single-content .ssl-area-card h3,
body.single-post .entry-content.single-content .ssl-area-card p,
body.single-post .entry-content.single-content .ssl-area-card span {
  min-width: 0;
  max-width: 100%;
  writing-mode: horizontal-tb;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

body.page:not(.home) .entry-content.single-content .wp-block-group__inner-container > * {
  min-width: 0;
  max-width: 100%;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] {
  overflow: visible;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] .wp-block-list {
  width: min(100%, 860px);
  max-width: 860px;
  margin-inline: auto;
  list-style: disc;
  padding-inline-start: 1.35rem;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] li,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] a {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 767px) {
  body.page:not(.home) .entry-content.single-content > .wp-block-group > .wp-block-group__inner-container,
  body.single-post .entry-content.single-content > .wp-block-group > .wp-block-group__inner-container,
  body.page:not(.home) .entry-content.single-content .wp-block-columns,
  body.single-post .entry-content.single-content .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page:not(.home) .entry-content.single-content .wp-block-column,
  body.single-post .entry-content.single-content .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  body.page:not(.home) .entry-content.single-content .ssl-area-card {
    min-height: 0;
  }
}

/* Dark reference panels: preserve readable contrast for every descendant. */
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"],
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] .wp-block-group__inner-container {
  color: var(--ssl-white);
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h1,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h2,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h3,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] li,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h1,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h2,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] h3 {
  color: var(--ssl-white) !important;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] a {
  color: var(--ssl-cyan) !important;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] a:hover,
body.page:not(.home) .entry-content.single-content > .wp-block-group.alignfull.has-background[style*="0F2A47"] a:focus-visible {
  color: var(--ssl-white) !important;
}

/* Blog archive: keep a single, clear title in the hero. */
body.blog .entry-hero .page-title,
body.page-id-43 .entry-hero .page-title {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1.1 !important;
  text-align: center;
}

body.blog .entry-hero .page-title::after,
body.page-id-43 .entry-hero .page-title::after {
  content: "Blog jurídico";
  display: inline-block;
  color: var(--ssl-ink) !important;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  font-weight: 700;
  line-height: 1.1 !important;
  letter-spacing: -0.03em;
}

/* Related posts: calmer heading and a readable horizontal card. */
body.single-post .entry-related {
  overflow: visible;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--ssl-paper);
}

body.single-post .entry-related-inner,
body.single-post .entry-related-inner-content {
  box-sizing: border-box;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-inline: auto;
}

body.single-post .entry-related-title {
  margin: 0 0 1.5rem;
  color: var(--ssl-ink) !important;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  text-align: left;
}

body.single-post .entry-related-carousel {
  width: 100%;
  max-width: 100%;
}

body.single-post .entry-related .splide__track {
  overflow: visible;
}

body.single-post .entry-related .splide__list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

body.single-post .entry-related .splide__slide {
  width: 100% !important;
  max-width: 760px;
}

body.single-post .entry-related .entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  min-width: 0;
  height: auto;
  overflow: hidden;
  border-top: 3px solid var(--ssl-pink);
  background: var(--ssl-white);
  box-shadow: 0 1px 0 var(--ssl-line);
}

body.single-post .entry-related .post-thumbnail-inner {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

body.single-post .entry-related .post-thumbnail-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-post .entry-related .entry-content-wrap {
  min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.75rem);
}

body.single-post .entry-related .entry-title {
  margin: 0.4rem 0 0.85rem;
  color: var(--ssl-ink) !important;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

body.single-post .entry-related .entry-title a {
  color: inherit;
}

@media (max-width: 767px) {
  body.single-post .entry-related .entry {
    display: block;
  }

  body.single-post .entry-related .entry-title {
    font-size: 1.45rem !important;
  }

  body.single-post .entry-related-inner,
  body.single-post .entry-related-inner-content {
    width: 100%;
    max-width: 100%;
  }
}

/* Final spacing pass for the related-post module. */
body.single-post .entry-related-inner.content-container.site-container {
  box-sizing: border-box;
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

body.single-post .entry-related-inner-content.alignwide {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

body.single-post .entry-related-title {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem) !important;
  line-height: 1.2 !important;
}

body.single-post .entry-related .splide__list {
  width: 100%;
}

body.single-post .entry-related .splide__arrows,
body.single-post .entry-related .splide__pagination {
  display: none;
}

body.single-post .entry-related > .entry-related-inner.content-container.site-container > .entry-related-inner-content.alignwide {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body.single-post .entry-related .splide__list {
  width: 100% !important;
  max-width: 100% !important;
}

/* Homepage architecture repair: keep the section grid on the inner container. */
body.home .entry-content > .wp-block-group:nth-of-type(3) {
  display: block !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: min(100%, var(--ssl-content)) !important;
  max-width: var(--ssl-content) !important;
  min-width: 0;
  margin-inline: auto !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: min(100%, 260px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  margin: 0 !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2 {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: 0 0 0.8rem;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: 0 0 1.6rem;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
  grid-column: 2;
  grid-row: 3;
  width: auto;
  justify-content: flex-start;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2 {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2::before {
  content: "";
  display: inline-block;
  flex: 0 0 1.05em;
  width: 1.05em;
  height: 1.05em;
  background: no-repeat center / contain;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M6 7l-4 8h8L6 7zM18 7l-4 8h8l-4-8zM4 7h16'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10l4 4v12H5zM15 4v4h4M8 12h8M8 16h6'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.6 5.5 3.6 9s-1.1 6.5-3.6 9c-2.5-2.5-3.6-5.5-3.6-9S9.5 5.5 12 3z'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: none;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
    width: min(100%, 180px);
    justify-self: center;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
    text-align: center !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2 {
    justify-content: center;
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
    justify-content: stretch;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2 {
    gap: 0.35em;
  }
}

/* Final homepage normalization for both wrapped and unwrapped block markup. */
body.home .entry-content > .wp-block-group:nth-of-type(3):not(:has(> .wp-block-group__inner-container)) {
  display: grid !important;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr) !important;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: 100% !important;
  max-width: var(--ssl-content) !important;
  min-width: 0;
  height: auto !important;
  aspect-ratio: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin-inline: auto !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child:not(.wp-block-group__inner-container),
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: min(100%, 260px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  margin: 0 !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2 {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: 0 0 0.8rem;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > p,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: 0 0 1.6rem;
  text-align: left !important;
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-buttons,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
  grid-column: 2;
  grid-row: 3;
  width: auto;
  justify-content: flex-start;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2,
body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2,
body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
body.home .entry-content > .wp-block-group:nth-of-type(4) > h2,
body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2 {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(3) > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(4) > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2::before {
  content: "";
  display: inline-block;
  flex: 0 0 1.05em;
  width: 1.05em;
  height: 1.05em;
  background: no-repeat center / contain;
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2:first-of-type::before,
body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M6 7l-4 8h8L6 7zM18 7l-4 8h8l-4-8zM4 7h16'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(2) > h2:nth-of-type(2)::before,
body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h10l4 4v12H5zM15 4v4h4M8 12h8M8 16h6'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(3) > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.5 3.6 5.5 3.6 9s-1.1 6.5-3.6 9c-2.5-2.5-3.6-5.5-3.6-9S9.5 5.5 12 3z'/%3E%3C/svg%3E");
}

body.home .entry-content > .wp-block-group:nth-of-type(4) > h2::before,
body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  body.home .entry-content > .wp-block-group:nth-of-type(3) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child:not(.wp-block-group__inner-container),
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > p,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-buttons,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: none;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > div:first-child:not(.wp-block-group__inner-container),
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > div:first-child {
    width: min(100%, 180px);
    justify-self: center;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > p,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
    text-align: center !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2 {
    justify-content: center;
    font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > p,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > p {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-buttons,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons {
    justify-content: stretch;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-buttons .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons .wp-block-button,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-buttons .wp-block-button__link,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  body.home .entry-content > .wp-block-group:nth-of-type(2) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(2) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(3) > .wp-block-group__inner-container > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(4) > h2,
  body.home .entry-content > .wp-block-group:nth-of-type(4) > .wp-block-group__inner-container > h2 {
    gap: 0.35em;
  }
}





