:root {
  --bg-main: #f4efe4;
  --bg-hero: linear-gradient(125deg, #1e2f40 0%, #3f6c51 55%, #d2a23c 100%);
  --brand: #c96430;
  --ink: #1f2023;
  --soft: #6f6f72;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.6), transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(201, 100, 48, 0.18), transparent 35%),
    var(--bg-main);
}

body.app-body.frontend-mode.has-home-bg {
  background: var(--bg-main);
}

body.app-body.frontend-mode.has-home-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(244, 239, 228, 0.12), rgba(244, 239, 228, 0.12)),
    var(--home-bg-image) center center / cover no-repeat fixed;
  pointer-events: none;
}

body.app-body.frontend-mode.has-home-bg main,
body.app-body.frontend-mode.has-home-bg .site-footer {
  position: relative;
  z-index: 1;
}

body.app-body.frontend-mode.has-home-bg .hero-wrap {
  background: linear-gradient(125deg, rgba(55, 118, 211, 0.84) 0%, rgba(55, 118, 211, 0.78) 100%);
}

body.app-body.frontend-mode.has-home-bg .front-title-strip {
  background: linear-gradient(125deg, rgba(55, 118, 211, 0.84) 0%, rgba(55, 118, 211, 0.78) 100%);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: #fff;
}

