/* =============================================================================
   Naturaleza Mexicana — shared site stylesheet
   Single source of truth for every page. Consolidated from the former per-page
   inline <style> blocks. The homepage (index.html) is the canonical reference;
   legal/article pages use the .prose wrapper; the afiliados directory uses .dir-*.
   ========================================================================== */

/* ===== Global Reset ===== */
* {
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  margin: 0;
}
:root {
  --color-main-green: #43713f;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text-dark: #212529;
  --color-text-light: #495057;
  --color-border: #dee2e6;
  --color-muted: #f1f3f5;
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-texts-a: rgb(102, 101, 101);
  --color-box-shadows: rgba(0, 0, 0, 0.2);
  --color-body: #fdfcf9;
  --color-whatsapp: #22c55e;

  /* Directory-specific tokens (derived from the brand palette) */
  --color-green-dark: #2c3f22;
  --color-green-soft: #f1f9f4;
  --color-green-100: #dde7d3;
  --color-line: #e4ecdf;
  --color-wa-dark: #128c7e;
}
body {
  font-family: "Poppins", sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  background: var(--color-body);
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: var(--color-texts-a);
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--color-main-green);
  color: var(--color-white);
  padding: 0.9em 1.8em;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--color-main-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 119, 53, 0.3);
}
.btn-secondary {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--color-main-green);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-main-green);
  z-index: 100;
  box-shadow: 0 2px 6px var(--color-box-shadows);
  transition: transform 0.3s ease;
}

