:root {
  --ink: #181512;
  --muted: #6d665f;
  --paper: #fbf7ec;
  --paper-2: #f0eadc;
  --line: #ded3bf;
  --red: #b7332d;
  --red-dark: #821f1b;
  --blue: #125768;
  --green: #356b43;
  --amber: #c58125;
  --violet: #65408a;
  --shadow: 0 22px 70px rgba(50, 37, 22, .14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(183, 51, 45, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 87, 104, .07) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(24, 21, 18, .12);
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff8ef;
  font-family: Georgia, serif;
  font-weight: 800;
}

.brand small,
.metric-label,
.eyebrow,
label span,
.event-meta {
  color: var(--muted);
  font-size: .82rem;
}

.brand strong {
  display: block;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-decoration: none;
  background: rgba(255, 252, 243, .74);
  color: var(--ink);
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
}

.button {
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  border-color: var(--red-dark);
  background: var(--red);
  color: #fff8ef;
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff8ef;
}

.button.ghost {
  border-color: var(--ink);
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 48px 0 32px;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  color: #3d3731;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-event img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(24, 21, 18, .18);
  background: var(--paper-2);
}

.featured-copy {
  display: grid;
  gap: 10px;
}

.featured-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.featured-copy p {
  margin: 0;
  color: #3d3731;
  line-height: 1.45;
}

.featured-meta {
  color: var(--red-dark);
  font-weight: 900;
}

.featured-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-stats {
  padding-top: 12px;
  border-top: 1px solid rgba(24, 21, 18, .12);
}

.hero-stats span {
  flex: 1 1 110px;
  padding: 10px;
  border: 1px solid rgba(24, 21, 18, .12);
  background: linear-gradient(135deg, rgba(183, 51, 45, .1), rgba(18, 87, 104, .07));
  color: var(--muted);
  font-size: .84rem;
}

.hero-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--red-dark);
}

.toolbelt {
  position: sticky;
  top: 71px;
  z-index: 4;
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(140px, 1fr)) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .95);
  box-shadow: 0 16px 45px rgba(50, 37, 22, .1);
}

label {
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav a:focus-visible {
  outline: 3px solid rgba(18, 87, 104, .28);
  outline-offset: 2px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 56px 0;
  align-items: start;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.side-panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.event-list {
  display: grid;
  gap: 14px;
}

.calendar-panel {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: 0 12px 36px rgba(50, 37, 22, .08);
}

.calendar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}

.calendar-head h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  letter-spacing: 0;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  width: 40px;
  padding-inline: 0;
  font-size: 1.28rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(24, 21, 18, .06);
}

.calendar-weekdays span {
  padding: 8px 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.calendar-day {
  min-height: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .86);
}

.calendar-day.outside {
  background: rgba(240, 234, 220, .34);
  color: rgba(24, 21, 18, .45);
}

.calendar-day.today {
  outline: 3px solid rgba(183, 51, 45, .35);
  outline-offset: -4px;
}

.calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.calendar-day-number {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.calendar-day-count {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff8ef;
  font-size: .76rem;
  font-weight: 900;
}

.calendar-events {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(24, 21, 18, .14);
  background: rgba(183, 51, 45, .09);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.calendar-event:hover,
.calendar-event:focus-visible {
  border-color: var(--red);
  background: rgba(183, 51, 45, .16);
}

.calendar-event span {
  color: var(--red-dark);
  font-size: .68rem;
  font-weight: 900;
}

.calendar-event strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-empty,
.calendar-more {
  color: var(--muted);
  font-size: .74rem;
}

.calendar-more {
  font-weight: 900;
}

.calendar-empty-month {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed rgba(24, 21, 18, .28);
  background: rgba(240, 234, 220, .45);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.event-card {
  display: grid;
  grid-template-columns: 82px minmax(150px, 210px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: 0 12px 36px rgba(50, 37, 22, .08);
}

.event-card.pending {
  border-color: rgba(197, 129, 37, .62);
}

.event-card.past {
  opacity: .72;
}

.event-card.no-image {
  grid-template-columns: 82px minmax(0, 1fr);
}

.date-tile {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 82px;
  background: var(--ink);
  color: #fff8ef;
}

.date-day {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: .9;
}

.date-month {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .15em;
}

.event-thumb {
  width: 100%;
  height: 100%;
  min-height: 124px;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(24, 21, 18, .16);
  background: var(--paper-2);
}

.event-thumb[hidden],
.featured-event img[hidden] {
  display: none;
}

.event-body h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  letter-spacing: 0;
}

.event-summary {
  color: #3d3731;
  line-height: 1.5;
}

.event-details,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(240, 234, 220, .76);
  color: #3d3731;
  font-size: .86rem;
  font-weight: 700;
}

.pill.verified {
  border-color: rgba(53, 107, 67, .45);
  background: rgba(53, 107, 67, .12);
  color: var(--green);
}

.pill.pending {
  border-color: rgba(197, 129, 37, .55);
  background: rgba(197, 129, 37, .14);
  color: #70430c;
}

.attend-button.attending {
  border-color: rgba(53, 107, 67, .65);
  background: var(--green);
  color: #fff8ef;
}

.share-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 5px;
  border: 1px solid rgba(24, 21, 18, .14);
  background: rgba(240, 234, 220, .58);
}

.share-actions > span {
  padding: 0 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.share-button {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(24, 21, 18, .24);
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff8ef;
}

.side-panel,
.submit-section,
.sources-section {
  border-top: 4px solid var(--ink);
  padding-top: 24px;
}

.side-panel {
  position: sticky;
  top: 164px;
}

.spain-map-card {
  margin: 18px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: 0 12px 36px rgba(50, 37, 22, .08);
}

.spain-map {
  position: relative;
  width: 100%;
  aspect-ratio: 697 / 598;
  overflow: hidden;
  border: 1px solid rgba(24, 21, 18, .12);
  background: #bfe5f5;
}

.spain-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.78) contrast(1.02);
}

.map-points {
  position: absolute;
  inset: 0;
}

.map-point {
  position: absolute;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff8ef;
  border-radius: 50%;
  background: var(--red);
  color: #fff8ef;
  box-shadow: 0 8px 22px rgba(130, 31, 27, .3);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-point::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(183, 51, 45, .35);
  border-radius: 50%;
}

.map-point.pending {
  background: var(--amber);
}

.map-point.past {
  background: #5f5750;
}

.map-count {
  font-size: .78rem;
  font-weight: 900;
}

.map-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.territory-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.territory-chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .72);
  font-size: .86rem;
}

.territory-chip strong {
  color: var(--red-dark);
}

.notice {
  padding: 16px;
  border: 1px solid rgba(18, 87, 104, .28);
  background: rgba(18, 87, 104, .1);
  line-height: 1.45;
}

.submit-section,
.sources-section {
  padding-bottom: 56px;
}

.submit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.poster-upload {
  padding: 14px;
  border: 1px dashed rgba(24, 21, 18, .35);
  background: rgba(240, 234, 220, .35);
}

.poster-upload input {
  border-style: dashed;
  cursor: pointer;
}

.poster-upload small {
  color: var(--muted);
  line-height: 1.4;
}

.poster-preview {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .8);
}

.poster-preview[hidden] {
  display: none;
}

.poster-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(24, 21, 18, .16);
  background: var(--paper-2);
}

.span-2 {
  grid-column: span 2;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sources-section.is-hidden {
  display: none;
}

.source-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 190px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.source-card h3 {
  margin: 0;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--muted);
  background: rgba(255, 250, 240, .64);
  color: var(--muted);
}

