:root {
      --bg: #0f1720;
      --paper: #fffaf0;
      --paper-2: #f7efe0;
      --text: #1d252f;
      --muted: #6c5f4f;
      --gold: #d6a84f;
      --gold-soft: #f4dca2;
      --blue: #23384f;
      --white: #ffffff;
      --shadow: 0 24px 70px rgba(0,0,0,.22);
      --radius: 28px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 20% 10%, rgba(214, 168, 79, .18), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(135deg, #0f1720 0%, #172434 45%, #0d141d 100%);
      min-height: 100vh;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: linear-gradient(to bottom, black, transparent 80%);
      z-index: 0;
    }

    body.modal-open { overflow: hidden; }

    a { color: inherit; }

    .site {
      position: relative;
      z-index: 1;
    }

    .nav {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 22px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--white);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 850;
      letter-spacing: -.03em;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 15px;
      color: #0f1720;
      background: linear-gradient(145deg, var(--gold-soft), var(--gold));
      box-shadow: 0 12px 28px rgba(214, 168, 79, .22);
    }

    .nav-links {
      display: flex;
      gap: 18px;
      font-size: 14px;
      color: rgba(255,255,255,.78);
    }

    .nav-links a { text-decoration: none; }

    .hero {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 72px 0 52px;
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 46px;
      align-items: center;
      color: var(--white);
    }

    .eyebrow {
      width: fit-content;
      padding: 9px 14px;
      border: 1px solid rgba(244, 220, 162, .34);
      border-radius: 999px;
      color: var(--gold-soft);
      font-size: 13px;
      letter-spacing: .08em;
      text-transform: uppercase;
      background: rgba(255,255,255,.05);
      backdrop-filter: blur(14px);
    }

    h1 {
      margin: 22px 0 18px;
      font-size: clamp(46px, 7vw, 92px);
      line-height: .92;
      letter-spacing: -.07em;
    }

    .hero p {
      max-width: 660px;
      font-size: clamp(18px, 2.2vw, 23px);
      line-height: 1.55;
      color: rgba(255,255,255,.76);
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 28px;
    }

    .btn {
      border: 0;
      border-radius: 999px;
      padding: 14px 20px;
      font-weight: 850;
      cursor: pointer;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }

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

    .btn-primary {
      color: #111827;
      background: linear-gradient(145deg, var(--gold-soft), var(--gold));
      box-shadow: 0 16px 38px rgba(214, 168, 79, .22);
    }

    .btn-secondary {
      color: var(--white);
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.13);
    }

    .hero-card {
      position: relative;
      padding: 28px;
      min-height: 470px;
      border-radius: 38px;
      overflow: hidden;
      background:
        linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03)),
        radial-gradient(circle at 70% 0%, rgba(244, 220, 162, .28), transparent 38%);
      border: 1px solid rgba(255,255,255,.13);
      box-shadow: var(--shadow);
      backdrop-filter: blur(20px);
    }

    .halo {
      position: absolute;
      width: 230px;
      height: 230px;
      border-radius: 50%;
      right: -56px;
      top: -50px;
      background: radial-gradient(circle, rgba(244,220,162,.44), rgba(214,168,79,.08) 55%, transparent 70%);
    }

    .verse-card {
      position: absolute;
      inset: auto 28px 28px 28px;
      padding: 28px;
      border-radius: 28px;
      background: rgba(255, 250, 240, .94);
      color: var(--text);
      box-shadow: 0 22px 55px rgba(0,0,0,.22);
    }

    .verse-card h2 {
      margin: 0 0 12px;
      font-size: 30px;
      letter-spacing: -.04em;
    }

    .verse-card p {
      color: var(--muted);
      font-size: 16px;
      margin: 0;
    }

    .floating-note {
      position: absolute;
      top: 76px;
      left: 28px;
      width: 230px;
      padding: 18px;
      border-radius: 22px;
      background: rgba(15, 23, 32, .55);
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.86);
      font-size: 14px;
      line-height: 1.45;
    }

    .section {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 54px 0;
    }

    .intro {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 26px;
      align-items: stretch;
    }

    .panel {
      border-radius: var(--radius);
      background: rgba(255,250,240,.94);
      box-shadow: var(--shadow);
      padding: 30px;
    }

    .panel.dark {
      background: linear-gradient(145deg, rgba(35,56,79,.96), rgba(18,30,43,.96));
      color: var(--white);
    }

    .panel h2 {
      margin: 0 0 14px;
      font-size: clamp(30px, 4vw, 48px);
      letter-spacing: -.05em;
    }

    .panel p {
      color: var(--muted);
      line-height: 1.7;
      margin: 0;
    }

    .panel.dark p { color: rgba(255,255,255,.72); }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-top: 24px;
    }

    .stat {
      padding: 18px;
      border-radius: 22px;
      background: rgba(214,168,79,.12);
    }

    .stat strong {
      display: block;
      font-size: 28px;
      color: var(--gold);
      letter-spacing: -.04em;
    }

    .section-title {
      color: var(--white);
      margin-bottom: 22px;
    }

    .section-title h2 {
      margin: 0;
      font-size: clamp(34px, 4.5vw, 58px);
      letter-spacing: -.06em;
    }

    .section-title p {
      margin: 10px 0 0;
      color: rgba(255,255,255,.68);
      max-width: 760px;
      line-height: 1.6;
    }

    .toolbar {
      position: sticky;
      top: 12px;
      z-index: 3;
      margin-bottom: 28px;
      padding: 14px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 24px;
      background: rgba(15, 23, 32, .72);
      backdrop-filter: blur(18px);
      box-shadow: 0 18px 50px rgba(0,0,0,.18);
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .search {
      width: 100%;
      border: 0;
      outline: 0;
      border-radius: 16px;
      padding: 15px 16px;
      background: rgba(255,255,255,.1);
      color: var(--white);
      font-size: 15px;
    }

    .search::placeholder { color: rgba(255,255,255,.56); }

    .count {
      white-space: nowrap;
      color: rgba(255,255,255,.74);
      font-size: 14px;
      padding: 0 10px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .story {
      position: relative;
      min-height: 470px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 30px;
      background: var(--paper);
      box-shadow: 0 18px 55px rgba(0,0,0,.2);
      transform: translateY(20px);
      opacity: 0;
      transition: transform .7s ease, opacity .7s ease, box-shadow .2s ease;
    }

    .story.visible {
      transform: translateY(0);
      opacity: 1;
    }

    .story:hover { box-shadow: 0 24px 70px rgba(0,0,0,.28); }

    .story-art {
      height: 132px;
      padding: 18px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.9), transparent 14%),
        radial-gradient(circle at 86% 18%, rgba(255,255,255,.34), transparent 20%),
        linear-gradient(135deg, var(--story-a), var(--story-b));
    }

    .story-number,
    .word-pill {
      display: grid;
      place-items: center;
      border-radius: 999px;
      color: rgba(255,255,255,.95);
      background: rgba(0,0,0,.24);
      backdrop-filter: blur(14px);
      font-weight: 900;
    }

    .story-number {
      width: 48px;
      height: 48px;
      border-radius: 16px;
    }

    .word-pill {
      height: 34px;
      padding: 0 12px;
      font-size: 12px;
    }

    .story-body {
      padding: 24px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .story h3 {
      margin: 0 0 10px;
      font-size: 24px;
      line-height: 1.08;
      letter-spacing: -.04em;
    }

    .story-text {
      position: relative;
      margin: 0;
      color: var(--muted);
      line-height: 1.68;
      font-size: 15px;
      max-height: 154px;
      overflow: hidden;
    }

    .story-text::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 44px;
      background: linear-gradient(to bottom, rgba(255,250,240,0), var(--paper));
    }

    .author {
      margin-top: auto;
      padding-top: 22px;
      color: var(--blue);
      font-weight: 850;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .author::before {
      content: "";
      width: 28px;
      height: 2px;
      border-radius: 999px;
      background: var(--gold);
    }

    .read-btn {
      margin-top: 20px;
      width: 100%;
      border: 0;
      border-radius: 16px;
      padding: 13px 16px;
      color: #111827;
      background: linear-gradient(145deg, var(--gold-soft), var(--gold));
      font-weight: 900;
      cursor: pointer;
    }

    .empty {
      display: none;
      padding: 30px;
      border-radius: var(--radius);
      color: var(--white);
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
    }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: none;
      padding: 22px;
      background: rgba(6, 10, 15, .72);
      backdrop-filter: blur(14px);
    }

    .modal.active {
      display: grid;
      place-items: center;
    }

    .modal-card {
      width: min(840px, 100%);
      max-height: min(860px, calc(100vh - 44px));
      overflow: hidden;
      border-radius: 34px;
      background: var(--paper);
      box-shadow: 0 40px 120px rgba(0,0,0,.42);
      display: grid;
      grid-template-rows: auto 1fr auto;
    }

    .modal-head {
      padding: 28px 30px 20px;
      color: var(--white);
      background:
        radial-gradient(circle at 14% 12%, rgba(255,255,255,.35), transparent 18%),
        linear-gradient(135deg, var(--modal-a), var(--modal-b));
    }

    .modal-kicker {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
      margin-bottom: 22px;
      color: rgba(255,255,255,.84);
      font-size: 14px;
      font-weight: 800;
    }

    .close {
      border: 0;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      color: var(--white);
      background: rgba(0,0,0,.22);
      font-size: 24px;
      cursor: pointer;
    }

    .modal-head h2 {
      margin: 0 0 10px;
      font-size: clamp(32px, 5vw, 54px);
      line-height: .98;
      letter-spacing: -.06em;
    }

    .modal-author {
      font-weight: 850;
      color: rgba(255,255,255,.9);
    }

    .modal-body {
      padding: 34px 34px 12px;
      overflow-y: auto;
      background:
        linear-gradient(90deg, rgba(214,168,79,.14) 0, rgba(214,168,79,.14) 5px, transparent 5px),
        var(--paper);
    }

    .modal-body p {
      margin: 0 0 18px;
      color: #4e4338;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(18px, 2.4vw, 23px);
      line-height: 1.78;
      white-space: pre-line;
    }

    .modal-foot {
      padding: 18px 30px 28px;
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      background: var(--paper);
    }

    .modal-foot span {
      color: var(--muted);
      font-size: 14px;
    }

    .footer {
      margin-top: 40px;
      padding: 54px 0 70px;
      color: var(--white);
      text-align: center;
      background: linear-gradient(to top, rgba(0,0,0,.22), transparent);
    }

    .footer h2 {
      margin: 0 0 10px;
      font-size: clamp(34px, 5vw, 58px);
      letter-spacing: -.06em;
    }

    .footer p {
      margin: 0 auto;
      max-width: 620px;
      color: rgba(255,255,255,.68);
      line-height: 1.7;
    }

    .socials {
      margin-top: 24px;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .socials a {
      text-decoration: none;
      padding: 12px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      color: rgba(255,255,255,.86);
      font-size: 14px;
    }

    @media (max-width: 920px) {
      .hero, .intro { grid-template-columns: 1fr; }
      .hero { padding-top: 42px; }
      .grid { grid-template-columns: repeat(2, 1fr); }
      .stats { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      .nav {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
      }

      .nav-links { flex-wrap: wrap; }

      .hero-card { min-height: 430px; }

      .floating-note {
        width: auto;
        right: 28px;
      }

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

      .toolbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
      }

      .count { padding: 0 4px 4px; }

      .modal { padding: 10px; }

      .modal-card {
        max-height: calc(100vh - 20px);
        border-radius: 24px;
      }

      .modal-head,
      .modal-body,
      .modal-foot {
        padding-left: 22px;
        padding-right: 22px;
      }

      .modal-foot {
        flex-direction: column;
        align-items: stretch;
      }
    }

/* Landing principal */
.landing-page .site {
  overflow: hidden;
}

.landing-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 64px;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 48px;
  align-items: center;
  color: var(--white);
}

