/* ──────────────────────────────────────────────────────────────
   Hiel · Sips of Gall  —  Martín Zaramán  —  Ecos Boreales
   Single-page landing in the spirit of the printed book:
   cream paper, Garamond family typography, generous whitespace.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:        #F5EDE5;          /* same cream as the book cover */
  --ink:       #1A1611;          /* warm near-black */
  --ink-soft:  #4A3F32;          /* secondary text */
  --rule:      #C8BBA7;          /* hairline accents */
  --accent:    #6A1B22;          /* deep garnet, used very sparingly */
  --serif:     "EB Garamond", "Cormorant Garamond", Baskerville, "Times New Roman", serif;
  --display:   "Cormorant Garamond", "EB Garamond", Baskerville, serif;
  --max-w:     780px;
  --gap-xl:    6rem;
  --gap-lg:    4rem;
  --gap-md:    2rem;
  --gap-sm:    1rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Prevent any oversized element (a long tracked author name, a wide
     image, etc.) from creating a horizontal scroll bar — particularly
     important for narrow mobile viewports. */
  overflow-x: hidden;
}


/* ─── LANGUAGE TOGGLE (hide non-active language) ───────────── */
html[data-lang="es"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="es"] { display: none; }
/* Section titles use two spans separated by a space; ensure the
   spacing collapses cleanly when one of them is hidden. */
.section__title span { white-space: nowrap; }

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  background: var(--bg);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  z-index: 50;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  color: var(--ink);
  font-weight: 500;
}
.lang-switch span { color: var(--rule); }

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent); }


/* ───── LIBRO HERO  (inside the Libro section) ──────────────── */
/* The book cover only appears as the header of the Libro section.
   Other sections start directly with their verse + title so that a
   menu click visibly changes the entire page, not just the bottom. */

.libro__hero {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: var(--max-w);
}

.libro__hero img {
  width: min(60%, 300px);
  margin: 0 auto 1.5rem;
}

.libro__author {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}
@media (max-width: 540px) {
  .libro__author {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
}

.libro__tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}


/* ───── TOP MENU ────────────────────────────────────────────── */
/* Minimal centred line at the very top of the page; no card, no
   border, no background — just the section names with the active
   one underlined.  Mirrors the typographic line beneath the cover. */

.menu {
  max-width: var(--max-w);
  margin: 0 auto;
  /* Top padding leaves a clear gap for the fixed language switcher.
     Horizontal padding ≈ lang-switch width so labels never overlap it. */
  padding: 1.6rem 4.7rem 0.4rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.22rem 0.35rem;
  font-family: var(--display);
  font-size: 1rem;
}

.menu__item {
  font-style: italic;
  color: var(--ink-soft);
  padding: 0.25rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.menu__item:hover { color: var(--ink); }
.menu__item.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.menu__sep {
  color: var(--rule);
  font-size: 0.85em;
  margin: 0 0.05rem;
}

@media (max-width: 540px) {
  /* On mobile, turn the menu into a horizontally scrollable tab strip
     (à la iOS Settings) — wrapping is unreliable across browsers with
     seven items, scrolling always works. */
  .menu {
    padding: 1.1rem 1rem 0.6rem;
    font-size: 0.95rem;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    /* Subtle fade hint that there's more content to the right */
    mask-image: linear-gradient(to right,
      black 0%, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
      black 0%, black calc(100% - 28px), transparent 100%);
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu__sep { display: none; }
  .menu__item {
    flex-shrink: 0;
    padding: 0.2rem 0.75rem;
  }
  .menu__item:first-child { padding-left: 0; }
  /* The mask hides the rightmost ~28px, so allow a little extra
     end-padding so the last item never sits under the fade. */
  .menu__item:last-child { padding-right: 1.8rem; }
  /* On mobile, drop the language switch to the bottom-right so it
     doesn't overlap menu items when they wrap. */
  .lang-switch {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    box-shadow: 0 2px 12px rgba(26, 22, 17, 0.10);
  }
}

/* Very narrow phones (≤ 380px) need still tighter spacing. */
@media (max-width: 380px) {
  .menu {
    font-size: 0.78rem;
    gap: 0.25rem 0.4rem;
  }
}

/* Decorative divider beneath the menu — mirrors the cover ornament: ── ◆ ── */
.menu-ornament {
  width: 140px;
  height: 14px;
  margin: 1.6rem auto 0;
  background:
    /* central diamond (rotated square SVG) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><rect x='3' y='3' width='6' height='6' transform='rotate(45 6 6)' fill='%231A1611'/></svg>") center / 12px 12px no-repeat,
    /* left hairline */
    linear-gradient(var(--ink), var(--ink)) left center / 50px 1px no-repeat,
    /* right hairline */
    linear-gradient(var(--ink), var(--ink)) right center / 50px 1px no-repeat;
}


/* ───── SECTION SCAFFOLD ────────────────────────────────────── */

.sections {
  /* Reserve space so toggling sections doesn't reflow the footer up. */
  min-height: 60vh;
  position: relative;
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-md) 1.25rem var(--gap-lg);
  text-align: center;
  /* Hidden by default; the JS adds .section--active to the chosen one. */
  display: none;
  animation: section-fade-in 0.32s ease both;
}
.section--active { display: block; }

@keyframes section-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}