.event-modal {
  width: min(720px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.event-modal::backdrop {
  background: rgba(24, 21, 18, .56);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid var(--ink);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 42px 12px 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: 0;
}

.modal-panel p:not(.eyebrow) {
  color: #3d3731;
  line-height: 1.55;
}

.modal-poster {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  margin: 8px 0 14px;
  border: 1px solid rgba(24, 21, 18, .16);
  background: var(--paper-2);
}

.modal-poster[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff8ef;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.modal-event-list[hidden] {
  display: none;
}

.modal-event-option {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.modal-event-option:hover,
.modal-event-option:focus-visible {
  border-color: var(--red-dark);
  outline: 3px solid rgba(183, 51, 45, .18);
}

.modal-event-option strong {
  font-size: 1rem;
}

.modal-event-option span {
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 980px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .toolbelt {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbelt .button,
  .side-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  main {
    width: min(100% - 20px, 1240px);
  }

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

  .nav {
    width: 100%;
    justify-content: stretch;
  }

  .nav a {
    flex: 1;
    min-height: 36px;
    padding: 8px 6px;
    font-size: .9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.2rem);
  }

  .toolbelt,
  .submit-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .calendar-panel {
    padding: 12px;
  }

  .calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-controls {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .calendar-day {
    display: none;
    min-height: 0;
  }

  .calendar-day.has-events {
    display: block;
  }

  .calendar-day.outside {
    display: none;
  }

  .calendar-event strong {
    white-space: normal;
  }

  .poster-preview {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .date-tile {
    width: 86px;
  }

  .event-thumb {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .share-actions {
    width: 100%;
  }

  .territory-map {
    grid-template-columns: 1fr;
  }
}

.seo-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.seo-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: none;
}

.seo-event-hero,
.seo-listing-hero,
.seo-trust,
.seo-card {
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.seo-event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 440px);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(20px, 4vw, 42px);
}

.seo-event-copy h1,
.seo-listing-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .92;
}

.seo-lead {
  color: #3b342d;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 650;
  line-height: 1.5;
}

.seo-event-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--paper-2);
}

.seo-trust,
.seo-listing-hero {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
}

.seo-trust h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.seo-trust dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-trust dl div {
  padding: 12px;
  border: 1px solid rgba(23, 22, 20, .14);
  background: rgba(255, 255, 255, .38);
}

.seo-trust dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-trust dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.seo-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.seo-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.seo-card h2 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.seo-card h2 a {
  color: inherit;
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .seo-event-hero,
  .seo-trust dl,
  .seo-card {
    grid-template-columns: 1fr;
  }

  .seo-card .date-tile {
    width: 92px;
    min-height: 92px;
  }
}

/* Nueva identidad visual: cartel urbano, alto contraste y agenda de acción. */
:root {
  --ink: #090909;
  --muted: #8c8a82;
  --paper: #11110f;
  --paper-2: #1d1c18;
  --line: rgba(255, 255, 255, .16);
  --red: #ff2b24;
  --red-dark: #c40d12;
  --blue: #18d4ff;
  --green: #a6ff00;
  --amber: #ffd500;
  --violet: #cf5bff;
  --cream: #fff4d5;
  --panel: rgba(18, 18, 15, .92);
  --shadow: 10px 10px 0 rgba(255, 43, 36, .7), 20px 20px 0 rgba(166, 255, 0, .34);
  color-scheme: dark;
}

html {
  background: #070706;
}

body {
  color: var(--cream);
  background:
    linear-gradient(120deg, rgba(255, 43, 36, .22), transparent 28%),
    linear-gradient(300deg, rgba(166, 255, 0, .12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 58px),
    #070706;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(118deg, transparent 0 12%, rgba(255, 43, 36, .24) 12% 22%, transparent 22% 46%, rgba(24, 212, 255, .12) 46% 53%, transparent 53%),
    linear-gradient(35deg, transparent 0 62%, rgba(166, 255, 0, .16) 62% 69%, transparent 69%),
    repeating-linear-gradient(-8deg, transparent 0 34px, rgba(255, 244, 213, .035) 34px 36px, transparent 36px 92px);
  filter: contrast(1.15);
}

body::after {
  z-index: 20;
  opacity: .08;
  background-image:
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

.topbar {
  border-bottom: 2px solid var(--cream);
  background: rgba(7, 7, 6, .88);
  box-shadow: 0 10px 0 rgba(255, 43, 36, .86);
}

.brand-mark {
  border: 2px solid var(--cream);
  background: var(--red);
  color: var(--cream);
  box-shadow: 5px 5px 0 var(--green);
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  color: var(--cream);
}

.movement-strip {
  position: sticky;
  top: 72px;
  z-index: 4;
  overflow: hidden;
  border-bottom: 2px solid var(--cream);
  background: var(--green);
  color: #070706;
}

.movement-strip-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 8px 0;
  animation: strip-run 26s linear infinite;
}

.movement-strip span {
  font-size: .78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}

@keyframes strip-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main {
  width: min(1380px, calc(100% - 32px));
}

.hero {
  position: relative;
  min-height: calc(100svh - 108px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
  isolation: isolate;
}

.hero::before {
  content: "AHORA";
  position: absolute;
  top: 6%;
  left: -3vw;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 244, 213, .18);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(7rem, 20vw, 18rem);
  line-height: .8;
  letter-spacing: .02em;
  transform: rotate(-8deg);
}

.hero-copy {
  position: relative;
  padding: clamp(18px, 3vw, 36px) 0;
}

.hero h1 {
  max-width: 980px;
  color: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(4.4rem, 11vw, 12rem);
  line-height: .78;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 5px 5px 0 var(--red), 10px 10px 0 rgba(166, 255, 0, .95);
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 244, 213, .86);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 750;
}

.eyebrow,
label span,
.event-meta,
.brand small {
  color: var(--green);
}

.eyebrow {
  letter-spacing: .22em;
}

.button,
.nav a {
  border: 2px solid var(--cream);
  background: #11110f;
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(255, 244, 213, .18);
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover,
.nav a:hover,
.share-button:hover,
.share-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--green);
}

.button.primary {
  border-color: var(--cream);
  background: var(--red);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--green);
}

