/* =========================================================
   Ajustes visuales - menú y slider
   ========================================================= */

/* Menú principal */
.main-nav > ul {
  align-items: center;
  gap: .55rem;
}

.main-nav a,
.nav-link-with-submenu {
  position: relative;
  min-height: 42px;
  padding: .58rem .95rem;
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: #536052;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e0f1dc;
  color: #214d24;
}

.nav-link-with-submenu {
  gap: .55rem;
  border: 1px solid transparent;
}

.nav-link-with-submenu:hover,
.has-submenu.open > .nav-link-with-submenu {
  background: #f1f7ef;
  color: #214d24;
  border-color: rgba(33,77,36,.10);
  box-shadow: 0 5px 14px rgba(33,77,36,.07);
}

.nav-chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s ease, margin-top .22s ease;
}

.has-submenu.open > .nav-link-with-submenu .nav-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Dropdown de Fundación: panel tipo tarjeta */
.has-submenu {
  padding-bottom: .55rem;
  margin-bottom: -.55rem;
}

.submenu {
  top: calc(100% + .45rem);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 330px;
  padding: .75rem;
  border: 1px solid rgba(33,77,36,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 45px rgba(33,77,36,.14), 0 4px 12px rgba(0,0,0,.05);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(33,77,36,.10);
  border-top: 1px solid rgba(33,77,36,.10);
  transform: translateX(-50%) rotate(45deg);
}

.submenu::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #ff9b2b, #4f11b3);
}

.has-submenu.open > .submenu,
.has-submenu:hover > .submenu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 62px;
  padding: .7rem .75rem;
  border-radius: 13px;
  background: #f8fbf7;
  border: 1px solid transparent;
  color: #465249;
  font-size: .86rem;
  line-height: 1.25;
}

.submenu li a::before {
  content: "";
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e2f2de;
  color: #214d24;
  font-size: .72rem;
  font-weight: 700;
}

.submenu li:nth-child(1) a::before { content: "01"; }
.submenu li:nth-child(2) a::before { content: "02"; }
.submenu li:nth-child(3) a::before { content: "03"; }
.submenu li:nth-child(4) a::before { content: "04"; }

.submenu li a:hover,
.submenu li a.active {
  background: #eef7eb;
  border-color: rgba(33,77,36,.13);
  color: #214d24;
  transform: translateY(-1px);
}

.submenu li a:hover::before,
.submenu li a.active::before {
  background: #214d24;
  color: #fff;
}

/* Slider un poco más compacto */
.hero-slider-new,
.slider-new {
  min-height: 430px;
}

.slide-new {
  padding: 2.2rem max(5vw, 2rem) 2.7rem;
  gap: 1.5rem;
}

.slide-copy {
  max-width: 610px;
  padding-left: 2vw;
}

.slide-copy h1 {
  font-size: clamp(1.9rem, 3.6vw, 3.65rem);
  margin-bottom: .8rem;
}