/* Section opening verse — a fragment of the book floating between
   the menu ornament and the section title.  Italic, soft, centred.
   Below it sits a single dot acting as a quiet caesura. */
.section__verse {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 auto 1.6rem;
  max-width: 30em;
  padding: 0 1rem;
  text-align: center;
  /* Reset default <blockquote> margins */
  border: 0;
}
.section__verse p {
  margin: 0;
}
.section__verse::after {
  content: "·";
  display: block;
  margin: 1.1rem auto 0;
  color: var(--rule);
  font-size: 1.3rem;
  line-height: 1;
}
.section__verse + .section__title {
  margin-top: 0;
}

/* ───── BOOK SECTION ────────────────────────────────────────── */

.book__copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.formats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem auto 1rem;
  max-width: 540px;
}
@media (min-width: 640px) {
  .formats { grid-template-columns: 1fr 1fr; }
  .formats .format--deluxe { grid-column: 1 / -1; }
}

.format {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.format:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: var(--ink);
}

.format__cover {
  width: auto;
  max-width: 130px;
  height: auto;
  margin: 0 auto 1.1rem;
  display: block;
}
.format__label {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.format__price {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.format__cta {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.format__meta {
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Deluxe: horizontal layout — cover on the left, details on the right.
   Spans the full row width, has a darker border for emphasis. */
.format--deluxe {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 1.4rem;
  border-style: solid;
  border-width: 2px;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  padding: 1.4rem 1.6rem;
}
.format--deluxe .format__cover {
  max-width: 200px;
  margin: 0;
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .format--deluxe .format__cover { max-width: 240px; }
}
.format__details {
  flex: 1;
  min-width: 0;
}
@media (max-width: 500px) {
  /* On very narrow screens stack the deluxe vertically too */
  .format--deluxe {
    flex-direction: column;
    text-align: center;
  }
  .format--deluxe .format__cover {
    margin: 0 auto 1rem;
  }
}

/* Coming soon: muted price, italic CTA, NO hover lift (not actionable). */
.format--soon {
  cursor: default;
}
.format--soon:hover {
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.4);
  transform: none;
}
.format--deluxe.format--soon:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.format--soon .format__price {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 0.5px;
  text-decoration-color: var(--rule);
  opacity: 0.75;
}
.format--soon .format__cta {
  font-style: italic;
  color: var(--ink-soft);
}

.formats__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.5;
}


/* ───── LECTURA / SAMPLE SECTION ────────────────────────────── */

.lectura__intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 3rem;
}

.poem {
  max-width: 32em;
  margin: 0 auto 1rem;
  text-align: center;
}
.poem__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 1.6rem;
  letter-spacing: 0.005em;
}
.poem__body {
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
}
.poem__body p {
  margin: 0 0 1.2rem;
}
.poem__body p:last-child {
  margin-bottom: 0;
}

