/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
  /* La magia: reserva siempre el espacio del scroll */
}

:root {
  --green: #00684f;
  --green-2: #004d3a;
  --green-3: #003d2e;
  --green-md: #45967b;
  --cream: #f4f3e0;
  --cream-2: #ecebd6;
  --gold: #f8ad00;
  --gold-lt: #fec600;
  --dark: #3c3c3b;
  --gray: #575756;
}

body {
  background: var(--green);
  color: var(--cream);
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══ NAV ══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Izquierda, Centro exacto, Derecha */
  align-items: center;
  padding: 0 40px;
  height: 80px;
  transition: background .45s ease, height .35s ease, backdrop-filter .45s ease;
}

#nav.scrolled {
  background: rgba(0, 104, 79, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  height: 64px;
}

/* Divisiones del Header */
.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 46px;
  /* Tamaño ideal para el header */
  width: auto;
  object-fit: contain;
  transition: height 0.35s ease;
}

#nav.scrolled .nav-logo-img {
  height: 34px;
  /* Se achica sutilmente al hacer scroll */
}

/* ── Nav links principales ── */
.nav-item {
  position: relative;
}

.nav-item>a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 243, 224, .72);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 80px;
  position: relative;
  white-space: nowrap;
}

#nav.scrolled .nav-item>a {
  height: 64px;
}

.nav-item>a:hover {
  color: var(--cream);
}

.nav-item:hover>a {
  color: var(--cream);
}

/* Chevron */
.nav-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  flex-shrink: 0;
}

.nav-item:hover .nav-chevron {
  transform: rotate(225deg) translateY(-2px);
}

/* ── Dropdown (Submenús) ── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 240px;
  background: rgba(0, 77, 58, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .12s ease-out, transform .12s ease-out;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.nav-item:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(244, 243, 224, .65);
  text-decoration: none;
  transition: color .15s, background .15s, padding-left .18s;
}

/* Micro-animación Hover Nav Principal y Submenú (Underline animado) */
.nav-item>a span:first-child,
.dropdown a span {
  position: relative;
  display: inline-block;
}

.nav-item>a span:first-child::after,
.dropdown a span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-item>a:hover span:first-child::after,
.dropdown a:hover span::after {
  width: 100%;
}

.dropdown a:hover {
  color: var(--cream);
  background: rgba(248, 173, 0, .07);
  padding-left: 26px;
}

/* Language toggle (ES/JP) */
.nav-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(244, 243, 224, .55);
  cursor: pointer;
  border: 1px solid rgba(244, 243, 224, .18);
  border-radius: 3px;
  padding: 0;
  gap: 4px;
  flex-shrink: 0;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  transition: color .2s, border-color .2s;
}

.nav-lang:hover {
  color: var(--cream);
  border-color: rgba(244, 243, 224, .4);
}

.nav-lang .lang-sep {
  opacity: .3;
}

.nav-lang .lang-active {
  color: var(--gold);
}

/* CTA button (MI CUENTA) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dark) !important;
  background: var(--gold);
  padding: 0;
  text-decoration: none;
  border-radius: 3px;
  transition: background .2s;
  flex-shrink: 0;
  line-height: 1;
}

.nav-cta:hover {
  background: var(--gold-lt) !important;
  color: var(--dark) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s, opacity .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ══ SVG MASK ════════════════════════════════════════ */
#mask-svg {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  pointer-events: none;
  visibility: hidden;
  z-index: -1;
}

/* ══ HERO ════════════════════════════════════════════ */
#hero-wrap {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

#hero-photo {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=85') center / cover no-repeat;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0;
  will-change: opacity;
  z-index: 2;
  pointer-events: none;
}

#hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .35;
}

#hero-intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 32px;
  padding-right: calc(32px + (100vw - 100%));
  /* Mantiene el centro visual restando el scrollbar */
  will-change: transform, opacity;
}

#hero-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 77, 58, .12) 0%, rgba(0, 77, 58, .52) 55%, rgba(0, 77, 58, .72) 100%);
  z-index: -1;
}

.hero-heading {
  font-size: clamp(36px, 5.5vw, 78px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 243, 224, .72);
  max-width: 540px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  transition: background .2s;
  pointer-events: all;
}

.hero-btn:hover {
  background: var(--gold-lt);
}

/* Scroll cue */
#scroll-cue {
  position: absolute;
  bottom: 36px;
  left: calc(50% - ((100vw - 100%) / 2));
  /* Compensa la posición para que quede en el centro real */
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity .4s;
}

#scroll-cue.hidden {
  opacity: 0;
}

#scroll-cue span {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 243, 224, .45);
  transition: color .3s;
}

#scroll-cue.armed span {
  color: var(--gold);
  opacity: .8;
}

.scroll-cue-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: barPulse 2s ease-in-out infinite;
}

@keyframes barPulse {

  0%,
  100% {
    opacity: .3
  }

  50% {
    opacity: 1
  }
}

/* ══ SPACER ══════════════════════════════════════════ */
#hero-spacer {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* ══ PAGE CONTENT ════════════════════════════════════ */
.page-content {
  position: relative;
  z-index: 2;
  background: var(--green);
  margin-top: -2px;
}

/* ── Fade-in-up ── */
.fiu {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s cubic-bezier(.16, 1, .3, 1), transform 0.75s cubic-bezier(.16, 1, .3, 1);
}

.fiu.visible {
  opacity: 1;
  transform: translateY(0);
}

.fiu.d1 {
  transition-delay: .08s;
}

.fiu.d2 {
  transition-delay: .16s;
}

.fiu.d3 {
  transition-delay: .24s;
}

.fiu.d4 {
  transition-delay: .32s;
}

.fiu.d5 {
  transition-delay: .40s;
}

