/* ==========================================================================
   CAN PAGÀ — Full d'estil únic
   La paleta i la tipografia surten dels cartells d'El Xiringuito:
   blau marí sobre paper crema, amb taronja i turquesa per als accents.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES — canvia-ho aquí i canvia a tota la web
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --navy:        #16265c;
  --navy-deep:   #0e1838;
  --navy-soft:   #3c4a7d;
  --cream:       #faf3e0;
  --cream-deep:  #f2e6c9;
  --paper:       #fffdf6;
  --taronja:     #d9601f;
  --taronja-fosc:#b34c14;
  --turquesa:    #1b7c99;
  --aigua:       #35b6e8;
  --aigua-clar:  #a8e2f7;
  --sol:         #f5b921;
  --verd:        #2f8f5b;

  /* Tipografia */
  --display: "Archivo Black", "Arial Black", sans-serif;
  --script:  "Caveat", cursive;
  --body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaiat */
  --gap:      1rem;
  --seccio:   clamp(3.5rem, 8vw, 6.5rem);
  --ample:    1180px;
  --ample-txt: 68ch;

  /* Formes */
  --radi:      18px;
  --radi-gran: 28px;
  --ombra:     0 10px 30px rgba(22, 38, 92, .10);
  --ombra-alt: 0 18px 45px rgba(22, 38, 92, .18);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--turquesa); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--taronja);
  outline-offset: 3px;
  border-radius: 4px;
}

.salta-contingut {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--cream);
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radi) 0;
}
.salta-contingut:focus { left: 0; top: 0; }

.nomes-lectors {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. PECES REUTILITZABLES
   -------------------------------------------------------------------------- */
.contenidor {
  width: min(100% - 2.5rem, var(--ample));
  margin-inline: auto;
}

/* Etiqueta de secció amb punt de color */
.etiqueta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: 1rem;
}
.etiqueta::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--taronja); flex: none;
}

/* Paraula secundària dins d'un titular */
.suau { color: var(--navy-soft); }

/* Accent manuscrit */
.escrit {
  font-family: var(--script);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-transform: none; letter-spacing: 0;
  color: var(--turquesa); line-height: 1;
}

/* Botó pastilla amb fletxa en cercle */
.boto {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .8rem .85rem .8rem 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--taronja); color: #fff;
  font-family: var(--body); font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.boto:hover { background: var(--taronja-fosc); transform: translateY(-2px); }
.boto::after {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22) no-repeat center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: 15px; flex: none;
}
.boto--fosc { background: var(--navy); }
.boto--fosc:hover { background: var(--navy-deep); }
.boto--buit {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 2px rgba(22,38,92,.25);
}
.boto--buit:hover { background: rgba(22,38,92,.06); color: var(--navy); }
.boto--buit::after {
  background-color: rgba(22,38,92,.10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316265c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Separador d'onada */
.onada { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.onada path { fill: currentColor; }

/* Filet de corda (traç discontinu dels cartells) */
.corda {
  height: 4px; border: 0; margin: 0;
  background-image: linear-gradient(90deg, var(--cream-deep) 55%, transparent 0);
  background-size: 18px 4px;
}

/* Traç de pinzell darrere un títol de secció */
.pinzell {
  display: inline-block;
  background: var(--taronja); color: #fff;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  padding: .35rem 1.15rem .45rem;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-1.2deg);
}
.pinzell--blau { background: var(--turquesa); }

/* --------------------------------------------------------------------------
   4. CAPÇALERA
   -------------------------------------------------------------------------- */
.capcalera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 224, .94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--cream-deep);
}
.capcalera__interior {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: .85rem;
}

.marca { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.marca__sol {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 45%, var(--sol) 0 52%, var(--aigua) 53% 100%);
  box-shadow: inset 0 -6px 0 rgba(22,38,92,.18);
}
.marca__text { display: flex; flex-direction: column; line-height: 1; }
.marca__nom {
  font-family: var(--display); font-size: 1.3rem;
  color: var(--navy); text-transform: uppercase; letter-spacing: -.01em;
}
.marca__lema {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--turquesa); font-weight: 700; margin-top: .2rem;
}