/* Diamond ornament between the two sample poems — same as the cover */
.poem__divider {
  width: 140px;
  height: 14px;
  margin: 3rem auto;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><rect x='3' y='3' width='6' height='6' transform='rotate(45 6 6)' fill='%231A1611'/></svg>") center / 12px 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left center / 50px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right center / 50px 1px no-repeat;
}

.lectura__cta {
  margin-top: 3rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}


/* ───── MUSIC SECTION ───────────────────────────────────────── */

.music__intro {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto 2.5rem;
  max-width: 36em;
  text-align: center;
}
.music__intro strong {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0.005em;
}
.music__platforms {
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 2.5rem auto 0;
  max-width: 36em;
}
.music__store-list {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1rem auto 0;
  max-width: 40em;
  line-height: 1.7;
}
.music__store-more {
  text-align: center;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0.45rem auto 0;
  opacity: 0.85;
}

.albums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .albums { grid-template-columns: 1fr 1fr; }
}

.album figcaption {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 0.95rem;
}
.album .meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-left: .25rem;
}
.album img {
  box-shadow: 0 8px 28px rgba(26, 22, 17, 0.10);
  border-radius: 2px;
}

/* Coming-soon album: muted artwork + small label beneath the caption */
.album--soon img {
  opacity: 0.78;
  filter: saturate(0.85);
}
.album--preorder img {
  opacity: 1;
  filter: none;
}
.album__soon,
.album__release {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.album__release {
  letter-spacing: 0.06em;
  line-height: 1.45;
}
.album__listen {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
}
.album__listen:hover {
  border-bottom-color: var(--ink);
}

/* ───── Album preview · 30 s mini-player ─────────────────────── */
.album__preview {
  display: flex;
  width: max-content;
  margin: 0.7rem auto 0;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.album__preview:hover {
  border-color: var(--ink);
  background: rgba(26, 22, 17, 0.05);
}
.album__preview-icon {
  width: 0;
  height: 0;
  border-left: 9px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
  transition: opacity .15s ease;
}
.album__preview.is-playing .album__preview-icon {
  width: 8px;
  height: 11px;
  border: 0;
  margin-left: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) left  / 3px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) right / 3px 100% no-repeat;
}
.album__preview-label { white-space: nowrap; }
.album__preview-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(26, 22, 17, 0.08);
  border-radius: 0 0 999px 999px;
  overflow: hidden;
}
.album__preview-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width .15s linear;
}



/* ───── MERCH SECTION ───────────────────────────────────────── */

.merch__intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.merch__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 540px) {
  .merch__grid { grid-template-columns: 1fr 1fr; }
}

.merch-item {
  margin: 0;
  text-align: center;
}
.merch-item img {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.merch-item figcaption {
  margin-top: 0.9rem;
}
.merch-item h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
}
.merch-item .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.merch-item__cta {
  display: inline-block;
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
a.merch-item__cta:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Coming soon CTA: not actionable, plain caps label, no border. */
.merch-item__cta--soon {
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  border-bottom: none;
  cursor: default;
}

.merch-item--soon img {
  opacity: 0.92;
}

.merch__fulfilment {
  margin-top: 2.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-style: italic;
}

/* Legacy class kept for backwards compatibility (unused for now). */
.merch__contact {
  margin-top: 2.5rem;
  font-size: 1rem;
  font-style: italic;
}
.merch__contact a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.merch__contact a:hover {
  border-bottom-color: var(--ink);
}


/* ───── AUTHOR (about) SECTION ──────────────────────────────── */

.about p,
[data-section="autor"] p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
}


/* ───── CONTACT SECTION ─────────────────────────────────────── */

.contact__intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 1.6rem;
}
.contact__email {
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 2rem;
}
.contact__email a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  transition: border-color .15s ease, color .15s ease;
}
.contact__email a:hover {
  border-bottom-color: var(--ink);
}