.landing-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .9;
  letter-spacing: -.075em;
}

.landing-copy p {
  max-width: 680px;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.58;
  color: rgba(255,255,255,.76);
}

.landing-visual {
  position: relative;
  min-height: 560px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 20%, rgba(244,220,162,.32), transparent 32%),
    linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.landing-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.2), transparent 18%),
    radial-gradient(circle at 78% 26%, rgba(214,168,79,.24), transparent 20%),
    linear-gradient(135deg, transparent, rgba(255,255,255,.08));
  animation: slowFloat 10s ease-in-out infinite alternate;
}

.paper-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244,220,162,.58), rgba(214,168,79,.16) 45%, transparent 70%);
  filter: blur(2px);
}

.letter-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(380px, 78%);
  min-height: 430px;
  transform: translate(-50%, -50%) rotate(-3deg);
  padding: 46px 38px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,250,240,.96)),
    var(--paper);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(214,168,79,.32);
  border-radius: 20px;
}

.letter-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.letter-lines span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(35,56,79,.72), rgba(214,168,79,.36), transparent);
}

.letter-lines span:nth-child(2) { width: 82%; }
.letter-lines span:nth-child(3) { width: 66%; }
.letter-lines span:nth-child(4) { width: 74%; }

.heart-seal {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #321f16;
  font-size: 28px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  box-shadow: 0 14px 32px rgba(214,168,79,.28);
}