.navegacio { display: flex; align-items: center; gap: 1.4rem; }
.navegacio a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.navegacio a:hover { border-bottom-color: var(--taronja); }
.navegacio a[aria-current="page"] { border-bottom-color: var(--taronja); }
.navegacio .boto { color: #fff; border-bottom: 0; padding: .6rem .6rem .6rem 1.2rem; font-size: .92rem; }
.navegacio .boto::after { width: 24px; height: 24px; background-size: 13px; }
.navegacio .boto:hover { border-bottom-color: transparent; }

.menu-boto {
  display: none; background: var(--navy); border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 12px; padding: 0;
}
.menu-boto span {
  display: block; width: 20px; height: 2px; background: var(--cream);
  margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.menu-boto[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-boto[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boto[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-boto { display: block; }
  .navegacio {
    position: fixed; inset: 74px 0 auto; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 1rem 1.25rem 1.75rem;
    border-bottom: 2px solid var(--cream-deep);
    box-shadow: var(--ombra);
  }
  .navegacio.es-obert { display: flex; }
  .navegacio a { padding: .85rem 0; border-bottom: 1px solid var(--cream-deep); }
  .navegacio .boto { margin-top: 1rem; justify-content: center; }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(165deg, var(--aigua) 0%, var(--turquesa) 55%, var(--navy) 100%);
  overflow: hidden;
}
.hero::after {
  /* Reflex d'aigua molt subtil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 15%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(45% 35% at 85% 30%, rgba(255,255,255,.12), transparent 70%);
}
.hero__interior {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(5rem, 9vw, 7rem);
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(255,255,255,.16); color: #fff;
  padding: .5rem 1.1rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 15vw, 9.5rem);
  letter-spacing: -.02em; margin-bottom: .15em;
  text-shadow: 0 6px 24px rgba(14,24,56,.28);
}
.hero__escrit { color: #fff; display: block; margin-bottom: 1.25rem; }
.hero__entradeta {
  max-width: 46ch; margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 2vw, 1.2rem); color: rgba(255,255,255,.94);
}
.hero__accions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hero__accions .boto--buit {
  color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.hero__accions .boto--buit:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero__accions .boto--buit::after {
  background-color: rgba(255,255,255,.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
}
.hero__onada { position: relative; z-index: 2; display: block; margin-bottom: -1px; color: var(--cream); }

/* Variant amb fotografia de fons.
   La foto es posa amb l'atribut style de la secció:
   <section class="hero hero--foto" style="--hero-foto:url('/assets/img/fotos/x.webp')"> */
.hero--foto {
  background-image:
    linear-gradient(180deg, rgba(14,24,56,.62) 0%, rgba(14,24,56,.38) 45%, rgba(14,24,56,.72) 100%),
    var(--hero-foto);
  background-size: cover;
  background-position: center 58%;
}
.hero--foto::after {
  /* sense el reflex clar: la foto ja aporta la textura */
  background: radial-gradient(70% 55% at 50% 35%, rgba(255,255,255,.10), transparent 75%);
}
.hero--foto .hero__entradeta { text-shadow: 0 2px 12px rgba(14,24,56,.55); }
.hero--foto .hero__eyebrow { background: rgba(14,24,56,.42); backdrop-filter: blur(2px); }

/* Variant curta per a les pàgines interiors */
.hero--compacte .hero__interior { padding-block: clamp(2.5rem, 6vw, 3.75rem) clamp(3.5rem, 7vw, 5rem); }
.hero--compacte h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.hero--compacte .hero__entradeta { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   6. TARGETA «AVUI» — la peça distintiva de la portada
   -------------------------------------------------------------------------- */
.avui {
  margin-top: calc(var(--seccio) * -.45);
  position: relative; z-index: 5;
}
.avui__caixa {
  background: var(--paper);
  border-radius: var(--radi-gran);
  box-shadow: var(--ombra-alt);
  border: 3px solid var(--navy);
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  overflow: hidden;
}
.avui__bloc { padding: 1.5rem 1.6rem; border-right: 2px dashed var(--cream-deep); }
/* El tercer bloc és l'últim de la fila. No es fa servir :last-child perquè, quan
   l'avís del bar és visible, l'últim fill de la caixa és aquell avís. */
.avui__bloc:nth-child(3) { border-right: 0; }
.avui__clau {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy-soft); margin-bottom: .5rem;
}
.avui__estat {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1;
}
.avui__punt {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: var(--navy-soft);
}
.avui__caixa[data-estat="obert"] .avui__punt { background: var(--verd); box-shadow: 0 0 0 5px rgba(47,143,91,.18); }
.avui__caixa[data-estat="obert"] .avui__estat { color: var(--verd); }
.avui__caixa[data-estat="tancat"] .avui__punt { background: var(--taronja); box-shadow: 0 0 0 5px rgba(217,96,31,.16); }
.avui__caixa[data-estat="tancat"] .avui__estat { color: var(--taronja); }
.avui__detall { margin-top: .5rem; font-size: .95rem; color: var(--navy-soft); }
.avui__valor {
  font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1; color: var(--navy);
}

/* Avís del bar: travessa tota la targeta i només surt quan la piscina és
   tancada però El Xiringuito encara és obert (ho decideix site.js). Groc sobre
   blau marí perquè sigui el primer que es vegi i es llegeixi bé al sol. */
.avui__bar {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  margin: 0;
  padding: .95rem 1.6rem;
  background: var(--sol);
  color: var(--navy);
  font-weight: 700;
  font-size: .98rem;
}
.avui__caixa[data-bar="obert"] .avui__bar { display: flex; }
/* El punt va dins del text i no com a element del flex: així no se'n separa
   quan la franja es parteix en pantalles estretes. */
.avui__bar__text::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--verd);
  box-shadow: 0 0 0 4px rgba(47, 143, 91, .22);
  margin-right: .75rem;
}
.avui__bar a { color: var(--navy); font-weight: 800; }

@media (max-width: 820px) {
  .avui__caixa { grid-template-columns: 1fr; }
  .avui__bloc { border-right: 0; border-bottom: 2px dashed var(--cream-deep); }
  .avui__bloc:nth-child(3) { border-bottom: 0; }
  .avui__bar { padding-inline: 1.6rem; }
}

/* --------------------------------------------------------------------------
   7. SECCIONS
   -------------------------------------------------------------------------- */
.seccio { padding-block: var(--seccio); }
.seccio--crema { background: var(--cream-deep); }
.seccio--paper { background: var(--paper); }
.seccio--marí { background: var(--navy); color: var(--cream); }
.seccio--marí h2, .seccio--marí h3 { color: var(--cream); }
.seccio--marí .etiqueta { color: var(--aigua-clar); }
.seccio--marí .suau { color: rgba(250,243,224,.62); }

.seccio__cap { max-width: var(--ample-txt); margin-bottom: 2.75rem; }
.seccio__cap--centrat { margin-inline: auto; text-align: center; }
.seccio__cap--centrat .etiqueta { justify-content: center; }

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* Xifres destacades */
.xifres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: 3rem;
}
.xifra {
  background: var(--paper); border-radius: var(--radi);
  padding: 1.5rem 1.25rem; text-align: center;
  box-shadow: var(--ombra);
}
.xifra__num {
  font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1; color: var(--taronja); display: block;
}
.xifra__text {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-soft); margin-top: .55rem;
}
@media (max-width: 700px) { .xifres { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   8. IMATGES I ESPAIS RESERVATS
   -------------------------------------------------------------------------- */
.figura {
  border-radius: var(--radi-gran); overflow: hidden;
  box-shadow: var(--ombra); background: var(--aigua-clar);
}
.figura img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Proporcions per retallar les fotos de manera coherent */
.figura--retrat { aspect-ratio: 3 / 4; }
.figura--paisatge { aspect-ratio: 4 / 3; }
.figura--ampla { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .figura--retrat { aspect-ratio: 4 / 3; } }

/* Quan la figura és un botó, obre la foto en gran */
button.figura {
  display: block; width: 100%; padding: 0; border: 0;
  cursor: zoom-in; font: inherit; color: inherit;
}
button.figura img { transition: transform .4s ease; }
button.figura:hover img { transform: scale(1.045); }
button.figura:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  button.figura:hover img { transform: none; }
}

/* Espai reservat mentre no hi ha fotografia real */
.buit-foto {
  position: relative; display: grid; place-content: center; gap: .5rem;
  text-align: center; padding: 2rem 1.5rem; min-height: 240px;
  border-radius: var(--radi-gran);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--aigua-clar), var(--aigua));
  color: var(--navy);
  box-shadow: inset 0 0 0 3px rgba(22,38,92,.14);
}
.buit-foto__icona { font-size: 2rem; }
.buit-foto__text { font-weight: 700; font-size: .9rem; max-width: 26ch; margin-inline: auto; }
.buit-foto--alt { min-height: 340px; }
.buit-foto--baix { min-height: 180px; }

