/* ==========================================================================
   Matsuri Barcelona — Homepage sections
   Rebuilt to match the approved Figma structure section-by-section
   (not just re-skinned placeholders).
   ========================================================================== */

/* Bold display weight for every section heading (.h2) on the homepage,
   per the user, 2026-11-03 — intentionally homepage-only (this stylesheet
   is enqueued only when is_front_page(), see functions.php), so base.css's
   site-wide .h2 stays Light (300) everywhere else. Loads after base.css
   (matsuri-front-page depends on matsuri-layout → matsuri-base), so this
   wins the cascade at equal specificity without needing extra selectors
   per section (.highlights .h2, .ubicacion .h2, etc. below don't set their
   own font-weight, so this is the only rule deciding theirs). */
.h2 {
  font-weight: 700;
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  height: 598px; /* 520px photo + 78px foot bar, per Figma */
  display: flex;
  flex-direction: column;
}

.hero .photo-duotone,
.hero .photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero-only override of the shared .photo-duotone recipe (see
   assets/css/tokens.css for that base recipe's own long history) — per
   the user, 2026-11-05, who attached a reference screenshot (an older
   "Festival Matsuri Barcelona 2026" banner) where a gradient only
   covers the left portion of the photo and the right side is left
   fully clear/untinted. First pass (same day) dropped the shared
   recipe's flat 0.85-opacity amber-hued tint for an --ink→transparent
   fade, but kept two things the user then explicitly didn't want on a
   follow-up: (1) --amber still showed as a middle transition color —
   removed below, ink now fades straight to transparent, no second hue;
   (2) the photo itself was still desaturated by .photo-duotone > img's
   grayscale(1) filter everywhere, including the "clear" right portion,
   which isn't actually clear/natural if it's still black-and-white
   ("白黒ではない、クリアにして") — filter:none here restores full color
   under the fade. Scoped to .hero specifically (not changed in
   tokens.css) so section-tickets.php's .tickets-cta__photo, which
   reuses this same unmodified base variant, is unaffected. */
.hero .photo-duotone::after {
  background: linear-gradient(
    115deg,
    var(--ink) 0%,
    var(--ink) 28%,
    transparent 70%
  );
}

.hero .photo-duotone > img {
  filter: none;
}

/* Optional background slideshow (opt-in via the ACF "Foto de fondo 2–5"
   fields — see section-hero.php). Plain crossfade: only the active
   slide is opaque, everything else stacks behind it at inset:0. */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 74px;
  color: var(--white);
  /* Deliberately NOT overriding .container's own max-width/margin/padding
     here (a previous version did, to keep this box "flush left" — but
     that made its left edge track the true viewport edge while
     .hero-foot below kept using .container's centered-1440px-page
     edge. On any screen wider than --page-max the two diverged and the
     title/edition text visibly stopped lining up. Both now share the
     exact same .container box; the narrower reading width goes on the
     title itself instead of this wrapper. */
}

.hero__kicker {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero__title {
  max-width: 680px;
  color: var(--white);
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4.25rem);
  line-height: 0.98;
  text-transform: uppercase;
  font-weight: 700; /* bold page title, per the user, 2026-11-03 */
  letter-spacing: 0;
}

.hero__subtitle {
  margin-top: 18px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.hero-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  color: var(--white);
  flex-wrap: wrap;
}

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

.hero-foot__edition {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-foot__dates {
  font-size: 2rem;
  font-weight: 600;
}

.hero-foot__location {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-foot__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: var(--vermillion);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 18px 26px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.hero-foot__cta:hover {
  background: #aa2024;
  transform: translateY(-1px);
}

/* Disabled while tickets aren't on sale yet (matsuri_tickets_on_sale() in
   inc/template-tags.php renders this as a real <button disabled> rather
   than an <a>) — same opaque mid-gray as .btn[disabled] in base.css, so
   every ticket CTA across the site reads as "off" the same way. */
.hero-foot__cta[disabled] {
  background: #857f74;
  cursor: not-allowed;
}

.hero-foot__cta[disabled]:hover {
  background: #857f74;
  transform: none;
}

.hero-foot__cta[disabled] .hero-foot__cta-note,
.hero-foot__cta[disabled] .hero-foot__cta-label {
  color: var(--paper);
}

.hero-foot__cta-note {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
}

.hero-foot__cta-label {
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 782px) {
  .hero {
    height: auto;
  }

  .hero__content {
    padding-top: 48px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    /* Fixed gap instead of the desktop's margin-top:auto — on a
       height:auto mobile layout there's no extra flex space to push
       into, so "auto" left a large dead gap above this block. */
    margin-top: 32px;
    padding-block: 0 32px;
  }

  .hero-foot__cta {
    align-items: flex-start;
    text-align: left;
  }
}

/* --------------------------------- Sponsor strip ---------------------------------
   Figma keeps this on pure white (#fff), not the page's paper tone, with
   bold 6px ink rules top/bottom (not hairlines) — confirmed via
   get_design_context on node 22:2.

   Switched from a fixed, wrapping row to an auto-scrolling marquee per
   the user, 2026-10-31, once the sponsor count was confirmed to grow to
   ~15 (option "B" of 3 shown — a fixed row wraps to 2–3 lines at that
   count; this instead always stays one row tall). CSS-only, no JS: see
   template-parts/section-sponsors.php for why the logo list is rendered
   twice back-to-back (the -50% translateX loop needs an identical 2nd
   copy to hand off to) and how the loop duration is computed per-count. */
.sponsor-strip {
  background: var(--white);
}

.sponsor-strip__rule {
  height: 6px;
  background: var(--ink);
}

.sponsor-strip__marquee {
  overflow: hidden;
  position: relative;
}

/* Edge fade so the nearest logo never looks abruptly clipped mid-scroll. */
.sponsor-strip__marquee::before,
.sponsor-strip__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
  pointer-events: none;
}

.sponsor-strip__marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.sponsor-strip__marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
}

.sponsor-strip__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding-block: 30px;
  padding-inline: 44px;
  animation: sponsor-marquee var(--sponsor-marquee-duration, 36s) linear infinite;
}

/* Pause on hover/focus (no JS) so a visitor can actually read a logo
   instead of it sliding past — :focus-within covers tabbing to a logo
   that happens to be a link. */
.sponsor-strip__marquee:hover .sponsor-strip__track,
.sponsor-strip__marquee:focus-within .sponsor-strip__track {
  animation-play-state: paused;
}

@keyframes sponsor-marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* Exactly half the track's width, since the logo list is duplicated
       — at -50% the 2nd copy sits exactly where the 1st started. */
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-strip__track {
    animation: none;
  }
}

@media (max-width: 600px) {
  .sponsor-strip__track {
    gap: 24px 32px;
    padding-inline: var(--content-pad-sp);
  }
}

.sponsor-strip__logo {
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
}

.sponsor-strip__logo img {
  height: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
}

.sponsor-strip__name {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: #8c877d;
  white-space: nowrap;
}

/* ----------------------------------- Tema ---------------------------------- */
.tema {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 700px;
  /* Raised above the (static, unpositioned) Highlights section that
     follows, so .tema__photo's negative-margin overhang below can
     paint on top of it instead of being covered — see .tema__photo. */
  position: relative;
  z-index: 1;
}

/* .tema__panel (REBUILT, 2026-11-05) is the ACTUAL 7fr grid item —
   .tema__illustration and .tema__text are both its children, siblings
   of each other, with .tema__photo as the separate 5fr item. Earlier
   (2026-11-04) .tema__illustration was a direct child of <section>,
   sized via a hand-calculated 58.3333% (=7fr/12fr) approximation of the
   SECTION's own width, because that was the nearest positioned
   ancestor available. Rebuilt as a dedicated wrapper per two pieces of
   user feedback, 2026-11-05, on the then-current bottom-anchored
   version (see the git history / earlier revision of this file for
   that intermediate state if needed):
     1. On a MacBook Pro 14" viewport (~1512px — between the 1440px and
        2000px widths already tested), the illustration still read as
        "cut off somewhere weird" ("まだ変なところでキレてる"). Root
        cause: the source PNG's bottom row has no natural alpha taper
        (confirmed earlier by sampling pixel alpha near it — "doesn't
        taper off on its own"), and the bottom-anchor fix rendered that
        hard, already mid-shape-cropped edge at FULL opacity flush
        against the panel's own bottom edge (the mask at the time only
        faded the TOP). Fixed below with a two-sided mask-image that
        fades both ends, so neither the image's inherently-arbitrary
        top crop nor its bottom crop is ever shown at hard 100% opacity
        — only a soft "window" through the middle of the artwork is.
     2. The user also asked for SP (mobile) to be bottom-anchored, not
        just desktop ("あとSPもした揃えにして"). The old containing
        block (.tema itself) spanned BOTH .tema__text's row AND
        .tema__photo's row on mobile's single-column stack (they share
        one grid container even though they're visually stacked rows),
        so bottom:0 against it would anchor to the PHOTO's edge, not
        the text panel's — the exact bug already fixed once before by
        avoiding bottom:0 entirely. Wrapping just the text (not the
        photo) in .tema__panel gives the illustration a containing
        block whose height is the text row's own content height on
        EVERY breakpoint, so plain bottom:0 now works correctly on both
        desktop and mobile with no breakpoint-specific override — see
        .tema__illustration below, and the @media(max-width:1024px)
        block, which no longer needs a .tema__illustration override of
        its own at all. Width is likewise just 100% of .tema__panel
        (capped at the source PNG's native 840px) rather than a
        58.3333%-of-section approximation, since .tema__panel's own
        width already IS the real column width on every breakpoint
        (7fr column on desktop, full single column on mobile).
   overflow:hidden here (newly possible, and newly needed) is a safety
   clip: it was NOT safe on .tema itself (.tema__photo's own negative-
   margin overhang below needs to paint OUTSIDE .tema's box — the
   opposite clipping need — see the comment on .tema), but .tema__panel
   no longer contains .tema__photo, so clipping it doesn't touch that
   trick at all. It's a backstop for cases the mask doesn't fully cover
   (e.g. unusually short body copy making the text row shorter than the
   illustration's own natural height) — belt-and-braces alongside the
   mask-image fade, not a replacement for it: a hard clip alone would
   just be a different flavor of "cut off somewhere weird". */