.floating-word {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(15,23,32,.48);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  font-weight: 850;
  box-shadow: 0 16px 38px rgba(0,0,0,.14);
}

.word-1 {
  left: 46px;
  top: 96px;
  animation: floatOne 5s ease-in-out infinite;
}

.word-2 {
  right: 44px;
  top: 164px;
  animation: floatOne 6s ease-in-out infinite reverse;
}

.word-3 {
  left: 72px;
  bottom: 92px;
  animation: floatOne 7s ease-in-out infinite;
}

.landing-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.verse-section {
  padding-top: 40px;
}

.verse-shell {
  position: relative;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 42px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(244,220,162,.22), transparent 28%),
    linear-gradient(145deg, rgba(35,56,79,.96), rgba(15,23,32,.96));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.verse-shell::before {
  content: "“";
  position: absolute;
  right: 34px;
  top: -38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 240px;
  line-height: 1;
  color: rgba(244,220,162,.12);
}

.verse-label {
  width: fit-content;
  margin-bottom: 24px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(244,220,162,.24);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.verse-shell blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 1000px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.7vw, 46px);
  line-height: 1.35;
  letter-spacing: -.035em;
  color: rgba(255,250,240,.96);
}

.verse-shell cite {
  display: block;
  margin-top: 28px;
  color: var(--gold-soft);
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
}

