/* =========================================================
   CAFESNITO — LA PAZ, B.C.S.
   Paleta inspirada en la carta oficial y la carreta al atardecer
   ========================================================= */

:root,
[data-theme="amanecer"] {
  --bg: #f7f1e5;
  --bg-alt: #efe6d4;
  --surface: #ffffff;
  --surface-muted: #faf6ee;
  --text: #2c1a11;
  --text-muted: #6b5344;
  --border: rgba(44, 26, 17, 0.12);
  --shadow: 0 12px 32px rgba(44, 26, 17, 0.08);
  --shadow-lg: 0 22px 48px rgba(44, 26, 17, 0.14);

  /* Tonos de la marca Cafesnito */
  --espresso: #2c1a11;
  --olive: #6f864b;
  --coral: #d87a6b;
  --slate: #628c9f;
  --amber: #e09838;
  --amber-soft: rgba(224, 152, 56, 0.16);
  --nav-bg: rgba(247, 241, 229, 0.86);
}

[data-theme="nocturno"] {
  --bg: #160e0a;
  --bg-alt: #1f140f;
  --surface: #241812;
  --surface-muted: #2d1f17;
  --text: #f7f1e5;
  --text-muted: #c7b6a6;
  --border: rgba(247, 241, 229, 0.12);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.55);

  --espresso: #e09838;
  --olive: #87a35c;
  --coral: #e58a7b;
  --slate: #7aa8bd;
  --amber: #f0ab4c;
  --amber-soft: rgba(240, 171, 76, 0.15);
  --nav-bg: rgba(22, 14, 10, 0.86);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(44, 26, 17, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-loc {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(111, 134, 75, 0.22);
}

.status-pill.is-closed .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(224, 152, 56, 0.22);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--amber);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 0.75rem 4% 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.drawer-link {
  padding: 0.7rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   BOTONES Y UTILIDADES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--espresso);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

[data-theme="nocturno"] .btn-primary {
  color: #160e0a;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header h2,
.horarios-panel h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* =========================================================
   1. HERO SECTION (LOGO + PRODUCTOS PRIMERO)
   ========================================================= */
.hero {
  padding-block: clamp(2.8rem, 5.5vw, 4.75rem);
  background: radial-gradient(circle at 82% 22%, var(--amber-soft), transparent 48%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.hero-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.mono-pill,
.size-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
}

.mono-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.size-pill {
  background: var(--olive);
  color: #ffffff;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2.45rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--amber);
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Grid de Productos Estrella arriba */
.hero-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-espresso:hover { border-color: var(--espresso); }
.card-olive:hover { border-color: var(--olive); }
.card-coral:hover { border-color: var(--coral); }
.card-slate:hover { border-color: var(--slate); }

.showcase-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #faf6ee;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.04);
}

.card-tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.tag-espresso { background: #3b2316; }
.tag-olive { background: var(--olive); }
.tag-coral { background: var(--coral); }
.tag-slate { background: var(--slate); }

.showcase-body {
  padding: 0.95rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.showcase-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
}

.showcase-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   2. MENÚ DESTACADO
   ========================================================= */
.menu-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--espresso);
  color: #fffaf2;
  border-color: var(--espresso);
}

[data-theme="nocturno"] .filter-btn.active,
[data-theme="nocturno"] .filter-btn:hover {
  color: #160e0a;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.menu-card.is-hidden {
  display: none;
}

.menu-card-wide {
  grid-column: 1 / -1;
}

.menu-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.cat-badge {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: #ffffff;
}

.badge-espresso { background: #3b2316; }
.badge-olive { background: var(--olive); }
.badge-coral { background: var(--coral); }
.badge-slate { background: var(--slate); }
.badge-amber { background: var(--amber); color: #2c1a11; }

.price-note,
.price-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border);
  font-weight: 600;
}

.menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-list small {
  font-weight: 500;
  color: var(--text-muted);
}

.menu-list strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--amber);
  font-size: 1rem;
}