.tema__panel {
  position: relative;
}

.tema__text {
  position: relative;
  z-index: 1;
  padding: 130px 80px 130px 100px;
  max-width: 700px;
}

/* "Coming soon…" illustration (Figma 112:189/113:393) — REBUILT AGAIN,
   2026-11-05, after going back to look directly at the actual reference
   composition in Figma (node 112:191, "Theme announcement" — the fixed
   840×666 frame this illustration is designed for) instead of just the
   isolated image asset. That reference shows the artwork filling the
   ENTIRE 840×666 frame completely, edge to edge on all four sides, with
   NO visible gap of plain ink anywhere and no fade at any edge — the
   motif is simply cropped by the frame's own bounds on every side (per
   the earlier-documented "bled past the panel's top-left corner", this
   was always a full-bleed crop, never a small floating decoration with
   breathing room around it).
   Every previous round of this fix (natural-size + top-anchor, then
   bottom-anchor, then two-sided mask-fade, width caps, etc. — see the
   git history of this file) was built on a wrong premise: that SOME
   plain-ink gap was correct/expected and the only question was where to
   put it and how to fade into it. That's backwards. Figma's frame is
   FIXED-size and happens to exactly match the image's own crop, so it
   never has a gap to solve for in the first place — our panel is
   RESPONSIVE (variable width AND height across breakpoints), so the
   fix isn't picking an anchor point, it's making the illustration
   behave like a full-bleed background texture that covers the panel
   completely at ANY size, same as Figma's reference does at its one
   fixed size. object-fit:cover on an img sized to 100%/100% of
   .tema__panel does exactly this: it scales the image to always fully
   cover the box (cropping overflow, never leaving a gap) regardless of
   the box's own aspect ratio, which varies a lot across this project's
   breakpoints (tall and narrow on mobile, short and wide on ultra-wide
   desktop). This also means no mask-image is needed anymore — there's
   no "edge of the artwork meeting open ink" to soften, because the
   artwork always extends to literally fill every edge of the panel,
   exactly like the Figma reference.
   object-position: 50% 42% approximates Figma's own crop center (its
   840×666 frame sits at left:-90px/top:-26px inside the 995×798 source,
   i.e. centered at roughly 51%/45% of the full image) rather than a
   plain 50/50 center, keeping the busier upper portion of the motif
   (the crane/koi) a little more in frame than the plainer lower waves
   when a tall, narrow panel (mobile) has to crop hard top-to-bottom. */
.tema__illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tema__illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.tema__kicker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tema__kicker-es {
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--paper);
  line-height: 1;
}

.tema__kicker-jp {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.tema__theme-word {
  font-weight: 700;
  font-size: clamp(4rem, 2.5rem + 7vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--muted-ink);
}

/* "Coming soon…" placeholder state (tema_coming_soon in ACF, added per
   the user, 2026-10-28) — same treatment as the real theme word, just
   sized down: "MUSUBI"-style single words read well at the full giant
   size, but a 2-word phrase like this one doesn't need to be quite that
   dominant to still land as a clear, deliberate statement. */
.tema__theme-word--coming-soon {
  font-size: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}

.tema__heading-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.tema__title {
  margin: 0;
  color: var(--paper);
  font-weight: 700; /* bold page title, per the user, 2026-11-03 */
  font-size: 2.75rem;
}

.tema__kanji {
  font-size: 1.25rem;
  color: #bfbaad;
}

.tema__subtitle {
  font-size: 1.125rem;
  color: var(--ink-body-text);
  margin-bottom: 24px;
}

.tema__divider {
  border: 0;
  height: 1px;
  width: 40px;
  background: #666159;
  margin: 0 0 32px;
}

.tema__body {
  font-size: 0.9375rem;
}

.tema__body :where(p) {
  margin-bottom: 24px;
}

.tema__body :where(p:last-child) {
  margin-bottom: 0;
}

/* The photo panel stretches 64px past the section's own bottom edge —
   one of a few spots on the homepage (also see .about__posters; the
   poster showcase section used to do this too, via its own
   .poster--with-overhang, before that was removed 2026-11-05 — see
   .poster__frame's own comment) where a photo deliberately breaks the
   flat, straight-line seam between two sections instead of stopping
   flush at it. Not in Figma; added at the user's request to make the
   section boundaries less uniformly monotonous. */
.tema__photo {
  position: relative;
  margin-bottom: -64px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(34, 28, 67, 0.28);
}

.tema__photo .photo-duotone,
.tema__photo .photo-placeholder {
  position: absolute;
  inset: 0;
}

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

  .tema__text {
    padding: 64px var(--content-pad-sp) 48px;
    max-width: none;
  }

  /* No .tema__illustration override needed here (or anywhere else) —
     it's just inset:0 + object-fit:cover against .tema__panel (see the
     long comment above .tema__illustration), which by definition always
     fully covers whatever box it's in, at any aspect ratio. Nothing
     breakpoint-specific to recalculate. */

  .tema__photo {
    height: 340px;
    margin-bottom: -32px;
  }

  /* Soft top fade, mobile-only — per the user, 2026-11-05, who flagged
     the single-column stack (.tema__panel directly above .tema__photo,
     no gap between their grid rows) as reading like two unrelated
     photos glued together with a hard cut between them ("上部と下部の
     写真の間がスパッと切れちゃってるような印象"). Desktop doesn't have
     this problem — there the panel and photo sit side by side as
     columns, not stacked, so there's no "between them" seam to begin
     with; this fade is scoped to the same breakpoint as the 1-column
     stack itself. var(--ink) matches .section--ink's own background
     (the <section> both .tema__panel and .tema__photo sit inside), so
     the panel's dark background visually bleeds a little way down into
     the photo's own top edge instead of stopping dead at the panel's
     bottom edge, reading as one continuous dark passage rather than two
     stacked blocks. z-index:1 — .photo-duotone (the actual photo plus
     its own color-tint ::after) sits at the default stacking level, so
     this paints on top of it, same explicit-z-index convention as
     .tema__text / .tema__illustration above. */
  .tema__photo::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 72px;
    background: linear-gradient(to bottom, var(--ink) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
}

/* -------------------------------- Highlights --------------------------------
   Bento-style "Descubre el festival" grid, replacing the old uniform
   3-col/row grid — per the approved discover_mock.html review: a photo
   hero (Programa) + a 2-card stack (Stands/Zona infantil) on row 1,
   then a solid Colabora card + a photo Barcelona Ondo card + a solid
   Cómo llegar card on row 2. Every selector below is prefixed
   .highlight-/.highlights__ on purpose — the mock used bare, generic
   names (.card/.row/.tag/.stack/.thumb/.text/.jp) that were safe in a
   standalone page but collide here: base.css already defines a sitewide
   .card (white bg + shadow + hover-lift) that would otherwise silently
   fight these.

   No Figma SP frame exists for this grid (same as Colabora/Stand
   CTA/Story), so .highlights__mobile below is this project's own
   adaptation, approved alongside the desktop bento in the same review.

   Photo placeholders: every photo slot keeps the mock's bespoke
   per-card gradient (.highlight-photo--*) as its permanent background;
   a real uploaded photo (once one exists) is layered on top via
   .highlight-card__photo-img — see section-highlights.php. This is a
   deliberate departure from matsuri_duotone()'s generic sitewide
   placeholder, to preserve the bespoke look the user approved. */
/* Section background changed from the plain page --paper to a bold
   festival yellow, per the user, 2026-11-05 ("ここのコンテンツ背景はもっ
   と目立つように黄色ベースにしたいんだけどどう？") — this section was
   reading as too quiet against the sections above/below it. --amber
   (#ce861d, the site's existing "Ceremonial Gold" accent) is correct in
   hue but too dark/muted to work as a full-bleed background behind this
   many colored cards, so --highlights-bg started as a brighter, more
   saturated tint of the same hue (same 35.6° hue as --amber, lifted in
   lightness and saturation).
   Lightened again the same day, per the user ("DESCUBRE EL FESTIVALの背
   景色（黄色）を薄目の黄色（添付1枚目のセカンダリーカラーの中にあるや
   つ）に変更できる？", attaching the brand sheet's own Secondary Colors
   row) — #f6b75a read as too bold/saturated once seen alongside the rest
   of the homepage. Now #ffcc88, the brand sheet's own secondary-palette
   swatch (not a freehand tint), a paler, softer yellow in the same warm
   family. Nothing else here needed to change for the lighter tone: the
   kicker/h2 above and the watermark below both already use their normal
   dark-ink colors (no light-background override existed to begin with),
   which if anything read with MORE contrast against this lighter bg than
   they did against the previous, more saturated one. */
.highlights {
  position: relative;
  overflow: hidden;
  --stands-blue: #203b62;
  --cream-tint: #f3e9d4;
  --highlights-bg: #ffcc88;
  background: var(--highlights-bg);
}

.highlights .h2 {
  font-size: 2.375rem;
}

/* Was a raw logo-mark-full.png <img> — replaced 2026-11-05 with the
   shared traced-vector watermark (template-parts/matsuri-mark-svg.php,
   fill="currentColor") after the user spotted a faint pale rectangle
   behind the mark once .highlights got its new yellow background (see
   this file's own comment above .highlights, and the shared partial's
   docblock, for the full story: that PNG's alpha is a uniform ~6% wash
   across its whole canvas, including a baked-in white "page"
   background, not a real cutout — invisible on the old pale --paper
   background, visible once the background turned a saturated yellow).
   color+opacity here is the same recipe as the working
   .colabora-access__watermark elsewhere on this page. */
.highlights__watermark {
  position: absolute;
  right: 0;
  top: -10px;
  width: 300px;
  height: 300px;
  color: var(--ink);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.highlights__watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.highlights .container {
  position: relative;
  z-index: 1;
}

.highlight-row {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}

/* shared base for the two photo-backed card links (Programa/Ondo).
   Hover lift reuses the sitewide .card:hover convention (base.css) —
   added per the user, 2026-11-04, after the approved mock's own resting
   state shipped with no hover affordance at all. */
.highlight-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}

.highlight-card:hover,
.highlight-card:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.highlight-card__photo {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: 118% 118%;
  background-position: center;
}

.highlight-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-photo--programa {
  background-image:
    radial-gradient(ellipse 60% 55% at 22% 28%, rgba(206, 134, 29, 0.65), transparent 60%),
    radial-gradient(ellipse 55% 50% at 78% 18%, rgba(192, 40, 46, 0.55), transparent 58%),
    radial-gradient(ellipse 70% 65% at 80% 88%, rgba(34, 28, 67, 0.95), transparent 65%),
    linear-gradient(145deg, #2a2354 0%, #15122c 100%);
}

.highlight-photo--ondo {
  background-image:
    radial-gradient(ellipse 65% 60% at 68% 60%, rgba(124, 121, 147, 0.55), transparent 55%),
    radial-gradient(ellipse 55% 50% at 18% 22%, rgba(192, 40, 46, 0.42), transparent 55%),
    linear-gradient(150deg, #2a2354 0%, #15122c 100%);
}

/* placeholder only — desktop's Cómo llegar card has no photo at all
   (solid ink + ring); this exists for the mobile photo-top layout */
.highlight-photo--llegar {
  background-image:
    radial-gradient(ellipse 60% 55% at 75% 25%, rgba(206, 134, 29, 0.45), transparent 58%),
    radial-gradient(ellipse 55% 55% at 20% 80%, rgba(192, 40, 46, 0.35), transparent 56%),
    linear-gradient(150deg, #2a2354 0%, #15122c 100%);
}

.highlight-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34, 28, 67, 0) 0%, rgba(34, 28, 67, 0.92) 100%);
}

.highlight-card__content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0 22px 24px;
  z-index: 2;
}