.button.dark {
  border-color: var(--cream);
  background: var(--cream);
  color: #070706;
}

.button.ghost {
  border-color: var(--cream);
  background: transparent;
}

.hero-panel,
.calendar-panel,
.event-card,
.spain-map-card,
.submit-grid,
.source-card,
.modal-panel,
.empty {
  border: 2px solid var(--cream);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.hero-panel::before {
  content: "PRÓXIMA";
  position: absolute;
  top: 14px;
  right: -42px;
  z-index: 1;
  padding: 8px 54px;
  background: var(--green);
  color: #070706;
  font-weight: 1000;
  letter-spacing: .1em;
  transform: rotate(28deg);
}

.featured-event img,
.event-thumb,
.poster-preview img,
.modal-poster {
  border: 2px solid var(--cream);
  background: #000;
  filter: saturate(1.25) contrast(1.08);
}

.featured-copy h2,
.section-heading h2,
.side-panel h2,
.calendar-head h3,
.event-body h3,
.submit-section h2,
.modal-panel h2 {
  color: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.featured-meta,
.calendar-event span,
.territory-chip strong {
  color: var(--amber);
}

.featured-copy p,
.section-heading p:not(.eyebrow),
.event-summary,
.modal-panel p:not(.eyebrow),
.map-help,
.notice,
.source-card p,
.poster-upload small,
.calendar-empty,
.calendar-more {
  color: rgba(255, 244, 213, .78);
}

.hero-stats span,
.territory-chip,
.pill,
.share-actions,
.calendar-weekdays,
.notice,
.poster-upload,
.poster-preview,
.modal-event-option {
  border-color: rgba(255, 244, 213, .22);
  background: rgba(255, 244, 213, .08);
  color: var(--cream);
}

.hero-stats strong {
  color: var(--green);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

.toolbelt {
  top: 108px;
  border: 2px solid var(--cream);
  background: rgba(7, 7, 6, .92);
  box-shadow: 8px 8px 0 rgba(24, 212, 255, .55);
}

input,
select,
textarea {
  border: 2px solid rgba(255, 244, 213, .28);
  background: #050505;
  color: var(--cream);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav a:focus-visible,
.share-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
}

.section-heading {
  position: relative;
  padding-left: 18px;
  border-left: 8px solid var(--red);
}

.section-heading h2,
.side-panel h2 {
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
  text-shadow: 4px 4px 0 var(--red);
}

.calendar-panel {
  transform: rotate(-.45deg);
}

.calendar-head {
  border-bottom: 4px solid var(--cream);
}

.calendar-day {
  border-color: rgba(255, 244, 213, .18);
  background: rgba(255, 244, 213, .055);
}

.calendar-day.has-events {
  background: linear-gradient(160deg, rgba(255, 43, 36, .2), rgba(166, 255, 0, .06));
}

.calendar-day.today {
  outline-color: var(--green);
}

.calendar-day-count,
.map-point {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 0 0 5px rgba(255, 43, 36, .22), 0 0 28px rgba(255, 43, 36, .52);
}

.calendar-event {
  border: 1px solid rgba(255, 244, 213, .18);
  background: #070706;
  color: var(--cream);
}

.calendar-event:hover,
.calendar-event:focus-visible {
  border-color: var(--green);
  background: rgba(166, 255, 0, .12);
}

.event-card {
  grid-template-columns: 92px minmax(160px, 230px) minmax(0, 1fr);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--green);
}

.event-card:hover {
  transform: translate(-4px, -4px) rotate(-.25deg);
  box-shadow: 14px 14px 0 rgba(255, 43, 36, .8), 26px 26px 0 rgba(166, 255, 0, .32);
}

.date-tile {
  min-height: 100%;
  border: 2px solid var(--cream);
  background: var(--cream);
  color: #070706;
}

.date-day {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 2.8rem;
}

.date-month {
  color: var(--red-dark);
  font-weight: 1000;
}

.event-body h3 {
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
  text-shadow: 2px 2px 0 rgba(255, 43, 36, .82);
}

.pill {
  min-height: 28px;
  border: 1px solid rgba(255, 244, 213, .22);
  background: rgba(255, 244, 213, .09);
  color: rgba(255, 244, 213, .9);
  font-size: .78rem;
}

.pill.verified {
  border-color: rgba(166, 255, 0, .5);
  background: rgba(166, 255, 0, .12);
  color: var(--green);
}

.pill.pending {
  border-color: rgba(255, 213, 0, .55);
  background: rgba(255, 213, 0, .12);
  color: var(--amber);
}

.attend-button.attending {
  border-color: var(--green);
  background: var(--green);
  color: #070706;
}

.share-actions {
  border: 1px solid rgba(24, 212, 255, .5);
  background: rgba(24, 212, 255, .08);
}

.share-actions > span {
  color: var(--blue);
}

.share-button {
  border: 1px solid rgba(255, 244, 213, .38);
  background: #070706;
  color: var(--cream);
}

.spain-map-card {
  transform: rotate(1deg);
}

.spain-map {
  border: 2px solid var(--cream);
  background: #071a1f;
}

.spain-map-image {
  filter: saturate(1.35) contrast(1.1) hue-rotate(145deg);
  opacity: .9;
}

.map-point {
  border-color: var(--cream);
  animation: point-pulse 1.9s ease-in-out infinite;
}

@keyframes point-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.16); }
}

