:root {
  --green-deep: #1d572a;
  --green-dollar: #2d7d3e;
  --green-bright: #3a964d;
  --mustard: #ffe055;
  --mustard-dark: #e6be2e;
  --ink: #132818;
  --ink-soft: #2e4534;
  --cream: #fff9ec;
  --cream-dim: #f5ecd7;
  --purple-santi: #5b3e7a;
  --red-mug: #d94136;
  --red-mug-dark: #b62f25;
  --desk: #19231c;
  --desk-soft: #233127;

  --border: 3px solid var(--ink);
  --shadow-clay: 0 6px 0 var(--ink), 0 14px 28px rgba(10, 28, 14, 0.28);
  --shadow-btn: 0 4px 0 var(--ink);
  --shadow-btn-active: 0 1px 0 var(--ink);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--green-dollar);
  background-image:
    radial-gradient(circle at 82% 14%, rgba(230, 212, 74, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 12% 35%, rgba(20, 62, 30, 0.35) 0%, transparent 45%),
    linear-gradient(180deg, #2b7a3c 0%, #246a33 55%, #1d572a 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(25, 58, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--mustard);
  object-fit: cover;
  box-shadow: 0 2px 0 var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name span {
  color: var(--mustard);
}

.clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--desk);
  color: var(--cream);
  border: 2px solid rgba(255, 224, 85, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.clock-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clock-label {
  color: #9dc5a6;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clock-pill strong {
  color: var(--mustard);
}

.clock-sep {
  color: #5b7c62;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-btn-active);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  white-space: nowrap;
  padding: 7px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1.06rem;
}

.btn-block {
  width: 100%;
}

.btn-yellow {
  background: var(--mustard);
  color: var(--ink);
}

.btn-yellow:hover {
  background: #ffea7a;
}

.btn-dark {
  background: var(--desk);
  color: #fff;
}

.btn-dark:hover {
  background: var(--desk-soft);
}

.btn-red {
  background: var(--red-mug);
  color: #fff;
}

.btn-red:hover {
  background: #e54e43;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 26px 0 28px;
}

.hero-stage {
  position: relative;
  border-radius: 28px;
  border: 4px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink), 0 22px 44px rgba(10, 28, 14, 0.38);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dollar);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 90% at 50% 50%,
    rgba(20, 56, 28, 0.72) 0%,
    rgba(20, 56, 28, 0.38) 58%,
    rgba(16, 40, 21, 0.15) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 540px;
  padding: 36px 24px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--mustard);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-white,
.title-yellow {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink), 0 12px 20px rgba(0, 0, 0, 0.35);
}

.title-white {
  color: #ffffff;
}

.title-yellow {
  color: var(--mustard);
}

.hero-subtitle {
  margin: 0 auto 22px;
  color: #f4fbf5;
  font-size: 1.02rem;
  text-shadow: 0 2px 8px rgba(10, 28, 14, 0.85);
}

.hero-subtitle strong {
  color: var(--mustard);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Main Grid ---------- */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

/* ---------- Feed Header & Filters ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}

.section-sub {
  margin: 2px 0 0;
  color: #d6f0db;
  font-size: 0.9rem;
  font-weight: 500;
}

.sort-tabs {
  display: inline-flex;
  background: var(--desk);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  box-shadow: 0 4px 0 var(--ink);
}

.sort-tab {
  border: none;
  background: transparent;
  color: #c4dec9;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 7px 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sort-tab:hover {
  color: #fff;
}

.sort-tab.active {
  background: var(--mustard);
  color: var(--ink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--ink);
  background: rgba(255, 249, 236, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
  background: #fff;
}

.filter-pill.active {
  background: var(--mustard);
  color: var(--ink);
}

/* Foco visible para teclado en todos los controles */
.btn:focus-visible,
.sort-tab:focus-visible,
.filter-pill:focus-visible,
.vote-btn:focus-visible,
.share-btn:focus-visible,
.checkbox-field input:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.cat-option input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--mustard);
}