/* --------------------------------------------------------------------------
   9. TARGETES D'INSTAL·LACIONS
   -------------------------------------------------------------------------- */
.graella-instal {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.instal {
  background: var(--paper); border-radius: var(--radi-gran);
  overflow: hidden; box-shadow: var(--ombra);
  transition: transform .2s ease, box-shadow .2s ease;
}
.instal:hover { transform: translateY(-5px); box-shadow: var(--ombra-alt); }
.instal .buit-foto { border-radius: 0; min-height: 175px; }
.instal .figura { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.instal__cos { padding: 1.35rem 1.5rem 1.6rem; }
.instal__cos h3 { margin-bottom: .4rem; }
.instal__cos p { font-size: .95rem; color: var(--navy-soft); }

/* --------------------------------------------------------------------------
   10. TAULES DE PREUS
   -------------------------------------------------------------------------- */
.tarifes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 820px) { .tarifes { grid-template-columns: 1fr; } }

.tarifa {
  background: var(--paper); border-radius: var(--radi-gran);
  border: 3px solid var(--navy); overflow: hidden;
  box-shadow: var(--ombra);
}
.tarifa__cap {
  background: var(--navy); color: var(--cream);
  padding: 1.1rem 1.5rem;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1rem, 2.3vw, 1.25rem); line-height: 1.15;
}
.tarifa--cap-setmana .tarifa__cap { background: var(--taronja); }