.territory-map {
  gap: 10px;
}

.territory-chip {
  border: 1px solid rgba(255, 244, 213, .22);
}

.notice {
  border: 2px solid rgba(166, 255, 0, .55);
  background: rgba(166, 255, 0, .08);
}

.submit-section,
.sources-section,
.side-panel {
  border-top: 6px solid var(--cream);
}

.submit-grid {
  transform: rotate(.25deg);
}

.modal-panel {
  color: var(--cream);
}

.event-modal::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(8px) contrast(1.2);
}

.modal-close {
  border: 2px solid var(--cream);
  background: var(--red);
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .movement-strip {
    top: 102px;
  }

  .toolbelt {
    top: auto;
  }

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

@media (max-width: 640px) {
  main {
    width: min(100% - 18px, 1380px);
  }

  .movement-strip {
    top: 119px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 34px;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.75rem);
    line-height: .84;
    overflow-wrap: anywhere;
    text-shadow: 3px 3px 0 var(--red), 6px 6px 0 rgba(166, 255, 0, .95);
  }

  .hero-copy {
    margin-bottom: 24px;
  }

  .hero::before {
    top: 18px;
    left: -10px;
    font-size: 5.8rem;
    -webkit-text-stroke-width: 1px;
  }

  .hero-panel,
  .calendar-panel,
  .spain-map-card,
  .submit-grid {
    transform: none;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .date-tile {
    width: 96px;
    min-height: 96px;
  }

  .event-body h3 {
    font-size: clamp(1.7rem, 10vw, 2.35rem);
  }

  .share-actions {
    align-items: stretch;
  }
}

/* Ajuste de tono: activismo contemporáneo, menos estridente y más legible. */
:root {
  --ink: #171614;
  --muted: #776f66;
  --paper: #f4eee3;
  --paper-2: #e7ddcd;
  --line: rgba(23, 22, 20, .16);
  --red: #c9282d;
  --red-dark: #8f171d;
  --blue: #135e6c;
  --green: #6f7f36;
  --amber: #b98222;
  --violet: #6e4b82;
  --cream: #fff7e8;
  --panel: rgba(255, 248, 234, .94);
  --shadow: 0 18px 48px rgba(28, 22, 15, .14);
  color-scheme: light;
}

html {
  background: #f4eee3;
}

body {
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(201, 40, 45, .10), transparent 34%),
    linear-gradient(285deg, rgba(19, 94, 108, .09), transparent 38%),
    repeating-linear-gradient(90deg, rgba(23, 22, 20, .045) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(23, 22, 20, .035) 0 1px, transparent 1px 54px),
    var(--paper);
}