.highlight-jp {
  font-family: var(--font-jp);
}

.highlight-card__content .highlight-jp {
  font-size: 12px;
  color: var(--vermillion);
  opacity: 0.9;
  margin-bottom: 6px;
  display: block;
}

/* Card-title size standardized to 22px across all three desktop card
   shapes in this bento grid, per the user, 2026-11-05 ("Programaとかな
   どの各項目タイトルのフォントサイズがバラバラだから修正して") — these
   three shapes (.highlight-card__content/.highlight-split/.highlight-
   solid h3) previously shipped at three different sizes (23/19/25px)
   left over from when each card type's title was tuned independently;
   same 22px value now repeated at .highlight-split h3 and .highlight-
   solid h3 below. Mobile's .highlight-m-card__body h3 was already a
   single consistent 19px for every card shape, so it's untouched. */
.highlight-card__content h3 {
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}

.highlight-card__content p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-body-text);
  max-width: 88%;
}

.highlight-card--hero {
  flex: 1.15 1 0;
  height: 420px;
  min-width: 0;
}

.highlight-card--ondo {
  flex: 1.4 1 0;
  min-width: 0;
}

/* right-hand stack (Stands / Zona infantil) */
.highlight-stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.highlight-split {
  display: flex;
  height: 199px;
  background: var(--stands-blue);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}

.highlight-split:hover,
.highlight-split:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.highlight-split--cream {
  background: var(--cream-tint);
}

.highlight-split__thumb {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  background-size: 130% 130%;
  background-position: center;
}

.highlight-photo--stands {
  background-image:
    radial-gradient(ellipse 65% 65% at 35% 70%, rgba(192, 40, 46, 0.55), transparent 58%),
    radial-gradient(ellipse 60% 60% at 75% 20%, rgba(34, 28, 67, 0.7), transparent 58%),
    linear-gradient(160deg, #2c2a4a, #15122c);
}

.highlight-photo--zona {
  background-image:
    radial-gradient(ellipse 60% 60% at 60% 35%, rgba(206, 134, 29, 0.6), transparent 56%),
    radial-gradient(ellipse 55% 55% at 25% 78%, rgba(192, 40, 46, 0.4), transparent 56%),
    linear-gradient(160deg, #241f3f, #15122c);
}

.highlight-split__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  position: relative;
}

.highlight-split__text .highlight-jp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  display: block;
}

.highlight-split--cream .highlight-jp {
  color: var(--ink);
  opacity: 0.55;
}