.dulce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dulce-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dulce-item strong {
  font-size: 0.95rem;
}

.dulce-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   3. CARRETA REAL & HORARIOS
   ========================================================= */
.carreta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.carreta-photo-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.carreta-photo {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center;
}

.photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(22, 14, 10, 0.78);
  color: #f7f1e5;
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.horarios-desc {
  color: var(--text-muted);
  margin: 0.85rem 0 1.6rem;
}

.shifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.shift-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.shift-card.is-active-shift {
  border-color: var(--olive);
  box-shadow: 0 0 0 2px rgba(111, 134, 75, 0.25);
}

.shift-icon {
  font-size: 1.7rem;
}

.shift-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shift-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.shift-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
}

.shift-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.shift-card.is-active-shift .shift-badge {
  background: var(--olive);
  color: #fff;
}

.horarios-footer {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.live-clock {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   4. UBICACIÓN REAL GOOGLE MAPS (DIV DEDICADO ABAJO)
   ========================================================= */
.map-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 430px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-overlay-card {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 2.5rem);
}

.map-card-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.map-overlay-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
}

.map-overlay-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-overlay-card span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--olive);
  font-weight: 600;
}

/* =========================================================
   FOOTER & MODAL
   ========================================================= */
.footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--amber);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 6, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 560px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-img {
  width: 100%;
  height: auto;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(22, 14, 10, 0.8);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Animación Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid,
  .carreta-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-links,
  .status-pill {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-products,
  .menu-grid,
  .dulce-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    height: 360px;
  }

  .map-overlay-card {
    position: static;
    margin: 0.85rem;
    max-width: none;
  }

  .map-wrapper {
    height: auto;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

/* =========================================================
   COMPONENTES DE PORTAFOLIO / CONVERSIÓN (bajasur.online)
   ========================================================= */
.btn-whatsapp {
  background: var(--olive);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.item-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quick-order {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quick-order:hover {
  background: var(--olive);
  color: #ffffff;
  border-color: var(--olive);
}

/* Opiniones / Prueba social */
.reviews-section {
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.45rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-stars {
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.review-card p {
  font-size: 0.94rem;
  color: var(--text);
  flex: 1;
}

.review-card footer {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Footer crédito bajasur.online */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.platform-credit {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.platform-credit a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Botón flotante de pedido */
.floating-order-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--olive);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-order-btn:hover {
  transform: translateY(-3px);
}

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

  .footer-right {
    align-items: flex-start;
  }
}

/* =========================================================
   RED DE COMERCIO LOCAL BAJASUR.ONLINE & ESPACIADO SEGURO
   ========================================================= */
.community-bar {
  background: var(--espresso);
  color: #fffaf2;
  font-size: 0.78rem;
  padding: 0.42rem 0;
}

[data-theme="nocturno"] .community-bar {
  background: #241812;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.community-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.community-bar-link {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.community-bar-link:hover {
  text-decoration: underline;
}

.community-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.community-card {
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 26px;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.community-card-content {
  flex: 1 1 480px;
}

.community-pill {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--text);
  margin-bottom: 0.65rem;
}

.community-card h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  margin-bottom: 0.65rem;
}

.community-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.community-card p a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-card code,
.platform-credit code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  background: var(--bg-alt);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.community-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.community-subnote {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Evitar que el botón flotante tape el footer */
.footer {
  padding-bottom: 5.5rem;
}

.platform-credit {
  margin-top: 0.3rem;
}

.nav-link-network {
  color: var(--amber);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.network-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.chain-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.chain-node:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.chain-node.is-current {
  border-color: var(--olive);
  background: var(--bg);
}

.chain-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(111, 134, 75, 0.22);
  flex-shrink: 0;
}

.chain-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chain-node div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chain-node strong {
  font-size: 0.86rem;
}

.chain-node small {
  font-size: 0.75rem;
  color: var(--text-muted);
}