body::before {
  opacity: .55;
  background:
    linear-gradient(120deg, transparent 0 54%, rgba(201, 40, 45, .10) 54% 59%, transparent 59%),
    repeating-linear-gradient(-8deg, transparent 0 44px, rgba(23, 22, 20, .03) 44px 45px, transparent 45px 110px);
}

body::after {
  opacity: .035;
  mix-blend-mode: multiply;
}

.topbar {
  border-bottom: 1px solid rgba(23, 22, 20, .18);
  background: rgba(244, 238, 227, .9);
  box-shadow: 0 10px 32px rgba(28, 22, 15, .08);
}

.brand-mark {
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(19, 94, 108, .28);
  transform: rotate(-2deg);
}

.brand strong {
  color: var(--ink);
}

.brand small,
.eyebrow,
label span,
.event-meta {
  color: var(--muted);
}

.movement-strip {
  top: 71px;
  border-bottom: 1px solid rgba(23, 22, 20, .16);
  background: var(--ink);
  color: var(--cream);
}

.movement-strip-track {
  animation-duration: 38s;
}

.movement-strip span {
  color: rgba(255, 247, 232, .86);
  font-size: .72rem;
  letter-spacing: .16em;
}

main {
  width: min(1320px, calc(100% - 32px));
}

.hero {
  min-height: calc(100svh - 104px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero::before {
  content: "calle viva";
  top: 7%;
  left: -2vw;
  color: rgba(201, 40, 45, .08);
  -webkit-text-stroke: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 18vw, 15rem);
  font-style: italic;
  letter-spacing: 0;
  text-transform: lowercase;
  transform: rotate(-6deg);
}

.hero h1 {
  max-width: min(760px, 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 6.8vw, 7.7rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
  text-shadow: none;
}

.hero h1::after {
  content: "";
  display: block;
  width: min(220px, 42vw);
  height: 10px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.hero-text {
  color: #3b342d;
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  font-weight: 650;
}

.button,
.nav a {
  border: 1px solid rgba(23, 22, 20, .22);
  background: rgba(255, 248, 234, .78);
  color: var(--ink);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.button:hover,
.nav a:hover,
.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(28, 22, 15, .12);
}

.button.primary {
  border-color: var(--red-dark);
  background: var(--red);
  color: var(--cream);
  box-shadow: 5px 5px 0 rgba(19, 94, 108, .22);
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.button.ghost {
  border-color: var(--ink);
  background: transparent;
}

.hero-panel,
.calendar-panel,
.event-card,
.spain-map-card,
.submit-grid,
.source-card,
.modal-panel,
.empty {
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  overflow: hidden;
  transform: none;
  align-self: center;
  width: 100%;
}

.hero-panel::before {
  top: 16px;
  right: -48px;
  background: var(--red);
  color: var(--cream);
  opacity: .95;
}

.featured-event img,
.event-thumb,
.poster-preview img,
.modal-poster {
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--paper-2);
  filter: saturate(1.05) contrast(1.02);
}

.featured-copy h2,
.section-heading h2,
.side-panel h2,
.calendar-head h3,
.event-body h3,
.submit-section h2,
.modal-panel h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: .98;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
}

.featured-meta,
.calendar-event span,
.territory-chip strong,
.hero-stats strong {
  color: var(--red-dark);
}

.featured-copy p,
.section-heading p:not(.eyebrow),
.event-summary,
.modal-panel p:not(.eyebrow),
.map-help,
.notice,
.source-card p,
.poster-upload small,
.calendar-empty,
.calendar-more {
  color: #4a4239;
}

.hero-stats span,
.territory-chip,
.pill,
.share-actions,
.calendar-weekdays,
.notice,
.poster-upload,
.poster-preview,
.modal-event-option {
  border-color: rgba(23, 22, 20, .14);
  background: rgba(255, 255, 255, .38);
  color: var(--ink);
}

.hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
}

.toolbelt {
  top: 104px;
  border: 1px solid rgba(23, 22, 20, .18);
  background: rgba(244, 238, 227, .88);
  box-shadow: 0 16px 35px rgba(28, 22, 15, .12);
}

.trust-alerts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  margin-top: 18px;
}