.highlight-split h3 {
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.highlight-split--cream h3 {
  color: var(--ink);
}

.highlight-split p {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.highlight-split--cream p {
  color: var(--muted-ink);
}

.highlight-deco-circle {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.45;
  right: -30px;
  top: -28px;
  z-index: 0;
}

/* row 2: solid Colabora / photo Ondo / solid Cómo llegar */
.highlight-solid {
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 250px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}

.highlight-solid:hover,
.highlight-solid:focus-visible {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.highlight-solid--vermillion {
  background: var(--vermillion);
  flex: 0.9 1 0;
  min-width: 0;
}

.highlight-solid--vermillion .highlight-jp {
  color: rgba(255, 255, 255, 0.75);
}

.highlight-solid .highlight-jp {
  font-size: 11px;
  margin-bottom: 8px;
  display: block;
}

.highlight-solid h3 {
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.highlight-solid p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 200px;
}

.highlight-accent-line {
  position: absolute;
  left: 26px;
  bottom: 26px;
  width: 42px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

/* Was a raw logo-mark-full.png <img> — replaced 2026-11-05 with the
   shared traced-vector watermark (template-parts/matsuri-mark-svg.php),
   same root-cause bug as .highlights__watermark above (see that
   comment): this card's soft-light blend + 0.55 opacity made the
   leftover ~6%-alpha white "page" background in that PNG nearly
   invisible here, so it was never reported, but it's the same broken
   asset — fixed here too while touching it rather than leaving a
   second, quieter copy of the same bug in place. color:white (set via
   currentColor on the svg) reproduces the soft white highlight shape
   soft-light blending against the raw image used to produce. */
.highlight-card__watermark {
  position: absolute;
  right: -20px;
  top: -26px;
  width: 190px;
  height: 190px;
  color: var(--white);
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

.highlight-card__watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.highlight-solid--llegar {
  background: var(--ink);
  flex: 0.75 1 0;
  min-width: 0;
}

.highlight-solid--llegar .highlight-jp {
  color: var(--vermillion);
}

.highlight-deco-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 16px solid rgba(206, 134, 29, 0.35);
  right: -50px;
  bottom: -50px;
  z-index: 0;
}

.highlight-solid--llegar .highlight-jp,
.highlight-solid--llegar h3,
.highlight-solid--llegar p {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   Mobile (≤782px) — no Figma SP frame exists for this grid (same as
   Colabora/Stand CTA/Story); every card becomes its own "photo on top +
   solid footer band" shape (or no photo, for Colabora), stacked:
   Programa (full width) → row(Stands, Zona infantil) → Colabora (full
   width) → row(Barcelona Ondo, Cómo llegar). Same colors/content as
   desktop, approved alongside it in the discover_mock.html review. */
.highlights__mobile {
  display: none;
}

@media (max-width: 782px) {
  /* Tema's own photo overhangs -32px into whatever follows it at this
     breakpoint (see .tema__photo's @media(max-width:1024px) rule) —
     against the base .section padding-top of 56px that left only ~24px
     of real breathing room before this section's own kicker/heading,
     which read as cramped (reported by the user, 2026-11-04). Extra
     padding-top here (not a change to .tema__photo, which is shared by
     whatever section follows Tema) restores a comfortable gap. */
  .highlights {
    padding-top: 88px;
  }

  .highlights__watermark {
    width: 150px;
    height: 150px;
    top: -6px;
  }

  .highlights__bento {
    display: none;
  }

  .highlights__mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .highlight-m-row {
    display: flex;
    gap: 16px;
  }

  .highlight-m-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }

  .highlight-m-row > .highlight-m-card {
    flex: 1 1 0;
  }

  .highlight-m-card__photo {
    position: relative;
    width: 100%;
    height: 150px;
    background-size: 130% 130%;
    background-position: center;
  }

  .highlight-m-row .highlight-m-card__photo {
    height: 110px;
  }

  .highlight-m-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .highlight-m-card__tag {
    font-family: var(--font-jp);
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .highlight-m-card__body h3 {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.01em;
  }

  .highlight-m-card__body p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .highlight-m-card--ink {
    background: var(--ink);
  }

  .highlight-m-card--ink h3 {
    color: var(--white);
  }

  .highlight-m-card--ink p {
    color: var(--ink-body-text);
  }

  .highlight-m-card--blue {
    background: var(--stands-blue);
  }

  .highlight-m-card--blue h3 {
    color: var(--white);
  }

  .highlight-m-card--blue p {
    color: rgba(255, 255, 255, 0.88);
  }

  .highlight-m-card--cream {
    background: var(--cream-tint);
  }

  .highlight-m-card--cream h3 {
    color: var(--ink);
  }

  .highlight-m-card--cream p {
    color: var(--muted-ink);
  }

  .highlight-m-card--cream .highlight-m-card__tag {
    color: var(--ink);
    opacity: 0.6;
  }

  .highlight-m-card--ink .highlight-m-card__tag {
    color: var(--vermillion);
  }

  .highlight-m-card--solid {
    background: var(--vermillion);
    padding: 0;
  }

  .highlight-m-card--solid .highlight-m-card__body {
    padding: 22px;
  }

  .highlight-m-card--solid h3 {
    color: var(--white);
  }

  .highlight-m-card--solid p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 70%;
  }

  .highlight-m-card--solid .highlight-m-card__tag {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-jp);
  }
}

/* ----------------------------------- About ----------------------------------
   Figma's own "Desde 2013" section is text-only (confirmed via
   get_screenshot on 25:38), but per the approved story_mock.html
   review the real homepage always pairs the text with a photo collage
   (two gradient-tone panels + an offset badge box) and a 4-poster fan
   that deliberately spills past the section's own bottom edge into
   Ubicación below — same "overhang" trick as .tema__photo (the poster
   showcase section used to do this too, via its own
   .poster--with-overhang, before that was removed 2026-11-05 — see
   .poster__frame's own comment): .about gets position:relative +
   z-index:1 so the overhang paints on top of the (unpositioned)
   section that follows instead of being covered by it.

   No Figma SP frame exists for any of this (same as Colabora/Stand
   CTA/Discover). The 4-poster fan is illegible at mobile scale, so
   .about__poster-strip below replaces it with an auto-scrolling
   marquee — this project's own adaptation, approved alongside the
   desktop version in the same review.

   MERGED with the homepage's Gallery teaser, per the user, 2026-11-19
   — see section-about.php's own docblock for the full reasoning.
   .about__history is new: it wraps exactly what used to be this whole
   section's only content (the .container.about__inner row + the
   desktop poster fan + the mobile poster marquee), completely
   unchanged, so .about__posters' `bottom:0` overhang — which resolves
   against its nearest POSITIONED ancestor — keeps landing exactly
   where it already did (just past the end of the history/collage row)
   now that .about__gallery (the old section-gallery.php's bento grid +
   CTA, below) is a SECOND block inside this same <section>. Without
   .about__history taking over that "nearest positioned ancestor" role
   from .about itself, the fan's bottom:0 would instead resolve against
   the END of .about__gallery — spilling the posters across the photo
   grid instead of across the history text, which is not what was
   asked for. */
.about {
  position: relative;
  z-index: 1;
}

.about__history {
  position: relative;
}

/* Replaces the fan's old "spill into whatever section comes next"
   clearance, which used to come for free from two STACKED .section
   paddings (.about's own bottom 96px + Ubicación's top 96px — the fan
   ate into the first 96px, leaving ~12px clear before Ubicación's own
   heading). Now that .about__gallery lives in the SAME <section> as
   the fan instead of being a separate section with its own top
   padding, that gap has to be added explicitly here — sized a little
   more generously (120px vs. the ~108px the fan's biggest overhang,
   about__poster--1 at -83.48px, left clear before) since there's no
   second section boundary to fall back on if a future edit makes the
   fan taller. Not needed ≤1239px — the fan itself is hidden there
   (see that breakpoint below), replaced by the in-flow mobile poster
   marquee, so a plain section-sized gap is enough (set in that same
   query below, next to where the fan is hidden).

   Bumped 120px → 190px, 2026-11-19, alongside shifting all four
   .about__poster--N 70px further down (see their own comment) — this
   keeps that same ~108–120px clearance below the fan's new, lower
   position instead of shrinking it. */
.about__gallery {
  margin-top: 190px;
}

.about__gallery .h2 {
  font-size: 2rem;
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  /* Was align-items:center, which vertically centered the (shorter)
     text column against the (taller) collage, leaving a visible gap
     above "Desde 2013" before the collage's own top edge — per the
     user, 2026-11-04, the kicker/title/body should start flush with
     the collage's top instead. */
  align-items: start;
  gap: 64px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__title {
  font-size: 2rem;
}

.about__body {
  font-size: 0.9375rem;
}

/* ---- photo collage: a 416:500 box, fluid within its grid track, so
   every child below is sized as a % of .about__collage itself (not
   fixed px) and scales with it rather than overflowing a narrower
   track. A real uploaded photo (about_image_main/_accent) is layered
   on top of the bespoke gradient panels via .about__collage-img when
   one exists — see section-about.php. ---- */
.about__collage {
  position: relative;
  width: 100%;
  max-width: 416px;
  aspect-ratio: 416 / 500;
  justify-self: center;
}

.about__collage-main {
  position: absolute;
  left: 3.8462%;
  top: 0;
  width: 96.1538%;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-panel);
}

.about__collage-top {
  height: 33.2%;
  background-image:
    radial-gradient(ellipse 60% 60% at 70% 30%, rgba(206, 134, 29, 0.25), transparent 60%),
    radial-gradient(ellipse 55% 55% at 25% 70%, rgba(124, 121, 147, 0.5), transparent 58%),
    linear-gradient(160deg, #4a4772, #221c43);
  background-size: 140% 140%;
  background-position: center;
}

.about__collage-bottom {
  flex: 1;
  background-image:
    radial-gradient(ellipse 60% 55% at 30% 20%, rgba(192, 40, 46, 0.3), transparent 58%),
    radial-gradient(ellipse 55% 55% at 70% 75%, rgba(34, 28, 67, 0.95), transparent 55%),
    linear-gradient(170deg, #3c3665, #17132e);
  background-size: 135% 135%;
  background-position: center;
}

.about__collage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__collage-badge {
  position: absolute;
  left: -5.7692%;
  top: 63%;
  width: 53.8462%;
  height: 44.8%;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.about__collage-badge-inset {
  position: absolute;
  left: 2.6786%;
  top: 2.6786%;
  width: 94.6429%;
  height: 94.6429%;
  border-radius: 3px;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 60% 60% at 60% 30%, rgba(206, 134, 29, 0.5), transparent 58%),
    radial-gradient(ellipse 55% 55% at 25% 75%, rgba(192, 40, 46, 0.4), transparent 56%),
    linear-gradient(160deg, #352f5c, #17132e);
  background-size: 140% 140%;
  background-position: center;
}

/* ---- desktop poster fan (real Figma-canvas pixel data from the
   approved mock, converted to % left so it scales fluidly with the
   section's real width instead of assuming exactly 1440px — same
   technique as Colabora's lantern garland). Anchored to .about's own
   BOTTOM edge (bottom:<negative>px = how far each poster's bottom
   corner spills past it) instead of a fixed top offset, so the overlap
   amount stays correct regardless of the section's actual (variable,
   content-driven) height — the mock's own fixed 684px canvas doesn't
   exist here. ---- */
.about__posters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  pointer-events: none;
}

.about__poster {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__poster-card {
  width: 180px;
  flex-shrink: 0;
  border-radius: 2px;
  transform: rotate(-15deg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

/* Per the user, 2026-11-19, reviewing the real uploaded posters
   ("テキストとポスターの間の余白をもっと取りたい"): the fan overlapped
   slightly above .about__text's own bottom edge. Each poster's "bottom"
   below is how far it overhangs PAST .about__history's bottom edge —
   shifting all four 70px further down (more negative) moves the whole
   fan down by 70px without touching its shape, spacing or rotation.
   .about__gallery's margin-top, just above, is bumped by the same 70px
   so the fan's own already-tuned clearance before the gallery grid
   doesn't grow along with it. */
.about__poster--1 {
  left: 5.2778%;
  bottom: -153.48px;
  width: 240.02px;
  height: 293.48px;
}

.about__poster--1 .about__poster-card {
  height: 255.6px;
}

.about__poster--2 {
  left: 19.2715%;
  bottom: -142.2px;
  width: 236.96px;
  height: 282.05px;
}

.about__poster--2 .about__poster-card {
  height: 243.77px;
}

.about__poster--3 {
  left: 33.2924%;
  bottom: -140.1px;
  width: 236.39px;
  height: 279.92px;
}

.about__poster--3 .about__poster-card {
  height: 241.56px;
}

.about__poster--4 {
  left: 47.2431%;
  bottom: -114.69px;
  width: 229.48px;
  height: 254.16px;
}

.about__poster--4 .about__poster-card {
  height: 214.89px;
}

/* ---- mobile poster marquee (see .about__poster-strip__track's
   animation below) — hidden above 782px */
.about__poster-strip {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .about__poster-strip__track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .about__inner {
    gap: 40px;
  }
}

/* Poster fan / marquee swap point — was max-width:782px (bundled together
   with the grid's stack-to-one-column breakpoint below), but that left a
   wide tablet range (roughly 800–1150px, confirmed by sweeping widths
   with Playwright) where the four absolutely-positioned posters — sized
   and placed as a % of the FULL section width, same technique as
   Colabora's lantern garland, calibrated against a much wider desktop
   canvas — collided with the "Desde aquel primer Moll de la Fusta..."
   paragraph instead of sitting safely below it. Reported by the user,
   2026-11-05, with a tablet-width screenshot showing the overlap.
   Verified clear from ~1200px up, so the swap now happens at 1239px —
   well above the collision range — independent of the grid's own
   stack-to-single-column breakpoint (782px, below), which wasn't part
   of this bug and is unchanged. */
@media (max-width: 1239px) {
  /* .about__poster-strip's full-bleed -20px side margins (below) pull it
     past the section's own edges — harmless on desktop where .about
     stays overflow:visible (needed for the poster fan's bottom overhang,
     see .about__posters above), but at this breakpoint that fan is
     already hidden, so it's safe to clip horizontally here without
     touching the vertical overhang trick. Without this the page itself
     gained a 20px horizontal scrollbar. */
  .about {
    overflow-x: hidden;
  }

  .about__posters {
    display: none;
  }

  /* The fan is hidden at this breakpoint (replaced by the in-flow
     mobile marquee below, which needs no special clearance of its
     own), so .about__gallery no longer needs the desktop's wider
     fan-clearance gap — a plain section-sized gap matches every other
     stacked block on the page at this width. */
  .about__gallery {
    margin-top: 64px;
  }

  /* Auto-scrolling marquee: the track holds the 4 posters twice back
     to back and slides left by exactly one set's width (-50%), so the
     loop point is invisible — looks like an endless poster reel.
     Paused on hover so it can be read on desktop-with-mouse previews;
     see the top-level prefers-reduced-motion block above for the
     accessibility override (this theme's existing convention — see
     .sponsor-strip__track). Originally mobile-only (≤782px, "illegible
     at mobile scale" per the section's own docblock) — now also covers
     the tablet range above, where the 4-up fan doesn't fit either. */
  .about__poster-strip {
    display: block;
    overflow: hidden;
    margin: 56px -20px 0;
    padding: 4px 0 8px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }

  .about__poster-strip__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: about-poster-marquee 20s linear infinite;
  }

  .about__poster-strip:hover .about__poster-strip__track {
    animation-play-state: paused;
  }

  .about__poster-strip__card {
    flex: 0 0 auto;
    width: 132px;
    height: 168px;
    border-radius: 4px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
  }

  .about__poster-strip__card:nth-child(odd) {
    transform: rotate(-3deg);
  }

  .about__poster-strip__card:nth-child(even) {
    transform: rotate(2deg);
  }

  @keyframes about-poster-marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
}

@media (max-width: 782px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about__collage {
    aspect-ratio: auto;
    max-width: none;
    width: 100%;
    height: 220px;
  }

  .about__collage-main {
    left: 0;
    top: 0;
    width: 100%;
    height: 220px;
  }

  .about__collage-badge {
    left: auto;
    right: 16px;
    top: auto;
    bottom: -20px;
    width: 110px;
    height: 110px;
  }

  .about__collage-badge-inset {
    left: 4px;
    top: 4px;
    width: 102px;
    height: 102px;
  }
}

/* --------------------------------- Ubicación --------------------------------- */
.ubicacion .h2 {
  font-size: 2rem;
}

.ubicacion__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

.ubicacion__map,
.ubicacion__map-placeholder {
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-height: 360px;
}

.ubicacion__map iframe {
  border-radius: var(--radius-xs);
  min-height: 360px;
}

.ubicacion__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ubicacion__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 6px;
}

.ubicacion__address {
  margin: 0;
  font-size: 0.875rem;
  color: #4a453d;
}

.transit-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transit-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.transit-list__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vermillion);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
}

.transit-list__text {
  display: flex;
  flex-direction: column;
}

.transit-list__label {
  font-weight: 500;
  font-size: 0.9375rem;
}

.transit-list__detail {
  font-size: 0.8125rem;
  color: #4a453d;
}

.ubicacion__link {
  align-self: flex-start;
}

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

/* -------------------------------- Tickets CTA --------------------------------
   Light/paper section (Figma bg #faf6ea) — NOT an ink section. An earlier
   pass wrongly gave this a dark background; the kicker/title/button here
   read correctly against the default light section background instead.

   Two opt-in photo treatments on top of that (neither is in Figma —
   added at the user's request to make this banner more dramatic):

   - .tickets-cta--gallery (preferred): 2–4 scattered, softly-rotated
     photo tiles behind a dark scrim, referencing a collage-style CTA
     the user linked as inspiration, rather than one flat photo.
   - .tickets-cta--photo (legacy/fallback): a single full-bleed photo.

   Both share the same absolute-inset "photo layer" (.tickets-cta__photo)
   and dark-scrim overlay (::after) — the gallery variant just fills
   that layer with several positioned tiles instead of one edge-to-edge
   image. */
.tickets-cta {
  text-align: left;
}

.tickets-cta__title {
  font-size: 1.875rem;
  max-width: 26ch;
  margin: 16px 0 28px;
}

.tickets-cta--photo,
.tickets-cta--gallery {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.tickets-cta--gallery {
  min-height: 480px;
}

.tickets-cta__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tickets-cta__photo .photo-duotone,
.tickets-cta__photo .photo-placeholder {
  position: absolute;
  inset: 0;
}

.tickets-cta__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 28, 67, 0.82) 0%, rgba(34, 28, 67, 0.55) 55%, rgba(34, 28, 67, 0.3) 100%);
  z-index: 1;
}

.tickets-cta--photo .tickets-cta__inner,
.tickets-cta--gallery .tickets-cta__inner {
  position: relative;
  z-index: 2;
}

.tickets-cta--photo .tickets-cta__title,
.tickets-cta--gallery .tickets-cta__title {
  color: var(--white);
}

/* Gallery tiles — scattered on the right, where the dark scrim is
   lightest, so they read as photos peeking through rather than
   competing with the text on the left. Positioned as % of the full
   section width (this layer is full-bleed, not confined to .container).
   A tile is simply omitted from the markup when its field is empty, so
   these rules degrade gracefully from 4 tiles down to 2. */
.tickets-cta__photo--gallery {
  overflow: visible;
}

.tickets-cta__tile {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(34, 28, 67, 0.4);
}

.tickets-cta__tile .photo-duotone,
.tickets-cta__tile .photo-placeholder {
  width: 100%;
  height: 100%;
}

.tickets-cta__tile--1 {
  top: -36px;
  right: 30%;
  width: 168px;
  height: 220px;
  transform: rotate(-7deg);
}

.tickets-cta__tile--2 {
  top: 44px;
  right: 1%;
  width: 220px;
  height: 280px;
  transform: rotate(5deg);
  z-index: 1;
}

.tickets-cta__tile--3 {
  bottom: -40px;
  right: 24%;
  width: 190px;
  height: 240px;
  transform: rotate(4deg);
}

.tickets-cta__tile--4 {
  bottom: 24px;
  right: -3%;
  width: 160px;
  height: 210px;
  transform: rotate(-5deg);
}

@media (max-width: 782px) {
  .tickets-cta--photo,
  .tickets-cta--gallery {
    min-height: 380px;
  }

  .tickets-cta__photo::after {
    background: linear-gradient(180deg, rgba(34, 28, 67, 0.45) 0%, rgba(34, 28, 67, 0.82) 70%);
  }

  /* Mobile collage: keep only the first two tiles, smaller and tucked
     into the top-right corner, so nothing overlaps the text/button
     that sits lower in the (now shorter) banner. */
  .tickets-cta__tile--3,
  .tickets-cta__tile--4 {
    display: none;
  }

  .tickets-cta__tile--1 {
    top: -24px;
    right: 38%;
    width: 96px;
    height: 128px;
  }

  .tickets-cta__tile--2 {
    top: 16px;
    right: 4%;
    width: 128px;
    height: 168px;
  }
}

/* -------------------------- Gallery (excerpt, inside About) -------------------------- */
/* No longer its own section/.gallery wrapper — this whole block now
   renders inside .about__gallery (see that selector, and
   section-about.php's docblock, for the 2026-11-19 merge). The
   .gallery .h2 font-size override that used to live here is now
   .about__gallery .h2, next to .about__gallery itself above; every
   other rule below (.bento-grid and down) was already written against
   bare, unscoped classes, so it needed no change at all to work from
   its new home. */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  height: 480px;
}

/* Each tile is now a real link to the full Galería page (or a plain,
   non-interactive <div> when that page is disabled — see
   section-gallery.php) — per the user, 2026-11-18. display/color/
   text-decoration reset to the sitewide "photo card that's actually a
   link" convention (.highlight-card, front-page.css above), and the
   hover/focus state borrows the Galería page's own "tiles enlarge"
   treatment (.gallery-tile:hover, galeria.css) at a calmer scale — this
   is a small 5-photo teaser, not that page's full wall of tiles. */
.bento-grid__item {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(34, 28, 67, .08);
  transition: transform var(--transition-med), box-shadow var(--transition-med), z-index 0s;
}

.bento-grid__item:hover,
.bento-grid__item:focus-visible {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 16px 30px rgba(34, 28, 67, .22);
  z-index: 2;
}

.bento-grid__item:hover .photo-duotone__img {
  filter: brightness(1.05) saturate(1.06);
}

.bento-grid__item:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.bento-grid__item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.bento-grid__item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.bento-grid__item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.bento-grid__item:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.bento-grid__item:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.bento-grid__item .photo-duotone,
.bento-grid__item .photo-placeholder {
  position: absolute;
  inset: 0;
}

/* .bento-grid__caption (each photo's raw title overlaid bottom-left —
   in practice usually a bare camera filename, e.g. "IMG-20220608-
   WA0002 (1)") was removed per the user, 2026-11-18, same reasoning as
   .gallery-tile__caption's removal in galeria.css: a tile should just
   read as a photo, not surface its filename. The title is still passed
   to matsuri_duotone() as alt text in section-gallery.php. */

/* Button below the grid, linking through to the full Galería page —
   see section-gallery.php. Centered under the grid; .btn--outline/
   --sm/--caps reuse the sitewide small-caps secondary-link recipe
   (base.css) also used by section-stand-cta.php's "Solicita tu stand". */
.gallery__cta-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
    /* The desktop 24px gap (above) reads fine across a 3-column, ~400px-
       tall bento, but at phone width each tile is only ~165px wide, so
       that same 24px eats roughly a seventh of a tile's width/height on
       every side — per the user, 2026-11-19 ("SPで見たとき、写真の上下左右
       の余白が開きすぎている"). Tightened here, mobile-only; desktop is
       unchanged since that complaint was specifically about the phone
       layout. */
    gap: 10px;
    height: auto;
  }

  .bento-grid__item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bento-grid__item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .bento-grid__item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .bento-grid__item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .bento-grid__item:nth-child(5) { grid-column: 2; grid-row: 3; }
}