body.app-body.frontend-mode.has-home-bg .front-title-strip .text-muted,
body.app-body.frontend-mode.has-home-bg .front-title-strip .text-body-secondary,
body.app-body.frontend-mode.has-home-bg .front-title-strip small,
body.app-body.frontend-mode.has-home-bg .front-title-strip a {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.app-body.frontend-mode.has-home-bg .front-title-strip .dropdown-menu,
body.app-body.frontend-mode.has-home-bg .front-title-strip .dropdown-menu .dropdown-item {
  color: #1f2023 !important;
}

body.app-body.frontend-mode.has-home-bg .front-title-strip .dropdown-menu .dropdown-item:hover,
body.app-body.frontend-mode.has-home-bg .front-title-strip .dropdown-menu .dropdown-item:focus {
  color: #1f2023 !important;
  background: rgba(55, 118, 211, 0.12);
}

body.app-body.frontend-mode.has-home-bg .post-card,
body.app-body.frontend-mode.has-home-bg .content-block,
body.app-body.frontend-mode.has-home-bg .kpi-card,
body.app-body.frontend-mode.has-home-bg .glass-panel {
  backdrop-filter: blur(2px);
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
}

.site-top-message {
  position: relative;
  z-index: 1105;
  background: linear-gradient(90deg, rgba(31, 32, 35, 0.96) 0%, rgba(63, 108, 81, 0.94) 52%, rgba(201, 100, 48, 0.94) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-top-message__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.55rem 0;
  text-align: center;
  line-height: 1.25;
  flex-wrap: wrap;
  flex-direction: column;
}

.site-top-message__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: center;
}

.site-top-message__text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-top-message__text span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-top-message__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-width: 190px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #1f2023;
  background: linear-gradient(180deg, #ffffff 0%, #f2e5c5 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-top-message__button strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-top-message__button span {
  font-size: 0.72rem;
  color: rgba(31, 32, 35, 0.76);
}

.site-top-message__button:hover,
.site-top-message__button:focus {
  color: #1f2023;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.nav-shell {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-navbar {
  top: 0;
  z-index: 1100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.site-navbar .navbar-collapse {
  background: transparent;
}

.nav-link-with-icon,
.dropdown-item-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.nav-link-with-icon > span,
.dropdown-item-with-icon > span {
  display: block;
  min-width: 0;
  white-space: normal;
  line-height: 1.15;
}

.nav-item-icon {
  width: auto;
  height: auto;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  flex-shrink: 0;
  image-rendering: auto;
  background: transparent;
}

.nav-item-icon-sm {
  max-width: 16px;
  max-height: 16px;
}

.dropdown-item-with-icon {
  display: flex;
}

.menu-icon-preview {
  max-width: 120px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (max-width: 991.98px) {
  .site-top-message__inner {
    min-height: auto;
    padding: 0.55rem 0;
    gap: 0.45rem;
  }

  .site-top-message__text strong,
  .site-top-message__text span {
    display: block;
    width: 100%;
  }

  .site-top-message__text strong {
    font-size: 0.9rem;
  }

  .site-top-message__text span {
    font-size: 0.8rem;
  }

  .site-top-message__button {
    min-width: 176px;
    padding: 0.48rem 0.8rem;
  }

  .site-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 0.4rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
}

.navbar-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  flex-wrap: nowrap;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.navbar-brand img {
  flex: 0 0 auto;
  flex-shrink: 0;
}

.navbar-brand span {
  display: block;
  min-width: 0;
  white-space: normal;
  line-height: 1.12;
}

.brand-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  margin-right: 0.45rem;
}

.hero-wrap {
  background: var(--bg-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.2rem;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 21px;
  background: linear-gradient(180deg, rgba(55, 108, 215, 0.42) 0%, rgba(55, 00, 215, 0.18) 55%, rgba(55, 108, 215, 0) 100%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.glass-panel {
  background: rgba(16, 26, 36, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-brand:hover,
.btn-brand:focus {
  background: #af5323;
  border-color: #af5323;
  color: #fff;
}

.post-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 14px 24px rgba(18, 23, 30, 0.08);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(18, 23, 30, 0.15);
}

.single-post {
  max-width: 840px;
}

.content-block {
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 14px 24px rgba(18, 23, 30, 0.08);
}

/* Medios responsivos en publicaciones: evita que imagen/video rompan tarjetas o detalle */
.content-block img,
.content-block video,
.post-card .text-body-secondary img,
.post-card .text-body-secondary video {
  display: block;
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  border-radius: 0.5rem;
  margin: 0.5rem auto;
}

/* En tarjetas limita altura visual para mantener el grid ordenado */
.post-card .text-body-secondary img,
.post-card .text-body-secondary video {
  max-height: 320px;
  object-fit: contain;
}

/* Google Translate Widget Styling */
.google-translate-wrapper {
    display: inline-block;
    vertical-align: middle;
}

.google-translate-wrapper .goog-te-gadget {
    font-family: inherit;
    font-size: 0.85rem;
    color: #333;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
}

.google-translate-wrapper .goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
}

.google-translate-wrapper .goog-te-gadget .goog-te-combo {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out;
    min-width: 140px;
}

.google-translate-wrapper .goog-te-gadget .goog-te-combo:hover {
    border-color: #999;
}

.google-translate-wrapper .goog-te-gadget .goog-te-combo:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.google-translate-wrapper .goog-te-gadget span {
    font-size: 0.7rem;
    color: #666;
    margin: 0.3rem 0 0 0;
    display: block;
    line-height: 1.2;
    white-space: normal;
}

.google-translate-wrapper .goog-te-gadget a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.65rem;
}

.google-translate-wrapper .goog-te-gadget a:hover {
    text-decoration: underline;
}
.post-card .text-body-secondary iframe {
  max-width: 100%;
}

.kpi-card {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 10px 18px rgba(18, 23, 30, 0.08);
}

.kpi-label {
  color: var(--soft);
  margin-bottom: 0.3rem;
}

.kpi-value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.site-footer {
  background: transparent;
  border-top: none;
}

.footer-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 20px rgba(18, 23, 30, 0.08);
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: #4f5156;
  margin-bottom: 0.4rem;
}

.footer-list i {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
}

.footer-collab {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-collab__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4f5156;
}

.footer-collab__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #1e2f40 0%, #3f6c51 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 18px rgba(30, 47, 64, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.footer-collab__button:hover,
.footer-collab__button:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(30, 47, 64, 0.22);
}

.footer-social-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.15rem;
  color: #4f5156;
}

.footer-social-list li + li {
  margin-top: 0.35rem;
}

.footer-social-list__link {
  color: #1f2023;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-social-list__link:hover,
.footer-social-list__link:focus {
  color: var(--brand);
  text-decoration: underline;
}

.footer-social-list__label {
  color: #4f5156;
  font-size: 0.92rem;
  font-weight: 500;
}

.social-links {
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 0.9rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 32, 35, 0.08);
  color: #1f2023;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
}

.social-link--facebook:hover,
.social-link--facebook:focus {
  background: #1877f2;
}

.social-link--twitter:hover,
.social-link--twitter:focus {
  background: #111111;
}

.social-link--google:hover,
.social-link--google:focus {
  background: #db4437;
}

.social-link--social1:hover,
.social-link--social1:focus {
  background: #0a66c2;
}

.social-link--social2:hover,
.social-link--social2:focus {
  background: #8a3ab9;
}

.social-link i {
  font-size: 1rem;
}

.social-link-sm {
  width: 30px;
  height: 30px;
}

.social-link-sm i {
  font-size: 0.88rem;
}

.social-nav-icons {
  min-height: 30px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-wrap::after {
    height: 64px;
  }
}

@media (max-width: 575.98px) {
  .site-top-message__inner {
    padding: 0.5rem 0;
  }

  .site-top-message__text strong {
    font-size: 0.82rem;
  }

  .site-top-message__text span {
    font-size: 0.74rem;
    padding: 0 0.3rem;
  }

  .site-top-message__button {
    min-width: 162px;
    max-width: calc(100% - 1rem);
    padding: 0.46rem 0.75rem;
  }

  .site-top-message__button strong {
    font-size: 0.75rem;
  }

  .site-top-message__button span {
    font-size: 0.68rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .site-footer .container {
    text-align: center;
  }

  .footer-collab {
    align-items: center;
  }

  .footer-social-list {
    display: inline-block;
    text-align: left;
  }

  .footer-collab__button {
    width: 100%;
  }
}