/* Spam-safe contact button: looks like a link, behaves like a mailto.
   The real email is reconstructed by JS only on click. */
.contact__button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 3px 0;
  font: inherit;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.contact__button:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
.contact__note {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0;
}


/* ───── SHARE / COMPARTIR SECTION ───────────────────────────── */

.compartir__intro {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 auto 3rem;
  max-width: 32em;
  text-align: center;
}

.compartir__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 1.6rem;
  max-width: 880px;
  margin: 0 auto;
}

.share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}
.share-card__thumb {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(26, 22, 17, 0.10),
              0 1px 3px rgba(26, 22, 17, 0.08);
  margin-bottom: 1rem;
  cursor: zoom-in;
  transition: transform .3s cubic-bezier(.2,.7,.2,1),
              box-shadow .3s cubic-bezier(.2,.7,.2,1);
}
.share-card:hover .share-card__thumb,
.share-card__thumb:hover {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 18px 36px rgba(26, 22, 17, 0.18),
              0 3px 8px rgba(26, 22, 17, 0.12);
}

/* Video thumbnail: same dimensions but with a centred play-glyph overlay. */
.share-card__thumb--video {
  position: relative;
  display: block;
  overflow: hidden;
}
.share-card__thumb--video img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.share-card__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(26, 22, 17, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform .25s ease, background .25s ease;
}
.share-card__play::after {
  /* CSS triangle for the play icon */
  content: '';
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 18px solid #F5EDE5;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.share-card--video:hover .share-card__play {
  background: rgba(26, 22, 17, 0.92);
  transform: translate(-50%, -50%) scale(1.06);
}
.share-card__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.share-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  max-width: 260px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .12s ease;
}
.share-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
/* Slight emphasis for the native-share button — it's the most useful on
   mobile because the system sheet includes Instagram, Stories, Threads… */
.share-btn--native {
  background: rgba(26, 22, 17, 0.06);
  color: var(--ink);
  border-color: var(--ink);
}
.share-btn--native:hover {
  background: rgba(26, 22, 17, 0.12);
}
.share-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(26, 22, 17, 0.04);
}
.share-btn:active { transform: scale(0.94); }
.share-btn--ok {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: rgba(26, 22, 17, 0.08) !important;
}