/* -------------------------------- Instagram ------------------------------------
 * Homepage section wrapper for the Smash Balloon "Instagram Feed"
 * plugin's own [instagram-feed] shortcode — see
 * template-parts/section-instagram.php. Deliberately minimal: the
 * plugin renders and sizes its own feed (grid/columns/responsive
 * behavior all come from its own settings + CSS), so this just keeps it
 * vertically spaced in line with every other homepage section and caps
 * it to the shared .container width — no attempt to reach into or
 * override the plugin's own markup, which this theme doesn't control
 * and could change on a plugin update.
 *
 * History: this was a hand-built embed grid, then a slider, both removed
 * 2026-11-01 in favor of this plugin — see inc/post-types.php's doc
 * comment on the old `instagram_post` CPT, and README.md §2 for the
 * plugin's own one-time setup (install + connect the account).
 */
.instagram-section__feed {
  margin-top: 8px;
}

/* .instagram-section__cta removed, 2026-11-10 — the theme's own "Síguenos
   en Instagram" button it styled was removed as a duplicate of the Smash
   Balloon feed's own "Seguir en Instagram" button; see the doc comment in
   template-parts/section-instagram.php. */

/* ---------------------------------- Poster ------------------------------------ */
.poster__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.poster__frame {
  /* Matches the reference poster the user attached, 2026-11-05 ("ポス
     ターの縦横比は添付5枚目くらいの比率で") — a real printed Matsuri
     poster at 400×568px, simplified to its exact ratio 50:71 (≈0.704)
     rather than a rounded pixel pair, so it stays correct at every
     breakpoint width (340px / 200px / 220px). Replaces the previous
     1200/1694 (≈0.708, from an actual uploaded poster file) — close
     enough to be nearly indistinguishable, but this now matches the
     ratio the user actually pointed at. Always a plain self-contained
     card now — no overhang variant; see this file's own docblock
     comment above .poster__coming-soon, and section-poster.php's, for
     why that was removed. */
  aspect-ratio: 50 / 71;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px dashed #d9d1b5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

/* Dashed placeholder border swapped for a solid drop shadow once a real
   photo is showing (.poster__frame--photo, set in section-poster.php
   when $poster_id exists) — same visual distinction as before, just no
   longer bundled with the overhang positioning that used to live here
   too. That overhang (.poster--with-overhang, same "photo breaks the
   straight seam" technique as .tema__photo) spilled the photo into the
   (ink) Colabora Intro section below via a fixed 340×624 box (≈0.545
   ratio) that had nothing to do with .poster__frame's own portrait
   ratio above, and on mobile it was already disabled outright
   (2026-10-29) for badly overshooting the narrower frame and pulling
   this section's text up underneath it. Removed entirely per the user,
   2026-11-05 ("ポスターは下のコンテンツにはみ出なくていい") — removing
   it on every breakpoint is a simplification, not a loss:
   .poster__grid's existing `align-items: center` below now centers
   .poster__text against the frame's real rendered height instead of
   fighting the old variant's margin-collapsed track height (the user's
   related same-day request: "右側のテキストたちはポスターに対して中央
   に配置してね"). */
.poster__frame--photo {
  border: none;
  box-shadow: 0 24px 40px rgba(34, 28, 67, 0.28);
}

.poster__coming-soon {
  font-size: 1rem;
  font-weight: 500;
  color: #8c877d;
}

.poster__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Coming soon" overlay (poster_coming_soon in ACF, added per the user,
   2026-10-28) — for when a placeholder image (e.g. last year's poster)
   is uploaded as a stand-in before this year's is ready: a light dark
   layer over the photo with "Coming soon…" on top, so it still reads as
   not-final even though a real image is showing through. */
.poster__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 12, 0.45);
}

