/* ============================================
   ESCENA CAFETERA — styles.css
   Aesthetic: raw zine / coffee poster / hand-drawn
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FAF5F0;
  --bg-dark: #1A1A1A;
  --text: #1A1A1A;
  --text-light: #FAF5F0;
  --accent: #C4661F;
  --espresso: #3D2B1F;
  --green: #2D6A4F;
  --card-bg: #FFFFFF;
  --border: #E0D5C7;
  --border-dark: #C8B9A8;

  --font-heading: 'Dela Gothic One', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Karla', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius: 3px;
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, select, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

button:focus:not(:focus-visible),
select:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

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

.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;
}

/* --- GRAIN OVERLAY --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2.5px solid var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn--primary {
  background: var(--text);
  color: var(--text-light);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--text);
}

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

.btn--outline:hover {
  background: var(--text);
  color: var(--text-light);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  color: var(--text-light);
  border-bottom: 3px solid var(--accent);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.header__cat-icon {
  width: 32px;
  height: 32px;
  color: var(--text-light);
}

.header__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--accent);
}

.header__link--submit {
  background: var(--accent);
  color: var(--text-light);
  padding: 0.45rem 1rem;
  border: 2px solid var(--accent);
  transition: all 0.2s;
  animation: subtlePulse 2.5s ease-in-out infinite;
}

.header__link--submit:hover {
  background: #D97A2E;
  border-color: #D97A2E;
  animation: none;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,102,31,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(196,102,31,0); }
}

.header__link--cta {
  background: transparent;
  color: var(--text-light);
  padding: 0.45rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}

.header__link--cta:hover {
  border-color: var(--text-light);
  color: var(--text-light);
}

/* --- HERO --- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) 1.25rem var(--space-xl);
  position: relative;
  background-image: url('../assets/img/pattern-beans-sketch.jpg');
  background-repeat: repeat;
  background-size: 320px;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.88;
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero__text {
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title--accent {
  color: var(--accent);
  font-style: italic;
}

.hero__dot {
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #5C5145;
  max-width: 420px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__illustration {
  width: 100%;
  max-width: 220px;
}

.hero__cat {
  width: 100%;
  height: auto;
  animation: catFloat 4s ease-in-out infinite;
}

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

.hero__scroll-hint {
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  animation: bounceDown 2s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.7; }
}

/* --- FILTERS --- */
.filters {
  position: sticky;
  top: 52px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: var(--space-md) 1.25rem;
  scroll-margin-top: 52px;
}

.filters__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filters__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filters__group--buttons {
  flex-wrap: nowrap;
}

.filters__select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 2px solid var(--text);
  background: var(--card-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.filters__select:hover,
.filters__select:focus-visible {
  border-color: var(--accent);
}

.filters__btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #7A6E60;
  background: transparent;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filters__btn:not(.filters__btn--active):hover {
  border-color: var(--text);
  color: var(--text);
}

.filters__btn--active {
  background: var(--text);
  color: var(--text-light);
  border-color: var(--text);
}

.filters__btn--active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.filters__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--border-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: #7A6E60;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.filters__toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: all 0.15s ease;
}

.filters__toggle[aria-pressed="true"] {
  background: var(--green);
  color: var(--text-light);
  border-color: var(--green);
}

.filters__toggle[aria-pressed="true"] .filters__toggle-dot {
  background: var(--text-light);
  border-color: var(--text-light);
}

/* --- EVENTS GRID --- */
.events {
  padding: var(--space-xl) 1.25rem var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.events__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* --- EVENT CARD --- */
.event-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  padding: var(--space-lg);
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(16px);
  animation: cardReveal 0.4s ease forwards;
}

.event-card:hover {
  border-color: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--border-dark);
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }
.event-card:nth-child(4) { animation-delay: 0.2s; }
.event-card:nth-child(5) { animation-delay: 0.25s; }
.event-card:nth-child(6) { animation-delay: 0.3s; }

/* Featured card */
.event-card--featured {
  border-color: var(--accent);
  border-width: 3px;
}

.event-card--featured::before {
  content: 'DESTACADO';
  position: absolute;
  top: -1px;
  right: var(--space-md);
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem 0.3rem;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.event-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.event-card__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--text);
  white-space: nowrap;
  line-height: 1;
}

.event-card__badges {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.event-card__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  line-height: 1;
}

.event-card__badge--free {
  background: var(--green);
  color: var(--text-light);
}

.event-card__badge--paid {
  background: var(--bg);
  color: var(--espresso);
  border: 1.5px solid var(--border-dark);
}

.event-card__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-spacing: 0.1em;
}

.event-card__description {
  font-size: 0.9rem;
  color: #5C5145;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  color: #7A6E60;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.event-card__meta-icon {
  font-size: 1em;
  opacity: 0.7;
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 0.55rem 1.1rem;
  margin-top: var(--space-sm);
  align-self: flex-start;
  transition: all 0.2s;
}

.event-card__link:hover {
  background: var(--text);
  color: var(--text-light);
}

/* --- EMPTY STATE --- */
.events__empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.events__empty-cat {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-lg);
}

.events__empty-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #7A6E60;
}

.events__empty-text span {
  font-weight: 400;
  font-family: var(--font-body);
  font-size: 0.95rem;
  display: block;
  margin-top: 0.3rem;
  font-style: italic;
}