.fiu.d6 {
  transition-delay: .48s;
}

.fiu.d7 {
  transition-delay: .56s;
}

.fiu.d8 {
  transition-delay: .64s;
}

.fiu.d9 {
  transition-delay: .72s;
}

/* ── Section chrome ── */
.sec-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sec-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.cta-inner .sec-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ══ STATS BAR ═══════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat-item {
  padding: 40px 16px;
  text-align: center;
}

.stat-num {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--cream);
  white-space: nowrap;
}

.stat-num sup {
  font-size: .42em;
  vertical-align: super;
  color: var(--gold);
  font-weight: 800;
}

.stat-num .hs-text {
  font-size: .42em;
  color: var(--gold);
  font-weight: 800;
  margin-left: 4px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 243, 224, .4);
  margin-top: 12px;
}

/* ══ CARDS ═══════════════════════════════════════════ */
.cards-section {
  padding: 112px 64px;
  max-width: 1360px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

.cards-header {
  margin-bottom: 64px;
}

.cards-heading {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--cream);
  max-width: 560px;
}

.cards-heading em {
  font-style: italic;
  font-weight: 400;
  color: rgba(248, 173, 0, .85);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  aspect-ratio: 1/1;
  border-radius: 20px;
  background: var(--green-2);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  height: 100%;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 20px 0 100%;
  background: rgba(248, 173, 0, .05);
  transition: background .2s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--green-3);
}

.card:hover::after {
  background: rgba(248, 173, 0, .14);
}

/* ESTILOS DE LA FOTO DE FONDO DE TARJETAS */
.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: transform .4s ease, opacity .3s ease;
}

.card:hover .card-bg {
  opacity: 0.25;
  transform: scale(1.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
}

i.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}

.card-body {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  padding-right: 24px;
}

.card-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 243, 224, .5);
}

.card-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244, 243, 224, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease;
  z-index: 1;
}

.card:hover .card-arrow {
  border-color: var(--gold);
  background: var(--gold);
}

.card:hover .card-arrow path {
  stroke: var(--green);
}

/* ══ QUOTE ═══════════════════════════════════════════ */
.quote-band {
  padding: 100px 64px;
}

.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 96px;
  font-weight: 900;
  line-height: .6;
  color: var(--gold);
  opacity: .25;
  display: block;
  margin-bottom: 12px;
}

.quote-text {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 28px;
}

.quote-cite {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ══ CTA ═════════════════════════════════════════════ */
.cta-section {
  background: var(--cream-2);
  padding: 112px 64px;
  display: flex;
  justify-content: center;
}

.cta-inner {
  max-width: 680px;
  text-align: center;
}

.cta-inner .sec-label {
  justify-content: center;
}

.cta-heading {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 20px;
}

.cta-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.cta-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(60, 60, 59, 0.65);
  margin-bottom: 44px;
  text-wrap: pretty;
}

.btn-dark {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 44px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
  margin: 6px;
}

.btn-dark:hover {
  background: var(--green-2);
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 44px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
  margin: 6px;
}

.btn-gold:hover {
  background: var(--gold-lt);
}

.btn-line {
  display: inline-block;
  border: 1.5px solid rgba(0, 77, 58, .28);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 44px;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color .2s, background .2s;
  margin: 6px;
}

.btn-line:hover {
  border-color: var(--green);
  background: rgba(0, 104, 79, .06);
}

/* ══ WHATSAPP FLOAT ══════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 195;
  text-decoration: none;

  /* Initial state (hidden) */
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  pointer-events: none;

  /* Animation */
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(0) scale(1.05) !important;
  /* Forces bounce stop */
  animation: none !important;
}

/* Class added by JS to show it */
.whatsapp-float.show-wa {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Attention Bounce Animation when idle */
@keyframes waAttentionBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-12px) scale(1.02);
  }

  60% {
    transform: translateY(-6px) scale(1.01);
  }
}

.whatsapp-float.show-wa.wa-attention {
  animation: waAttentionBounce 2.5s infinite;
}

/* ══ FOOTER ══════════════════════════════════════════ */
footer {
  background: var(--green-2);
  padding: 80px 64px 40px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  margin-bottom: 36px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand-text {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(244, 243, 224, .38);
  margin-top: 18px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(244, 243, 224, .72);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-col ul li span {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(244, 243, 224, .82);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  border-top: 1px solid rgba(244, 243, 224, .06);
  padding-top: 36px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(244, 243, 224, .26);
}

.footer-social {
  display: flex;
  gap: 12px;
  /* Neutraliza el sangrado de web.css (.footer-social{justify-content:space-between;padding:15px 20px})
     que separaba los 3 iconos a lo ancho. Asi quedan agrupados como en el diseno. */
  justify-content: flex-start;
  padding: 0;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 243, 224, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(244, 243, 224, .4);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 1250px) {
  #nav {
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
  }

  .nav-left,
  .nav-right {
    flex: initial;
  }

  .nav-center {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .cards-section {
    padding: 80px 40px;
  }

  .cards-grid {
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-section {
    padding: 64px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .quote-band,
  .cta-section {
    padding: 80px 24px;
  }

  footer {
    padding: 60px 24px 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-float {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 540px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-heading {
    font-size: 32px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .nav-lang {
    display: none;
  }

  /* Ocultar lang en mobile muy chico si interfiere */
}

/* Neutraliza el header navy heredado de web.css (tema fiado) en páginas públicas La Rural */
body.lr-home header,
body.lr-inner header {
  height: auto;
  background: none;
}

/* Nav verde sólido por defecto en páginas internas sin héroe oscuro
   (evita texto claro del menú ilegible sobre fondo blanco). */
body.lr-nav-solid #nav {
  background: rgba(0, 104, 79, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