.trust-card,
.alert-card {
  padding: 18px;
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(28, 22, 15, .1);
}

.trust-card h2,
.alert-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
}

.trust-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #3b342d;
  font-weight: 650;
  line-height: 1.45;
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.alert-note {
  margin: 12px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.saved-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-alert,
.alert-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 22, 20, .14);
  background: rgba(255, 255, 255, .38);
  color: #3b342d;
  font-size: .86rem;
  font-weight: 800;
}

.saved-alert button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
}

input,
select,
textarea {
  border: 1px solid rgba(23, 22, 20, .18);
  background: rgba(255, 252, 244, .86);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav a:focus-visible,
.share-button:focus-visible {
  outline: 3px solid rgba(19, 94, 108, .28);
  outline-offset: 2px;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.section-heading {
  padding-left: 18px;
  border-left: 6px solid var(--red);
}

.section-heading h2,
.side-panel h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

.calendar-panel,
.spain-map-card,
.submit-grid {
  transform: none;
}

.link-import {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 22, 20, .18);
  background: linear-gradient(135deg, rgba(201, 40, 45, .1), rgba(19, 94, 108, .08)), var(--panel);
  box-shadow: 0 12px 34px rgba(28, 22, 15, .1);
}

.link-import h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.link-import p:not(.eyebrow) {
  margin: 0;
  color: #3b342d;
  line-height: 1.45;
}

.link-import-status {
  grid-column: 1 / -1;
  min-height: 26px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.link-import-status[data-status="success"] {
  color: #43511e;
}

.link-import-status[data-status="warning"] {
  color: #79500f;
}

.link-import-status[data-status="error"] {
  color: var(--red-dark);
}

.link-import-status[data-status="loading"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid rgba(23, 22, 20, .18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: import-spin .8s linear infinite;
}

@keyframes import-spin {
  to { transform: rotate(360deg); }
}

.calendar-head {
  border-bottom: 3px solid var(--ink);
}

.calendar-day {
  border-color: rgba(23, 22, 20, .14);
  background: rgba(255, 252, 244, .68);
}

.calendar-day.has-events {
  background: linear-gradient(160deg, rgba(201, 40, 45, .09), rgba(19, 94, 108, .06));
}

.calendar-day.today {
  outline-color: rgba(19, 94, 108, .45);
}

.calendar-day-count,
.map-point {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 8px 18px rgba(143, 23, 29, .24);
}

.calendar-event {
  border: 1px solid rgba(23, 22, 20, .12);
  background: rgba(255, 248, 234, .84);
  color: var(--ink);
}

.calendar-event:hover,
.calendar-event:focus-visible {
  border-color: var(--red);
  background: rgba(201, 40, 45, .08);
}

.event-card {
  grid-template-columns: 88px minmax(150px, 220px) minmax(0, 1fr);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.event-card::before {
  width: 6px;
  background: linear-gradient(180deg, var(--red), var(--blue));
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 40, 45, .36);
  box-shadow: 0 22px 54px rgba(28, 22, 15, .16);
}

.date-tile {
  border: 1px solid rgba(23, 22, 20, .18);
  background: var(--ink);
  color: var(--cream);
}

.date-day {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.date-month {
  color: var(--cream);
}

.event-body h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.pill {
  border: 1px solid rgba(23, 22, 20, .13);
  background: rgba(244, 238, 227, .7);
  color: #3f3831;
}

.pill.verified {
  border-color: rgba(111, 127, 54, .38);
  background: rgba(111, 127, 54, .12);
  color: #43511e;
}

.pill.pending {
  border-color: rgba(185, 130, 34, .4);
  background: rgba(185, 130, 34, .13);
  color: #79500f;
}

.attend-button.attending {
  border-color: #43511e;
  background: var(--green);
  color: var(--cream);
}

.share-actions {
  border: 1px solid rgba(19, 94, 108, .22);
  background: rgba(19, 94, 108, .06);
}

.share-actions > span {
  color: var(--blue);
}

.share-button {
  border: 1px solid rgba(23, 22, 20, .18);
  background: rgba(255, 252, 244, .86);
  color: var(--ink);
}

.spain-map {
  border: 1px solid rgba(23, 22, 20, .18);
  background: #d7edf0;
}

.spain-map-image {
  filter: saturate(.9) contrast(1.04);
  opacity: 1;
}

.map-point {
  border-color: var(--cream);
  animation: none;
}

.notice {
  border: 1px solid rgba(19, 94, 108, .26);
  background: rgba(19, 94, 108, .08);
}

.submit-section,
.sources-section,
.side-panel {
  border-top: 4px solid var(--ink);
}

.modal-panel {
  color: var(--ink);
}

.event-modal::backdrop {
  background: rgba(23, 22, 20, .56);
  backdrop-filter: blur(8px);
}

.modal-close {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

@media (max-width: 980px) {
  .movement-strip {
    top: 71px;
  }

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

  .hero h1 {
    max-width: 920px;
  }

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

  .trust-alerts {
    grid-template-columns: 1fr;
  }

  .link-import {
    grid-template-columns: 1fr;
  }

  .layout > div,
  .side-panel {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .movement-strip {
    top: 118px;
  }

  .hero {
    display: block;
    overflow: hidden;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.65rem);
    line-height: .92;
    overflow-wrap: normal;
    text-shadow: none;
  }

  .hero h1::after {
    height: 8px;
    margin-top: 14px;
  }

  .hero::before {
    top: 12px;
    left: -12px;
    font-size: 5.6rem;
  }

  .event-body h3 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .date-tile {
    width: 92px;
    min-height: 92px;
  }

  .event-thumb {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

/* PWA móvil: instalación, modo standalone y pantalla offline. */
.install-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 22, 20, .22);
  border-radius: 0;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.install-button[hidden] {
  display: none;
}

.install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(28, 22, 15, .12);
}

.install-button:focus-visible {
  outline: 3px solid rgba(19, 94, 108, .28);
  outline-offset: 2px;
}

.offline-page {
  display: grid;
  align-content: center;
  min-height: 100svh;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.offline-page h1 {
  max-width: 720px;
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: .9;
}

.offline-page p:not(.eyebrow) {
  max-width: 620px;
  color: #3b342d;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.55;
}

@media (display-mode: standalone) {
  .topbar {
    padding-top: max(14px, env(safe-area-inset-top));
  }
}

@media (max-width: 640px) {
  .install-button {
    flex: 1;
    min-height: 36px;
    padding: 8px 6px;
    font-size: .9rem;
  }

  .offline-page h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }
}

.pill.reminder {
  border-color: rgba(14, 106, 128, .55);
  background: rgba(14, 106, 128, .12);
  color: #0e6a80;
}

.reminder-button {
  border-color: rgba(14, 106, 128, .42);
  color: #0e5f73;
}

.reminder-button.active {
  border-color: rgba(14, 106, 128, .72);
  background: #0e6a80;
  color: #fff8ef;
}

.reminder-button.unsupported {
  opacity: .62;
  cursor: not-allowed;
}

.app-notice {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 40;
  max-width: min(420px, calc(100vw - 28px));
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 7px 7px 0 rgba(24, 21, 18, .18);
  font-weight: 800;
}

.app-notice[data-type="success"] {
  border-color: var(--green);
}

.app-notice[data-type="warning"] {
  border-color: #c58125;
}

.app-notice[hidden] {
  display: none;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.hero-text {
  max-width: 620px;
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
}

.hero-actions .button {
  min-height: 48px;
}
