/* ¿Sabías que? — plantain-leaf cards */
.sabias-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 72px;
}

.sabias-status {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 14px;
}

.sabias-status.is-empty,
.sabias-status.is-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(30, 94, 53, 0.06);
  color: var(--color-text-dark);
}

.sabias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 52px 56px;
  margin-top: 28px;
  align-items: start;
}

.sabias-card {
  position: relative;
  margin: 18px 10px 8px;
  animation: sabiasFloat 5.6s ease-in-out infinite;
  filter: drop-shadow(0 16px 22px rgba(15, 58, 32, 0.16));
}

.sabias-card-inner {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 179, 0, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%);
  border: 2px solid #FFB300;
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow:
    0 0 0 6px rgba(30, 94, 53, 0.06),
    0 18px 34px rgba(15, 58, 32, 0.12);
  min-height: 160px;
}

.sabias-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sabias-fact {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-dark);
}

.sabias-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.sabias-leaf {
  position: absolute;
  width: 44px;
  height: 60px;
  color: #1E5E35;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 6px 6px rgba(11, 21, 15, 0.18));
}

.sabias-leaf-tl { top: -28px; left: -16px; color: #1E5E35; transform: rotate(-28deg); }
.sabias-leaf-tr { top: -30px; right: -16px; color: #2D8A4E; transform: scaleX(-1) rotate(-22deg); }
.sabias-leaf-ml { top: 42%; left: 2px; color: #3d9a62; transform: rotate(-92deg); }
.sabias-leaf-mr { top: 38%; right: 2px; color: #0F3A20; transform: scaleX(-1) rotate(-88deg); }
.sabias-leaf-bl { bottom: -26px; left: -8px; color: #2D8A4E; transform: rotate(158deg); }
.sabias-leaf-br { bottom: -28px; right: -10px; color: #1E5E35; transform: scaleX(-1) rotate(150deg); }

@keyframes sabiasFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#main-header .sabias-nav {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  background: rgba(255, 179, 0, 0.18);
  border: 1px solid rgba(255, 179, 0, 0.55);
  color: var(--color-primary-dark);
  padding: 6px 12px;
}

#main-header .sabias-nav.active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

#main-header .tabs-wrapper {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  #main-header .nav-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }

  #main-header .sabias-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  #main-header .sabias-nav {
    padding: 6px;
    min-height: 0;
  }

  #main-header .tabs-wrapper {
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  #main-header.scrolled .logo-text {
    display: none;
  }

  #main-header .lang-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Phone header: two short rows, every control visible, no sideways scroll. */
@media (max-width: 768px) {
  #main-header {
    overflow: visible;
  }

  #main-header .header-leaf-ambient {
    overflow: hidden;
    border-radius: inherit;
  }

  #main-header .nav-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 10px 8px;
  }

  #main-header .logo-block {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  #main-header .logo-text h1 {
    font-size: 16px;
  }

  #main-header .logo-text p {
    display: none;
  }

  #main-header .nav-actions {
    display: contents;
  }

  #main-header .sabias-nav {
    order: 2;
    flex: 0 0 auto;
    padding: 6px 8px;
  }

  #main-header .sabias-nav span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  #main-header .lang-toggle {
    order: 3;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  #main-header .tabs-wrapper {
    order: 4;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    gap: 2px;
  }

  #main-header .tabs-wrapper .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  #main-header .tabs-wrapper .tab-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sabias-card { animation: none; }
}

@media (max-width: 640px) {
  .sabias-page { padding: 12px 16px 64px; }
  .sabias-fact { font-size: 16px; }
  .sabias-leaf { width: 42px; height: 62px; }
  .sabias-leaf-ml { left: -8px; }
  .sabias-leaf-mr { right: -8px; }
}

/* Moriche wash: faint Mauritia flexuosa behind Inicio and ¿Sabías que? only */
#sec-guide,
#sec-sabias {
  position: relative;
}

.moriche-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.moriche-wash svg {
  display: block;
  width: 100%;
  height: 100%;
}

#sec-guide > :not(.moriche-wash),
#sec-sabias > :not(.moriche-wash) {
  position: relative;
  z-index: 1;
}

/* On the dark hero the same palms stay a pale watermark, still under the text */
.hero > .moriche-wash {
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: normal;
}