.compartir__hint {
  margin: 2.5rem auto 0;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ───── NEWS + NEWSLETTER ───────────────────────────────────── */
.news__intro {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
}
.news__feed-link {
  text-align: center;
  margin: -0.45rem 0 1.1rem;
}
.news__feed-link a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
  font-style: italic;
}
.news__feed-link a:hover {
  border-bottom-color: var(--ink);
}
.news__list {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 1.8rem;
}
.news-item {
  border: 1px solid var(--rule);
  padding: .9rem;
  background: rgba(255, 255, 255, 0.42);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: .95rem;
}
.news-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.news-item__body {
  min-width: 0;
}
.news-item__date {
  margin: 0 0 .4rem;
  color: var(--ink-soft);
  font-size: .78rem;
  letter-spacing: .08em;
}
.news-item h3 {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.08rem;
}
.news-item p {
  margin: 0;
}
.news-item__tracks {
  margin-top: .6rem !important;
  color: var(--ink-soft);
  font-size: .93rem;
}
.news-item__links {
  margin-top: .7rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
}
.news-item__links a {
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
  text-decoration: none;
  font-style: italic;
}
.news-item__links a:hover {
  border-bottom-color: var(--ink);
}
.news-item__share {
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
}
.news-item__share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.newsletter {
  margin: 0 auto 1.6rem;
}
@media (max-width: 760px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-item img {
    max-width: 220px;
  }
}
.newsletter {
  max-width: 620px;
  border: 1px solid var(--rule);
  padding: 1rem 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.42);
}
.newsletter--collapsible {
  padding: 0;
}
.newsletter__summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1rem;
  font-family: var(--display);
  font-style: italic;
  text-align: center;
  color: var(--ink);
}
.newsletter__summary::-webkit-details-marker { display: none; }
.newsletter__summary::after {
  content: "▾";
  margin-left: .5rem;
  color: var(--ink-soft);
}
.newsletter--collapsible[open] .newsletter__summary::after {
  content: "▴";
}
.newsletter__panel {
  border-top: 1px solid var(--rule);
  padding: .95rem 1rem 1.1rem;
}
.newsletter__title {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 1.15rem;
}
.newsletter__copy {
  margin: .45rem 0 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-size: .9rem;
}
.newsletter__copy--small {
  margin-top: -.35rem;
  margin-bottom: .75rem;
  font-size: .82rem;
}
.newsletter__copy--small a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
}
.newsletter__copy--small a:hover {
  border-bottom-color: var(--ink);
}
.newsletter__label {
  display: block;
  margin: .7rem 0 .35rem;
  font-size: .85rem;
  letter-spacing: .03em;
}
.newsletter__input,
.newsletter__select {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  padding: .6rem .65rem;
  font: inherit;
}
.newsletter__consent {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: .45rem .6rem;
  align-items: start;
  margin: .85rem 0 .95rem;
  font-size: .84rem;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
}
.newsletter__consent input[type="checkbox"] {
  margin: .15rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--ink);
  cursor: pointer;
}
.newsletter__submit {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: .58rem .95rem;
  font-family: var(--display);
  font-style: italic;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.newsletter__submit:hover {
  background: rgba(26, 22, 17, 0.06);
}
.newsletter__actions {
  margin: .4rem 0 0;
  text-align: center;
}
.newsletter__unsub {
  margin: .85rem 0 0;
  text-align: center;
}
.newsletter__unsub-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-style: italic;
  cursor: pointer;
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
}
.newsletter__unsub-btn:hover {
  border-bottom-color: var(--ink);
}
.newsletter__unsub-btn:disabled {
  opacity: .55;
  cursor: wait;
}
.newsletter__embed {
  margin-top: .45rem;
}
.newsletter__brevo {
  border: 1px solid var(--rule);
  background: #fff;
  padding: .85rem;
}
.newsletter__form {
  max-width: 520px;
  margin: 0 auto;
}
.newsletter__hint {
  margin: .65rem 0 0;
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  opacity: .92;
}
.newsletter__hint a {
  margin-left: .45rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 22, 17, 0.35);
}
.newsletter__hint a:hover {
  border-bottom-color: var(--ink);
}
.newsletter__hint.is-visible {
  color: var(--ink);
}
.newsletter__alert {
  max-width: 520px;
  margin: 0 auto .65rem;
  padding: .55rem .65rem;
  font-size: .85rem;
  border: 1px solid transparent;
}
.newsletter__alert--error {
  color: #661d1d;
  background: #ffeded;
  border-color: #ff4949;
}
.newsletter__alert--ok {
  color: #085229;
  background: #e7faf0;
  border-color: #13ce66;
}
/* Brevo anti-bot honeypot: must exist in DOM but stay invisible. */
.input--hidden {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.newsletter__status {
  margin: .6rem 0 0;
  text-align: center;
  font-size: .82rem;
}
.newsletter__status.is-ok {
  color: #2f5d3a;
}
.newsletter__status.is-error {
  color: #7a2e2e;
}


/* ───── LIGHTBOX (share-card zoom) ──────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 17, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  animation: lb-fade .18s ease-out;
}
.lightbox[hidden] { display: none !important; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__image,
.lightbox__video {
  max-width: min(92vw, 92vh);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
}
.lightbox__video {
  /* Video is 9:16 — let it take up the available vertical space */
  max-width: min(92vw, 56vh);
  background: #000;
}
.lightbox__image[hidden],
.lightbox__video[hidden] { display: none; }

.lightbox__close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}


/* ───── FOOTER ─────────────────────────────────────────────── */

.footer {
  text-align: center;
  padding: var(--gap-lg) 1.25rem 3rem;
  margin-top: var(--gap-md);
  border-top: 1px solid var(--rule);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.footer__imprint {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.footer__url {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
}


/* ───── REDUCED-MOTION FRIENDLY ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