.editions-section {
  padding-top: 34px;
}

.edition-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
  text-decoration: none;
  background: rgba(255,250,240,.96);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.edition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.edition-art {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.48), transparent 24%),
    linear-gradient(135deg, #8e6f3e, #d6a84f);
}

.edition-art span {
  color: rgba(255,255,255,.96);
  font-size: 64px;
  font-weight: 950;
  letter-spacing: -.08em;
}

.edition-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edition-content h3 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.06em;
}

.edition-content p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
}

.edition-content strong {
  color: var(--blue);
}

@keyframes slowFloat {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.04); }
}

@keyframes floatOne {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@media (max-width: 920px) {
  .landing-hero,
  .landing-intro,
  .edition-card {
    grid-template-columns: 1fr;
  }

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

  .landing-visual {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .landing-visual {
    min-height: 450px;
  }

  .letter-card {
    min-height: 340px;
    padding: 34px 28px;
  }

  .floating-word {
    font-size: 13px;
  }

  .word-1 { left: 22px; top: 72px; }
  .word-2 { right: 22px; top: 126px; }
  .word-3 { left: 34px; bottom: 70px; }

  .verse-shell {
    border-radius: 30px;
  }

  .edition-art {
    min-height: 190px;
  }

  .edition-content {
    padding: 28px;
  }
}


/* Múltiples ediciones */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.edition-card.edition-mini .edition-art {
  min-height: 190px;
}

.edition-card.edition-mini .edition-content {
  padding: 28px;
}

.edition-card.edition-mini .edition-content h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.edition-art-alt {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.48), transparent 24%),
    linear-gradient(135deg, #315a63, #d6a84f);
}

.edition-art-third {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.48), transparent 24%),
    linear-gradient(135deg, #6d3f50, #7da3b8);
}

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


/* Modal: imagen visible junto al título */
.modal-title-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
  align-items: end;
}

.modal-title-copy {
  min-width: 0;
}

.modal-title-image {
  margin: 0;
  width: 230px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.modal-title-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body,
.modal-body p,
.story-body,
.story h3,
.story-text,
.author {
  text-align: left;
}

.modal-body p {
  white-space: normal;
}

@media (max-width: 720px) {
  .modal-title-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-title-image {
    width: 100%;
    max-height: 210px;
  }
}


/* Ajuste final: fondo de título, sin numeración ni contador */
.story-number,
.word-pill,
#modalWords,
.modal-title-image {
  display: none !important;
}

.story-art {
  justify-content: center;
}

.modal-head {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(to top, rgba(15, 23, 32, .92), rgba(15, 23, 32, .46), rgba(15, 23, 32, .12)),
    var(--modal-title-bg),
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.35), transparent 18%),
    linear-gradient(135deg, var(--modal-a), var(--modal-b)) !important;
  background-size: cover, cover, auto, auto !important;
  background-position: center, center, center, center !important;
}