/* Auto-hide on scroll down (toggled by JS); slides back in on scroll up. */
.header--hidden {
  transform: translateY(-100%);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image */
.header__logo-image {
  height: 7rem;
  width: auto;
  object-fit: contain;
}

.header__menu {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

.header__menu a {
  color: var(--color-white);
  font-weight: 600;
  transition: color 0.3s;
}

.header .mobile-only__login {
  color: var(--color-main-green);
}

.header__menu a:hover {
  color: #cfe9c4;
}

.header__login {
  background-color: var(--color-white);
  color: var(--color-main-green);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  transition: background-color 0.3s;
}

.header__login:hover {
  background-color: #f0f0f0;
}

/* Burger icon — hidden by design; the canonical header stacks links on mobile. */
.header__burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

/* Main Section */
main {
  padding-top: 7rem;
}

/* Desktop-only login */
.desktop-only {
  display: inline-block;
  margin-left: 1rem; /* adjust spacing */
}

/* Mobile-only login inside nav */
.mobile-only {
  display: none;
}

/* ===== Whatsapp Bubble ===== */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 16px; /* p-4 */
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-bubble__icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* ===== Hero Section (homepage) ===== */
.hero {
  background: url("/assets/public/images/baner-web-naturaleza.jpg")
    center/cover no-repeat;
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__btn {
  display: inline-block;
  position: absolute;
  top: 55%;
  right: 20%;
  padding: 0.5rem 2rem;
  background-color: var(--color-white);
  font-weight: bold;
  border-radius: 4px;
}

/* ===== Catalogs Section ===== */
.catalogs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 8rem 20px;
  padding: 4em 5%;
  text-align: center;
}

.catalogs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 2.5em;
}

.catalogs h2 {
  font-size: 2.2em;
  color: var(--color-main-green);
  margin-bottom: 0.5em;
}

.catalogs__image-wrapper {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.catalogs__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.catalogs__buttons-wrapper {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.catalogs__button {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--color-main-green);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  text-align: center;
}

.catalogs__button:hover {
  transform: translateY(-3px);
}

.catalog {
  padding: 1.5em;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.catalog:hover {
  transform: translateY(-5px);
}

.catalog h3 {
  margin: 1em 0 0.3em;
  color: #0b7735;
}

/* ===== Registro ===== */
.registro {
  text-align: center;
  padding: 4em 5%;
  background: #f1f9f4;
}

.registro h2 {
  font-size: 2.2em;
  color: var(--color-main-green);
  margin-bottom: 0.5em;
}

.registro__subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 2em;
}

.registro__btn {
  display: inline-block;
  padding: 1.2em 3em;
  background-color: var(--color-main-green);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(11, 119, 53, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.registro__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 119, 53, 0.4);
}

.registro__referido {
  margin-top: 2em;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.registro__referido a {
  color: var(--color-whatsapp);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Nuevo Aroma ===== */
.nuevo-aroma {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--color-main-green);
  color: var(--color-white);
  gap: 2em;
}

.nuevo-aroma img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nuevo-aroma__text h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.nuevo-aroma__text span {
  color: #ffda77;
}

.nuevo-aroma__p {
  padding: 2rem 1.5rem;
  font-size: 1.2rem;
}

/* ===== Valores ===== */
.valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  text-align: center;
  padding: 4em 5%;
  background: #f1f9f4;
}

/* Cards */
.valor {
  position: relative;
  background: #fff;
  padding: 2.5em 1.5em 1.5em;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  text-align: center;
}

.valor::before {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: #0b7735;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.valor:nth-child(1)::before {
  content: "🌱";
}
.valor:nth-child(2)::before {
  content: "🍃";
}
.valor:nth-child(3)::before {
  content: "🤝";
}

/* Hover effect */
.valor:hover {
  transform: translateY(-5px);
}

/* ===== About Us Section ===== */
.about-us-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 0;
}

/* Text Block */
.about-us-section__about-us-text {
  flex: 1;
  text-align: center;
}

.about-us-section__about-us-text p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  font-size: 1.2rem;
}
/* 3D Slider Container */
.about-us-section__slider-3d-container {
  height: 400px;
  perspective: 1200px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-us-section__slider-3d-item {
  position: absolute;
  width: 80%;
  height: 100%;
  animation: slideFlow 12s infinite linear;
  opacity: 0;
}
/* Additional Fixes */
.about-us-section__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
}
.about-us-section__slider-3d-item:nth-child(1) {
  animation-delay: 0s;
}
.about-us-section__slider-3d-item:nth-child(2) {
  animation-delay: 4s;
}
.about-us-section__slider-3d-item:nth-child(3) {
  animation-delay: 8s;
}
@keyframes slideFlow {
  0% {
    transform: translateX(-150%) translateZ(-300px) rotateY(30deg)
      scale(0.6);
    opacity: 0;
  }
  25% {
    transform: translateX(0%) translateZ(-300px) rotateY(0deg) scale(0.8);
    opacity: 0.8;
  }
  37.5% {
    transform: translateX(0%) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(0%) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
  }
  62.5% {
    transform: translateX(0%) translateZ(-300px) rotateY(0deg) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateX(0%) translateZ(-300px) rotateY(0deg) scale(0.8);
    opacity: 0;
  }
  87.5% {
    transform: translateX(150%) translateZ(-300px) rotateY(-30deg)
      scale(0.6);
    opacity: 0;
  }
  100% {
    transform: translateX(150%) translateZ(-300px) rotateY(-30deg)
      scale(0.6);
    opacity: 0;
  }
}

/* ===== Footer ===== */
#footer {
  background-color: var(--color-main-green);
  color: white;
  padding-top: 1.5rem;
  font-family: sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}
.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
}
.footer-text {
  color: #fff; /* gray-400 */
  margin-top: 0.5rem;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #60a5fa; /* blue-300 */
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li {
  margin-bottom: 0.75rem;
}
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
}
.fa-facebook {
  width: 2rem;
}

.fa-instagram {
  width: 2rem;
}

/* ===== Prose (legal / article content pages) ===== */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 9rem 1.5rem 4rem;
}
.prose h1 {
  font-size: 2.2rem;
  color: var(--color-main-green);
  margin-bottom: 1rem;
}
.prose h2 {
  font-size: 1.4rem;
  color: var(--color-main-green);
  margin: 2rem 0 0.6rem;
}
.prose p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose li {
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}
.prose a {
  color: var(--color-main-green);
  font-weight: 600;
  text-decoration: underline;
}

/* ===========================================================================
   Directorio de Afiliados
   Card grid + filter controls + infinite scroll. Brand-green palette.
   ========================================================================== */
.dir-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 1.5rem;
}
.dir-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-main-green);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.dir-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-main-green);
}
.dir-hero h1 {
  color: var(--color-main-green);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.6rem;
}
.dir-hero p {
  color: var(--color-text-light);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto;
}