.slide-copy p {
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.slide-media {
  height: 355px;
}

.slide-media img {
  width: min(100%, 570px);
}

.slider-btn-new {
  width: 40px;
  height: 40px;
}

.slider-dots-new {
  bottom: .85rem;
}

@media (max-width: 900px) {
  .hero-slider-new,
  .slider-new { min-height: 410px; }
  .slide-new { padding: 2rem 1.5rem 3rem; }
  .slide-media { height: 235px; }
  .slide-media img { max-height: 235px; }
}

@media (max-width: 768px) {
  .main-nav > ul { gap: .15rem; }

  .main-nav.is-open {
    box-shadow: 0 18px 30px rgba(0,0,0,.08);
  }

  .main-nav a,
  .nav-link-with-submenu {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }

  .has-submenu {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .submenu {
    min-width: 0;
    width: 100%;
    margin: .2rem 0 .35rem;
    padding: .55rem;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(33,77,36,.06);
    transform: none;
  }

  .has-submenu.open > .submenu,
  .has-submenu:hover > .submenu {
    display: grid;
    grid-template-columns: 1fr;
    transform: none;
  }

  .submenu::before,
  .submenu::after { display: none; }

  .submenu li a { min-height: 52px; }

  .hero-slider-new,
  .slider-new { min-height: 535px; }

  .slide-new {
    grid-template-columns: 1fr;
    padding: 1.7rem 1.1rem 3rem;
    text-align: center;
  }

  .slide-copy { padding: 0; max-width: 700px; margin: 0 auto; }
  .slide-copy h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .slide-copy p { line-height: 1.55; }
  .slide-media { height: 205px; }
  .slide-media img { max-height: 205px; }
}

@media (max-width: 480px) {
  .hero-slider-new,
  .slider-new { min-height: 510px; }
  .slide-media { height: 185px; }
  .slide-media img { max-height: 185px; }
  .slider-btn-new { width: 36px; height: 36px; }
}

/* =========================================================
   Pulido visual del slider y separación con el contenido
   ========================================================= */
.hero-slider-new,
.slider-new {
  min-height: 440px;
}

.hero-slider-new {
  position: relative;
  background: linear-gradient(135deg, #f5f8f3 0%, #edf4eb 52%, #e1ecdf 100%);
}

.slider-new {
  min-height: 440px;
  overflow: hidden;
}

.slide-new {
  box-sizing: border-box;
  height: 100%;
  min-height: 440px;
  padding: 2.25rem clamp(3rem, 7vw, 7rem) 3.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.slide-copy {
  max-width: 620px;
  padding-left: 0;
  position: relative;
  z-index: 2;
}

.slide-copy .eyebrow {
  margin-bottom: .55rem;
}

.slide-copy h1 {
  font-size: clamp(2rem, 3.45vw, 3.55rem);
  line-height: 1.08;
  margin-bottom: .8rem;
}

.slide-copy p {
  max-width: 570px;
  margin-bottom: 0;
}

.slide-media {
  height: 370px;
  min-width: 0;
  align-self: center;
  overflow: visible;
}

.slide-media img {
  display: block;
  width: min(100%, 560px);
  height: 370px;
  max-height: 370px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 25px rgba(33,77,36,.12));
}

.slider-dots-new {
  bottom: .9rem;
  gap: .45rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 16px rgba(33,77,36,.08);
  backdrop-filter: blur(8px);
}

.dot-new {
  width: 8px;
  height: 8px;
}

.slider-btn-new {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.88);
}

/* La frase institucional queda debajo del slider, sin montarse sobre él. */
.tagline-wrapper {
  padding: 1.5rem 1rem 1.75rem;
}

.tagline {
  margin-top: 0;
  max-width: 900px;
  padding: 1.35rem 2rem;
  border: 1px solid rgba(33,77,36,.08);
  box-shadow: 0 10px 28px rgba(33,77,36,.08);
}

.tagline h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.tagline p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero-slider-new,
  .slider-new,
  .slide-new { min-height: 510px; }

  .slide-new {
    grid-template-columns: 1fr;
    padding: 1.75rem 3.5rem 3.25rem;
    text-align: center;
    gap: .5rem;
  }

  .slide-copy {
    max-width: 720px;
    margin: 0 auto;
  }

  .slide-copy p {
    margin-inline: auto;
  }

  .slide-media {
    height: 245px;
  }

  .slide-media img {
    height: 245px;
    max-height: 245px;
    margin-inline: auto;
  }

  .tagline-wrapper {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-slider-new,
  .slider-new,
  .slide-new { min-height: 545px; }

  .slide-new {
    padding: 1.5rem 2.5rem 3.2rem;
  }

  .slide-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .slide-media {
    height: 215px;
  }

  .slide-media img {
    height: 215px;
    max-height: 215px;
  }

  .tagline {
    padding: 1.15rem 1.1rem;
    border-radius: 18px;
  }
}

/* Pulido final del botón Fundación */
.nav-link-with-submenu {
  white-space: nowrap;
}

@media (min-width: 769px) {
  .nav-link-with-submenu {
    padding-left: 1rem;
    padding-right: .9rem;
  }
}

@media (max-width: 768px) {
  .nav-link-with-submenu {
    width: 100%;
    min-height: 48px;
    padding: .72rem .9rem;
  }
}

/* Ajuste visual solicitado: slider compacto con tarjeta institucional superpuesta */
@media (min-width: 901px) {
  .hero-slider-new,
  .slider-new,
  .slide-new {
    min-height: 430px;
    height: 430px;
  }

  .slide-new {
    padding: 2.25rem max(5vw, 2rem) 3rem;
    gap: 1.25rem;
  }

  .slide-media {
    height: 360px;
  }

  .slide-media img {
    max-height: 360px;
  }

  .slider-dots-new {
    bottom: 1rem;
  }
}

/* La tarjeta entra ligeramente sobre el final del slider, como en el diseño de referencia */
.tagline-wrapper {
  position: relative;
  z-index: 20;
  margin-top: -16px;
  padding-top: 0;
}

.tagline {
  margin-top: 0;
}

@media (max-width: 900px) {
  .tagline-wrapper {
    margin-top: -14px;
    padding-top: 0;
  }
}

/* =========================================================
   MENU UNIFICADO - MISMA PRESENTACIÓN EN TODAS LAS PÁGINAS
   ========================================================= */
@media (min-width: 769px) {
  /* El dropdown siempre toma como referencia únicamente al botón Fundación. */
  .site-header .main-nav > ul > li.has-submenu {
    position: relative !important;
    width: max-content !important;
    min-width: 0 !important;
    padding-bottom: .55rem !important;
    margin-bottom: -.55rem !important;
  }

  .site-header .main-nav > ul > li.has-submenu > .submenu {
    position: absolute !important;
    top: calc(100% + .45rem) !important;
    left: 50% !important;
    right: auto !important;
    width: 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: .75rem !important;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    transform: translate(-50%, 12px) !important;
    z-index: 1000 !important;
  }

  .site-header .main-nav > ul > li.has-submenu.open > .submenu,
  .site-header .main-nav > ul > li.has-submenu:hover > .submenu {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, 0) !important;
  }

  .site-header .main-nav > ul > li.has-submenu > .submenu li {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .main-nav > ul > li.has-submenu > .submenu li a {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* El estado activo conserva el aspecto suave del resto del menú. */
  .site-header .main-nav > ul > li.has-submenu > .submenu li a.active {
    background: #eef7eb !important;
    color: #214d24 !important;
    border-color: rgba(33,77,36,.13) !important;
  }

  .site-header .main-nav > ul > li.has-submenu > .submenu li a.active::before {
    background: #e2f2de !important;
    color: #214d24 !important;
  }
}


/* =========================================================
   LISTAS DE CONTENIDO - GUIA Y SIAU
   Elimina los marcadores que aparecían fuera de lugar sin
   afectar el menú principal ni el submenú Fundación.
   ========================================================= */
main.page-guia .guia-nav ul,
main.page-guia .guia-nav li,
main.page-siau ul,
main.page-guia .guia-section > ul,
main.page-guia .guia-tip-card ul,
main.page-guia .guia-do ul,
main.page-guia .guia-dont ul {
  list-style: none !important;
}

main.page-guia .guia-section > ul,
main.page-guia .guia-tip-card ul,
main.page-guia .guia-do ul,
main.page-guia .guia-dont ul,
main.page-siau ul {
  padding-left: 0 !important;
}

main.page-guia .guia-nav ul {
  margin: 0;
  padding-left: 0;
}

/* Honeypot anti-spam: invisible para usuarios y accesible solo a bots simples. */
.form-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;}

/* =========================================================
   AJUSTE RESPONSIVE V1
   Evita desbordamiento del submenú Fundación en móviles
   y en anchos de escritorio reducidos.
   No altera la presentación visual en tamaños normales.
   ========================================================= */
@media (min-width: 769px) and (max-width: 900px) {
  .site-header .main-nav > ul > li.has-submenu > .submenu {
    width: min(430px, calc(100vw - 24px)) !important;
    min-width: min(430px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 768px) {
  .site-header .main-nav > ul > li.has-submenu > .submenu,
  .submenu {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .site-header .main-nav > ul > li.has-submenu > .submenu li,
  .site-header .main-nav > ul > li.has-submenu > .submenu li a {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   Navegación móvil - Responsive V2
   Solo aplica hasta 768px; el menú de escritorio no cambia.
   ========================================================= */
@media (max-width: 768px) {
  .site-header .header-content {
    position: relative;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    background: #f1f7ef;
    border: 1px solid rgba(33,77,36,.10);
    transition: background .2s ease, box-shadow .2s ease;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: #e0f1dc;
    box-shadow: 0 5px 14px rgba(33,77,36,.10);
    outline: none;
  }

  .nav-toggle-line {
    width: 22px;
    height: 2px;
    margin: 0;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 16px 16px;
  }

  .main-nav > ul {
    gap: .2rem;
    padding: .75rem;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > .nav-link-with-submenu {
    min-height: 46px;
    padding: .7rem .85rem;
    font-size: .96rem;
  }

  .main-nav > ul > li > a.active {
    background: #e0f1dc;
    color: #214d24;
  }

  .nav-link-with-submenu {
    text-align: left;
  }

  .has-submenu.open > .nav-link-with-submenu {
    background: #f1f7ef;
  }

  .submenu {
    width: calc(100% - .4rem);
    margin: .25rem .2rem .45rem;
    padding: .45rem;
    background: #f8fbf7;
    border: 1px solid rgba(33,77,36,.08);
  }

  .submenu li a {
    min-height: 48px;
    padding: .65rem .7rem;
    font-size: .9rem;
  }

  .submenu li a::before {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: .68rem;
  }
}

@media (max-width: 360px) {
  .main-nav > ul {
    padding: .6rem;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > .nav-link-with-submenu {
    font-size: .92rem;
    min-height: 44px;
  }

  .submenu li a {
    font-size: .86rem;
  }
}

/* Nombre institucional junto al logo principal del encabezado */
.header-brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: .92;
  text-decoration: none;
  white-space: nowrap;
}
.header-brand-name span {
  color: #214d24;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.header-brand-name strong {
  color: #4f11b3;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

/* =========================================================
   FOOTER INSTITUCIONAL - V1
   ========================================================= */
.site-footer {
  background: linear-gradient(135deg, #17391b 0%, #214d24 52%, #263c63 100%);
  color: #dfe9df;
  margin-top: 3rem;
  border-top: 4px solid #ff9b2b;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) minmax(160px, .8fr) minmax(240px, 1.15fr) minmax(190px, .85fr);
  gap: 2rem;
  padding-block: 2.6rem;
}

.footer-col { min-width: 0; }

.footer-brand { max-width: 390px; }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .55rem .8rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.footer-logo img {
  display: block;
  width: 118px;
  height: 58px;
  object-fit: contain;
}

.footer-brand-text {
  max-width: 36rem;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  line-height: 1.75;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: .15rem 0 .75rem;
  letter-spacing: .01em;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: .06rem;
}

.footer-links li + li { margin-top: 0; }

.footer-links a {
  color: rgba(255,255,255,.73);
  text-decoration: none;
  font-size: .84rem;
  line-height: 1.32;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-links a::before {
  content: "›";
  margin-right: .45rem;
  color: #ffb65d;
}

.footer-links a:hover {
  color: #fff;
  padding-left: .2rem;
}

.footer-contact { display: grid; align-content: start; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-size: .84rem;
  line-height: 1.55;
  margin-bottom: .9rem;
}

.footer-contact-item strong {
  color: #fff;
  font-weight: 500;
}

.footer-contact-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #ffb65d;
  font-size: .95rem;
}

.footer-contact a:hover { color: #fff; }

.footer-socials {
  display: flex;
  gap: .55rem;
  margin-top: 1.2rem;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-socials img {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.42);
}

.footer-highlight-card {
  height: 100%;
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 15px 35px rgba(0,0,0,.12);
}

.footer-highlight-kicker {
  display: block;
  margin-bottom: .65rem;
  color: #ffb65d;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-highlight-card h4 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.25rem;
  padding: .62rem .9rem;
  border-radius: 999px;
  background: #fff;
  color: #214d24;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  padding-block: .9rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,.62);
  font-size: .76rem;
}

.whatsapp-chat img {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
  .footer-brand { max-width: none; }
}

@media (max-width: 600px) {
  .site-footer { margin-top: 2rem; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2rem;
  }
  .footer-brand { max-width: 100%; }
  .footer-brand-lockup { gap: .7rem; }
  .footer-logo img { width: 105px; height: 54px; }
  
.footer-highlight-card { min-height: auto; }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: .25rem;
  }
}

@media (max-width: 720px) {
  .header-brand-name span { font-size: .64rem; }
  .header-brand-name strong { font-size: 1.3rem; }
}

.logo > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  flex: 0 0 62px;
}
@media (max-width: 720px) {
  .logo > img { width: 54px; height: 54px; flex-basis: 54px; }
  .header-brand-name span { font-size: .62rem; }
  .header-brand-name strong { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .logo > img { width: 50px; height: 50px; flex-basis: 50px; }
  .header-brand-name span { font-size: .58rem; }
  .header-brand-name strong { font-size: 1.1rem; }
}

/* =========================================================
   REVISIÓN RESPONSIVE FINAL — V6
   Ajustes puntuales, sin alterar el diseño aprobado.
   ========================================================= */

/* Entre 769 y 900 px el menú de escritorio se compacta para evitar
   desbordamiento antes de entrar al menú hamburguesa. */
@media (min-width: 769px) and (max-width: 900px) {
  .site-header .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .site-header .header-content {
    gap: .45rem;
  }

  .site-header .logo {
    gap: .45rem;
    flex-shrink: 0;
  }

  .site-header .logo > img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .site-header .header-brand-name span {
    font-size: .6rem;
  }

  .site-header .header-brand-name strong {
    font-size: 1.2rem;
  }

  .site-header .main-nav > ul {
    gap: .08rem;
  }

  .site-header .main-nav a,
  .site-header .nav-link-with-submenu {
    min-height: 38px;
    padding: .42rem .5rem;
    font-size: .82rem;
  }

  .site-header .nav-link-with-submenu {
    padding-left: .55rem;
    padding-right: .5rem;
  }
}

/* El banner interior no necesita ocupar tanta altura en teléfonos. */
@media (max-width: 768px) {
  .page-banner {
    height: 34vh;
    min-height: 285px;
  }

  .banner-content {
    width: min(100% - 2rem, 700px);
  }

  .banner-content h1 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .banner-content p {
    font-size: .95rem;
    line-height: 1.5;
  }

  .section {
    padding-block: 2.15rem;
  }

  .section-header-center p {
    font-size: .94rem;
    line-height: 1.6;
  }

  /* Evita el zoom automático de navegadores móviles al enfocar formularios. */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .mapa-container iframe {
    height: 360px;
  }

  .internacion-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .internacion-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }
}

/* Teléfonos pequeños: más aire lateral útil sin cambiar la composición. */
@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .top-bar-content {
    align-items: center;
    text-align: center;
  }

  .top-bar-right {
    justify-content: center;
  }

  .tagline-wrapper {
    padding-inline: .35rem;
  }

  .tagline {
    padding-inline: 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .info-card {
    padding: 1rem;
  }
}

/* Consentimiento de datos (formulario de contacto) */
.form-consent label{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;line-height:1.45;font-weight:400}
.form-consent input[type=checkbox]{width:auto;margin-top:.2rem;flex:none}

/* Estado vacío para la galería durante la instalación inicial sin contenido CRUD. */
.gallery-empty-state{grid-column:1/-1;text-align:center;padding:2.5rem 1rem;color:var(--color-text-body-muted);font-size:1rem}