/* ---------- Clay Cards ---------- */
.clay-card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

/* ---------- Story Cards ---------- */
.stories-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-clay);
  transition: transform 0.15s ease;
}

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

.story-card.just-posted {
  animation: popIn 0.4s cubic-bezier(0.22, 1.25, 0.36, 1);
  border-color: var(--mustard-dark);
  box-shadow: 0 6px 0 var(--ink), 0 0 0 4px var(--mustard);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.story-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: #e3f5e7;
  color: var(--ink);
}

.cat-badge[data-cat="quick-call"] { background: #ffe9c7; }
.cat-badge[data-cat="ingles"] { background: #e8def8; }
.cat-badge[data-cat="sueldo"] { background: #d6f5dc; }
.cat-badge[data-cat="familia"] { background: #ffdcd8; }
.cat-badge[data-cat="random"] { background: #dceeff; }

.story-author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.story-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #5a7260;
}

.story-body {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px dashed rgba(19, 40, 24, 0.14);
}

.story-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.1s ease, background-color 0.15s ease, box-shadow 0.1s ease;
}

.vote-btn:hover {
  background: #fff5c4;
  transform: translateY(-1px);
}

.vote-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.vote-btn.voted {
  background: var(--mustard);
  color: var(--ink);
}

.vote-btn .vote-icon {
  font-size: 1.05rem;
  transition: transform 0.2s cubic-bezier(0.22, 1.5, 0.36, 1);
}

.vote-btn.voted .vote-icon {
  transform: scale(1.2) rotate(-8deg);
}

.short-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-santi);
  background: #efe8f8;
  border: 1.5px solid rgba(91, 62, 122, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.share-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.share-btn:hover {
  background: rgba(19, 40, 24, 0.08);
  color: var(--ink);
}

/* ---------- Sidebar ---------- */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 86px;
}

.composer-card {
  padding: 22px;
  background: var(--cream);
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.composer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: var(--border);
  object-fit: cover;
  box-shadow: 0 3px 0 var(--ink);
  flex-shrink: 0;
}

.composer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.15;
}

.composer-hint {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.story-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}

.opt {
  font-weight: 500;
  color: #6b7f70;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #5b7261;
}

.char-counter.warn {
  color: var(--red-mug);
  font-weight: 700;
}

.story-form textarea,
.story-form input[type="text"],
.story-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.story-form textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

.story-form textarea:focus,
.story-form input[type="text"]:focus,
.story-form select:focus {
  box-shadow: 0 0 0 3px var(--mustard);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-option {
  cursor: pointer;
}

.cat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-option span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: #fff;
  transition: background-color 0.12s ease, transform 0.1s ease;
}

.cat-option input:checked + span {
  background: var(--mustard);
  box-shadow: 0 2px 0 var(--ink);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-field input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--green-dollar);
  flex-shrink: 0;
}

.form-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #ffe3e1;
  border: 2px solid var(--red-mug);
  color: var(--red-mug-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Short Card ---------- */
.short-card {
  background: var(--desk);
  color: var(--cream);
  padding: 20px;
}

.short-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.short-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mustard);
  background: rgba(255, 224, 85, 0.12);
  border: 1.5px solid rgba(255, 224, 85, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.short-channel-link {
  color: #c2d6c7;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.short-channel-link:hover {
  color: var(--mustard);
}

.short-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: #fff;
}

.short-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid var(--mustard);
  background: #0e1410;
  box-shadow: 0 4px 0 var(--ink);
}