.modal-title-layout {
  display: block !important;
  max-width: 760px;
}

.modal-title-copy {
  position: relative;
  z-index: 2;
}

.modal-foot {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .modal-head {
    min-height: 300px;
  }
}


/* Tarjetas corregidas: imagen completa arriba, título y autor visibles abajo */
.story-art {
  position: relative;
  height: 210px;
  overflow: hidden;
  padding: 0 !important;
  display: block !important;
}

.story-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-art-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 23, 32, .34), rgba(15, 23, 32, .04) 60%),
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.20), transparent 24%);
  z-index: 1;
}

.story-body > h3,
.author {
  display: block !important;
  text-align: left;
}

.story-body > h3 {
  color: var(--blue);
}

.author {
  color: var(--muted);
}

/* Mantener sin numeración ni contador */
.story-number,
.word-pill,
#modalNumber,
#modalWords {
  display: none !important;
}


/* Dropdown de ediciones */
.nav-links {
  align-items: center;
}

.editions-dropdown {
  position: relative;
  display: inline-flex;
}

.editions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: inherit;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.editions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,250,240,.96);
  border: 1px solid rgba(35,56,79,.12);
  box-shadow: 0 22px 54px rgba(0,0,0,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
}

.editions-dropdown:hover .editions-menu,
.editions-dropdown:focus-within .editions-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.editions-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--blue) !important;
  text-decoration: none;
  font-weight: 850;
}

.editions-menu a:hover {
  background: rgba(214,168,79,.16);
}

/* Banner edición por año */
.edition-banner-section {
  padding-top: 10px;
}

.edition-banner-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 640px) {
  .editions-menu {
    right: auto;
    left: 0;
  }

  .edition-banner-image {
    max-height: 300px;
    border-radius: 26px;
  }
}


/* Banners finales generados */
.edition-banner-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: none;
  object-fit: cover;
  object-position: center;
}


/* Correcciones finales responsive + redes */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

.nav {
  gap: 16px;
}

.nav-links {
  flex-wrap: wrap;
  gap: 10px;
}

.editions-dropdown {
  z-index: 50;
}

.editions-toggle {
  white-space: nowrap;
}

.editions-menu {
  z-index: 100;
}

.edition-banner-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
}

.socials a {
  word-break: keep-all;
}

@media (max-width: 780px) {
  .nav {
    width: min(100% - 24px, 1180px);
    padding: 12px 0;
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    max-width: 100%;
  }

  .brand span {
    font-size: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow: visible;
  }

  .editions-dropdown {
    width: auto;
  }

  .editions-toggle {
    padding: 9px 12px;
    font-size: 14px;
  }

  .editions-menu {
    left: 0;
    right: auto;
    min-width: 145px;
  }

  .hero,
  .landing-hero {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr;
    padding-top: 36px;
    gap: 26px;
  }

  .hero-card,
  .landing-visual {
    min-height: 360px;
  }

  .section,
  .stories,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .story {
    min-height: auto;
  }

  .story-art {
    height: 190px;
  }

  .story-body {
    padding: 20px;
  }

  .story-body h3 {
    font-size: 24px;
  }

  .modal-card {
    width: min(100% - 18px, 920px);
    max-height: 92vh;
    border-radius: 24px;
  }

  .modal-head {
    min-height: 260px;
    padding: 22px 20px 18px;
  }

  .modal-head h2 {
    font-size: clamp(30px, 10vw, 48px);
    line-height: .95;
  }

  .modal-body {
    padding: 22px 20px;
    font-size: 18px;
  }

  .modal-foot {
    padding: 16px 20px 20px;
  }

  .edition-banner-section {
    width: min(100% - 24px, 1180px);
  }

  .edition-banner-image {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
  }

  .searchbar {
    position: static;
    margin-top: 18px;
  }

  .socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .socials a {
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1,
  .landing-copy h1 {
    font-size: clamp(42px, 16vw, 64px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .story-art {
    height: 170px;
  }

  .modal-head {
    min-height: 230px;
  }

  .modal-body {
    font-size: 17px;
  }
}