.taula { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.taula th, .taula td { padding: .95rem 1.5rem; text-align: right; }
.taula thead th {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-soft); border-bottom: 2px solid var(--cream-deep);
  font-weight: 800;
}
.taula th[scope="row"] { text-align: left; font-weight: 700; }
.taula tbody tr + tr th, .taula tbody tr + tr td { border-top: 1px dashed var(--cream-deep); }
.taula .preu { font-family: var(--display); font-size: 1.2rem; }
.taula .preu--infant { color: var(--turquesa); }

.nota {
  font-size: .88rem; color: var(--navy-soft);
  padding: .9rem 1.5rem 1.2rem; background: var(--cream);
}

/* Horaris */
.franges { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .franges { grid-template-columns: 1fr; } }
.franja {
  background: var(--paper); border-radius: var(--radi);
  padding: 1.6rem; text-align: center; box-shadow: var(--ombra);
  border-top: 6px solid var(--aigua);
}
.franja--tarda { border-top-color: var(--sol); }
.franja__hora {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1; color: var(--navy);
}
.franja__nom {
  font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy-soft); margin-bottom: .6rem;
}

/* --------------------------------------------------------------------------
   11. CARTA D'EL XIRINGUITO
   -------------------------------------------------------------------------- */
.carta-nav {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin-bottom: 3rem;
}
.carta-nav a {
  text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: .55rem 1.15rem; border-radius: 999px;
  background: var(--paper); color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--cream-deep);
}
.carta-nav a:hover { background: var(--navy); color: var(--cream); box-shadow: none; }

.carta { margin-bottom: var(--seccio); scroll-margin-top: 100px; }
.carta:last-child { margin-bottom: 0; }
.carta__cap { text-align: center; margin-bottom: 2.25rem; }

.grup { margin-bottom: 2.5rem; }
.grup:last-child { margin-bottom: 0; }
.grup__titol {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 1.1rem;
}