.short-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Skeleton & Empty ---------- */
.skeleton-card {
  height: 150px;
  border-radius: var(--radius-lg);
  border: var(--border);
  background: linear-gradient(90deg, rgba(255, 249, 236, 0.75) 25%, rgba(255, 249, 236, 0.95) 50%, rgba(255, 249, 236, 0.75) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 42px 24px;
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.empty-avatar {
  border-radius: 50%;
  border: var(--border);
  margin-bottom: 12px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--desk);
  border-top: var(--border);
  color: #c4dac9;
  padding: 26px 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: var(--mustard);
  font-size: 1rem;
}

.footer-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--mustard);
  padding-bottom: 2px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--desk);
  color: #fff;
  border: 2.5px solid var(--mustard);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22, 1.25, 0.36, 1), opacity 0.25s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Hero note, composer extras ---------- */
.hero-note {
  margin: 14px 0 0;
  color: #d6f0db;
  font-size: 0.84rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(10, 28, 14, 0.85);
}

.composer-toggle {
  display: none;
}

.privacy-warning {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff3c4;
  border: 2px solid var(--mustard-dark);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.field legend {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 6px;
}

.checkbox-field a,
.form-legal a {
  color: var(--green-deep);
  font-weight: 700;
}

.form-legal {
  margin: -4px 0 0;
  font-size: 0.76rem;
  color: #5b7261;
  text-align: center;
}

.composer-success {
  text-align: center;
  padding: 10px 4px 4px;
}

.composer-success:focus {
  outline: none;
}

.success-emoji {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 6px;
}

.composer-success h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.composer-success p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Feed extras ---------- */
.team-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--purple-santi);
  background: #efe8f8;
  border: 1.5px solid rgba(91, 62, 122, 0.35);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.story-footer-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.report-btn {
  opacity: 0.55;
}

.report-btn:hover,
.report-btn:focus-visible {
  opacity: 1;
}

.focus-story {
  margin-bottom: 26px;
}

.focus-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mustard);
  text-shadow: 0 2px 0 var(--ink);
}

.story-card.highlighted {
  border-color: var(--mustard-dark);
  box-shadow: 0 6px 0 var(--ink), 0 0 0 5px var(--mustard);
}

.feed-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #ffe3e1;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 var(--ink);
  margin-top: 4px;
}

.feed-error p {
  margin: 0;
  font-weight: 700;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.noscript-note {
  color: #fff;
  font-weight: 600;
}

/* ---------- Short card extras ---------- */
.short-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.short-fallback-link {
  color: #c2d6c7;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.short-fallback-link:hover {
  color: var(--mustard);
}

.footer-ai {
  font-size: 0.78rem;
  color: #9db8a3;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  /* Orden en mobile: formulario plegado → historias → último Short */
  .sidebar-col {
    display: contents;
  }

  .composer-card {
    order: 1;
  }

  .feed-col {
    order: 2;
  }

  .short-card {
    order: 3;
  }

  .short-embed-wrap {
    max-width: 300px;
  }

  .composer-toggle {
    display: flex;
  }

  .composer-card:not(.is-collapsed) .composer-toggle {
    display: none;
  }

  .composer-card.is-collapsed .composer-header {
    margin-bottom: 14px;
  }

  .composer-card.is-collapsed .composer-body {
    display: none;
  }

  .clock-pill {
    display: none;
  }
}

@media (max-width: 600px) {
  /* La foto con Santi y Benja arriba, entera; el texto abajo */
  .hero {
    padding-top: 16px;
  }

  .hero-stage {
    display: block;
    min-height: 0;
  }

  .hero-bg-img {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 1376 / 768;
    border-bottom: 4px solid var(--ink);
  }

  .hero-scrim {
    display: none;
  }

  .hero-content {
    max-width: none;
    padding: 20px 18px 24px;
    background: linear-gradient(180deg, #245f31 0%, #1a4a25 100%);
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions .label-long {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-made {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #c4dac9;
  max-width: 560px;
}

.footer-made a {
  color: var(--mustard);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 224, 85, 0.5);
}

.footer-made a:hover {
  border-bottom-color: var(--mustard);
}

/* ---------- Página /nosotros ---------- */
.nos {
  padding-top: 30px;
  padding-bottom: 64px;
}

.nos-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.nos-title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  color: var(--mustard);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}

.nos-lead {
  margin: 0;
  color: #eaf7ec;
  font-size: 1.08rem;
}

.nos-block {
  margin-bottom: 44px;
}

.nos-block > .section-sub {
  margin-bottom: 18px;
}

/* DNI trucho */
.dni-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dni {
  position: relative;
  overflow: hidden;
  padding: 0 0 18px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 125, 62, 0.06) 0 8px, transparent 8px 16px),
    var(--cream);
}

.dni:nth-child(1) {
  transform: rotate(-1deg);
}

.dni:nth-child(2) {
  transform: rotate(1deg);
}

.dni-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 18px;
  background: var(--purple-santi);
  border-bottom: var(--border);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dni-benja .dni-strip {
  background: var(--green-deep);
}

.dni-num {
  color: var(--mustard);
  white-space: nowrap;
}

.dni-body {
  display: flex;
  gap: 18px;
  padding: 18px 18px 6px;
}

.dni-photo {
  flex: none;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 0 var(--ink);
  background: var(--cream-dim);
}

.dni-fields {
  margin: 0;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.dni-fields div {
  display: grid;
  gap: 0;
}

.dni-fields dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

.dni-fields dd {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
}

.dni-fields div:first-child dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.dni-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 18px 0;
}

.dni-quote {
  flex: 1;
  margin: 0;
  padding: 10px 14px;
  background: var(--desk);
  color: var(--mustard);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.dni-stamp {
  flex: none;
  padding: 6px 10px;
  border: 3px solid var(--red-mug);
  border-radius: 10px;
  color: var(--red-mug);
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-12deg);
  opacity: 0.8;
  pointer-events: none;
}

/* Quién / cómo */
.nos-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.nos-card {
  padding: 22px 24px 24px;
}

.nos-card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nos-card p {
  margin: 0 0 10px;
}

.nos-card a,
.nos-faq a {
  color: var(--green-deep);
  font-weight: 700;
}

.nos-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.nos-steps li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-dollar);
}