.poster__overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.poster__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poster__text .h2 {
  font-size: 2rem;
}

.poster__text .body-lg {
  font-size: 0.9375rem;
  color: #4a453d;
}

.poster__link {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--vermillion);
  border-bottom: 1px solid rgba(192, 40, 46, 0.4);
  padding-bottom: 2px;
  transition: border-color var(--transition-fast);
}

.poster__link:hover {
  border-color: var(--vermillion);
}

@media (max-width: 782px) {
  .poster__grid {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}

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

  .poster__frame {
    max-width: 220px;
    /* A grid item narrower than its (now full-width, single-column)
       cell doesn't center itself by default — it sticks to the cell's
       start edge, which is what read as "not centered" here. Text
       below stays left-aligned, matching every other stacked section. */
    margin-inline: auto;
  }
}

/* ===================================================================
   Lantern garland + confetti + 祭 watermark — see
   template-parts/section-colabora.php's docblock for the full design
   history and the reasoning (Figma nodes, why these are hand-built
   rather than downloaded assets, percentage-vs-px positioning). Kept
   as its own block, separate from the "numbered cards" CSS above,
   since it's a layer that sits OUTSIDE/behind that card grid rather
   than styling it.
   =================================================================== */
.festival-decor {
  position: relative;
}

/* Mobile band/confetti are a separate markup block (see the PHP docblock
   above) that only ever shows at <=782px -- without this default-hidden
   rule it would double up with the desktop band, rendering unstyled
   (default SVG black fill, no explicit sizing) on top of it. */
.lantern-band--mobile,
.confetti-sm {
  display: none;
}

.lantern-band {
  position: relative;
  width: 100%;
  height: 76px;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: -40px;
}

.lantern-band svg {
  position: absolute;
  left: 0;
  top: 4px;
  width: 100%;
  height: 34px;
}

.lantern-band svg path {
  fill: none;
  stroke: #6b5f4a;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.lantern {
  position: absolute;
  width: 30px;
  height: 43px;
  overflow: hidden;
}

.lantern__body {
  position: absolute;
  left: 1px;
  top: 8px;
  width: 28px;
  height: 31px;
  border-radius: 11px;
}

.lantern__rib {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 1px;
  opacity: 0.28;
}

.lantern__cap {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 14px;
  height: 3px;
  border-radius: 1px;
  background: var(--ink);
}

.lantern__base {
  position: absolute;
  left: 8px;
  top: 38px;
  width: 14px;
  height: 3px;
  border-radius: 1px;
  background: var(--ink);
}

