/* ============================================================
   Tibidabo BCN — base styles
   Brand tokens + typography + shared components (header, footer,
   buttons, cards). Page-specific rules live in /css/*.css.
============================================================ */

/* ── Design tokens (matches live tibidabo.cat brand palette) ── */
:root {
  --brand-primary: #57b49f;    /* teal/mint — main CTA + accents */
  --brand-primary-h: #489e8b;  /* hover 15% darker */
  --brand-primary-d: #3d8474;  /* active/pressed */
  --brand-ink: #1a1a1a;        /* body text */
  --brand-ink-soft: #4a4a4a;   /* secondary text */
  --brand-muted: #8a8a8a;      /* labels, meta */
  --brand-bg: #ffffff;
  --brand-bg-soft: #f7f8f9;
  --brand-border: #e5e7eb;
  --brand-border-soft: #f0f2f3;
  --brand-shadow: 0 2px 12px rgba(0,0,0,.06);
  --brand-shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --brand-radius-sm: 8px;
  --brand-radius: 12px;
  --brand-radius-lg: 18px;
  --brand-space: 16px;
  --header-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brand-ink);
  background: var(--brand-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Sansita', Georgia, serif;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

/* ── Layout container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--brand-border-soft);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--brand-shadow); }

.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
}
.site-logo img { height: 46px; width: auto; }
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .site-logo, .site-logo img { height: 36px; }
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink-soft);
}
.site-nav a { padding: 8px 0; transition: color .15s; }
.site-nav a:hover { color: var(--brand-primary); }
@media (max-width: 900px) { .site-nav { display: none; } }

/* Mobile hamburger button — visible only <900px */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: var(--brand-ink);
}
.nav-toggle:hover { background: var(--brand-bg-soft); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .nav-toggle { display: grid; place-items: center; } }

/* Slide-out drawer for mobile nav
   Round 4: full-width на <380px чтобы не оставлять узкий backdrop-strip справа */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0,0,0,.15);
}
@media (max-width: 380px) {
  .nav-drawer { width: 100vw; }
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nav-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--brand-border-soft);
}
.nav-drawer-head img { height: 34px; }
.nav-drawer-close {
  width: 40px; height: 40px;
  border: 0;
  background: var(--brand-bg-soft);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-drawer-close:hover { background: var(--brand-primary); color: #fff; }
.nav-drawer-close svg { width: 16px; height: 16px; }

.nav-drawer-body {
  padding: 20px 4px;
  overflow-y: auto;
  flex: 1;
}
.nav-drawer-body a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-ink);
  border-radius: 8px;
  margin: 2px 12px;
  transition: background .15s, color .15s;
}
.nav-drawer-body a:hover { background: var(--brand-bg-soft); color: var(--brand-primary); }

.nav-drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--brand-border-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-drawer-foot .lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--brand-bg-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  align-self: center;
}
.nav-drawer-foot .lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--brand-muted);
  font-weight: 700;
  transition: background .15s, color .15s;
  margin: 0;
  font-size: 12px;
}
.nav-drawer-foot .lang-switch a.active { background: var(--brand-ink); color: #fff; }
.nav-drawer-foot .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* Header right cluster: lang switcher + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--brand-bg-soft);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-muted);
  transition: background .15s, color .15s;
}
.lang-switch a.active { background: var(--brand-ink); color: #fff; }
.lang-switch a:hover:not(.active) { color: var(--brand-ink); }
@media (max-width: 480px) { .lang-switch { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .1s, background-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(87,180,159,.28);
}
.btn-primary:hover { background: var(--brand-primary-h); box-shadow: 0 5px 16px rgba(87,180,159,.35); }
.btn-primary:active { background: var(--brand-primary-d); }
.btn-ghost {
  background: transparent;
  color: var(--brand-ink);
  border: 1.5px solid var(--brand-border);
}
.btn-ghost:hover { border-color: var(--brand-ink); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* Header CTA emphasises COMPRAR ARA — matches original site copy */
.header-cta { text-transform: uppercase; letter-spacing: .05em; }
/* Round 2 mobile: shorten label + icon-first pattern on tiny screens.
   Uses aria-label + hidden text so we don't lose accessibility. */
@media (max-width: 480px) {
  .header-cta { padding: 8px 12px; font-size: 11.5px; letter-spacing: .04em; gap: 5px; }
  .header-cta .cta-full { display: none; }
  .header-cta .cta-short { display: inline; }
}
@media (min-width: 481px) {
  .header-cta .cta-full { display: inline; }
  .header-cta .cta-short { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f7f8f9 0%, #ffffff 100%);
  padding: 40px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero { padding: 24px 0 40px; }
}

.hero h1 {
  /* Round 3 mobile: min 26px on 320px (was 32px which stayed static there).
     32px * 3 lines = 96px H1 block — too much vertical on small screens.
     Now clamps to 26px on 320px, scales up to 56px on wide viewports. */
  font-size: clamp(26px, 6vw, 56px);
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--brand-primary); }
.hero p.lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--brand-ink-soft);
  margin: 0 0 28px;
  max-width: 500px;
}
@media (max-width: 900px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-cta-row { justify-content: center; } }

.hero-media {
  position: relative;
  border-radius: var(--brand-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--brand-shadow-lg);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Round 4: multi-slide hero slideshow — 5 rotating slides с crossfade
   каждые 4 сек. Auto-pauses on hover/touch. Dots dark на white gradient. */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Subtle bottom gradient for dot legibility */
.hero-slideshow::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s, transform .15s, width .2s;
  -webkit-tap-highlight-color: transparent;
}
.hero-dot:hover { background: rgba(255, 255, 255, .8); }
.hero-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .hero-dots { bottom: 10px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 16px; }
}