/* Otros proyectos */
.casa-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}

.casa-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.casa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--ink), 0 18px 32px rgba(10, 28, 14, 0.3);
}

.casa-card:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.casa-featured {
  background: var(--mustard);
}

.casa-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.casa-card h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.casa-card p {
  margin: 0 0 8px;
  font-size: 0.93rem;
}

.casa-joke {
  font-style: italic;
  color: var(--ink-soft);
}

.casa-cta {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
}

.casa-featured .casa-cta {
  color: var(--ink);
}

/* FAQ */
.nos-faq {
  padding: 6px 22px;
}

.nos-faq details {
  border-bottom: 2px dashed rgba(19, 40, 24, 0.2);
  padding: 12px 0;
}

.nos-faq details:last-child {
  border-bottom: 0;
}

.nos-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.nos-faq summary::marker {
  color: var(--green-dollar);
}

.nos-faq p {
  margin: 8px 0 2px;
}

/* Cierre */
.nos-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--desk);
  color: #eaf7ec;
}

.nos-cta h2 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  color: var(--mustard);
  font-size: 1.4rem;
}

.nos-cta p {
  margin: 0;
}

.nos-cta-avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--mustard);
  object-fit: cover;
}

.nos-cta-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .dni-grid,
  .nos-two,
  .casa-grid {
    grid-template-columns: 1fr;
  }

  .nos-cta {
    flex-wrap: wrap;
  }

  .nos-cta-actions {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .nos {
    padding-top: 20px;
  }

  .dni:nth-child(1),
  .dni:nth-child(2) {
    transform: none;
  }

  .dni-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .dni-photo {
    width: 88px;
    height: 88px;
  }

  .nos-cta-actions .btn {
    flex: 1;
  }
}

/* Link a /nosotros en la barra de arriba: en el celular va solo en el pie */
@media (max-width: 600px) {
  .topbar-actions .hide-mobile {
    display: none;
  }
}