.lantern__thread {
  position: absolute;
  left: 14px;
  top: 0;
  width: 1px;
  height: 7px;
  background: #40588c;
}

/* Confetti sits in the same coordinate space as the lanterns but isn't
   clipped by the 76px band -- in Figma it scatters a little below it
   too, into the top of the content area (y up to ~138 vs. the band's
   own 76px). Desktop/mobile pieces now live inside
   .festival-decor__confetti / .festival-decor__confetti-sm, their own
   absolutely-positioned overlays sized to roughly that same scatter
   depth (see those two rules below), rather than directly inside
   .festival-decor itself — giving the percentage-based fall animation
   below a fixed-height containing block to resolve `top` against
   without disturbing .festival-decor's own auto-height/margin-collapse
   relationship with .lantern-band (margin-bottom:-40px) and the
   section that follows.
 *
 * Falling/fluttering motion for every scattered-paper-confetti piece
 * on the homepage — this exact .confetti/.confetti-sm/.confetti-cta-sm
 * markup also backs .stand-cta's --confetti variant (see that file's
 * own docblock: same shared motif), so animating the shared class
 * brings all of them to life together — per the user, 2026-11-19,
 * looking at this Colabora section specifically ("ここも紙吹雪が舞って
 * いるようなアニメーションがあると良いと思った").
 *
 * This is now a direct port of the Galería page's own confetti fall
 * (assets/css/galeria.css's galeria-confetti-fall + page-galeria.php's
 * PHP-array-driven pieces) — the user pointed to it by name as the
 * "natural" reference after an earlier monotonic-translate attempt
 * still read as "角角してる" (jagged/angular) to them, per the user,
 * 2026-11-19 ("舞い方が角角してるのが不自然。ギャラリーページで実装し
 * たみたいになるのが自然だよ。あと紙吹雪の枚数も少なすぎて全然賑やか
 * じゃないね" — also asking for more pieces, addressed in
 * section-colabora.php's own PHP arrays, 7→14 desktop / 3→5 mobile).
 * The two mechanisms carried over unchanged from galeria.css:
 *
 *   1. `top` is animated as a PERCENTAGE (-8% to 108%), resolving
 *      against the confetti's own containing block's real height
 *      (.festival-decor__confetti/.festival-decor__confetti-sm below,
 *      or .stand-cta--confetti's own full section — all
 *      position:relative/absolute + overflow:hidden) — so the fall
 *      always spans the full box and the loop-reset (100%→0%) is
 *      invisible, since the piece is already clipped out of view at
 *      both ends. No opacity-fade trick needed (the previous pass's
 *      workaround for the same seam, now removed).
 *   2. Rotation is CONTINUOUS/MONOTONIC across the whole fall
 *      (var(--c-rot)+0deg → +70 → +150 → +230 → +300 → +380, always
 *      increasing, never reversing) instead of swinging back and
 *      forth — that one-directional tumble, not a back-and-forth
 *      wobble, is what reads as a natural flutter instead of jagged.
 *
 * Each piece's own starting angle rides in via the --c-rot custom
 * property (set inline per piece, e.g. --c-rot:-24deg) baked into the
 * keyframes' own rotate() calls, rather than a literal inline
 * `transform:` — an animated property's keyframe value overrides even
 * a non-!important inline value for that same property, so only a
 * custom-property substitution survives. Horizontal sway rides on
 * `transform: translateX()` alongside that rotate; vertical motion is
 * 100% carried by the animated `top` percentage. `left` (plus each
 * piece's width/height/background/opacity) stays a plain inline style,
 * set per piece via the PHP arrays in section-colabora.php /
 * section-stand-cta.php, same shape as page-galeria.php's own pieces.
 * animation-duration/-delay (duration ~3.7–5.5s, NEGATIVE delays sized
 * as a fraction of duration, so pieces are already scattered mid-fall
 * on page load instead of starting together) are also set inline per
 * piece for finer organic variety than a blanket nth-child stagger
 * (which this replaces).
 */
.confetti,
.confetti-sm,
.confetti-cta-sm {
  position: absolute;
  top: -8%;
  border-radius: 1px;
  pointer-events: none;
  animation-name: matsuri-confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes matsuri-confetti-fall {
  0%   { top: -8%;  transform: translateX(0)    rotate(var(--c-rot, 0deg)); }
  20%  {            transform: translateX(9px)  rotate(calc(var(--c-rot, 0deg) + 70deg)); }
  40%  {            transform: translateX(-8px) rotate(calc(var(--c-rot, 0deg) + 150deg)); }
  60%  {            transform: translateX(9px)  rotate(calc(var(--c-rot, 0deg) + 230deg)); }
  80%  {            transform: translateX(-7px) rotate(calc(var(--c-rot, 0deg) + 300deg)); }
  100% { top: 108%; transform: translateX(0)    rotate(calc(var(--c-rot, 0deg) + 380deg)); }
}

/* Desktop confetti's own contained overlay — see the big comment above
   for why: .festival-decor itself can't get overflow:hidden + a fixed
   height without either clipping the pieces' original ~140px scatter
   depth or fighting .lantern-band's margin-bottom:-40px (the thing
   that currently sets the real gap before .colabora-access). Sized to
   roughly that same ~140px scatter depth; position:absolute so it
   takes up zero flow height itself, same as the confetti pieces it
   now wraps used to. */
.festival-decor__confetti {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
}

/* Same idea, shorter, for the mobile band's own confetti-sm scatter
   (original depth ~24-48px). */
.festival-decor__confetti-sm {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 70px;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .confetti,
  .confetti-sm,
  .confetti-cta-sm {
    animation: none;
    top: 30%;
    transform: rotate(var(--c-rot, 0deg));
  }
}

/* 祭 watermark behind the card grid, bottom-right, cropped by the
   section's own edge. */
.colabora-access {
  position: relative;
  overflow: hidden;
}

.colabora-access__watermark {
  position: absolute;
  left: 68.5417%; /* 987px of Figma's 1440px canvas, see docblock */
  top: 491px;
  width: 616px;
  height: 616px;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.colabora-access__watermark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.colabora-access .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 782px) {
  .lantern-band,
  .festival-decor__confetti {
    /* .festival-decor__confetti wraps all desktop pieces now (see that
       rule's own comment) — was ".festival-decor > .confetti" when
       they were direct children; updated to match. */
    display: none;
  }

  .colabora-access__watermark {
    display: none;
  }

  .lantern-band--mobile {
    display: block;
    position: relative;
    width: 100%;
    height: 56px;
    overflow: hidden;
    background: var(--paper);
    margin-bottom: -28px;
  }

  .lantern-band--mobile svg {
    position: absolute;
    left: 0;
    top: 3px;
    width: 100%;
    height: 26px;
  }

  .lantern-band--mobile svg path {
    fill: none;
    stroke: #6b5f4a;
    stroke-width: 1.3;
    stroke-linecap: round;
  }

  .lantern-sm {
    position: absolute;
    width: 20px;
    height: 29px;
    overflow: hidden;
  }

  .lantern-sm__body {
    position: absolute;
    left: 1px;
    top: 5px;
    width: 18px;
    height: 21px;
    border-radius: 8px;
  }

  .lantern-sm__rib {
    position: absolute;
    left: 2px;
    width: 16px;
    height: 1px;
    opacity: 0.28;
  }

  .lantern-sm__cap {
    position: absolute;
    left: 5px;
    top: 4px;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
  }

  .lantern-sm__base {
    position: absolute;
    left: 5px;
    top: 25px;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
  }

  .lantern-sm__thread {
    position: absolute;
    left: 9px;
    top: 0;
    width: 1px;
    height: 5px;
    background: #40588c;
  }

  .confetti-sm {
    display: block;
    position: absolute;
    border-radius: 1px;
  }
}

/* ------------------------------ Colabora (teaser) -------------------------------- */
/* "Numbered cards" design — moved here, per the user, 2026-10-29, from a
   flat dark/ink text-column row (what this used to be, and what
   page-colabora.php's own intro banner still is — see
   content-pages.css's .content-intro__access for that original design,
   which this mirrors structurally). White box-shadow cards with a
   colored accent bar + faded number + rule, same "numbered cards"
   pattern explored in a shared design canvas and picked by the user —
   first built (by mistake) on page-colabora.php itself, then moved here
   once it became clear the user meant this homepage teaser all along.
   See template-parts/section-colabora.php. */
.colabora-access__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.colabora-access__card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* CSS Grid rows default to `align-items: stretch` — every card in a
     row is already the tallest-sibling height, so the paragraph's
     flex: 1 1 auto below still pins each button to the same bottom
     edge regardless of title/body line count. */
}

.colabora-access__accent {
  width: 40px;
  height: 4px;
  border-radius: 2px;
}

.colabora-access__number-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.colabora-access__number {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ink-18);
  line-height: 1;
}

.colabora-access__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ink-10);
}

.colabora-access__card h3 {
  margin: 0;
}

.colabora-access__card p {
  margin: 0;
  flex: 1 1 auto;
}