/* Llista de plats amb punts de guia i preu a la dreta */
.plats { list-style: none; margin: 0; padding: 0; }
.plat {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: .5rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--cream-deep);
}
.plat:last-child { border-bottom: 0; }
.plat__nom { font-weight: 700; }
.plat__desc {
  grid-column: 1 / -1; font-size: .9rem; color: var(--navy-soft);
  margin-top: .15rem; max-width: 52ch;
}
.plat__preu {
  font-family: var(--display); font-size: 1.05rem; color: var(--taronja);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Llista simple en dues columnes per als preus tancats */
.llista-simple {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 2.5rem;
}
.llista-simple li {
  padding: .5rem 0; break-inside: avoid;
  border-bottom: 1px dashed var(--cream-deep);
}
.llista-simple li::before { content: "•"; color: var(--taronja); font-weight: 800; margin-right: .6rem; }
@media (max-width: 560px) { .llista-simple { columns: 1; } }

.preu-fix {
  font-family: var(--display); color: #fff; background: var(--turquesa);
  padding: .25rem .8rem .3rem; border-radius: 999px; font-size: .95rem;
  white-space: nowrap;
}
.preu-fix--taronja { background: var(--taronja); }

.suplements {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; background: var(--paper); border-radius: var(--radi-gran);
  padding: 1.75rem; box-shadow: var(--ombra);
}
.suplements h4 {
  font-family: var(--display); text-transform: uppercase;
  font-size: .92rem; margin-bottom: .75rem; color: var(--taronja);
}
.suplements ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.suplements li { padding: .28rem 0; }

/* --------------------------------------------------------------------------
   12. GALERIA
   -------------------------------------------------------------------------- */
.tira {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78%, 380px);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin;
}
.tira > * { scroll-snap-align: start; }
.tira .figura { aspect-ratio: 4 / 3; }
.tira-controls { display: flex; gap: .6rem; justify-content: flex-end; margin-bottom: 1rem; }
.fletxa {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--paper) no-repeat center; box-shadow: var(--ombra);
  color: var(--navy); font-size: 1.1rem; font-weight: 800;
}
.fletxa:hover { background-color: var(--navy); color: var(--cream); }
.fletxa:disabled { opacity: .35; cursor: default; }

.mosaic {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
/* La primera peça ocupa dues columnes: fa de portada del mosaic */
.mosaic > *:first-child { grid-column: span 2; aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .mosaic > * { grid-column: auto !important; }
  .mosaic > *:first-child { aspect-ratio: 4 / 3; }
}
.mosaic .buit-foto { aspect-ratio: auto; }

/* Visor d'imatge */
.visor {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14,24,56,.93);
  display: none; place-items: center; padding: 1.5rem;
}
.visor.es-obert { display: grid; }
.visor img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: var(--radi); }
.visor__tanca {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--navy); font-size: 1.4rem; font-weight: 800;
}

/* --------------------------------------------------------------------------
   13. FES-TE SOCI
   -------------------------------------------------------------------------- */
.passos { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pas {
  background: var(--paper); border-radius: var(--radi);
  padding: 1.6rem; box-shadow: var(--ombra); position: relative;
}
.pas__num {
  font-family: var(--display); font-size: 2.4rem; line-height: 1;
  color: var(--cream-deep); margin-bottom: .35rem;
}
.pas h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.pas p { font-size: .94rem; color: var(--navy-soft); }

.quota {
  background: var(--paper); border: 3px solid var(--navy);
  border-radius: var(--radi-gran); padding: 2rem; box-shadow: var(--ombra);
}
.quota__preu {
  font-family: var(--display); font-size: clamp(2.6rem, 7vw, 3.8rem);
  line-height: 1; color: var(--taronja);
}
.quota__periode { font-weight: 700; color: var(--navy-soft); margin-bottom: 1.25rem; }
.quota ul { list-style: none; margin: 0; padding: 0; }
.quota li {
  padding: .7rem 0; border-top: 1px dashed var(--cream-deep);
  display: flex; justify-content: space-between; gap: 1rem;
}
.quota li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------------------
   14. LOGIN I ZONA DE SOCIS
   -------------------------------------------------------------------------- */
.pagina-login {
  min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  background: linear-gradient(165deg, var(--aigua), var(--turquesa) 55%, var(--navy));
}
.login {
  display: grid; place-items: center; padding: var(--seccio) 1.25rem;
}
.login__caixa {
  width: min(100%, 460px); background: var(--paper);
  border-radius: var(--radi-gran); padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: var(--ombra-alt); text-align: center;
}
.login__caixa h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.login__caixa p { color: var(--navy-soft); margin-bottom: 1.75rem; }

.camp { text-align: left; margin-bottom: 1.25rem; }
.camp label {
  display: block; font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-soft); margin-bottom: .5rem;
}
.camp input {
  width: 100%; padding: .9rem 1rem; font-size: 1rem;
  font-family: var(--body); color: var(--navy);
  background: var(--cream); border: 2px solid var(--cream-deep);
  border-radius: var(--radi);
}
.camp input:focus { border-color: var(--turquesa); outline: none; }
.login .boto { width: 100%; justify-content: center; }