/* --- NEWSLETTER CTA --- */
.newsletter {
  background: var(--espresso);
  color: var(--text-light);
  padding: var(--space-3xl) 1.25rem;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/pattern-botanical.jpg');
  background-repeat: repeat;
  background-size: 280px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.newsletter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 12px,
    transparent 12px,
    transparent 20px
  );
}

.newsletter__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
}

.newsletter__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter__cat-wrap {
  background: var(--accent);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.15);
}

.newsletter__cat {
  width: 80px;
  height: auto;
  opacity: 0.9;
}

.newsletter__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.newsletter__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter__subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-top: var(--space-xs);
  line-height: 1.6;
  max-width: 360px;
}

.newsletter__form {
  width: 100%;
  max-width: 440px;
  margin-top: var(--space-md);
}

.newsletter__input-wrap {
  display: flex;
  border: 2.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter__input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,102,31,0.25);
}

.newsletter__input {
  flex: 1;
  padding: 0.9rem 1rem;
  color: var(--text-light);
  background: transparent;
  font-size: 1rem;
  min-width: 0;
}

.newsletter__input::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter__submit {
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.newsletter__submit:hover {
  background: #D97A2E;
}

.newsletter__submit:active {
  transform: scale(0.97);
}

.newsletter__disclaimer {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  opacity: 0.65;
  font-style: italic;
}

.newsletter__success {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

/* --- NEWSLETTER INLINE (mid-grid) --- */
.newsletter-inline {
  background: var(--espresso);
  color: var(--text-light);
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  border: 3px solid var(--accent);
}

.newsletter-inline__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
  line-height: 1.1;
  word-spacing: 0.1em;
}

.newsletter-inline__text {
  font-size: 0.9rem;
  opacity: 0.7;
}

.newsletter-inline__link {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: all 0.2s;
}

.newsletter-inline__link:hover {
  background: var(--text-light);
  color: var(--espresso);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-xl) 1.25rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-image: url('../assets/img/pattern-beans-dense.jpg');
  background-repeat: repeat-x;
  background-size: 60px;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-md) 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__cat {
  width: 28px;
  color: var(--text-light);
  opacity: 0.6;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
}

.footer__link {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer__link:hover {
  opacity: 1;
  color: var(--accent);
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.55;
  font-style: italic;
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (min-width: 640px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__text {
    text-align: left;
    flex: 1;
  }

  .hero__subtitle {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__illustration {
    max-width: 240px;
    flex-shrink: 0;
  }

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

  .newsletter-inline {
    grid-column: 1 / -1;
  }

  .newsletter__inner {
    flex-direction: row;
    text-align: left;
    gap: var(--space-2xl);
    align-items: center;
  }

  .newsletter__visual {
    flex-shrink: 0;
  }

  .newsletter__cat-wrap {
    width: 160px;
    height: 160px;
  }

  .newsletter__cat {
    width: 105px;
  }

  .newsletter__content {
    align-items: flex-start;
    flex: 1;
  }

  .newsletter__form {
    max-width: 100%;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
    margin-top: var(--space-xs);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    min-height: 80vh;
    padding: var(--space-3xl) 1.25rem var(--space-2xl);
  }

  .hero__illustration {
    max-width: 280px;
  }

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

  .filters__inner {
    flex-wrap: nowrap;
  }
}

/* --- MAP SECTION --- */
.map-section {
  padding: 0 1.25rem var(--space-3xl);
  isolation: isolate;
}

.map-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  word-spacing: 0.12em;
  margin-bottom: var(--space-lg);
}

.map-section__container {
  width: 100%;
  height: 400px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.2s;
}

.map-section__container:hover {
  border-color: var(--text);
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  border: 2px solid var(--text) !important;
  box-shadow: 4px 4px 0 var(--border-dark) !important;
  font-family: var(--font-body);
}

.leaflet-popup-content {
  margin: 0.75rem 1rem !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

.leaflet-popup-content strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.15rem;
}

.leaflet-popup-content span {
  color: #7A6E60;
  font-size: 0.8rem;
}

.leaflet-popup-tip {
  border-top-color: var(--text) !important;
}

.leaflet-popup-close-button {
  color: var(--text) !important;
}

@media (max-width: 639px) {
  .map-section__container {
    height: 300px;
  }

  .map-section__title {
    font-size: 5vw;
    word-spacing: 0;
    letter-spacing: -0.01em;
  }

  /* Newsletter: full width so titles don't overflow */
  .newsletter__inner {
    align-items: stretch;
    text-align: center;
  }

  .newsletter__content {
    align-items: center;
    width: 100%;
  }

  .newsletter__title {
    font-size: 4vw;
    word-spacing: 0;
    letter-spacing: -0.01em;
  }

  .newsletter__form {
    width: 100%;
  }

  .newsletter__input-wrap {
    flex-direction: column;
  }

  .newsletter__submit {
    width: 100%;
    padding: 0.85rem;
  }

  .newsletter-inline__title {
    font-size: 5vw;
    word-spacing: 0;
  }

  /* Header: hide Suscribete on small screens, compact nav */
  .header__link--cta {
    display: none;
  }

  .header__nav {
    gap: 0.75rem;
  }

  .header__link--submit {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .hero__text {
    width: 100%;
  }

  /* Hero: scale title to fit viewport */
  .hero__title {
    font-size: 5vw;
    word-spacing: 0;
    letter-spacing: -0.01em;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 1.25rem var(--space-lg);
  }

  .hero__illustration {
    max-width: 160px;
  }

  /* Buttons: stack vertically on small screens */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --- SELECTION --- */
::selection {
  background: var(--accent);
  color: var(--text-light);
}