/* Every button is the width of its OWN card (all 5 cards are already
   equal width via the grid) instead of sharing one fixed px width —
   simpler, and leaves no risk of a label overflowing a hand-picked
   number. min-height is a safety net for a longer translated or renamed
   label that wraps to 2 lines some day; at this card width every current
   ES label ("Solicita participar (Noviembre)", the longest, ~237px) fits
   on one line with room to spare (measured in Outfit 600). */
.colabora-access__card .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  min-height: 52px;
}

@media (max-width: 900px) {
  .colabora-access__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------- Stand CTA ----------------------------------- */
.stand-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.stand-cta__inner .h2 {
  color: var(--paper);
  font-size: 2.25rem;
  max-width: 28ch;
  margin: 8px 0 0;
}

.stand-cta__inner .body-lg {
  max-width: 52ch;
  margin-bottom: 8px;
}

/* Per the approved stand_cta_mock.html review — see the docblock on
   section-stand-cta.php. Confetti reuses Colabora's .festival-decor
   scatter coordinates (left as a fluid %, top fixed px) — see
   .festival-decor above for the fluid-positioning reasoning. */
.stand-cta--confetti {
  background: var(--vermillion);
  position: relative;
  overflow: hidden;
  padding-block: 92px 60px;
}

.stand-cta--confetti .stand-cta__inner {
  gap: 18px;
}

.stand-cta--confetti .kicker {
  /* Base .kicker is always vermillion (base.css) — invisible against
     this section's own vermillion background without this override. */
  color: rgba(255, 255, 255, 0.8);
}

.stand-cta--confetti .h2 {
  color: var(--white);
  max-width: 20ch;
}

.stand-cta--confetti .body-lg {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38ch;
}

.stand-cta__btn {
  background: var(--white);
  color: var(--vermillion);
}

.stand-cta__btn:hover {
  background: var(--paper);
  color: var(--vermillion);
}

/* Tilted 5deg left (counter-clockwise) per the user, 2026-11-05 — set
   on the base rule (not duplicated in the @media override below) so it
   stays the same angle at every breakpoint, only position/size change
   there. */
.stand-cta__watermark {
  position: absolute;
  left: -145px;
  top: 42px;
  width: 390px;
  height: 390px;
  opacity: 0.16;
  transform: rotate(-5deg);
  pointer-events: none;
}

.stand-cta__watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stand-cta .confetti {
  position: absolute;
  border-radius: 1px;
  pointer-events: none;
}

/* Mobile-only, smaller confetti — see .confetti-sm in .festival-decor
   for the same default-hidden-outside-its-media-query convention (a
   bug there once rendered unstyled SVG as a solid black shape when
   this rule was missing — kept here as a reminder not to drop it). */
.confetti-cta-sm {
  display: none;
}

@media (max-width: 782px) {
  .stand-cta--confetti {
    padding-block: 64px 44px;
  }

  .stand-cta__watermark {
    left: -70px;
    top: 24px;
    width: 190px;
    height: 190px;
    opacity: 0.14;
  }

  .stand-cta .confetti {
    display: none;
  }

  .confetti-cta-sm {
    display: block;
    position: absolute;
    border-radius: 1px;
    pointer-events: none;
  }
}

/* ------------------------------- Section seam ---------------------------------
   Decorative divider for a section boundary with no natural photo to
   bleed across it with (see matsuri_section_seam() in
   inc/template-tags.php for the full "why" — currently used between
   Stand CTA and the Footer). A zero-height div sitting exactly at the
   DOM boundary between the two sections, so top:0 + translateY(-50%)
   always centers the mark ON the seam regardless of either section's
   own padding — no fragile height/margin math like the photo-overhang
   technique needed. */
.section-seam {
  position: relative;
  z-index: 3;
  height: 0;
}

.section-seam__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 240px;
  height: 100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 164, 74, 0.4) 0%, rgba(217, 164, 74, 0) 72%);
  pointer-events: none;
}

.section-seam__mark {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(217, 164, 74, 0.45);
  box-shadow: 0 0 22px rgba(217, 164, 74, 0.5);
}

@media (max-width: 560px) {
  .section-seam__glow {
    width: 160px;
    height: 72px;
  }

  .section-seam__mark {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
}

/* -------------------------------- Mapa del recinto ------------------------------------
 * Zone-based "simple version" interactive venue map — see
 * template-parts/section-venue-map.php's docblock for the full history,
 * the real site-plan this was built from, and why the shape is what it
 * is. Built from the theme's own tokens (tokens.css) rather than one-off
 * colors, same as every other section here.
 */

.venue-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 24px;
}

.venue-map__edge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 6px 4px;
}

.venue-map__edge--sea {
  color: #3a6ea5;
  font-weight: 700;
}

.venue-map__edge::before,
.venue-map__edge::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

/* Scroll wrapper — on mobile this is what actually scrolls; on desktop
 * it's a no-op (the floor already fits). Keeping the map at one real
 * scale and letting people swipe through it (instead of flattening it
 * into a vertical list) is what keeps left/right and "who's next to
 * whom" meaningful on a phone — see the template part's docblock. */
.venue-map__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Outer grid: just the two full-height entrance columns flanking the
 * middle stack of rows — matches the real plan, where "Entrada" cuts
 * through the full depth of the venue at each end. */
.venue-map__floor {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 7px;
  margin: 6px 0;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 7px;
}

/* The bands, stacked — the actual shape of the real site plan: a stall
 * row flush along the top edge, an open plaza in the middle (with the
 * stage at one end and the kids zone at the other, side by side in that
 * same middle band), and a stall row flush along the bottom edge. */
.venue-map__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.venue-map__row {
  display: flex;
  gap: 7px;
}

.venue-map__zone {
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-height: 62px;
  position: relative;
  text-decoration: none;
}

.venue-map__zone-icon {
  font-size: 14px;
  line-height: 1;
}

.venue-map__zone-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.venue-map__zone-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.venue-map__zone-aseos-tag {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.venue-map__zone-place {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  opacity: 0.85;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* entrances — left/right edge, full height (stretches to match the
 * .venue-map__rows column automatically since both sit in the same,
 * single grid row of .venue-map__floor) */
.venue-map__zone--entrada {
  background: var(--ink);
  color: var(--white);
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.venue-map__zone--entrada .venue-map__zone-label {
  font-size: 11px;
}

/* clickable zones (link to a real page): amber fill */
.venue-map__zone--clickable {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition-fast);
}

.venue-map__zone--clickable:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* label-only zones: soft outline, no shadow, no hover affordance */
.venue-map__zone--info {
  background: var(--paper);
  border: 1.5px solid var(--ink-16);
  color: var(--ink-78);
}

/* stage: its own color (vermillion), deliberately NOT the same ink block
 * as the entrances — those are a different kind of thing (a way in/out)
 * from this (a place/feature on the map). Sits at the LEFT end of the
 * middle row, next to Zona terraza — not its own full-width row — per
 * the real plan. */
.venue-map__zone--stage {
  background: var(--vermillion);
  color: var(--white);
  flex: 1;
}

/* Top band: the stall row flush along the top edge. Alimentación +
 * bebidas (22 + 10 stalls on the real plan) is far and away the widest
 * cluster there — Información and Workshops are each a small fraction. */
.venue-map__zone--info-booth {
  flex: 2;
}

.venue-map__zone--food {
  flex: 6;
}

.venue-map__zone--workshop {
  flex: 1;
}

/* Middle band: open plaza, with the stage at one end and the kids zone
 * at the other — three items side by side in ONE row, not stacked. */
.venue-map__zone--kids {
  flex: 1.3;
}

/* open middle area — not a "room", so a dashed outline instead of a filled
 * card. Sits between Escenario and Zona infantil in the middle row, and
 * is by far the widest of the three (it's the venue's whole open plaza). */
.venue-map__zone--terraza {
  flex: 5;
  background: transparent;
  border: 1.5px dashed var(--ink-22);
  color: var(--ink-55);
  min-height: 56px;
}

/* Bottom band: the long stand row flush along the bottom edge — the one
 * real public "street" of the venue, running almost the full length (per
 * the real plan: 40 stalls in a single unbroken row). */
.venue-map__zone--tiendas {
  flex: 1;
  flex-direction: row;
  gap: 10px;
  min-height: 54px;
}

.venue-map__swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-55);
}

/* legend */
.venue-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-10);
  font-size: 13px;
  color: var(--ink-70);
}

.venue-map__legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.venue-map__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.venue-map__legend-swatch--clickable {
  background: var(--amber);
}

.venue-map__legend-swatch--info {
  background: var(--paper);
  border: 1.5px solid var(--ink-16);
}

.venue-map__legend-swatch--stage {
  background: var(--vermillion);
}

.venue-map__legend-swatch--terraza {
  background: transparent;
  border: 1.5px dashed var(--ink-22);
}

.venue-map__legend-swatch--entrada {
  background: var(--ink);
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
}

/* mobile: keep the real map shape intact (that's the whole point — see
 * the template part's docblock) and let people swipe through it at a
 * readable scale via .venue-map__scroll above, instead of flattening it
 * into a vertical list. */
@media (max-width: 680px) {
  .venue-map__floor {
    min-width: 700px;
  }

  .venue-map__swipe-hint {
    display: flex;
  }
}