.dir-controls {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.dir-controls-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(44, 63, 34, 0.05), 0 2px 8px rgba(44, 63, 34, 0.04);
}
.dir-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: var(--color-green-soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 11px 15px;
  color: var(--color-text-light);
  transition: border-color 0.15s, background 0.15s;
}
.dir-search:focus-within {
  border-color: var(--color-main-green);
  background: var(--color-white);
}
.dir-search svg {
  flex: none;
}
.dir-search input {
  border: none;
  background: none;
  outline: none;
  font: inherit;
  color: var(--color-text-dark);
  width: 100%;
  font-size: 1rem;
}
.dir-select-wrap {
  position: relative;
  flex: 0 0 auto;
}
.dir-select-wrap > svg {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-main-green);
  pointer-events: none;
}
.dir-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-main-green);
  background: var(--color-green-soft);
  border: 1.5px solid var(--color-line);
  border-radius: 12px;
  padding: 12px 42px 12px 16px;
  cursor: pointer;
  min-width: 200px;
}
.dir-select-wrap select:hover {
  border-color: var(--color-main-green);
}
.dir-select-wrap select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dir-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 4px 4px;
}
.dir-count {
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.dir-count b {
  color: var(--color-main-green);
  font-weight: 800;
}
.dir-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-green-100);
  color: var(--color-green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 8px 6px 13px;
  border-radius: 99px;
}
.dir-active-filter[hidden] {
  display: none;
}
.dir-active-filter button {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-green-dark);
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.dir-active-filter button:hover {
  background: rgba(0, 0, 0, 0.12);
}

.dir-grid {
  max-width: 1200px;
  margin: 6px auto 0;
  padding: 14px 1.5rem 10px;
  width: 100%;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.dir-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(44, 63, 34, 0.05), 0 2px 8px rgba(44, 63, 34, 0.04);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 14px;
  animation: dirCardIn 0.35s ease both;
}
.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(44, 63, 34, 0.1);
  border-color: var(--color-main-green);
}
@keyframes dirCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dir-card {
    animation: none;
  }
}
.dir-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.dir-mono {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  font-size: 18px;
  background: linear-gradient(140deg, var(--color-main-green), var(--color-green-dark));
}
.dir-biz {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--color-green-dark);
  line-height: 1.2;
  font-size: 1.2rem;
}
.dir-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
  font-size: 0.86rem;
  font-weight: 600;
}
.dir-loc svg {
  color: var(--color-main-green);
  flex: none;
}
.dir-loc .muni {
  color: var(--color-green-dark);
}
.dir-divider {
  height: 1px;
  background: var(--color-line);
  margin: 2px 0;
}
.dir-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.dir-wa-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--color-green-100);
  color: var(--color-wa-dark);
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 12px;
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s, color 0.14s;
}
.dir-wa-btn svg {
  color: var(--color-whatsapp);
}
.dir-wa-btn:hover {
  background: #a8bf95;
  color: var(--color-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 106, 60, 0.18);
}
.dir-icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--color-green-soft);
  color: var(--color-main-green);
  border: 1.5px solid var(--color-line);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
}
.dir-icon-btn:hover {
  background: var(--color-main-green);
  color: #fff;
  border-color: var(--color-main-green);
  transform: translateY(-1px);
}

/* Infinite scroll chrome */
#dir-sentinel {
  height: 1px;
}
.dir-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 26px 0 44px;
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 0.9rem;
}
.dir-loader[hidden] {
  display: none;
}
.dir-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--color-green-100);
  border-top-color: var(--color-main-green);
  animation: dirSpin 0.7s linear infinite;
}
@keyframes dirSpin {
  to {
    transform: rotate(360deg);
  }
}
.dir-end {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  padding: 10px 0 48px;
}
.dir-end[hidden] {
  display: none;
}
.dir-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--color-text-light);
}
.dir-empty[hidden] {
  display: none;
}
.dir-empty .dir-mono {
  width: 64px;
  height: 64px;
  background: var(--color-green-100);
  color: var(--color-main-green);
  margin: 0 auto 18px;
  font-size: 26px;
}
.dir-empty h3 {
  color: var(--color-main-green);
  font-size: 1.4rem;
  margin: 0 0 6px;
}

