:root {
  --teal: #56c3b8;
  --teal-dark: #3ba89d;
  --teal-light: #a8e0db;
  --navy: #2f3746;
  --navy-mid: #3d4a5e;
  --navy-dark: #1e2533;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --bg-teal: #eaf6f5;
  --text: #1e2533;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #d1e8e6;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/*
 * Keep words intact across the whole site. The parent theme enables automatic
 * hyphenation and word breaking on `.site`, which can split Spanish words.
 */
.site,
.site * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}

.ibcd-page-container {
  width: min(1140px, calc(100% - 10rem));
  margin: 0 auto;
}

body .site-header--child {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
  z-index: 200;
}

body .site-header--child::before,
body .site-header--child::after,
body .site-content::before,
body .site-content::after {
  display: none;
  content: none;
}

body .site-content {
  margin: 0;
  padding: 0;
}

body.ibcd-home-body:not(.page-template-fullwidth-content) .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.ibcd-nosotros-body:not(.page-template-fullwidth-content) .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.ibcd-creencias-body:not(.page-template-fullwidth-content) .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.ibcd-contacto-body:not(.page-template-fullwidth-content) .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

body.ibcd-series-body:not(.page-template-fullwidth-content) .site-content {
  margin-top: 0;
  margin-bottom: 0;
}

.site-header--child .nav-logo,
.site-header--child .custom-logo-link,
.site-footer--child .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-header--child .custom-logo,
.site-footer--child .custom-logo {
  width: auto;
  height: auto;
  max-height: 42px;
  filter: brightness(0) invert(1);
}

.site-header--child .custom-logo {
  display: block;
}

.site-footer--child .custom-logo {
  max-height: 52px;
}

body .site-header--child .ibcd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
  border: 0;
}

body .site-header--child .ibcd-nav.scrolled {
  background: rgba(47, 55, 70, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

body.ibcd-force-dark-header .site-header--child .ibcd-nav {
  position: fixed;
  background: rgba(47, 55, 70, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

body.ibcd-force-dark-header .site-header--child {
  height: 0;
}

body.ibcd-force-dark-header .site-content {
  padding-top: 86px;
}

body .site-header--child .nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

body .site-header--child .nav-logo-image {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

body .site-header--child .nav-links,
body .site-header--child .mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body .site-header--child .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

body .site-header--child .nav-links li {
  margin: 0;
  padding: 0;
}

body .site-header--child .nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

body .site-header--child .nav-links a:hover {
  color: #a8e0db;
}

body .site-header--child .nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  margin-left: 2rem;
}

body .site-header--child .nav-cta {
  background: #56c3b8;
  color: white;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s;
}

body .site-header--child .nav-cta:hover {
  background: #3ba89d;
}

body .site-header--child .nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

body .site-header--child .nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

body .site-header--child .nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body .site-header--child .nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

body .site-header--child .nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body .site-header--child .mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(47, 55, 70, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  padding: 7rem 2.5rem 3rem;
}

body .site-header--child .mobile-menu.open {
  display: flex;
}

body .site-header--child .mobile-menu-list li {
  margin: 0;
}

body .site-header--child .mobile-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s;
  display: block;
}

body .site-header--child .mobile-menu a:hover {
  color: #56c3b8;
}

body .site-header--child .mobile-menu .mobile-cta {
  margin-top: 2rem;
  background: #56c3b8;
  color: white;
  text-align: center;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: none;
  padding: 1rem;
}

.site-footer--child {
  background: #1e2533;
  padding: 5rem 0 2.5rem;
}

.site-footer--child .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.site-footer--child .footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.site-footer--child .logo-sub,
.site-footer--child .footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer--child .logo-sub {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
}

.site-footer--child .footer-brand p {
  font-family: 'Lora', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 0 1.5rem;
}

.site-footer--child .social-links {
  display: flex;
  gap: 0.75rem;
}

.site-footer--child .social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.site-footer--child .social-link:hover {
  border-color: #56c3b8;
  color: #56c3b8;
}

.site-footer--child .footer-col h4 {
  color: #56c3b8;
  margin: 0 0 1.25rem;
}

.site-footer--child .footer-col ul,
.site-footer--child .footer-extra-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--child .footer-col ul li,
.site-footer--child .footer-extra-links li {
  margin-bottom: 0.6rem;
}

.site-footer--child .footer-col ul li a,
.site-footer--child .footer-extra-links li a,
.site-footer--child .contact-item,
.site-footer--child .contact-item a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.site-footer--child .footer-col ul li a:hover,
.site-footer--child .footer-extra-links li a:hover,
.site-footer--child .contact-item a:hover {
  color: white;
}

.site-footer--child .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.site-footer--child .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer--child .footer-bottom p,
.site-footer--child .footer-bottom a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.site-footer--child .footer-bottom a:hover {
  color: #56c3b8;
}

@media (max-width: 900px) {
  .ibcd-page-container {
    width: min(1140px, calc(100% - 4rem));
  }

  body.ibcd-force-dark-header .site-content {
    padding-top: 74px;
  }

  body .site-header--child .ibcd-nav {
    padding: 1rem 1.5rem;
  }

  body .site-header--child .nav-links,
  body .site-header--child .nav-actions {
    display: none;
  }

  body .site-header--child .nav-hamburger {
    display: flex;
  }

  .site-footer--child {
    padding: 4rem 0 2rem;
  }

  .site-footer--child .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .site-footer--child .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .ibcd-page-container {
    width: min(1140px, calc(100% - 3rem));
  }

  body.ibcd-force-dark-header .site-content {
    padding-top: 70px;
  }

  body .site-header--child .ibcd-nav {
    padding: 0.9rem 1.25rem;
  }

  .site-footer--child {
    padding: 3.5rem 0 2rem;
  }

  .site-footer--child .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer--child .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