/* ── Trust strip below hero ── */
.trust-strip {
  background: var(--brand-primary);
  color: #fff;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.trust-strip .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-strip svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Round 2 mobile: single row with tight icon+text on 320-479px so the
   trust strip doesn't eat 150px of vertical space. */
@media (max-width: 480px) {
  .trust-strip { padding: 10px 0; font-size: 11px; }
  .trust-strip .inner {
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  .trust-strip span { gap: 4px; }
  .trust-strip svg { width: 13px; height: 13px; }
}
@media (max-width: 360px) {
  /* Ultra-narrow: drop the middle item to keep readable widths */
  .trust-strip .inner > span:nth-child(2) { display: none; }
  .trust-strip .inner { justify-content: space-around; }
}

/* ── Section wrapper ── */
.section { padding: 64px 0; }
@media (max-width: 900px) { .section { padding: 48px 0; } }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 auto 12px;
  max-width: 700px;
}
.section-head p {
  color: var(--brand-ink-soft);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Grup cards grid ── */
.grup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .grup-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .grup-grid { grid-template-columns: 1fr; } }

.grup-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--brand-radius);
  overflow: hidden;
  border: 1px solid var(--brand-border-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  cursor: pointer;
  position: relative;
}
.grup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--brand-shadow-lg);
  border-color: transparent;
}
.grup-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-bg-soft);
  position: relative;
}
.grup-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.grup-card:hover .grup-card__media img { transform: scale(1.04); }
/* Fallback for grups without a photo — soft teal wash + big number */
.grup-card__media.no-image {
  background: linear-gradient(135deg, #cfe8e0 0%, #a0d6c5 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Sansita', Georgia, serif;
  font-weight: 900;
  font-size: 88px;
  opacity: .95;
}
.grup-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.grup-card__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.grup-card__title {
  font-family: 'Sansita', Georgia, serif;
  font-size: 19px;
  font-weight: 900;
  color: var(--brand-ink);
  line-height: 1.2;
}
.grup-card__desc {
  color: var(--brand-ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
  flex: 1;
}
.grup-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--brand-border-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
}
.grup-card__foot svg { width: 14px; height: 14px; transition: transform .15s; }
.grup-card:hover .grup-card__foot svg { transform: translateX(3px); }

/* ── Sponsor ribbon (Round 4) — grayscale wordmarks of partners
   Trust signal — kids' park with major brand + tourism partners. */
.sponsor-ribbon {
  padding: 40px 0 32px;
  border-top: 1px solid var(--brand-border-soft);
  background: var(--brand-bg-soft);
}
.sponsor-ribbon .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsor-ribbon .label {
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--brand-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sponsor-logo {
  color: #4a4a4a;
  font-weight: 900;
  font-family: 'Sansita', Georgia, serif;
  font-size: 18px;
  letter-spacing: -.01em;
  opacity: .6;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sponsor-logo:hover { opacity: 1; }
.sponsor-logo svg { width: 22px; height: 22px; }
.sponsor-logo .subline { font-family: 'Open Sans', sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 480px) {
  .sponsor-ribbon { padding: 28px 0 20px; }
  .sponsor-ribbon .inner { gap: 22px; }
  .sponsor-logo { font-size: 15px; }
}

/* ── Footer ── */
.site-footer {
  background: #1a1a1a;
  color: #a8a8a8;
  padding: 48px 0 24px;
  font-size: 13px;
  margin-top: 40px;
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
/* Round 3 mobile: collapse 4 columns to accordion sections on <480px so
   footer doesn't take 800px of vertical scroll. Brand col stays open,
   the 3 link columns become expand-on-tap sections. */
@media (max-width: 480px) {
  .site-footer .inner { grid-template-columns: 1fr; gap: 0; }
  .site-footer .inner > div:first-child { margin-bottom: 20px; }
  .site-footer .inner > div:not(:first-child) {
    border-top: 1px solid #2a2a2a;
  }
  .site-footer .inner > div:not(:first-child) > h4 {
    cursor: pointer;
    padding: 16px 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .site-footer .inner > div:not(:first-child) > h4::after {
    content: '+';
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #a8a8a8;
    transition: transform .2s;
  }
  .site-footer .inner > div.open > h4::after {
    content: '−';
    transform: rotate(0);
  }
  .site-footer .inner > div:not(:first-child) > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
    padding-bottom: 0;
  }
  .site-footer .inner > div.open > ul {
    max-height: 240px;
    padding-bottom: 16px;
  }
}
.site-footer h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-note {
  color: #7a7a7a;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
}
.site-footer .bottom {
  border-top: 1px solid #2a2a2a;
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #6a6a6a;
  font-size: 11.5px;
  flex-wrap: wrap;
}

/* ========================================================
   NEW LANDING SECTIONS (v2)
   ======================================================== */

/* Tinted section variant */
.section--tinted {
  background: #f5f9f7;
}

/* Skip link */
.tibi-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-primary, #d82037);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  border-radius: 0 0 6px 0;
  font-weight: 700;
  text-decoration: none;
}
.tibi-skip-link:focus { left: 0; }

/* Visually hidden (a11y) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Que hi ha — tile grid ── */
.tile-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.tile-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--brand-primary, #d82037);
}
.tile__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff5f6;
  color: var(--brand-primary, #d82037);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tile__icon svg { width: 34px; height: 34px; }
.tile__title {
  font-family: 'Sansita', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: #23355e;
  margin: 0 0 6px;
}
.tile__desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* ── Planifica — 3-column card list ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.plan-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--brand-primary, #d82037);
}
.plan-card__icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--brand-primary, #d82037);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.plan-card__icon svg { width: 30px; height: 30px; }
.plan-card__body { flex: 1; min-width: 0; }
.plan-card__body h3 {
  font-family: 'Sansita', Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  color: #23355e;
  margin: 0 0 4px;
}
.plan-card__body p {
  font-size: 13px;
  color: #6a6a6a;
  margin: 0;
  line-height: 1.5;
}
.plan-card__arrow {
  flex-shrink: 0;
  color: var(--brand-primary, #d82037);
  opacity: 0.5;
  transition: transform .18s, opacity .18s;
}
.plan-card__arrow svg { width: 22px; height: 22px; }
.plan-card:hover .plan-card__arrow { opacity: 1; transform: translateX(4px); }

/* ── Notícies — news cards ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.news-card__media {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
}
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card__date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary, #d82037);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card__title {
  font-family: 'Sansita', Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  color: #23355e;
  margin: 0;
  line-height: 1.3;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--brand-primary, #d82037); }
.news-card__excerpt {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.news-card__more {
  color: var(--brand-primary, #d82037);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
}
.news-card__more:hover { text-decoration: underline; }

/* ── Newsletter block ── */
.home-newsletter {
  background: linear-gradient(135deg, var(--brand-primary, #d82037) 0%, #a8172a 100%);
  color: #fff;
}
.newsletter-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 12px 0;
}
.newsletter-copy h2 {
  font-family: 'Sansita', Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
}
.newsletter-copy p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  padding: 8px;
  border-radius: 40px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  border: 0;
  background: #fff;
  border-radius: 32px;
  padding: 14px 20px;
  font-size: 14px;
  font-family: inherit;
  color: #23355e;
  min-width: 0;
}
.newsletter-form input[type="email"]:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.newsletter-form button {
  border-radius: 32px !important;
  padding: 14px 26px !important;
  background: #fff !important;
  color: var(--brand-primary, #d82037) !important;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .15s;
}
.newsletter-form button:hover { transform: scale(1.03); }
.newsletter-form button:disabled { opacity: .7; cursor: default; transform: none; }

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .tile-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .newsletter-box { grid-template-columns: 1fr; gap: 20px; }
  .newsletter-copy h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .tile-grid--4 { grid-template-columns: 1fr; }
  .tile { padding: 22px 16px; }
  .plan-card { padding: 18px 18px; gap: 14px; }
  .plan-card__icon { width: 48px; height: 48px; }
  .plan-card__icon svg { width: 26px; height: 26px; }
  .newsletter-form { flex-direction: column; background: transparent; padding: 0; }
  .newsletter-form input[type="email"] { background: #fff; }
  .newsletter-form button { padding: 14px 20px !important; }
}

/* ============================================================
   ORIGIN-FIDELITY OVERRIDES (v2 restore polish — B1..B9)
   Repairs to origin scaffold when jQuery/owl/GTM/etc. absent.
============================================================ */

/* Kill Drupal `.hidden` blanket where it hides content we need shown */
.region-content .hidden[data-drupal-messages-fallback] { display: none !important; }

/* ── B1: HERO SLIDER — no jQuery/owl needed ── */
.paragraph--slider-home,
body .paragraph--slider-home {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  background: #0f1a2e !important;
  min-height: 380px !important;
}
.paragraph--slider-home .owl-carousel,
body .paragraph--slider-home .carousel.owl-carousel {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 56vw !important;
  min-height: 380px !important;
  max-height: 640px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
.paragraph--slider-home .paragraph--slide-home,
body .paragraph--slider-home .paragraph--slide-home {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0 !important;
  transition: opacity .7s ease !important;
  pointer-events: none !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.paragraph--slider-home .paragraph--slide-home.tibi-active,
body .paragraph--slider-home .paragraph--slide-home.tibi-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
.paragraph--slider-home .paragraph--slide-home img,
body .paragraph--slider-home .paragraph--slide-home img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}
.paragraph--slider-home .paragraph--slide-home::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.paragraph--slider-home .paragraph--slide-home .content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 32px 0 40px;
  pointer-events: none;
}
.paragraph--slider-home .paragraph--slide-home .content .container {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.tibi-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 10px;
  z-index: 5;
}
.tibi-hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  padding: 0; cursor: pointer;
  transition: background .18s, transform .18s;
}
.tibi-hero-dots button.tibi-active {
  background: #fff;
  transform: scale(1.15);
}
@media (max-width: 768px) {
  .paragraph--slider-home .owl-carousel {
    aspect-ratio: 4/3;
    min-height: 260px;
  }
}

/* ── B2: NEWSLETTER — kill green void, native form ── */
.block-newsletter-block {
  min-height: 0 !important;
}
.block-newsletter-block .content,
.block-newsletter-block > form { padding: 0 !important; }
.tibi-nl-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 460px;
}
.tibi-nl-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: 24px;
  font: 14px/1 'Open Sans', system-ui, sans-serif;
  color: #23355e;
  min-width: 0;
}
.tibi-nl-form input[type="email"]:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.tibi-nl-form button {
  border: 0;
  background: #d82037;
  color: #fff;
  border-radius: 24px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.tibi-nl-form button:hover { background: #b0182c; transform: translateY(-1px); }
.tibi-nl-form button:disabled { opacity: .7; cursor: default; }
.tibi-nl-msg {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
  min-height: 18px;
}
/* Compact overall newsletter section padding */
.paragraph--home-uneixte + .region-content section,
.paragraph--home-uneixte ~ * .block-newsletter-block { padding-block: 48px !important; }
footer#footer > * { padding-top: 40px; padding-bottom: 40px; }

/* ── B3: BARCELONA SHELL — hide broken external icons, fallback ── */
.bcnbrand-icon { display: inline-flex !important; align-items: center; justify-content: center; }
/* Broken external SVGs: replace with brand-tinted glyph pseudo */
.bcnbrand-logo-main img[src*="barcelona.cat"] {
  display: none;
}
.bcnbrand-logo-main a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d82037; font-weight: 900; letter-spacing: -.3px;
  text-decoration: none; font-size: 15px;
}
.bcnbrand-logo-main a::before {
  content: 'Barcelona';
  font-family: 'Sansita', Georgia, serif;
  font-size: 18px;
  color: #d82037;
}
/* Dropdown menu icons: swap to CSS-drawn symbols */
[class*="icobcn-mon2"]::before { content: '\1F310'; font-size: 15px; }
[class*="icobcn-lupa"]::before { content: '\1F50D'; font-size: 14px; }
[class*="icobcn-fletxa-baix"]::before { content: '\25BE'; font-size: 10px; margin-left: 4px; }
[class*="icobcn-quadres"]::before { content: '\2637'; font-size: 15px; }
.bcnbrand-shortcuts img[src*="barcelona.cat"],
.bcnbrand-nav-link img[src*="barcelona.cat"] { display: none; }
/* Ensure dropdowns don't force their own layout when JS missing */
.bcnbrand-dropdown-menu { display: none; }
.bcnbrand-dropdown.tibi-open .bcnbrand-dropdown-menu {
  display: block;
  position: absolute;
  right: 0; top: 100%;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 6px;
  padding: 12px 0;
  z-index: 999;
  color: #23355e;
}
.bcnbrand-dropdown.tibi-open .bcnbrand-dropdown-menu ul { list-style: none; padding: 0; margin: 0; }
.bcnbrand-dropdown.tibi-open .bcnbrand-dropdown-menu li a {
  display: block; padding: 8px 16px;
  color: #23355e; text-decoration: none;
}
.bcnbrand-dropdown.tibi-open .bcnbrand-dropdown-menu li a:hover { background: #f5f9f7; }
.bcnbrand-dropdown.tibi-open .bcnbrand-dropdown-menu h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 16px 8px; margin: 0; color: #6a6a6a;
}

/* ── B4: QUÈ HI HA — compact + 2x2 balanced grid ── */
.home-que-hi-ha {
  padding-block: 48px !important;
}
.home-que-hi-ha .container > * + * { margin-top: 22px; }
.home-que-hi-ha__header { margin-bottom: 24px !important; }
/* Force 2x2 grid on desktop, 1-col on mobile — sibling cards live as .paragraph--type--card or direct children */
.home-que-hi-ha .container > *:not(header) {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .home-que-hi-ha .container > *:not(header) { grid-template-columns: 1fr; gap: 16px; }
  .home-que-hi-ha { padding-block: 32px !important; }
}
/* Second/third card CTA → ghost styling */
.home-que-hi-ha .container > *:not(header) > *:nth-child(n+2) .btn,
.home-que-hi-ha .container > *:not(header) > *:nth-child(n+2) a[class*="reservar"],
.home-que-hi-ha .container > *:not(header) > *:nth-child(n+2) .home-que-hi-ha__cta {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}
.home-que-hi-ha .container > *:not(header) > *:nth-child(n+2) .btn:hover,
.home-que-hi-ha .container > *:not(header) > *:nth-child(n+2) .home-que-hi-ha__cta:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff !important;
}

/* ── B5: PLANIFICA — full-width tile images ── */
.paragraph--columns-hover,
body .paragraph--columns-hover {
  padding: 48px 0 !important;
  min-height: 0 !important;
}
.paragraph--columns-hover .container {
  display: block !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
.paragraph--columns-hover .container > *:not(h1):not(h2):not(h3):not(header) {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-top: 24px !important;
  padding: 0 !important;
  list-style: none !important;
}
.paragraph--columns-hover .container img,
body .paragraph--columns-hover .container img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform .3s !important;
  display: block !important;
  margin: 0 !important;
}
.paragraph--columns-hover .container a:hover img { transform: scale(1.03); }
.paragraph--columns-hover .container a,
body .paragraph--columns-hover .container a {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  padding: 0 !important;
  background: none !important;
}
.paragraph--columns-hover .container a > * + * { margin-top: 8px !important; }
.paragraph--columns-hover .container a > *:not(img) {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #23355e !important;
  text-align: center !important;
  padding: 0 8px !important;
}
@media (max-width: 900px) {
  .paragraph--columns-hover .container > *:not(h1):not(h2):not(h3):not(header) { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .paragraph--columns-hover .container > *:not(h1):not(h2):not(h3):not(header) { grid-template-columns: 1fr !important; }
}

/* ── B6: MÉS PRODUCTES — card grid, not checkbox list ── */
.paragraph--home-mes-productes {
  padding-block: 48px !important;
}
.paragraph--home-mes-productes .container {
  display: grid !important;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.paragraph--home-mes-productes img:not(.icon):not([class*="ico"]) {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}
/* Turn 9-item list into 3x3 icon-card grid */
.paragraph--home-mes-productes ul,
.paragraph--home-mes-productes .field--items {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.paragraph--home-mes-productes ul li,
.paragraph--home-mes-productes .field--items > * {
  padding: 12px 14px;
  background: #f5f9f7;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color .18s, background .18s, transform .18s;
}
.paragraph--home-mes-productes ul li:hover,
.paragraph--home-mes-productes .field--items > *:hover {
  background: #fff;
  border-color: #0b9062;
  transform: translateY(-2px);
}
.paragraph--home-mes-productes ul li a,
.paragraph--home-mes-productes .field--items > * a {
  display: block;
  color: #23355e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
/* Hide the fake checkbox radio bullet if origin uses one */
.paragraph--home-mes-productes ul li input[type="checkbox"],
.paragraph--home-mes-productes ul li input[type="radio"] { display: none; }
@media (max-width: 900px) {
  .paragraph--home-mes-productes .container { grid-template-columns: 1fr; }
  .paragraph--home-mes-productes ul,
  .paragraph--home-mes-productes .field--items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .paragraph--home-mes-productes ul,
  .paragraph--home-mes-productes .field--items { grid-template-columns: 1fr; }
}

/* ── B7: UNEIX-TE TIBICLUB — CTA hierarchy ── */
.paragraph--home-uneixte {
  padding-block: 48px !important;
}
.paragraph--home-uneixte .btn + .btn,
.paragraph--home-uneixte a.btn:nth-of-type(2),
.paragraph--home-uneixte a[class*="button"]:nth-of-type(2) {
  background: transparent !important;
  color: #d82037 !important;
  border: 2px solid #d82037 !important;
}
.paragraph--home-uneixte .btn + .btn:hover,
.paragraph--home-uneixte a.btn:nth-of-type(2):hover {
  background: rgba(216,32,55,0.08) !important;
}

/* ── B8: FOOTER — compact + uniform logos ── */
footer#footer {
  padding-block: 40px 24px !important;
}
footer#footer .container > * + * { margin-top: 24px; }
#block-membres img,
#block-patrocinadors img,
#block-certificacions img {
  height: 40px !important;
  width: auto !important;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.98);
  margin: 0 8px;
  vertical-align: middle;
}
#block-membres,
#block-patrocinadors,
#block-certificacions {
  padding: 8px 0 !important;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
#block-membres::before,
#block-patrocinadors::before,
#block-certificacions::before {
  content: attr(data-label);
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: rgba(255,255,255,0.7);
  min-width: 110px;
}
/* Footer nav column repair */
#block-footerca { min-height: auto !important; }
#block-footerca > ul,
#block-footerca ul.menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
#block-footerca a {
  color: #fff; text-decoration: none;
  font-size: 13px;
  transition: opacity .15s;
}
#block-footerca a:hover { opacity: 0.85; text-decoration: underline; }
/* Social icons — cluster left */
#block-footersocialicons {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; padding: 20px 0 !important;
  border-top: 1px solid rgba(255,255,255,0.15);
}
#block-footersocialicons img { height: 22px; width: 22px; }