/* ===== Responsive ===== */

/* Big Screens */
@media (min-width: 1024px) {
  .about-us-section {
    flex-direction: row;
  }

  .about-us-section__about-us-text {
    text-align: left;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 5em 2em;
  }
  .catalogs__grid,
  .valores {
    grid-template-columns: 1fr 1fr;
  }
  .nuevo-aroma {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .footer-social-icons {
    justify-content: flex-start;
  }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  main {
    padding-top: 14rem;
  }

  .header__container {
    flex-direction: column;
    align-items: center;
  }

  .header__logo {
    padding-bottom: 1rem;
  }

  .header__logo-image {
    height: 6rem;
  }

  .header__menu {
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* "Directorio de Afiliados" breaks onto its own (second) line on mobile. */
  .nav-afiliados {
    flex-basis: 100%;
    text-align: center;
  }

  .desktop-only {
    display: none; /* hide desktop login on mobile */
  }

  .mobile-only {
    display: block; /* show login inside menu on mobile */
  }

  .mobile-only__login {
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    max-width: 7rem;
  }

  .main {
    padding: 1.5rem;
  }

  .main__title {
    font-size: 1.5rem;
  }

  .hero {
    background: url("/assets/public/images/banner-web-celular.jpg")
      center/cover no-repeat;
  }

  .hero__btn {
    top: 55%;
    right: 35%;
  }

  .catalogs {
    flex-direction: column;
    align-items: center;
  }

  .catalogs__buttons-wrapper {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .catalogs__grid,
  .valores {
    grid-template-columns: 1fr;
  }

  .about-us-section__slider-3d-container {
    perspective: 600px;
    height: 500px;
    width: 90vw;
    flex: none;
  }

  .about-us-section__slider-3d-item {
    height: 100%;
  }

  @keyframes slideFlow {
    0% {
      transform: translateX(-100%) translateZ(-50px) rotateY(20deg)
        scale(0.8);
      opacity: 0;
    }
    25% {
      transform: translateX(0%) translateZ(-30px) rotateY(0deg) scale(0.9);
      opacity: 0.8;
    }
    37.5% {
      transform: translateX(0%) translateZ(0) rotateY(0deg) scale(1);
      opacity: 1;
    }
    50% {
      transform: translateX(0%) translateZ(0) rotateY(0deg) scale(1);
      opacity: 1;
    }
    62.5% {
      transform: translateX(0%) translateZ(-30px) rotateY(0deg) scale(0.9);
      opacity: 0.4;
    }
    75% {
      transform: translateX(0%) translateZ(-50px) rotateY(0deg) scale(0.8);
      opacity: 0;
    }
    87.5% {
      transform: translateX(100%) translateZ(-50px) rotateY(-20deg)
        scale(0.6);
      opacity: 0;
    }
    100% {
      transform: translateX(100%) translateZ(-50px) rotateY(-20deg)
        scale(0.6);
      opacity: 0;
    }
  }

  .layout-wrapper {
    flex-direction: column;
  }

  .valores {
    grid-template-columns: 1fr;
  }

  /* Directory: stack the filter controls full-width on mobile */
  .dir-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .dir-search {
    flex-basis: auto;
  }
  .dir-select-wrap select {
    width: 100%;
    min-width: 0;
  }

  /* Directory: single column + tighter prose top padding */
  .dir-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 1rem 10px;
  }
  .prose {
    padding-top: 16rem;
  }

  /* Compact cards on mobile: drop the initials avatar, tighten spacing.
     (Scoped to cards so the empty-state .dir-mono icon stays visible.) */
  .dir-card {
    padding: 15px 16px;
    gap: 9px;
  }
  .dir-card .dir-mono {
    display: none;
  }
  .dir-biz {
    font-size: 1.08rem;
  }
  .dir-divider {
    margin: 0;
  }
  .dir-wa-btn {
    padding: 10px 12px;
  }
  .dir-icon-btn {
    width: 42px;
    height: 42px;
  }
}