.avis {
  border-radius: var(--radi); padding: .9rem 1.1rem;
  font-size: .93rem; font-weight: 600; margin-bottom: 1.25rem; text-align: left;
}
.avis--error { background: #fdecea; color: #a02012; border: 2px solid #f3c0b9; }
.avis--nota  { background: #e8f4f8; color: #12586b; border: 2px solid #b9dde8; }
.avis[hidden] { display: none; }

/* Zona privada */
.barra-socis {
  background: var(--navy); color: var(--cream);
  padding-block: .9rem;
}
.barra-socis__interior { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.barra-socis__titol {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.05rem; margin-right: auto;
}
.barra-socis a { color: var(--aigua-clar); font-weight: 700; font-size: .92rem; }

.avisos { display: grid; gap: 1rem; }
.avis-junta {
  background: var(--paper); border-left: 6px solid var(--sol);
  border-radius: var(--radi); padding: 1.35rem 1.6rem; box-shadow: var(--ombra);
}
.avis-junta__data {
  font-size: .75rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy-soft); margin-bottom: .4rem;
}
.avis-junta h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.avis-junta p { font-size: .96rem; }

.docs { display: grid; gap: .85rem; }
.doc {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--paper); border-radius: var(--radi);
  padding: 1.1rem 1.35rem; box-shadow: var(--ombra);
  text-decoration: none; color: var(--navy);
  transition: transform .16s ease, box-shadow .16s ease;
}
.doc:hover { transform: translateX(4px); box-shadow: var(--ombra-alt); }
.doc__any {
  font-family: var(--display); font-size: 1.35rem; color: var(--taronja);
  flex: none; width: 3.4rem; font-variant-numeric: tabular-nums;
}
.doc__cos { margin-right: auto; }
.doc__nom { font-weight: 700; display: block; }
.doc__meta { font-size: .84rem; color: var(--navy-soft); }
.doc__baixa {
  flex: none; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--turquesa);
}

.grup-docs { margin-bottom: 2.5rem; }
.grup-docs:last-child { margin-bottom: 0; }
.grup-docs h3 { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   15. PEU
   -------------------------------------------------------------------------- */
.peu { background: var(--navy-deep); color: rgba(250,243,224,.78); padding-block: var(--seccio) 2rem; }
.peu__graella {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(250,243,224,.16);
}
@media (max-width: 780px) { .peu__graella { grid-template-columns: 1fr; } }
.peu h4 {
  font-family: var(--display); text-transform: uppercase;
  font-size: .88rem; letter-spacing: .06em; color: var(--cream); margin-bottom: 1rem;
}
.peu ul { list-style: none; margin: 0; padding: 0; }
.peu li { margin-bottom: .6rem; }
.peu a { color: rgba(250,243,224,.78); text-decoration: none; }
.peu a:hover { color: var(--sol); }
.peu .marca__nom { color: var(--cream); }
.peu .marca__lema { color: var(--aigua-clar); }
.peu__nota {
  padding-top: 1.75rem; font-size: .84rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
/* El correu de l'associació és el contacte principal i el telèfon el secundari.
   Dues coses a saber:
   - Els selectors porten «.peu» al davant perquè «.peu a» té més especificitat
     que una classe sola i, si no, se'ls menjaria el color.
   - El correu fa servir la tipografia de text i no la display, que és més
     ampla, perquè l'adreça és llarga i la columna del peu estreta. */
.peu .peu__correu {
  display: inline-block; margin-bottom: .35rem;
  font-size: 1rem; font-weight: 800; color: var(--sol);
  text-decoration: none; overflow-wrap: anywhere;
}
.peu .peu__tel {
  display: inline-block; margin-bottom: .35rem;
  font-family: var(--display); font-size: 1.05rem;
  color: rgba(250, 243, 224, .78); text-decoration: none;
}
.peu .peu__correu:hover, .peu .peu__tel:hover { color: var(--cream); }
/* Separació entre el bloc del correu i el del telèfon */
.peu__canal + .peu__canal { margin-top: 1.15rem; }

/* Marca de contingut pendent — treure quan arribi el material real */
.pendent {
  display: inline-block; background: var(--sol); color: var(--navy);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 4px; vertical-align: middle;
}

/* --------------------------------------------------------------------------
   16. MOVIMENT REDUÏT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