/* Post-footer white bar — meaningful copyright */
#block-postfooterblockca .footer-white-bar {
  background: #fff;
  color: #23355e;
  padding: 12px 0;
  text-align: center;
}
#block-postfooterblockca .footer-white-bar-text {
  font-size: 12px; margin: 0; letter-spacing: .3px;
}

/* ── B9: CORPORATE FOOTER — inline SVG fallbacks ── */
#footer-corporate {
  padding: 20px 0 !important;
  background: #086d4a;
}
.footer-corporate-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-corporate-logo-left,
.footer-corporate-logo-right {
  flex: 0 0 auto;
}
/* Fallback if SVG 404: draw inline glyph */
.footer-corporate-logo-bcn,
.footer-corporate-logo-bsm {
  height: 40px; width: auto;
  filter: brightness(1) invert(0);
}
.footer-corporate-logo-left a:not(:has(img[complete=""]))::after,
.footer-corporate-logo-right a:not(:has(img[complete=""]))::after { display: none; }

/* Skip-link (a11y) still visible */
a.skip-link:focus,
.visually-hidden.focusable:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  z-index: 10000;
  background: #d82037; color: #fff;
  padding: 10px 16px; border-radius: 6px;
  clip: auto; width: auto; height: auto;
}

/* Cookie consent (our own) — move to bottom, don't cover content */
.tibi-cookie-banner,
#tibi-cookie-banner {
  position: fixed !important;
  bottom: 0 !important; top: auto !important;
  left: 0; right: 0;
  z-index: 9999;
}
