/* ====================================================================
   TERRITORI LECTOR — CSS GLOBAL PER A WORDPRESS (Elementor + JetEngine)
   Generat a partir dels dissenys HTML (components.css + estils de cada pàgina).

   COM FUNCIONA
   - Cada pàgina o plantilla té el contenidor principal d'Elementor amb dues
     classes (Avançat → CSS Classes):   tl  +  la classe de la pàgina.
       Inici .................. tl tl-inici
       Catàleg ................ tl tl-cataleg
       Fitxa de llibre ........ tl tl-fitxa-llibre      (Single · Llibre)
       Fitxa de persona ....... tl tl-persona           (Single · Persona)
       Col·lecció ............. tl-colleccio            (sense "tl": no fa servir components)
       Activitats ............. tl tl-activitats
       La meva llista ......... tl tl-llista
       En Renard .............. tl tl-renard
       Entrar ................. tl tl-entrar
       Crear compte ........... tl tl-crear-compte
       El meu compte .......... tl tl-compte
     Capçalera i peu (Theme Builder): contenidor amb la classe  tl
   - Així els estils de cada pàgina no afecten les altres.

   ON TROBAR CADA COSA
   1. Fonts i variables (colors)
   2. Estils de pàgina que van ABANS dels comuns
   3. Components comuns: capçalera, peu, targeta de llibre, badges, botons…
   4. Botó flotant d'en Renard (comú a totes les pàgines)
   5. Estils de cada pàgina
   Per canviar un color de tota la web: secció 1 (variables).
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Nunito:wght@300;400;500;600;700;800&display=swap');


/* ====================================================================
   1. VARIABLES GLOBALS (colors)
   ==================================================================== */

:root {
  --crema:           #FDF6EE;
  --crema-fosca:     #F5ECD7;
  --marro:           #C17B3F;
  --marro-fosc:      #8B5A2B;
  --verd:            #4A7C59;
  --verd-clar:       #8FAF7E;
  --verd-molt-clar:  #EEF4EB;
  --verd-fosc:       #2C3E2D;
  --verd-molt-fosc:  #1A2B1B;
  --text:            #2C2C2C;
  --text-suau:       #6B6B6B;
  --blanc:           #FFFFFF;
  --border:          #E8D9C4;

  /* Badge colors */
  --badge-coleccio-bg:  var(--verd);
  --badge-premi-bg:     #FFD700;
  --badge-premi-text:   #8B6914;
  --badge-nou-bg:       var(--marro-fosc);
  --badge-especial-bg:  var(--marro-fosc);
  --badge-recomanat-bg: var(--marro);
}

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  overflow-x: hidden;
  background: var(--crema);
  color: var(--text);
}


/* ====================================================================
   2. ESTILS DE PÀGINA QUE VAN ABANS DELS COMUNS
   ==================================================================== */



/* ====================================================================
   PÀGINA D'INICI — part 1 · classe .tl-inici · Pàgina "Inici"
   ==================================================================== */


/* LINKS UNIFICATS */
/* Tots els links de contingut: subratllat sempre visible */
.tl-inici a {
    color: var(--marro-fosc);
    text-decoration: underline;
    text-decoration-color: var(--marro-fosc);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
  }
.tl-inici a:hover {
    color: var(--marro);
    text-decoration-color: var(--marro);
  }
/* Elements que NO han de tenir subratllat (UI, no contingut) */
.tl-inici .llibre-card,
.tl-inici .act-card,
.tl-inici .veure-tot,
.tl-inici .btn-principal,
.tl-inici .btn-secundari,
.tl-inici .btn-secundari-bordered,
.tl-inici .exemple-pill,
.tl-inici .recomanacio-seccio a:not(.recomanacio-link) {
    text-decoration: none;
  }
/* HERO */
.tl-inici .hero {
    background: linear-gradient(135deg, #FDF6EE 0%, #F0E6D3 50%, #E8D5B8 100%);
    padding: 40px 48px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
.tl-inici .hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74,124,89,0.08) 0%, transparent 70%);
    border-radius: 50%;
  }
.tl-inici .hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(193,123,63,0.07) 0%, transparent 70%);
    border-radius: 50%;
  }
.tl-inici .hero-etiqueta {
    display: inline-block;
    background: var(--verd-molt-clar);
    color: var(--verd);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
.tl-inici .hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--marro-fosc);
    margin-bottom: 20px;
  }
.tl-inici .hero h1 em {
    font-style: italic;
    color: var(--verd);
  }
.tl-inici .hero-desc {
    font-size: 17px;
    color: var(--text-suau);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 300;
  }
.tl-inici .hero-botons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }
.tl-inici .btn-secundari {
    color: var(--verd);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
  }
.tl-inici .btn-secundari:hover { }
/* TOOLTIP RENARD */
.tl-inici .btn-renard-wrapper {
    position: relative;
    display: inline-flex;
  }
.tl-inici .btn-renard-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    width: 210px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    text-align: center;
  }
.tl-inici .btn-renard-wrapper:hover .btn-renard-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
.tl-inici .tooltip-emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.tl-inici .tooltip-titol {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--marro-fosc);
    display: block;
    margin-bottom: 3px;
  }
.tl-inici .tooltip-desc {
    font-size: 11px;
    color: var(--text-suau);
    line-height: 1.5;
    font-weight: 300;
  }
/* Fletxeta del tooltip */
.tl-inici .btn-renard-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--blanc);
  }
.tl-inici .btn-renard-tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--border);
    margin-top: 1px;
  }
.tl-inici .hero-il-lustracio {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  }
.tl-inici .hero-il-lustracio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
/* RECOMANACIÓ DE LA SETMANA */
.tl-inici .recomanacio-seccio {
    background: linear-gradient(135deg, #F5ECD7 0%, #EDE0C4 100%);
    padding: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
.tl-inici .recomanacio-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
  }
.tl-inici .recomanacio-text {
    flex: 1;
  }
.tl-inici .recomanacio-cover-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
  }
.tl-inici .recomanacio-cover-link:hover {
    transform: translateY(-4px);
  }
.tl-inici .recomanacio-llibre-mock {
    width: 200px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #4A7C59, #2C5035);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: -6px 6px 0 rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.18);
  }
.tl-inici .recomanacio-etiqueta {
    display: inline-block;
    background: var(--marro);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
.tl-inici .recomanacio-etiqueta-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--marro);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
.tl-inici .recomanacio-seccio-titol {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    color: #5C3317;
    margin-bottom: 16px;
    line-height: 1.3;
  }
.tl-inici .recomanacio-seccio-titol em {
    font-style: italic;
    color: var(--marro);
  }
.tl-inici .recomanacio-separador {
    height: 3px;
    background: var(--border);
    margin-bottom: 24px;
  }
.tl-inici .recomanacio-titol {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--marro-fosc);
    margin-bottom: 6px;
    line-height: 1.2;
  }
.tl-inici .recomanacio-meta {
    font-size: 13px;
    color: var(--text-suau);
    margin-bottom: 20px;
    font-weight: 400;
  }
.tl-inici .recomanacio-desc {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
    font-style: italic;
  }
.tl-inici .recomanacio-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--marro-fosc);
    text-decoration: underline;
    text-decoration-color: var(--marro-fosc);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
  }
.tl-inici .recomanacio-link:hover {
    color: var(--marro);
    text-decoration-color: var(--marro);
  }
.tl-inici .recomanacio-firma {
    font-size: 13px;
    color: var(--marro);
    font-weight: 600;
  }
/* CATALEG */
.tl-inici .cataleg-titol { background: var(--crema); }
.tl-inici .cataleg-seccio {
    padding: 0 40px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--crema);
  }
.tl-inici .cataleg-arrow {
    background: var(--blanc);
    border: 1px solid var(--border);
    color: var(--text-suau);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
.tl-inici .cataleg-arrow:hover {
    background: var(--marro);
    border-color: var(--marro);
    color: white;
  }
.tl-inici .cataleg-carrusel {
    display: flex;
    gap: 20px;
    overflow: hidden;
    flex: 1;
    padding: 8px 0;
    min-width: 0;
  }
.tl-inici .cataleg-carrusel .llibre-card {
    flex: 0 0 calc((100% - 4 * 20px) / 5);
    min-width: 0;
  }
.tl-inici .cataleg-carrusel .llibre-card:nth-child(n/**/+6):not([aria-hidden]) {
    /* This won't work for runtime clones, handled by overflow: hidden */
  }
/* RENARD */
.tl-inici .renard-seccio {
  padding: 40px 40px !important;
    background: linear-gradient(135deg, #2C3E2D 0%, #1A2B1B 100%);
    padding: 48px 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    position: relative;
  }
.tl-inici .renard-seccio::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(193,123,63,0.15) 0%, transparent 70%);
    border-radius: 50%;
  }
.tl-inici .renard-text { position: relative; z-index: 1; }
.tl-inici .renard-etiqueta {
    display: inline-block;
    background: rgba(193,123,63,0.25);
    border: 1px solid rgba(193,123,63,0.4);
    color: #E8A86A;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-top: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }
.tl-inici .renard-text h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
  }
.tl-inici .renard-text h2 em {
    color: #E8A86A;
    font-style: italic;
  }
.tl-inici .renard-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
  }
.tl-inici .renard-link-discret {
    font-size: 15px;
    font-weight: 600;
    color: #E8A86A;
    text-decoration: underline;
    text-decoration-color: rgba(232,168,106,0.5);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
  }
.tl-inici .renard-link-discret:hover {
    color: #C17B3F;
    text-decoration-color: #C17B3F;
  }
.tl-inici .renard-xat { position: relative; z-index: 1; }
.tl-inici .xat-bubble {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
  }
.tl-inici .xat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
.tl-inici .xat-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #C17B3F, #8B5A2B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }
.tl-inici .xat-nom {
    font-weight: 600;
    color: white;
    font-size: 15px;
  }
.tl-inici .xat-estat {
    font-size: 12px;
    color: #8FAF7E;
    display: flex;
    align-items: center;
    gap: 4px;
  }
.tl-inici .xat-estat::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #8FAF7E;
    border-radius: 50%;
    display: inline-block;
  }
.tl-inici .xat-exemples {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
.tl-inici .exemple-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
.tl-inici .exemple-pill:hover {
    background: rgba(193,123,63,0.2);
    border-color: rgba(193,123,63,0.4);
    color: white;
  }
.tl-inici .exemple-pill::before { content: ""; display: none; }
.tl-inici .xat-input {
    display: flex;
    gap: 10px;
    align-items: center;
  }
.tl-inici .xat-input input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 12px 18px;
    color: white;
    font-size: 13px;
    font-family: "Nunito", sans-serif;
    outline: none;
  }
.tl-inici .xat-input input::placeholder { color: rgba(255,255,255,0.3); }
.tl-inici .xat-input input:focus { border-color: rgba(193,123,63,0.5); }
.tl-inici .xat-enviar {
    background: var(--marro);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: background 0.2s;
    flex-shrink: 0;
  }
.tl-inici .xat-enviar:hover { background: var(--marro-fosc); }
/* ACTIVITATS */
.tl-inici .activitats-seccio {
    background: var(--verd-molt-clar);
    padding: 0 48px 48px;
  }
.tl-inici .activitats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
.tl-inici .act-card {
    background: var(--blanc);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }
.tl-inici .act-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
.tl-inici .act-icona {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }
.tl-inici .ai-verd { background: var(--verd-molt-clar); }
.tl-inici .ai-marro { background: #FDF0E4; }
.tl-inici .ai-blau { background: #EEF4EB; }
.tl-inici .act-titol {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }
.tl-inici .act-tipus {
    font-size: 12px;
    color: var(--text-suau);
    margin-bottom: 10px;
  }
.tl-inici .act-descarregar {
    font-size: 12px;
    color: var(--marro);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
  }
.tl-inici .act-descarregar:hover { }
/* COMUNITAT */
.tl-inici .comunitat-seccio {
    background: var(--crema-fosca);
    padding: 48px;
    text-align: center;
    border-top: 1px solid var(--border);
  }
.tl-inici .comunitat-seccio p {
    font-size: 13px;
    color: var(--marro);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
.tl-inici .comunitat-seccio h3 {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    color: var(--text);
    margin-bottom: 8px;
  }
.tl-inici .comunitat-seccio span {
    font-size: 15px;
    color: var(--text-suau);
    font-weight: 300;
  }
.tl-inici } /* HERO LEMA VISIBLE */ .hero-lema-visible {
    font-size: 12px;
    font-weight: 700;
    color: var(--verd);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
/* HERO CREDIBILITAT */
.tl-inici .hero-credibilitat {
    font-size: 14px;
    color: var(--text-suau);
    font-weight: 400;
    font-style: italic;
    margin-top: 24px;
    margin-bottom: 16px;
  }
/* HERO CONTADOR */
/* BOTÓ SECUNDARI AMB VORA */
.tl-inici .btn-secundari-bordered {
    border: 1.5px solid var(--border);
    padding: 9px 18px;
    border-radius: 32px;
    color: var(--marro-fosc) !important;
    background: transparent;
    transition: all 0.2s;
  }
.tl-inici .btn-secundari-bordered:hover {
    border-color: var(--marro);
    color: var(--marro) !important;
  }
.tl-inici .hero-imatge-mobil {
    display: none;
  }
.tl-inici .hero-text { animation: fadeUp 0.8s ease both; }
.tl-inici .hero-visual { animation: fadeUp 0.8s ease 0.2s both; }
/* HERO SUBTÍTOL */
.tl-inici .hero-subtitol {
    font-size: 20px;
    color: var(--marro-fosc);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: 4px;
    font-family: "Playfair Display", serif;
  }
/* BOTONS IGUALS */
.tl-inici .btn-igual {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
.tl-inici .btn-igual-buit {
    background: transparent !important;
    color: var(--marro) !important;
    border: 2px solid var(--marro) !important;
    box-shadow: none !important;
  }
.tl-inici .btn-igual-buit:hover {
    background: var(--marro) !important;
    color: white !important;
    transform: translateY(-2px);
  }
/* --- AJUSTOS VERSIÓ ACTUALITZADA — HERO I ORDRE --- */
.tl-inici .hero-sense-imatge {
  display: block;
  padding: 44px 48px 50px;
  background: var(--crema);
}
.tl-inici .hero-sense-imatge::before,
.tl-inici .hero-sense-imatge::after {
  display: none;
}
.tl-inici .hero-sense-imatge .hero-text {
  max-width: 640px;
  animation: fadeUp 0.8s ease both;
}
.tl-inici .hero-sense-imatge h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--marro-fosc);
  margin-bottom: 16px;
}
.tl-inici .hero-sense-imatge h1 em {
  color: var(--verd);
  font-style: italic;
}
.tl-inici .hero-sense-imatge .hero-desc {
  font-size: 17px;
  color: var(--text-suau);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 14px;
  max-width: 560px;
}
.tl-inici .hero-promesa {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 560px;
}
.tl-inici .hero-sense-imatge .hero-botons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
/* --- FOOTER COMPACTE AMB ESPAI NATURAL --- */
/* --- FOOTER FINAL: compacte però amb layout original --- */
/* --- HERO AMB IMATGE DE FONS EDITABLE --- */
.tl-inici .hero-imatge-fons {
  position: relative;
  min-height: 480px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  background-image: url("images/hero.webp");
  background-size: cover;
  background-position: center 70%;
  overflow: hidden;
}
.tl-inici .hero-imatge-fons::before,
.tl-inici .hero-imatge-fons::after {
  display: none !important;
}
.tl-inici .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(253, 246, 238, 0.85) 0%,
    rgba(253, 246, 238, 0.65) 30%,
    rgba(253, 246, 238, 0.18) 55%,
    rgba(253, 246, 238, 0.02) 100%
  );
  z-index: 0;
}
.tl-inici .hero-text-sobre-imatge {
  position: relative;
  z-index: 1;
  max-width: 560px;
  animation: fadeUp 0.8s ease both;
}
.tl-inici .hero-text-sobre-imatge h1 {
  font-family: "Playfair Display", serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.16;
  color: var(--marro-fosc);
  margin-bottom: 16px;
}
.tl-inici .hero-text-sobre-imatge h1 em {
  color: var(--verd);
  font-style: italic;
}
.tl-inici .hero-text-sobre-imatge .hero-desc {
  font-size: 17px;
  color: var(--text-suau);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 14px;
  max-width: 520px;
}
.tl-inici .hero-text-sobre-imatge .hero-promesa {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 520px;
}
.tl-inici .hero-text-sobre-imatge .hero-botons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.tl-inici .hero-btn-renard {
  flex: initial !important;
  text-align: center;
  justify-content: center;
  text-decoration: none !important;
}
.tl-inici .hero-link-cataleg {
  color: var(--marro-fosc);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--marro-fosc);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.tl-inici .hero-link-cataleg:hover {
  color: var(--marro);
  text-decoration-color: var(--marro);
}
@media (min-width: 769px) and (max-width: 1024px) {
.tl-inici .cataleg-carrusel {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
.tl-inici .cataleg-carrusel::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 768px) {
/* HERO — sense imatge de fons */
.tl-inici .hero-imatge-fons {
    min-height: unset;
    padding: 40px 24px 44px;
    background-image: none;
    background: var(--crema);
  }
.tl-inici .hero-overlay {
    display: none;
  }
.tl-inici .hero-text-sobre-imatge h1 {
    font-size: 34px;
    color: var(--marro-fosc);
  }
.tl-inici .hero-text-unificat {
    font-size: 16px;
    max-width: 100%;
    color: var(--text-suau);
  }
.tl-inici .hero-text-sobre-imatge {
    text-align: center;
  }
.tl-inici .hero-botons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
/* RENARD */
.tl-inici .renard-seccio {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 36px 24px !important;
  }
.tl-inici .renard-text h2 {
    font-size: 28px;
  }
.tl-inici .renard-text p {
    font-size: 16px;
  }
/* RECOMANACIÓ — portada sota títol */
.tl-inici .recomanacio-seccio {
    padding: 36px 24px !important;
  }
.tl-inici .recomanacio-inner {
    grid-template-columns: 1fr !important;
    display: block;
  }
.tl-inici .recomanacio-cover-mobil {
    float: none;
    width: 100%;
    max-width: 140px;
    margin-right: 0;
    margin-bottom: 20px;
  }
.tl-inici .recomanacio-titol {
    font-size: 24px;
  }
.tl-inici .recomanacio-desc {
    font-size: 15px;
  }
/* CATALEG */
.tl-inici .cataleg-seccio {
    padding: 0 12px 32px;
    gap: 8px;
  }
.tl-inici .cataleg-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
.tl-inici .cataleg-carrusel {
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
.tl-inici .cataleg-carrusel::-webkit-scrollbar {
    display: none;
  }
.tl-inici .cataleg-arrow {
    display: none;
  }
/* ACTIVITATS */
.tl-inici .activitats-seccio {
    padding: 0 24px 36px;
  }
.tl-inici .activitats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}
.tl-inici .renard-destacat {
  color: var(--marro);
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 16px;
}
.tl-inici .renard-destacat-inline {
  color: var(--marro);
  font-weight: 600;
}
.tl-inici .hero-text-unificat {
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 32px;
}


/* ====================================================================
   CATÀLEG — part 1 · classe .tl-cataleg · Pàgina "Catàleg"
   ==================================================================== */


/* CAPÇALERA CATÀLEG */
.tl-cataleg .cataleg-header {
    background: var(--verd-molt-clar);
    padding: 10px 48px 137px;
    position: relative;
    overflow: hidden;
    z-index: 5;
  }
.tl-cataleg .cataleg-header-top {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
.tl-cataleg .cataleg-header-titol {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
/* Franja il·lustrada a la part de baix del hero */
.tl-cataleg .cataleg-header-franja {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: min(1020px, calc(100% - 32px));
    height: auto;
    display: block;
    pointer-events: none;
    z-index: 1;
  }
.tl-cataleg .cataleg-header h1 {
    font-family: "Playfair Display", serif;
    font-size: 52px;
    font-weight: 600;
    color: var(--marro-fosc);
    margin: 0;
    line-height: 1.2;
  }
.tl-cataleg .cataleg-header h1 em { color: #4A7C59; font-style: italic; }
.tl-cataleg .cataleg-header-sub {
    font-size: 15px;
    color: var(--text-suau);
    font-weight: 300;
    line-height: 1.5;
  }
/* CERCA */
.tl-cataleg .cerca-wrapper {
    width: 380px;
    flex-shrink: 0;
  }
.tl-cataleg .cerca-field {
    position: relative;
  }
.tl-cataleg .cerca-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--marro);
    border-radius: 14px;
    padding: 12px 16px 12px 42px;
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    color: var(--text);
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(139, 90, 43, 0.06);
  }
.tl-cataleg .cerca-input::placeholder { color: var(--text-suau); }
.tl-cataleg .cerca-input:focus {
    background: #FFFFFF;
    border-color: var(--marro);
    box-shadow: none;
  }
.tl-cataleg .cerca-icona {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.45;
    pointer-events: none;
  }
/* TAGS FILTRES ACTIUS */
.tl-cataleg .filtres-actius {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }
.tl-cataleg .filtre-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #6A9E7A;
    color: white;
    border: 1px solid #6A9E7A;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
  }
.tl-cataleg .filtre-tag:hover { background: #4A7C59; border-color: #4A7C59; }
.tl-cataleg .filtre-tag-x { font-size: 14px; line-height: 1; }
.tl-cataleg .filtres-netejar {
    font-size: 12px;
    color: var(--text-suau);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: "Nunito", sans-serif;
    padding: 0;
  }
.tl-cataleg .filtres-netejar:hover { color: var(--marro); }
/* LAYOUT PRINCIPAL — full width */
.tl-cataleg .cataleg-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    min-height: calc(100vh - 200px);
  }
/* DRAWER OVERLAY */
.tl-cataleg .filtres-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
.tl-cataleg .filtres-overlay.obert { opacity: 1; pointer-events: all; }
/* SIDEBAR FILTRES — drawer lliscant */
.tl-cataleg .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--blanc);
    z-index: 300;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
.tl-cataleg .sidebar.obert { transform: translateX(0); }
.tl-cataleg .sidebar::-webkit-scrollbar { width: 4px; }
.tl-cataleg .sidebar::-webkit-scrollbar-track { background: transparent; }
.tl-cataleg .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.tl-cataleg .sidebar-inner {
    padding: 20px 24px 40px;
  }
.tl-cataleg .sidebar-capçalera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--blanc);
    z-index: 1;
  }
.tl-cataleg .sidebar-titol {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--marro-fosc);
  }
.tl-cataleg .filtre-opcio-coleccio {
    text-decoration: none;
    color: inherit;
  }
.tl-cataleg .filtre-opcio-coleccio:hover {
    background: var(--crema);
  }
.tl-cataleg .filtre-opcio-coleccio .filtre-label {
    color: var(--marro-fosc);
    font-weight: 600;
  }
.tl-cataleg .sidebar-tancar {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-suau);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }
.tl-cataleg .sidebar-tancar:hover { background: var(--crema); }
/* BOTÓ FILTRES */
.tl-cataleg .btn-filtres {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blanc);
    border: 1.5px solid var(--marro);
    color: var(--marro-fosc);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    transition: all 0.2s;
  }
.tl-cataleg .btn-filtres:hover { background: var(--crema); }
.tl-cataleg .btn-filtres-badge {
    background: var(--marro);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
  }
.tl-cataleg .btn-filtres-badge.visible { display: flex; }
.tl-cataleg .filtre-grup { margin-bottom: 4px; }
.tl-cataleg .filtre-grup-titol {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-suau);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 6px 2px;
    border-radius: 6px;
    transition: background 0.15s;
    user-select: none;
  }
.tl-cataleg .filtre-grup-titol:hover { background: var(--crema); }
.tl-cataleg .filtre-opcio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 2px;
  }
.tl-cataleg .filtre-opcio:hover { background: var(--crema); }
.tl-cataleg .filtre-opcio.actiu { background: var(--crema-fosca); }
.tl-cataleg .filtre-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: var(--blanc);
  }
.tl-cataleg .filtre-opcio.actiu .filtre-checkbox {
    background: var(--marro-fosc);
    border-color: var(--marro);
  }
.tl-cataleg .filtre-checkbox-check {
    color: white;
    font-size: 10px;
    display: none;
  }
.tl-cataleg .filtre-opcio.actiu .filtre-checkbox-check { display: block; }
.tl-cataleg .filtre-label {
    font-size: 13px;
    color: var(--text);
    flex: 1;
    position: relative;
  }
/* TOOLTIP TEMÀTIQUES */
.tl-cataleg .filtre-count {
    font-size: 11px;
    color: var(--text-suau);
    background: var(--crema-fosca);
    padding: 1px 7px;
    border-radius: 10px;
  }
.tl-cataleg .subtematica-bloc {
    display: none;
    margin: 0 0 6px 17px;
    padding: 0;
    border-left: 2px solid var(--border);
  }
.tl-cataleg .filtre-desplega {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; line-height: 1; color: var(--marro);
    border-radius: 50%; flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
  }
.tl-cataleg .filtre-desplega:hover { background: var(--crema-fosca); }
.tl-cataleg .filtre-desplega.obert { transform: rotate(90deg); }
.tl-cataleg .subtematica-bloc.visible { display: block; }
.tl-cataleg .subtematica-hint {
    font-size: 11px;
    color: var(--text-suau);
    padding: 4px 0 4px 28px;
    font-style: italic;
  }
.tl-cataleg .filtre-opcio.subtematica {
    padding: 7px 10px 7px 12px;
    margin-bottom: 0;
    background: transparent;
  }
.tl-cataleg .filtre-opcio.subtematica:hover { background: var(--crema); }
.tl-cataleg .filtre-opcio.subtematica.actiu { background: var(--crema-fosca); }
.tl-cataleg .filtre-opcio.subtematica .filtre-label { font-size: 13px; color: var(--text-suau); }
.tl-cataleg .filtre-opcio.subtematica.actiu .filtre-label { color: var(--marro-fosc); font-weight: 500; }
.tl-cataleg .filtre-opcio.actiu .filtre-count {
    background: rgba(193,123,63,0.15);
    color: var(--marro-fosc);
  }
.tl-cataleg .sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
  }
/* ETAPA LECTORA — pills especials */
.tl-cataleg .etapa-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
    border: 1.5px solid transparent;
  }
.tl-cataleg .etapa-pill:hover { background: var(--crema); border-color: var(--border); }
.tl-cataleg .etapa-pill.actiu { background: var(--crema-fosca); border-color: var(--marro); }
.tl-cataleg .etapa-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }
.tl-cataleg .etapa-nom { font-size: 13px; color: var(--text); font-weight: 500; }
.tl-cataleg .etapa-desc { font-size: 11px; color: var(--text-suau); margin-top: 1px; }
.tl-cataleg .etapa-info { flex: 1; }
/* ZONA DRETA — full width */
.tl-cataleg .zona-dreta { padding: 32px 0; background: #FDF6EE; }
/* BARRA RESULTATS */
.tl-cataleg .resultats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
.tl-cataleg .resultats-count {
    font-size: 14px;
    color: var(--text-suau);
  }
.tl-cataleg .resultats-count strong { color: var(--text); font-weight: 600; }
.tl-cataleg .ordenacio-wrapper { display: flex; align-items: center; gap: 10px; }
.tl-cataleg .ordenacio-label { font-size: 13px; color: var(--text-suau); }
.tl-cataleg .ordenacio-select {
    background: var(--blanc);
    border: 1px solid var(--marro);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: "Nunito", sans-serif;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
  }
.tl-cataleg .ordenacio-select:focus { border-color: var(--marro-fosc); }
/* GRAELLA LLIBRES */
.tl-cataleg .llibres-graella {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 48px;
  }
/* PAGINACIÓ */
.tl-cataleg .paginacio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 64px;
  }
.tl-cataleg .pag-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--blanc);
    color: var(--text);
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500;
  }
.tl-cataleg .pag-btn:hover { background: var(--crema-fosca); border-color: var(--marro); color: var(--marro); }
.tl-cataleg .pag-btn.actiu { background: var(--marro); border-color: var(--marro); color: white; }
.tl-cataleg .pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tl-cataleg .pag-punts { color: var(--text-suau); font-size: 14px; padding: 0 4px; }
@media (max-width: 768px) {
.tl-cataleg .cataleg-header { padding: 10px 20px 70px; }
.tl-cataleg .cataleg-header h1 { font-size: 38px; }
.tl-cataleg .cerca-wrapper { width: 100%; max-width: 380px; }
.tl-cataleg .cataleg-header-franja { width: 150%; }
}
/* Responsive graella catàleg */
@media (max-width: 1400px) {
.tl-cataleg .llibres-graella {
      grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1000px) {
.tl-cataleg .llibres-graella {
      grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
.tl-cataleg .llibres-graella {
      grid-template-columns: repeat(2, 1fr);
    }
}
/* ACORDIÓ SIDEBAR */
.tl-cataleg .filtre-grup-titol .acordio-fletxa {
    font-size: 16px;
    color: var(--text-suau);
    line-height: 1;
  }
.tl-cataleg .filtre-grup-contingut {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }
/* STACK BADGES (Col·lecció + Premi) */
.tl-cataleg .col-badge-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
.tl-cataleg .col-badge-link:hover {
    background: var(--marro) !important;
    color: white !important;
    border-color: var(--marro) !important;
  }


/* ====================================================================
   FITXA DE LLIBRE — part 1 · classe .tl-fitxa-llibre · Plantilla Single · Llibre
   ==================================================================== */


.tl-fitxa-llibre {
    --crema: #FDF6EE;
    --crema-fosca: #F5ECD7;
    --marro: #C17B3F;
    --marro-fosc: #8B5A2B;
    --verd: #4A7C59;
    --verd-clar: #8FAF7E;
    --verd-molt-clar: #EEF4EB;
    --text: #2C2C2C;
    --text-suau: #6B6B6B;
    --blanc: #FFFFFF;
    --border: #E8D9C4;
  }
.tl-fitxa-llibre, .tl-fitxa-llibre * { box-sizing: border-box; margin: 0; padding: 0; }
.tl-fitxa-llibre {
    font-family: "Nunito", sans-serif;
    background: var(--blanc) !important;
    color: var(--text);
    overflow-x: hidden;
  }
.tl-fitxa-llibre .fitxa-hero-wrapper {
    background: var(--blanc);
    padding: 24px 48px;
  }
.tl-fitxa-llibre #fitxa-tecnica,
.tl-fitxa-llibre #mes-coleccio,
.tl-fitxa-llibre #mes-autora {
    scroll-margin-top: 88px;
  }
/* NAV */
/* FIL D'ARIANA */
.tl-fitxa-llibre .breadcrumb {
    padding: 10px 48px;
    background: var(--verd-molt-clar);
    border-bottom: 1px solid #C8DFC4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-suau);
  }
.tl-fitxa-llibre .breadcrumb a {
    color: var(--verd);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
  }
.tl-fitxa-llibre .breadcrumb a:hover { color: var(--verd-fosc); text-decoration: underline; }
.tl-fitxa-llibre .breadcrumb-sep { opacity: 0.5; color: var(--verd); }
.tl-fitxa-llibre .breadcrumb-actual { color: var(--text); font-weight: 600; }
/* HERO FITXA */
.tl-fitxa-llibre .fitxa-hero {
    background: var(--crema-fosca);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: flex-start;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin: 0;
  }
/* PORTADA */
.tl-fitxa-llibre .portada-wrapper {
    position: relative;
  }
.tl-fitxa-llibre .portada {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #E8D5C4, #D4B896);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    box-shadow: -6px 6px 0 rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
  }
.tl-fitxa-llibre .portada-badge-premi {
    position: absolute;
    top: 14px; right: 14px;
    background: #FFD700;
    color: #8B6914;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
  }
.tl-fitxa-llibre .portada-badge-col {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--verd);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
  }
/* MINIATURES */
.tl-fitxa-llibre .miniatures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 10px;
  }
.tl-fitxa-llibre .miniatura {
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: linear-gradient(135deg, #E8D5C4, #D4B896);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    position: relative;
  }
.tl-fitxa-llibre .miniatura:hover { border-color: var(--marro); transform: translateY(-2px); }
.tl-fitxa-llibre .miniatura.activa { border-color: var(--marro); box-shadow: 0 0 0 1px var(--marro); }
.tl-fitxa-llibre .miniatura img { width: 100%; height: 100%; object-fit: cover; }
.tl-fitxa-llibre .miniatura-mes {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    pointer-events: none;
  }
/* Portada clicable */
.tl-fitxa-llibre .portada {
    cursor: pointer;
  }
.tl-fitxa-llibre .portada-lupa {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.2s;
  }
.tl-fitxa-llibre .portada:hover .portada-lupa { opacity: 0.7; }
/* LIGHTBOX */
.tl-fitxa-llibre .lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    padding: 24px;
  }
.tl-fitxa-llibre .lightbox-overlay.obert {
    opacity: 1;
    pointer-events: all;
  }
.tl-fitxa-llibre .lightbox-inner {
    position: relative;
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
.tl-fitxa-llibre .lightbox-tancar {
    position: absolute;
    top: -44px; right: 0;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
.tl-fitxa-llibre .lightbox-tancar:hover { background: rgba(255,255,255,0.25); }
.tl-fitxa-llibre .lightbox-imatge-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #E8D5C4, #D4B896);
    display: flex; align-items: center; justify-content: center;
    font-size: 120px;
    position: relative;
  }
.tl-fitxa-llibre .lightbox-imatge-wrapper img {
    width: 100%; height: 100%; object-fit: contain;
  }
.tl-fitxa-llibre .lightbox-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }
.tl-fitxa-llibre .lightbox-fletxa {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
  }
.tl-fitxa-llibre .lightbox-fletxa:hover { background: rgba(255,255,255,0.25); }
.tl-fitxa-llibre .lightbox-fletxa:disabled { opacity: 0.25; cursor: default; }
.tl-fitxa-llibre .lightbox-contador {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
  }
.tl-fitxa-llibre .lightbox-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .lightbox-thumb {
    width: 48px;
    aspect-ratio: 3/4;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s;
    background: #555;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
  }
.tl-fitxa-llibre .lightbox-thumb:hover { border-color: rgba(255,255,255,0.6); }
.tl-fitxa-llibre .lightbox-thumb.activa { border-color: white; }
.tl-fitxa-llibre .lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Botons compra */
.tl-fitxa-llibre .compra-botons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
.tl-fitxa-llibre .btn-compra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
    border: none;
    cursor: pointer;
  }
.tl-fitxa-llibre .btn-compra-principal {
    background: var(--marro);
    color: white;
    box-shadow: 0 4px 16px rgba(193,123,63,0.3);
  }
.tl-fitxa-llibre .btn-compra-principal:hover { background: var(--marro-fosc); transform: translateY(-2px); }
.tl-fitxa-llibre .btn-compra-secundari {
    background: var(--blanc);
    color: var(--text);
    border: 1.5px solid var(--border);
  }
.tl-fitxa-llibre .btn-compra-secundari:hover { border-color: var(--marro); color: var(--marro); }
.tl-fitxa-llibre .compra-separador {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
  }
.tl-fitxa-llibre .btn-compra-biblioteca {
    background: var(--blanc);
    color: var(--verd);
    border: 1.5px solid #C8DFC4;
  }
.tl-fitxa-llibre .btn-compra-biblioteca:hover { background: var(--verd-molt-clar); border-color: var(--verd); }
.tl-fitxa-llibre .compra-nota {
    font-size: 11px;
    color: var(--text-suau);
    text-align: center;
    font-style: italic;
    margin-top: 4px;
  }
/* INFO DRETA */
.tl-fitxa-llibre .fitxa-info { padding-top: 4px; }
.tl-fitxa-llibre .fitxa-etapa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--verd);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
  }
.tl-fitxa-llibre .etapa-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--verd-clar);
  }
.tl-fitxa-llibre .fitxa-titol {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 0;
  }
/* Autors */
.tl-fitxa-llibre .fitxa-autors {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
  }
.tl-fitxa-llibre .fitxa-autor-fila {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
  }
.tl-fitxa-llibre .autor-rol {
    font-size: 12px;
    color: var(--text-suau);
    font-weight: 400;
    min-width: 80px;
  }
.tl-fitxa-llibre .fitxa-links-mes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    align-items: flex-start;
  }
.tl-fitxa-llibre .fitxa-link-mes {
    background: var(--verd-molt-clar);
    border: 1.5px solid #C8DFC4;
    border-radius: 10px;
    font-size: 13px;
    color: var(--verd);
    font-weight: 600;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    padding: 9px 14px;
    text-align: left;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 260px;
  }
.tl-fitxa-llibre .fitxa-link-mes:hover {
    background: var(--verd);
    border-color: var(--verd);
    color: white;
  }
.tl-fitxa-llibre .autor-mes-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--marro);
    font-weight: 600;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    margin-left: 4px;
  }
.tl-fitxa-llibre .autor-mes-btn:hover { color: var(--marro-fosc); }
.tl-fitxa-llibre .autor-nom {
    color: var(--marro-fosc);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
  }
.tl-fitxa-llibre .autor-nom:hover { color: var(--marro); text-decoration: underline; }
/* Metadades */
.tl-fitxa-llibre .fitxa-meta-wrapper {
    margin-bottom: 8px;
    width: 100%;
  }
.tl-fitxa-llibre .fitxa-meta {
    display: inline-grid;
    grid-template-columns: max-content max-content;
    gap: 14px 80px;
    padding: 18px 20px;
    background: var(--blanc);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
.tl-fitxa-llibre .meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
.tl-fitxa-llibre .meta-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-suau);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
.tl-fitxa-llibre .meta-sep { display: none; }
.tl-fitxa-llibre .meta-valor {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    max-width: 140px;
    word-wrap: break-word;
  }
/* Temàtiques */
.tl-fitxa-llibre .fitxa-tematiques {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
  }
.tl-fitxa-llibre .tematica-pill {
    background: #FBF5EA;
    border: 1px solid #E0C9A8;
    color: var(--text-suau);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
  }
.tl-fitxa-llibre .tematica-pill:hover { background: var(--crema-fosca); border-color: var(--marro); color: var(--marro); }
/* Valoració curadora */
.tl-fitxa-llibre .fitxa-valoracio {
    display: flex;
    align-items: center;
    gap: 10px;
  }
.tl-fitxa-llibre .valoracio-text {
    font-size: 13px;
    color: var(--text-suau);
  }
/* COS DE LA PÀGINA */
.tl-fitxa-llibre .fitxa-cos {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 48px;
  }
/* Sinopsi */
.tl-fitxa-llibre .seccio {
    margin-bottom: 48px;
  }
.tl-fitxa-llibre .seccio-titol {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
  }
.tl-fitxa-llibre .seccio-titol-petit {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
  }
.tl-fitxa-llibre .premi-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--marro-fosc);
    background: var(--crema-fosca);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
  }
.tl-fitxa-llibre .fitxa-info-fila2 {
    margin-top: 24px;
  }
.tl-fitxa-llibre .ancles-cos {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .ancla-link {
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
.tl-fitxa-llibre .mes-seccio {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
.tl-fitxa-llibre .mes-seccio-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .sinopsi-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    font-weight: 300;
  }
/* Comentari curadora */
.tl-fitxa-llibre .comentari-bloc {
    background: var(--crema-fosca);
    border-left: 4px solid var(--marro);
    border-radius: 0 16px 16px 0;
    padding: 28px 32px;
  }
.tl-fitxa-llibre .comentari-cap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
.tl-fitxa-llibre .comentari-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marro), var(--marro-fosc));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
.tl-fitxa-llibre .comentari-qui {
    font-size: 13px;
    font-weight: 700;
    color: var(--marro-fosc);
  }
.tl-fitxa-llibre .comentari-rol {
    font-size: 12px;
    color: var(--text-suau);
    font-weight: 300;
  }
.tl-fitxa-llibre .comentari-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    font-weight: 300;
  }
.tl-fitxa-llibre .comentari-text strong {
    font-style: normal;
    font-weight: 600;
    color: var(--marro-fosc);
  }
/* Activitats relacionades */
.tl-fitxa-llibre .activitats-rel {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
.tl-fitxa-llibre .act-rel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.2s;
  }
.tl-fitxa-llibre .act-rel-card:hover { border-color: var(--verd); transform: translateX(4px); }
.tl-fitxa-llibre .act-rel-icona {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: var(--verd-molt-clar);
    flex-shrink: 0;
  }
.tl-fitxa-llibre .act-rel-titol { font-size: 14px; font-weight: 600; color: var(--text); }
.tl-fitxa-llibre .act-rel-tipus { font-size: 12px; color: var(--text-suau); }
.tl-fitxa-llibre .act-rel-arrow { margin-left: auto; color: var(--verd); font-size: 18px; }
/* CARRUSEL ET POT AGRADAR */
.tl-fitxa-llibre .similars-seccio {
    background: var(--blanc);
    padding: 40px 48px;
    border-top: 1px solid var(--border);
  }
.tl-fitxa-llibre .similars-titol {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
  }
.tl-fitxa-llibre .similars-titol em { color: var(--marro); font-style: italic; }
.tl-fitxa-llibre .similars-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
  }
.tl-fitxa-llibre .similars-carrusel {
    display: flex;
    gap: 20px;
    flex: 1;
    padding: 8px 4px 12px;
    overflow: hidden;
    transition: none;
  }
.tl-fitxa-llibre .similar-arrow {
    background: var(--blanc);
    border: 1px solid var(--border);
    color: var(--text-suau);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
.tl-fitxa-llibre .similar-arrow:hover { background: var(--marro); border-color: var(--marro); color: white; }
.tl-fitxa-llibre .similar-card {
    flex: 0 0 calc((100% - 100px) / 6);
    width: calc((100% - 100px) / 6);
    min-width: calc((100% - 100px) / 6);
    max-width: calc((100% - 100px) / 6);
    background: var(--blanc);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
  }
.tl-fitxa-llibre .similar-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: var(--marro); }
.tl-fitxa-llibre .similar-cover {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
  }
.tl-fitxa-llibre .sc-a { background: linear-gradient(135deg, #C4D4E8, #A0B8D4); }
.tl-fitxa-llibre .sc-b { background: linear-gradient(135deg, #C4E8C4, #96C896); }
.tl-fitxa-llibre .sc-c { background: linear-gradient(135deg, #E8C4D5, #D496B4); }
.tl-fitxa-llibre .sc-d { background: linear-gradient(135deg, #D4E8C4, #A8D090); }
.tl-fitxa-llibre .sc-e { background: linear-gradient(135deg, #E8E4C4, #D0C888); }
.tl-fitxa-llibre .similar-info { padding: 10px 12px 8px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tl-fitxa-llibre .similar-etapa { font-size: 10px; color: var(--verd); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.tl-fitxa-llibre .similar-titol { font-family: "Playfair Display", serif; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.tl-fitxa-llibre .similar-autor { font-size: 11px; color: var(--text-suau); margin-bottom: 6px; }
.tl-fitxa-llibre .similar-edat { font-size: 11px; color: var(--marro); font-weight: 600; margin-top: auto; }
/* TABS COL·LECCIÓ / AUTOR */
.tl-fitxa-llibre .tabs-wrapper {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
  }
.tl-fitxa-llibre .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-suau);
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
  }
.tl-fitxa-llibre .tab-btn:hover { color: var(--marro); }
.tl-fitxa-llibre .tab-btn.actiu { color: var(--marro-fosc); border-bottom-color: var(--marro); }
.tl-fitxa-llibre .col-card-mes {
    position: relative;
  }
.tl-fitxa-llibre .col-card-mes .col-cover {
    opacity: 0.35;
  }
.tl-fitxa-llibre .col-card-mes-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
.tl-fitxa-llibre .col-card-mes-num {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
  }
.tl-fitxa-llibre .col-card-mes-text {
    font-size: 11px;
    color: var(--text-suau);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
  }
.tl-fitxa-llibre .tab-panel { display: none; }
.tl-fitxa-llibre .tab-panel.actiu { display: block; }
/* COL·LECCIÓ */
.tl-fitxa-llibre .col-seccio {
    background: var(--crema-fosca);
    padding: 36px 48px;
    border-top: 1px solid var(--border);
  }
.tl-fitxa-llibre .col-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
.tl-fitxa-llibre .col-titol {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    color: var(--text);
    margin-bottom: 2px;
  }
.tl-fitxa-llibre .col-sub {
    font-size: 13px;
    color: var(--text-suau);
  }
.tl-fitxa-llibre .col-btn-veure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blanc);
    border: 1.5px solid var(--border);
    color: var(--marro-fosc);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
  }
.tl-fitxa-llibre .col-btn-veure:hover { border-color: var(--marro); color: var(--marro); }
.tl-fitxa-llibre .col-llibres {
    display: flex;
    gap: 14px;
  }
.tl-fitxa-llibre .col-card {
    width: 100px;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
  }
.tl-fitxa-llibre .col-card:hover { transform: translateY(-4px); }
.tl-fitxa-llibre .col-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
.tl-fitxa-llibre .col-card-titol { font-size: 11px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }
/* MODAL COL·LECCIÓ */
.tl-fitxa-llibre .col-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    backdrop-filter: blur(4px);
  }
.tl-fitxa-llibre .col-modal-overlay.obert { display: flex; }
.tl-fitxa-llibre .col-modal {
    background: var(--blanc);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: modalEntrada 0.25s ease;
  }
@keyframes modalEntrada {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
.tl-fitxa-llibre .col-modal-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--blanc);
    z-index: 1;
  }
.tl-fitxa-llibre .col-modal-titol {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
  }
.tl-fitxa-llibre .col-modal-sub { font-size: 13px; color: var(--text-suau); }
.tl-fitxa-llibre .col-modal-tancar {
    background: var(--crema);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-suau);
    transition: all 0.2s;
  }
.tl-fitxa-llibre .col-modal-tancar:hover { background: var(--crema-fosca); }
.tl-fitxa-llibre .col-modal-graella {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 28px 28px;
  }
.tl-fitxa-llibre .col-modal-card {
    text-decoration: none;
    transition: transform 0.2s;
    width: 90px;
    flex-shrink: 0;
  }
.tl-fitxa-llibre .col-modal-card:hover { transform: translateY(-4px); }
.tl-fitxa-llibre .col-modal-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
.tl-fitxa-llibre .col-modal-titol-card { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; margin-bottom: 2px; }
.tl-fitxa-llibre .col-modal-num { font-size: 10px; color: var(--text-suau); text-align: center; }
/* HERO TABS */
.tl-fitxa-llibre .hero-tabs-wrapper {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
.tl-fitxa-llibre .hero-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 14px;
  }
.tl-fitxa-llibre .hero-tab-btn {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-suau);
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
  }
.tl-fitxa-llibre .hero-tab-btn:hover { color: var(--marro); }
.tl-fitxa-llibre .hero-tab-btn.actiu { color: var(--marro-fosc); border-bottom-color: var(--marro); }
.tl-fitxa-llibre .hero-tab-panel { display: none; }
.tl-fitxa-llibre .hero-tab-panel.actiu { display: block; }
.tl-fitxa-llibre .hero-col-llibres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .hero-col-card {
    width: 56px;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
    position: relative;
  }
.tl-fitxa-llibre .hero-col-card:hover { transform: translateY(-3px); }
.tl-fitxa-llibre .hero-col-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
.tl-fitxa-llibre .hero-col-titol {
    font-size: 9px;
    color: var(--text-suau);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
  }
.tl-fitxa-llibre .hero-col-mes { cursor: pointer; }
.tl-fitxa-llibre .hero-col-mes-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    aspect-ratio: 3/4;
    display: flex; align-items: center; justify-content: center;
  }
.tl-fitxa-llibre .hero-col-mes-num {
    font-family: "Playfair Display", serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
/* COL·LECCIÓ COMPACTA HORITZONTAL */
.tl-fitxa-llibre .col-compact-seccio {
    background: var(--blanc);
    border-top: 3px solid var(--marro);
    border-bottom: 1px solid var(--border);
    padding: 20px 48px;
  }
.tl-fitxa-llibre .col-compact-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 16px;
  }
.tl-fitxa-llibre .col-compact-llibres {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
.tl-fitxa-llibre .col-compact-card {
    width: 80px;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
    position: relative;
  }
.tl-fitxa-llibre .col-compact-card:hover { transform: translateY(-3px); }
.tl-fitxa-llibre .col-compact-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }
.tl-fitxa-llibre .col-compact-titol {
    font-size: 10px;
    color: var(--text-suau);
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
  }
.tl-fitxa-llibre .col-compact-mes { cursor: pointer; }
.tl-fitxa-llibre .col-compact-mes-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    aspect-ratio: 3/4;
    display: flex; align-items: center; justify-content: center;
  }
.tl-fitxa-llibre .col-compact-mes-num {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
.tl-fitxa-llibre .video-anchor-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #3D1F0D;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    margin-top: 14px;
    transition: all 0.2s;
  }
.tl-fitxa-llibre .video-anchor-pill:hover {
    background: #4F2910;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
.tl-fitxa-llibre .video-anchor-pill .pill-punt {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #E8A870;
    flex-shrink: 0;
    animation: parpelleig 2s ease-in-out infinite;
  }
@keyframes parpelleig {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
/* MODAL VÍDEO */
.tl-fitxa-llibre .video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    padding: 24px;
  }
.tl-fitxa-llibre .video-modal-overlay.obert {
    opacity: 1;
    pointer-events: all;
  }
.tl-fitxa-llibre .video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
.tl-fitxa-llibre .video-modal-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
.tl-fitxa-llibre .video-modal-titol {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    color: white;
    font-weight: 600;
  }
.tl-fitxa-llibre .video-modal-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(193,123,63,0.3);
    color: #E8A870;
    border: 1px solid rgba(193,123,63,0.35);
  }
.tl-fitxa-llibre .video-modal-tancar {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
  }
.tl-fitxa-llibre .video-modal-tancar:hover { background: rgba(255,255,255,0.25); }
.tl-fitxa-llibre .video-modal-player {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #1A0E06;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 80px;
    position: relative;
  }
.tl-fitxa-llibre .video-modal-player iframe,
.tl-fitxa-llibre .video-modal-player video {
    display: block;
    width: 100%; height: 100%;
    border: none;
  }
.tl-fitxa-llibre .video-play-btn {
    position: absolute;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(193,123,63,0.9);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding-left: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
.tl-fitxa-llibre .video-play-btn:hover { background: var(--marro); transform: scale(1.08); }
.tl-fitxa-llibre .video-durada {
    position: absolute;
    bottom: 12px; right: 14px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
  }
/* AJUST EDITORIAL FITXA */
.tl-fitxa-llibre .fitxa-hero {
    align-items: start;
  }
.tl-fitxa-llibre .fitxa-hook {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1.45;
    color: var(--marro-fosc);
    font-style: italic;
    margin: 6px 0 18px;
    max-width: 680px;
  }
.tl-fitxa-llibre .fitxa-curadoria-destacada {
    background: var(--blanc);
    border-left: 4px solid var(--marro);
    border-radius: 0 16px 16px 0;
    padding: 18px 22px;
    margin: 18px 0 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  }
.tl-fitxa-llibre .curadoria-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--marro);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
  }
.tl-fitxa-llibre .curadoria-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    font-weight: 300;
  }
.tl-fitxa-llibre .curadoria-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--marro-fosc);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
.tl-fitxa-llibre .fitxa-info-fila2 {
    margin-top: 12px;
  }
.tl-fitxa-llibre .sinopsi-text {
    max-width: 760px;
  }
.tl-fitxa-llibre .bloc-on-trobar {
    margin-top: 24px;
    padding: 18px;
    background: rgba(255,255,255,0.62);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 360px;
  }
.tl-fitxa-llibre .bloc-on-trobar-titol {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--marro-fosc);
    margin-bottom: 6px;
  }
.tl-fitxa-llibre .bloc-on-trobar-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-suau);
    margin-bottom: 14px;
  }
.tl-fitxa-llibre .compra-botons {
    margin-top: 0;
  }
.tl-fitxa-llibre .fitxa-links-secundaris {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
  }
.tl-fitxa-llibre .fitxa-links-secundaris .ancla-link {
    font-size: 13px;
  }
.tl-fitxa-llibre .fitxa-cos {
    margin-top: 16px;
  }
.tl-fitxa-llibre .fitxa-meta-wrapper {
    opacity: 0.92;
  }
/* FOOTER */
/* AJUST EDITORIAL FITXA — v4 */
.tl-fitxa-llibre .fitxa-hero-editorial {
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 56px;
    align-items: start;
    }
.tl-fitxa-llibre .fitxa-info-editorial { padding-top: 10px; }
.tl-fitxa-llibre .fitxa-info-editorial .fitxa-titol { margin-bottom: 18px; }
.tl-fitxa-llibre .fitxa-autors-editorial { margin-top: 0; gap: 6px; }
.tl-fitxa-llibre .bloc-on-trobar-hero {
    margin-top: 4px;
    background: var(--crema);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    max-width: 250px;
  }
.tl-fitxa-llibre .bloc-on-trobar-hero .compra-botons { margin-top: 14px; }
.tl-fitxa-llibre .fitxa-portada-col .video-anchor-pill { width: 100%; justify-content: center; margin-top: 22px; }
.tl-fitxa-llibre .fitxa-cos-editorial {
    max-width: 820px;
    padding: 0 0 56px;
  }
.tl-fitxa-llibre .fitxa-cos-editorial .seccio {
    margin-bottom: 34px;
  }
.tl-fitxa-llibre .seccio-relat {
    padding: 34px 0 4px;
  }
.tl-fitxa-llibre .relat-entradeta {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.45;
    color: var(--marro-fosc);
    margin-bottom: 18px;
  }
.tl-fitxa-llibre .relat-text,
.tl-fitxa-llibre .seccio-sinopsi .sinopsi-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 12px;
  }
.tl-fitxa-llibre .seccio-dades .fitxa-meta-wrapper {
    padding: 0;
    background: transparent;
    border: none;
  }
.tl-fitxa-llibre .fitxa-meta-editorial {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px 26px;
    width: 100%;
    border: 1px solid var(--border);
    background: var(--crema);
    padding: 22px;
  }
.tl-fitxa-llibre .fitxa-meta-editorial .meta-valor { max-width: none; }
.tl-fitxa-llibre .fitxa-tematiques-editorial { margin-bottom: 0; }
.tl-fitxa-llibre .fitxa-tematiques-editorial .tematica-pill {
    background: var(--blanc);
    color: var(--marro-fosc);
    border-color: var(--border);
    text-transform: none;
  }
.tl-fitxa-llibre .context-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .context-link {
    display: inline-flex;
    background: var(--verd-molt-clar);
    color: var(--verd);
    border: 1px solid #C8DFC4;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
.tl-fitxa-llibre .context-link:hover { background: var(--verd); color: white; }
.tl-fitxa-llibre .seccio-mes {
    background: var(--crema);
    padding: 30px 40px;
    margin-left: -40px;
    margin-right: -40px;
    border-radius: 18px;
    overflow: visible;
  }
.tl-fitxa-llibre .seccio-mes .seccio-titol em { color: var(--marro); }
@media (max-width: 920px) {
.tl-fitxa-llibre .fitxa-hero-editorial { grid-template-columns: 1fr; gap: 28px; }
.tl-fitxa-llibre .bloc-on-trobar-hero { max-width: 360px; }
.tl-fitxa-llibre .fitxa-meta-editorial { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.tl-fitxa-llibre .fitxa-sinopsi-inline {
    margin-top: 24px;
    max-width: 760px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-suau);
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-line {
    height: 1px;
    background: var(--border);
    margin: 8px 0 10px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 10px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-text p:last-child {
    margin-bottom: 0;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .fitxa-tematiques {
    margin-top: 18px;
    margin-bottom: 0;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .tematica-pill {
    background: rgba(255,255,255,0.45);
    border-color: rgba(224,201,168,0.75);
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .fitxa-tematiques-editorial {
    margin-top: 18px;
    margin-bottom: 0;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline {
    max-width: 720px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .fitxa-tematiques-editorial {
    margin-top: 18px;
    margin-bottom: 0;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .tematica-pill {
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(224,201,168,0.6);
    color: var(--marro-fosc);
    padding: 5px 13px;
  }
.tl-fitxa-llibre .fitxa-sinopsi-inline .tematica-pill:hover {
    background: rgba(255,255,255,0.65);
    border-color: rgba(193,123,63,0.55);
    color: var(--marro-fosc);
  }
.tl-fitxa-llibre .seccio-editorial {
    max-width: 720px;
    margin: 40px auto 0;
  }
.tl-fitxa-llibre .seccio-editorial h3 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--marro-fosc);
  }
.tl-fitxa-llibre .seccio-editorial p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
.tl-fitxa-llibre .seccio-editorial {
    max-width: 720px;
    margin: 32px 0 0;
  }
.tl-fitxa-llibre .seccio-coleccio-completa {
    max-width: 980px;
    margin: 48px auto 0;
  }
.tl-fitxa-llibre .coleccio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
  }
.tl-fitxa-llibre .coleccio-header h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--marro-fosc);
    margin-bottom: 6px;
  }
.tl-fitxa-llibre .coleccio-header p {
    font-size: 14px;
    color: var(--text-suau);
    font-weight: 300;
    line-height: 1.5;
  }
.tl-fitxa-llibre .coleccio-graella {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
.tl-fitxa-llibre .coleccio-card {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }
.tl-fitxa-llibre .coleccio-card:hover {
    transform: translateY(-3px);
    border-color: var(--marro);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09);
  }
.tl-fitxa-llibre .coleccio-card-actual {
    border-color: rgba(193,123,63,0.65);
    box-shadow: 0 0 0 1px rgba(193,123,63,0.22);
  }
.tl-fitxa-llibre .coleccio-cover {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #E8D5C4, #D4B896);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }
.tl-fitxa-llibre .coleccio-cover-b { background: linear-gradient(135deg, #EEF4EB, #C8DFC4); }
.tl-fitxa-llibre .coleccio-cover-c { background: linear-gradient(135deg, #FDF0E4, #F0D4B8); }
.tl-fitxa-llibre .coleccio-cover-d { background: linear-gradient(135deg, #F5ECD7, #E8D5B8); }
.tl-fitxa-llibre .coleccio-info {
    padding: 12px 14px 14px;
  }
.tl-fitxa-llibre .coleccio-badge {
    display: inline-block;
    background: var(--verd-molt-clar);
    border: 1px solid rgba(74,124,89,0.22);
    color: var(--verd);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
  }
.tl-fitxa-llibre .coleccio-info h4 {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 4px;
  }
.tl-fitxa-llibre .coleccio-info p {
    font-size: 12px;
    color: var(--text-suau);
    line-height: 1.4;
  }
@media (max-width: 900px) {
.tl-fitxa-llibre .coleccio-graella {
      grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
.tl-fitxa-llibre .coleccio-graella {
      grid-template-columns: 1fr;
    }
}
.tl-fitxa-llibre .seccio-explorar {
  max-width: 980px;
  margin: 48px auto 0;
}
.tl-fitxa-llibre .seccio-explorar h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 24px;
}
.tl-fitxa-llibre .explorar-bloc {
  margin-bottom: 28px;
}
.tl-fitxa-llibre .explorar-bloc h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}
.tl-fitxa-llibre .carousel-placeholder {
  background: #F5ECD7;
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  color: #6B6B6B;
}
/* FOOTER UNIFICAT */
@media (max-width: 700px) {

}
/* VALORACIÓ */
.tl-fitxa-llibre .fitxa-valoracio {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .valoracio-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-suau);
    white-space: nowrap;
  }
.tl-fitxa-llibre .valoracio-estrelles {
    display: flex;
    align-items: center;
    gap: 3px;
  }
.tl-fitxa-llibre .estrella {
    font-size: 22px;
    cursor: pointer;
    color: #D9C9B0;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
    user-select: none;
  }
.tl-fitxa-llibre .estrella:hover,
.tl-fitxa-llibre .estrella.hover {
    color: #E8A43A;
    transform: scale(1.15);
  }
.tl-fitxa-llibre .estrella.activa {
    color: #E8A43A;
  }
.tl-fitxa-llibre .valoracio-mitjana {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-suau);
    margin-left: 4px;
  }
.tl-fitxa-llibre .valoracio-mitjana strong {
    color: var(--text);
    font-size: 15px;
  }
/* MODAL LOGIN */
.tl-fitxa-llibre .login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
.tl-fitxa-llibre .login-modal-overlay.obert {
    opacity: 1;
    pointer-events: all;
  }
.tl-fitxa-llibre .login-modal {
    background: white;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
  }
.tl-fitxa-llibre .login-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
.tl-fitxa-llibre .login-modal h3 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 10px;
  }
.tl-fitxa-llibre .login-modal p {
    font-size: 14px;
    color: var(--text-suau);
    line-height: 1.6;
    margin-bottom: 24px;
  }
.tl-fitxa-llibre .login-modal-botons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
.tl-fitxa-llibre .btn-login-google,
.tl-fitxa-llibre .btn-login-apple,
.tl-fitxa-llibre .btn-login-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    width: 100%;
  }
.tl-fitxa-llibre .btn-login-google {
    background: white;
    border: 1.5px solid #E0E0E0;
    color: #333;
  }
.tl-fitxa-llibre .btn-login-google:hover { background: #F5F5F5; }
.tl-fitxa-llibre .btn-login-apple {
    background: #111;
    color: white;
  }
.tl-fitxa-llibre .btn-login-apple:hover { background: #333; }
.tl-fitxa-llibre .btn-login-mail {
    background: var(--marro);
    color: white;
  }
.tl-fitxa-llibre .btn-login-mail:hover { background: var(--marro-fosc); }
.tl-fitxa-llibre .login-modal-tancar {
    position: absolute;
    top: 14px; right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-suau);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
  }
.tl-fitxa-llibre .login-modal-tancar:hover { background: var(--verd-molt-clar); }
.tl-fitxa-llibre .login-modal-peu {
    font-size: 12px;
    color: #BBBBBB;
  }
.tl-fitxa-llibre .fitxa-context-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
.tl-fitxa-llibre .fitxa-context-pill {
    display: inline-flex;
    align-items: center;
    background: var(--verd-molt-clar);
    border: 1px solid rgba(74,124,89,0.22);
    color: var(--verd);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
.tl-fitxa-llibre .fitxa-context-pill:hover {
    background: rgba(74,124,89,0.12);
    border-color: rgba(74,124,89,0.38);
    color: var(--verd);
  }
.tl-fitxa-llibre .fitxa-context-links-outside {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-fitxa-llibre .fitxa-context-extra {
  margin-top: 10px;
}
.tl-fitxa-llibre .fitxa-context-links-outside {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-fitxa-llibre .fitxa-context-links-outside {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
.tl-fitxa-llibre .fitxa-context-links-outside .tematica-pill {
    text-decoration: none;
  }
.tl-fitxa-llibre .explorar-subtitol {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.tl-fitxa-llibre .explorar-subtitol .accent {
  color: var(--marro);
}
.tl-fitxa-llibre .explorar-subtitol {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border);
  }
.tl-fitxa-llibre .explorar-subtitol em {
    color: var(--marro);
    font-style: italic;
  }
/* Per continuar explorant — versió més compacta */
.tl-fitxa-llibre .seccio-explorar,
.tl-fitxa-llibre .seccio-explorar-final {
    max-width: 980px;
    margin: 48px auto 0;
  }
.tl-fitxa-llibre .seccio-explorar > h3,
.tl-fitxa-llibre .seccio-explorar-final > h3,
.tl-fitxa-llibre .seccio-explorar .seccio-cap h3,
.tl-fitxa-llibre .seccio-explorar-final .seccio-cap h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
  }
.tl-fitxa-llibre .explorar-subtitol,
.tl-fitxa-llibre #mes-coleccio h2,
.tl-fitxa-llibre #mes-coleccio h3,
.tl-fitxa-llibre #mes-autora h2,
.tl-fitxa-llibre #mes-autora h3 {
    font-family: "Playfair Display", serif !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    line-height: 1.25 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
  }
.tl-fitxa-llibre .explorar-subtitol em,
.tl-fitxa-llibre #mes-coleccio em,
.tl-fitxa-llibre #mes-autora em {
    color: var(--marro) !important;
    font-style: italic !important;
  }
.tl-fitxa-llibre #mes-coleccio,
.tl-fitxa-llibre #mes-autora {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 30px !important;
    box-shadow: none !important;
  }
.tl-fitxa-llibre .seccio-explorar .carousel,
.tl-fitxa-llibre .seccio-explorar-final .carousel,
.tl-fitxa-llibre #mes-coleccio .carousel,
.tl-fitxa-llibre #mes-autora .carousel {
    margin-top: 0 !important;
  }
.tl-fitxa-llibre .seccio-explorar {
    padding-top: 0 !important;
  }
.tl-fitxa-llibre #mes-coleccio .explorar-subtitol,
.tl-fitxa-llibre #mes-coleccio h2,
.tl-fitxa-llibre #mes-coleccio h3 {
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 16px !important;
  }
/* Igualar línia de col·lecció amb autora */
.tl-fitxa-llibre #mes-coleccio h2,
.tl-fitxa-llibre #mes-coleccio h3,
.tl-fitxa-llibre #mes-coleccio .explorar-subtitol {
  border-bottom: 2px solid var(--border) !important;
  padding-bottom: 18px !important;
  margin-bottom: 22px !important;
}
/* Compactar espai entre fitxa i cos */
.tl-fitxa-llibre .fitxa-cos,
.tl-fitxa-llibre .seccio,
.tl-fitxa-llibre .seccio-explorar,
.tl-fitxa-llibre .seccio-explorar-final {
  margin-top: 24px !important;
}
.tl-fitxa-llibre .seccio:first-of-type {
  margin-top: 16px !important;
}
/* Reduir espai entre fitxa i dades */
.tl-fitxa-llibre .seccio-dades,
.tl-fitxa-llibre #dades-llibre {
  margin-top: 12px !important;
}
.tl-fitxa-llibre .seccio-dades h2,
.tl-fitxa-llibre .seccio-dades h3 {
  margin-top: 0 !important;
}
/* FORÇAR eliminació espai entre fitxa i dades */
.tl-fitxa-llibre .seccio,
.tl-fitxa-llibre .seccio-dades,
.tl-fitxa-llibre #dades-llibre {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.tl-fitxa-llibre .fitxa + .seccio,
.tl-fitxa-llibre .fitxa + section {
  margin-top: 12px !important;
}
/* també pot venir del contenidor general */
.tl-fitxa-llibre main > section:first-of-type {
  margin-top: 12px !important;
}
/* Amagar títol "Per continuar explorant" i la línia */
.tl-fitxa-llibre h2:has(+ .explorar-carrusels),
.tl-fitxa-llibre h3:has(+ .explorar-carrusels),
.tl-fitxa-llibre h2:has(+ .explorar-carrusels-final),
.tl-fitxa-llibre h3:has(+ .explorar-carrusels-final) {
  display: none !important;
}
/* Amagar possibles separadors */
.tl-fitxa-llibre .seccio-explorar::before,
.tl-fitxa-llibre .seccio-explorar-final::before {
  display: none !important;
}
/* Reduir espai superior línia "Més de la col·lecció" */
.tl-fitxa-llibre #mes-coleccio .explorar-subtitol {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Et pot agradar també - fons beige suau */
.tl-fitxa-llibre .seccio-recomanats,
.tl-fitxa-llibre #recomanats,
.tl-fitxa-llibre .seccio-et-pot-agradar {
  background: #F5ECD7;
  padding: 48px 0;
  margin-top: 48px;
}
/* Ajustar targetes recomanats com catàleg */
.tl-fitxa-llibre .seccio-recomanats .carousel,
.tl-fitxa-llibre #recomanats .carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.tl-fitxa-llibre .seccio-recomanats .card,
.tl-fitxa-llibre #recomanats .card,
.tl-fitxa-llibre .seccio-recomanats .llibre-card,
.tl-fitxa-llibre #recomanats .llibre-card {
  min-width: 180px !important;
  max-width: 180px !important;
  flex: 0 0 auto;
}
/* ajustar imatge proporció */
.tl-fitxa-llibre .seccio-recomanats .card img,
.tl-fitxa-llibre #recomanats .card img {
  width: 100%;
  height: auto;
}
/* Et pot agradar també — targetes mida catàleg, mantenint carrusel */
.tl-fitxa-llibre .seccio-recomanats .mes-seccio-wrap,
.tl-fitxa-llibre #recomanats .mes-seccio-wrap,
.tl-fitxa-llibre .seccio-et-pot-agradar .mes-seccio-wrap {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  align-items: stretch !important;
}
.tl-fitxa-llibre .seccio-recomanats .col-modal-card,
.tl-fitxa-llibre #recomanats .col-modal-card,
.tl-fitxa-llibre .seccio-et-pot-agradar .col-modal-card,
.tl-fitxa-llibre .seccio-recomanats .llibre-card,
.tl-fitxa-llibre #recomanats .llibre-card,
.tl-fitxa-llibre .seccio-et-pot-agradar .llibre-card,
.tl-fitxa-llibre .seccio-recomanats .mes-seccio-wrap > a,
.tl-fitxa-llibre #recomanats .mes-seccio-wrap > a,
.tl-fitxa-llibre .seccio-et-pot-agradar .mes-seccio-wrap > a {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  flex: 0 0 180px !important;
  flex-grow: 0 !important;
}
.tl-fitxa-llibre .seccio-recomanats .col-modal-cover,
.tl-fitxa-llibre #recomanats .col-modal-cover,
.tl-fitxa-llibre .seccio-et-pot-agradar .col-modal-cover,
.tl-fitxa-llibre .seccio-recomanats .llibre-cover,
.tl-fitxa-llibre #recomanats .llibre-cover,
.tl-fitxa-llibre .seccio-et-pot-agradar .llibre-cover {
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
}
.tl-fitxa-llibre .seccio-recomanats .col-modal-titol-card,
.tl-fitxa-llibre #recomanats .col-modal-titol-card,
.tl-fitxa-llibre .seccio-et-pot-agradar .col-modal-titol-card {
  font-size: 13px !important;
  line-height: 1.25 !important;
}
/* Si el carrusel usa un grid intern, el forcem a carrusel */
.tl-fitxa-llibre .seccio-recomanats .llibres-graella,
.tl-fitxa-llibre #recomanats .llibres-graella,
.tl-fitxa-llibre .seccio-et-pot-agradar .llibres-graella {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  grid-template-columns: none !important;
}
/* Et pot agradar també — mida targeta com catàleg */
.tl-fitxa-llibre .similars-seccio {
  background: #F5ECD7 !important;
  padding: 40px 48px !important;
}
.tl-fitxa-llibre .similars-wrapper {
  overflow: hidden !important;
}
.tl-fitxa-llibre .similars-carrusel {
  display: flex !important;
  gap: 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex: 1 1 auto !important;
  scroll-snap-type: x mandatory;
}
/* Reduir alçada secció "Et pot agradar també" */
.tl-fitxa-llibre .similars-seccio {
  padding: 24px 48px !important;
}
/* Ajust fi secció recomanats */
.tl-fitxa-llibre .similars-seccio {
  padding: 20px 48px !important;
}
.tl-fitxa-llibre .similars-titol {
  margin-bottom: 20px !important;
}
/* Ajust color secció recomanats més suau */
.tl-fitxa-llibre .similars-seccio {
  background: #FAF6EE !important;
  border-top: 1px solid rgba(0,0,0,0.04);
}
/* Canviar fons fitxa a blanc trencat */
.tl-fitxa-llibre .fitxa,
.tl-fitxa-llibre .fitxa-container,
.tl-fitxa-llibre .seccio-fitxa {
  background: #FCFCF9 !important;
}
/* Reduir espai entre fitxa i "Dades del llibre" */
.tl-fitxa-llibre .seccio-dades,
.tl-fitxa-llibre #dades-llibre {
  margin-top: 8px !important;
}
.tl-fitxa-llibre .seccio-dades h2,
.tl-fitxa-llibre .seccio-dades h3 {
  margin-top: 0 !important;
}
/* FORÇAR reducció espai entre fitxa i dades */
.tl-fitxa-llibre .fitxa + .seccio {
  margin-top: 6px !important;
}
/* si hi ha wrapper intermedi */
.tl-fitxa-llibre .fitxa-container + .seccio,
.tl-fitxa-llibre .fitxa-wrapper + .seccio {
  margin-top: 6px !important;
}
/* assegurar títol no afegeix espai */
.tl-fitxa-llibre .seccio-titol {
  margin-top: 0 !important;
}
/* Eliminar espai real: ve de la fitxa (margin-bottom) */
.tl-fitxa-llibre .fitxa,
.tl-fitxa-llibre .fitxa-container,
.tl-fitxa-llibre .fitxa-wrapper {
  margin-bottom: 8px !important;
}
/* i assegurar que la següent secció no afegeix espai */
.tl-fitxa-llibre .seccio {
  margin-top: 0 !important;
}
/* Ajust marge superior títol "Dades del llibre" */
.tl-fitxa-llibre .seccio-titol,
.tl-fitxa-llibre .seccio h2,
.tl-fitxa-llibre .seccio h3 {
  margin-top: 10px !important;
}
/* Reduir espai entre seccions (Julia -> recomanats) */
.tl-fitxa-llibre #mes-autora {
  margin-bottom: 16px !important;
}
.tl-fitxa-llibre .similars-seccio {
  margin-top: 16px !important;
}
/* Reduir espai final secció "Més de Julia" */
.tl-fitxa-llibre #mes-autora {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}
/* Ajust real: reduir espai entre "Més de Julia" i "Et pot agradar també" */
.tl-fitxa-llibre .seccio-explorar {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.tl-fitxa-llibre #mes-autora.seccio-mes {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.tl-fitxa-llibre #mes-autora .mes-seccio {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.tl-fitxa-llibre .similars-seccio {
  margin-top: 0 !important;
  padding-top: 20px !important;
}
/* Unificar distància títol - línia inferior */
.tl-fitxa-llibre .seccio h2,
.tl-fitxa-llibre .seccio h3,
.tl-fitxa-llibre .explorar-subtitol,
.tl-fitxa-llibre .seccio-titol,
.tl-fitxa-llibre .similars-titol {
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--border);
}
/* Evitar duplicats o inconsistències */
.tl-fitxa-llibre .seccio h2 + *,
.tl-fitxa-llibre .seccio h3 + * {
  margin-top: 0 !important;
}
/* =========================================================
   CAPA FINAL DE CONSISTÈNCIA — FITXA LLIBRE
   ========================================================= */
.tl-fitxa-llibre .seccio {
  margin-top: 32px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
.tl-fitxa-llibre .fitxa-hero + .seccio,
.tl-fitxa-llibre .fitxa + .seccio,
.tl-fitxa-llibre .fitxa-container + .seccio,
.tl-fitxa-llibre .fitxa-wrapper + .seccio,
.tl-fitxa-llibre main > .seccio:first-of-type {
  margin-top: 24px !important;
}
.tl-fitxa-llibre .seccio h2,
.tl-fitxa-llibre .seccio h3,
.tl-fitxa-llibre .seccio-titol,
.tl-fitxa-llibre .explorar-subtitol,
.tl-fitxa-llibre .similars-titol {
  font-family: "Playfair Display", serif !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--border) !important;
}
.tl-fitxa-llibre .seccio h2 em,
.tl-fitxa-llibre .seccio h3 em,
.tl-fitxa-llibre .seccio-titol em,
.tl-fitxa-llibre .explorar-subtitol em,
.tl-fitxa-llibre .similars-titol em {
  color: var(--marro) !important;
  font-style: italic !important;
}
.tl-fitxa-llibre .seccio-titol,
.tl-fitxa-llibre .explorar-subtitol,
.tl-fitxa-llibre .similars-titol {
  font-size: 28px !important;
}
.tl-fitxa-llibre .seccio-editorial h3 {
  font-size: 24px !important;
}
.tl-fitxa-llibre .seccio-explorar {
  max-width: 980px !important;
  margin: 40px auto 0 !important;
  padding: 0 !important;
}
.tl-fitxa-llibre .seccio-mes {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 34px !important;
}
.tl-fitxa-llibre #mes-autora {
  margin-bottom: 18px !important;
}
.tl-fitxa-llibre .mes-seccio,
.tl-fitxa-llibre .mes-seccio-wrap {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  padding-bottom: 8px !important;
}
.tl-fitxa-llibre .col-modal-card {
  flex: 0 0 120px !important;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  text-decoration: none !important;
}
.tl-fitxa-llibre .col-modal-cover {
  width: 120px !important;
  height: 155px !important;
  border-radius: 10px !important;
}
.tl-fitxa-llibre .col-modal-titol-card {
  font-size: 13px !important;
  line-height: 1.25 !important;
  margin-top: 8px !important;
}
.tl-fitxa-llibre .similars-seccio {
  background: #FAF6EE !important;
  border-top: 1px solid rgba(0,0,0,0.04) !important;
  padding: 20px 48px !important;
  margin-top: 18px !important;
}
.tl-fitxa-llibre .similars-titol {
  margin-bottom: 20px !important;
}
.tl-fitxa-llibre .similars-wrapper {
  overflow: hidden !important;
}
.tl-fitxa-llibre .similars-carrusel {
  display: flex !important;
  gap: 20px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 4px 4px 8px !important;
}
.tl-fitxa-llibre .seccio-context,
.tl-fitxa-llibre .context-links:empty {
  display: none !important;
}
@media (max-width: 900px) {
.tl-fitxa-llibre .similars-seccio {
    padding: 20px 28px !important;
  }
.tl-fitxa-llibre .similar-card {
    flex-basis: 145px !important;
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
  }
}
/* BADGES OPCIONALS SOBRE PORTADA — aplicats a cards similars */
.tl-fitxa-llibre {
  --badge-coleccio-bg: var(--verd);
  --badge-premi-bg: #FFD700;
  --badge-nou-bg: var(--marro-fosc);
  --badge-especial-bg: var(--marro-fosc);
  --badge-recomanat-bg: var(--marro);
}
.tl-fitxa-llibre .similar-cover {
  position: relative;
  overflow: hidden;
}
.tl-fitxa-llibre .similar-cover .badge-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.tl-fitxa-llibre .similar-cover .col-badge,
.tl-fitxa-llibre .similar-cover .premi-badge {
  position: static !important;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.2;
}
.tl-fitxa-llibre .similar-cover .col-badge {
  background: var(--badge-coleccio-bg);
  color: white;
}
.tl-fitxa-llibre .similar-cover .premi-badge {
  background: var(--badge-premi-bg);
  color: #8B6914;
}
.tl-fitxa-llibre .similar-cover .nou-badge {
  position: absolute;
  top: 12px;
  right: -20px;
  background: var(--badge-nou-bg);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 32px;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  width: 90px;
  text-align: center;
  z-index: 2;
}
.tl-fitxa-llibre .similar-cover .especial-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--badge-especial-bg);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.tl-fitxa-llibre .similar-cover .recomanat-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--badge-recomanat-bg);
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 3;
}
.tl-fitxa-llibre .seccio-titol-mes {
    overflow: visible !important;
  }
.tl-fitxa-llibre .descobreix-subtitol {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 14px;
  }
.tl-fitxa-llibre .descobreix-subtitol em { color: var(--marro); font-style: italic; }
.tl-fitxa-llibre .seccio-titol-gran {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
  }
/* Botó llista a la fitxa principal */
.tl-fitxa-llibre .btn-llista-fitxa {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--crema-fosca);
  border: 1.5px solid var(--border);
  color: #C4A0A0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tl-fitxa-llibre .btn-llista-fitxa:hover {
  border-color: #E07070;
  color: #E07070;
  transform: scale(1.12);
}
.tl-fitxa-llibre .btn-llista-fitxa.afegit {
  background: #FFF0F0;
  border-color: #E07070;
  color: #E07070;
}
/* Peu de les similar-card per allotjar el botó */
.tl-fitxa-llibre .similar-peu {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px 8px;
  margin-top: auto;
}
.tl-fitxa-llibre .similar-peu .btn-llista-card {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid #E8D9C4;
  color: #C4A0A0;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tl-fitxa-llibre .similar-peu .btn-llista-card:hover {
  border-color: #E07070;
  color: #E07070;
  transform: scale(1.12);
}
.tl-fitxa-llibre .similar-peu .btn-llista-card.afegit {
  background: #FFF0F0;
  border-color: #E07070;
  color: #E07070;
}
/* Títol principal amb botó llista al costat */
.tl-fitxa-llibre .fitxa-titol-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}
.tl-fitxa-llibre .fitxa-titol-wrap .btn-llista-fitxa {
  margin-top: 8px;
  flex-shrink: 0;
}


/* ====================================================================
   COL·LECCIÓ — part 1 · classe .tl-colleccio · Plantilla Archive · Col·lecció
   ==================================================================== */


.tl-colleccio {
    --crema: #FDF6EE;
    --crema-fosca: #F5ECD7;
    --marro: #C17B3F;
    --marro-fosc: #8B5A2B;
    --verd: #4A7C59;
    --verd-clar: #8FAF7E;
    --verd-molt-clar: #EEF4EB;
    --text: #2C2C2C;
    --text-suau: #6B6B6B;
    --blanc: #FFFFFF;
    --border: #E8D9C4;
  }
.tl-colleccio, .tl-colleccio *,
.tl-colleccio::before, .tl-colleccio *::before,
.tl-colleccio::after, .tl-colleccio *::after { box-sizing: border-box; margin: 0; padding: 0; }
.tl-colleccio {
    font-family: "Nunito", sans-serif;
    background: var(--blanc);
    color: var(--text);
  }
/* NAV */
/* BREADCRUMB */
.tl-colleccio .breadcrumb {
    padding: 10px 48px;
    background: var(--verd-molt-clar);
    border-bottom: 1px solid #C8DFC4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-suau);
  }
.tl-colleccio .breadcrumb a {
    color: var(--verd);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
  }
.tl-colleccio .breadcrumb a:hover { color: var(--verd-fosc); text-decoration: underline; }
.tl-colleccio .breadcrumb-sep { opacity: 0.5; color: var(--verd); }
.tl-colleccio .breadcrumb-actual { color: var(--text); font-weight: 600; }
/* HERO COL·LECCIÓ */
.tl-colleccio .col-hero {
    background: var(--crema-fosca);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 24px 48px 20px;
    max-width: 1200px;
    margin: 32px auto 0;
  }
.tl-colleccio .col-hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
  }
.tl-colleccio .col-hero-covers {
    position: relative;
    width: 320px;
    height: 280px;
    flex-shrink: 0;
  }
.tl-colleccio .col-cover-stack {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
  }
.tl-colleccio .col-cover-stack:nth-child(1) { width: 200px; height: 240px; top: 20px; left: 90px; z-index: 3; }
.tl-colleccio .col-cover-stack:nth-child(2) { width: 186px; height: 226px; top: 10px; left: 52px; z-index: 2; transform: rotate(-5deg); }
.tl-colleccio .col-cover-stack:nth-child(3) { width: 176px; height: 216px; top: 2px; left: 14px; z-index: 1; transform: rotate(-10deg); }
.tl-colleccio .col-hero-info { padding-top: 8px; min-width: 0; overflow: hidden; }
.tl-colleccio .col-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--verd-molt-clar);
    border: 1px solid var(--verd-clar);
    color: var(--verd);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
  }
.tl-colleccio .col-llibre-edat {
    font-size: 11px;
    color: var(--marro);
    font-weight: 700;
  }
.tl-colleccio .col-llibre-any {
    font-size: 10px;
    font-weight: 700;
    color: var(--verd);
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
.tl-colleccio .col-llibre-num {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--marro-fosc);
    text-align: center;
    line-height: 1;
  }
.tl-colleccio .col-titol {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--marro-fosc);
    line-height: 1.15;
    margin-bottom: 8px;
  }
.tl-colleccio .col-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-suau);
  }
.tl-colleccio .col-meta-item strong {
    color: var(--text);
    font-weight: 600;
  }
.tl-colleccio .col-desc {
    font-size: 15px;
    color: var(--text-suau);
    line-height: 1.7;
    width: 100%;
    margin-bottom: 24px;
    word-wrap: break-word;
  }
.tl-colleccio .col-hero-accions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
.tl-colleccio .btn-afegir-tots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--verd);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    transition: background 0.2s;
  }
.tl-colleccio .btn-afegir-tots:hover { background: #2C5035; color: white; }
.tl-colleccio .col-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-suau);
  }
.tl-colleccio .col-progress-bar {
    width: 120px;
    height: 6px;
    background: var(--crema-fosca);
    border-radius: 3px;
    overflow: hidden;
  }
.tl-colleccio .col-progress-fill {
    height: 100%;
    background: var(--verd);
    border-radius: 3px;
    transition: width 0.4s;
  }
/* LLISTA LLIBRES */
.tl-colleccio .col-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px 80px;
  }
.tl-colleccio .col-seccio-titol {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
  }
.tl-colleccio .col-llibres {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
.tl-colleccio .col-llibre-card {
    background: var(--crema);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 48px 90px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }
.tl-colleccio .col-llibre-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--marro);
  }
.tl-colleccio .col-llibre-cover {
    width: 70px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
  }
.tl-colleccio .col-llibre-info { min-width: 0; }
.tl-colleccio .col-llibre-titol {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
.tl-colleccio .col-llibre-desc {
    font-size: 13px;
    color: var(--text-suau);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
.tl-colleccio .col-llibre-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
  }
.tl-colleccio .col-llibre-accions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
.tl-colleccio .col-llegit-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--blanc);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-suau);
    transition: all 0.2s;
    flex-shrink: 0;
  }
.tl-colleccio .col-llegit-btn.llegit {
    background: var(--verd-molt-clar);
    border-color: var(--verd);
    color: var(--verd);
  }
.tl-colleccio .col-llegit-btn:hover { border-color: var(--verd); color: var(--verd); }
.tl-colleccio .btn-llista-card {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid #E8D9C4;
    color: #C4A0A0;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
  }
.tl-colleccio .btn-llista-card:hover { border-color: #E07070; color: #E07070; transform: scale(1.12); }
.tl-colleccio .btn-llista-card.afegit { background: #FFF0F0; border-color: #E07070; color: #E07070; }
/* PÀGINA NO TROBADA */
.tl-colleccio .col-no-trobada {
    text-align: center;
    padding: 80px 48px;
    color: var(--text-suau);
  }
.tl-colleccio .col-no-trobada h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 12px;
  }
/* FOOTER */
/* FOOTER — igual que components.css */
@media (max-width: 768px) {
.tl-colleccio .col-hero,
.tl-colleccio .col-main { padding-left: 20px; padding-right: 20px; }
.tl-colleccio .col-hero-inner { grid-template-columns: 1fr; }
.tl-colleccio .col-hero-covers { display: none; }
.tl-colleccio .col-llibre-card { grid-template-columns: 36px 70px 1fr; }
.tl-colleccio .col-llibre-accions { display: none; }
}
/* BOTÓ FLOTANT */
.tl-colleccio .renard-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
.tl-colleccio .renard-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.tl-colleccio .renard-fab.visible { display: flex; }
.tl-colleccio .renard-fab-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 18px; height: 18px;
    background: #C17B3F;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
  }
.tl-colleccio .renard-fab-badge.visible { display: block; }
/* PANELL XAT FLOTANT */
.tl-colleccio .renard-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 400;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
  }
.tl-colleccio .renard-panel.obert {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }
/* CAPÇALERA PANELL */
.tl-colleccio .renard-panel-cap {
    background: #1A2B1B;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
.tl-colleccio .renard-panel-avatar {
    font-size: 24px;
    line-height: 1;
  }
.tl-colleccio .renard-panel-info { flex: 1; }
.tl-colleccio .renard-panel-nom {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
  }
.tl-colleccio .renard-panel-estat {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
  }
.tl-colleccio .renard-panel-accions {
    display: flex;
    gap: 6px;
  }
.tl-colleccio .renard-panel-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
.tl-colleccio .renard-panel-btn:hover { background: rgba(255,255,255,0.3); }
.tl-colleccio .renard-panel-btn[title="Obre la pàgina d'En Renard"] { font-size: 12px; font-weight: 700; }
/* HISTORIAL */
.tl-colleccio .renard-panel-historial {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FDF6EE;
    scrollbar-width: thin;
    scrollbar-color: #E8D9C4 transparent;
  }
.tl-colleccio .renard-panel-historial::-webkit-scrollbar { width: 4px; }
.tl-colleccio .renard-panel-historial::-webkit-scrollbar-thumb { background: #E8D9C4; border-radius: 2px; }
/* BOMBOLLES */
.tl-colleccio .rf-missatge {
    display: flex;
    align-items: flex-end;
    gap: 7px;
  }
.tl-colleccio .rf-missatge.usuari { flex-direction: row-reverse; }
.tl-colleccio .rf-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #1A2B1B;
    color: white;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
.tl-colleccio .rf-missatge.usuari .rf-avatar { background: #C17B3F; }
.tl-colleccio .rf-bombolla {
    max-width: 240px;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #2C2C2C;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl-colleccio .rf-missatge.usuari .rf-bombolla {
    background: #C17B3F;
    color: white;
  }
.tl-colleccio .rf-rec-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    max-width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
.tl-colleccio .rf-rec-card:hover { border-color: #1A2B1B; box-shadow: 0 2px 12px rgba(26,43,27,0.12); }
.tl-colleccio .rf-rec-cover {
    width: 40px; height: 54px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C4D4E8, #A0B8D4);
  }
.tl-colleccio .rf-rec-titol { font-size: 12px; font-weight: 700; color: #2C2C2C; margin-bottom: 2px; }
.tl-colleccio .rf-rec-autor { font-size: 11px; color: #6B6B6B; }
/* ESCRIVINT */
.tl-colleccio .rf-escrivint {
    display: none;
    align-items: flex-end;
    gap: 7px;
  }
.tl-colleccio .rf-escrivint.visible { display: flex; }
.tl-colleccio .rf-dots {
    background: white;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex; gap: 4px; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl-colleccio .rf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C8A96E;
    animation: rfDot 1.2s infinite;
  }
.tl-colleccio .rf-dot:nth-child(2) { animation-delay: 0.2s; }
.tl-colleccio .rf-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes rfDot { 0%,60%,100% { transform: translateY(0); opacity:0.4; } 30% { transform: translateY(-5px); opacity:1; } }
/* INPUT */
.tl-colleccio .renard-panel-input {
    padding: 12px;
    border-top: 1px solid #E8D9C4;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: white;
    flex-shrink: 0;
  }
.tl-colleccio .rf-input {
    flex: 1;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 13px;
    font-family: "Nunito", sans-serif;
    color: #2C2C2C;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color 0.2s;
  }
.tl-colleccio .rf-input:focus { border-color: #1A2B1B; }
.tl-colleccio .rf-enviar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
.tl-colleccio .rf-enviar:hover { background: #3D6B1E; }
.tl-colleccio .rf-enviar:disabled { background: #C8D9C4; cursor: not-allowed; }
/* MISSATGE BUIT */
.tl-colleccio .rf-buit {
    text-align: center;
    padding: 32px 16px;
    color: #6B6B6B;
    font-size: 13px;
    line-height: 1.6;
  }
.tl-colleccio .rf-buit-emoji { font-size: 36px; margin-bottom: 10px; }
@media (max-width: 480px) {
.tl-colleccio .renard-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
.tl-colleccio .renard-fab { right: 16px; bottom: 16px; }
}


/* ====================================================================
   ACTIVITATS — part 1 · classe .tl-activitats · Pàgina "Activitats"
   ==================================================================== */


/* BANNER GRATUÏT */
.tl-activitats .banner-gratuit {
    background: var(--verd);
    padding: 7px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 10;
  }
.tl-activitats .banner-gratuit span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
  }
.tl-activitats .banner-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
  }
/* CAPÇALERA */
.tl-activitats .activitats-header {
    background: var(--verd-molt-clar);
    padding: 14px 48px 146px;
    position: relative;
    overflow: hidden;
  }
.tl-activitats .header-top {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
.tl-activitats .header-titol-bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
.tl-activitats .header-titol {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--marro-fosc);
    margin-bottom: 8px;
    line-height: 1.15;
  }
.tl-activitats .header-titol em { color: var(--verd); font-style: italic; }
.tl-activitats .header-sub {
    font-size: 15px;
    color: var(--text-suau);
    font-weight: 300;
    line-height: 1.6;
    max-width: 560px;
  }
/* Franja il·lustrada a la part de baix del hero */
.tl-activitats .header-franja {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: min(890px, calc(100% - 32px));
    height: auto;
    display: block;
    pointer-events: none;
    z-index: 1;
  }
@media (max-width: 768px) {
.tl-activitats .activitats-header { padding: 20px 20px 80px; }
.tl-activitats .header-titol { font-size: 32px; }
.tl-activitats .header-franja { width: 150%; bottom: -10px; }
}
/* FILTRES PILLS */
.tl-activitats .filtres-zona {
    background: var(--blanc);
    border-bottom: 1px solid var(--border);
    padding: 14px 48px;
    display: flex;
    align-items: center;
  }
.tl-activitats .pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
.tl-activitats .filtre-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blanc);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--text-suau);
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
  }
.tl-activitats .filtre-pill:hover {
    border-color: var(--verd);
    color: var(--verd);
    background: var(--blanc);
  }
.tl-activitats .filtre-pill.actiu {
    background: var(--verd);
    border-color: var(--verd);
    color: white;
  }
/* ZONA PRINCIPAL — full width */
.tl-activitats .activitats-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 48px 64px;
    background: var(--crema);
  }
.tl-activitats .activitats-layout { display: block; }
/* OVERLAY */
.tl-activitats .filtres-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
  }
.tl-activitats .filtres-overlay.obert { opacity: 1; pointer-events: all; }
/* SIDEBAR DRAWER */
.tl-activitats .sidebar-tematica {
    position: fixed;
    top: 0; left: 0;
    width: 280px; height: 100vh;
    background: var(--blanc);
    z-index: 300;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
.tl-activitats .sidebar-tematica.obert { transform: translateX(0); }
.tl-activitats .sidebar-inner-act {
    padding: 20px 24px 40px;
  }
.tl-activitats .sidebar-cap-act {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--blanc); z-index: 1;
  }
.tl-activitats .sidebar-cap-titol {
    font-family: "Playfair Display", serif;
    font-size: 18px; font-weight: 600;
    color: var(--marro-fosc);
  }
.tl-activitats .sidebar-tancar-btn {
    background: none; border: none;
    font-size: 22px; color: var(--text-suau);
    cursor: pointer; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
  }
.tl-activitats .sidebar-tancar-btn:hover { background: var(--crema); }
/* BOTÓ FILTRES */
.tl-activitats .btn-filtres {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--blanc); border: 1.5px solid var(--marro);
    color: var(--marro-fosc); font-size: 13px; font-weight: 600;
    padding: 7px 16px; border-radius: 10px; cursor: pointer;
    font-family: "Nunito", sans-serif; transition: all 0.2s;
  }
.tl-activitats .btn-filtres:hover { background: var(--crema); }
.tl-activitats .btn-filtres-badge {
    background: var(--marro); color: white;
    font-size: 11px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
  }
.tl-activitats .btn-filtres-badge.visible { display: flex; }
/* Estils filtres — igual que catàleg */
.tl-activitats .filtre-grup { margin-bottom: 4px; }
.tl-activitats .filtre-grup-titol {
    font-size: 11px; font-weight: 700; color: var(--text-suau);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 6px 2px; border-radius: 6px;
    transition: background 0.15s; user-select: none;
  }
.tl-activitats .filtre-grup-titol:hover { background: var(--crema); }
.tl-activitats .acordio-fletxa { font-size: 14px; font-weight: 400; }
.tl-activitats .filtre-grup-contingut { display: none; }
.tl-activitats .filtre-grup.obert .filtre-grup-contingut { display: block; }
.tl-activitats .filtre-opcio {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 2px;
  }
.tl-activitats .filtre-opcio:hover { background: var(--crema); }
.tl-activitats .filtre-opcio.actiu { background: var(--crema-fosca); }
.tl-activitats .filtre-checkbox {
    width: 16px; height: 16px; border: 1.5px solid var(--border);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.15s; background: var(--blanc);
  }
.tl-activitats .filtre-opcio.actiu .filtre-checkbox { background: var(--marro-fosc); border-color: var(--marro); }
.tl-activitats .filtre-checkbox-check { color: white; font-size: 10px; display: none; }
.tl-activitats .filtre-opcio.actiu .filtre-checkbox-check { display: block; }
.tl-activitats .filtre-label { font-size: 13px; color: var(--text); flex: 1; }
.tl-activitats .filtre-count { font-size: 11px; color: var(--text-suau); background: var(--crema-fosca); padding: 1px 7px; border-radius: 10px; }
.tl-activitats .filtre-opcio.actiu .filtre-count { background: rgba(193,123,63,0.15); color: var(--marro-fosc); }
.tl-activitats .filtre-opcio.filtre-pare .filtre-label { font-weight: 600; }
.tl-activitats .filtre-opcio.filtre-fill { padding-left: 12px; margin-bottom: 0; }
.tl-activitats .subtipus-bloc { display: none; margin: 0 0 6px 17px; border-left: 2px solid var(--border); }
.tl-activitats .subtipus-bloc.visible { display: block; }
.tl-activitats .filtre-desplega {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; line-height: 1; color: var(--marro);
    border-radius: 50%; flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
  }
.tl-activitats .filtre-desplega:hover { background: var(--crema-fosca); }
.tl-activitats .filtre-desplega.obert { transform: rotate(90deg); }
.tl-activitats .filtre-opcio.filtre-fill .filtre-label { color: var(--text-suau); }
.tl-activitats .filtre-opcio.filtre-fill.actiu .filtre-label { color: var(--marro-fosc); font-weight: 500; }
/* Tags filtres actius */
.tl-activitats .filtres-actius {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }
.tl-activitats .filtre-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #6A9E7A;
    color: white;
    border: 1px solid #6A9E7A;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
  }
.tl-activitats .filtre-tag:hover { background: #4A7C59; border-color: #4A7C59; }
.tl-activitats .filtre-tag-x { font-size: 14px; line-height: 1; }
.tl-activitats .filtres-netejar {
    font-size: 12px;
    color: var(--text-suau);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: "Nunito", sans-serif;
    padding: 0;
  }
.tl-activitats .filtres-netejar:hover { color: var(--marro); }
/* CONTINGUT */
.tl-activitats .activitats-contingut { width: 100%; }
/* BARRA RESULTATS */
.tl-activitats .resultats-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tl-activitats .resultats-count { font-size: 14px; color: var(--text-suau); }
.tl-activitats .resultats-count strong { color: var(--text); font-weight: 600; }
/* GRAELLA — llista vertical */
.tl-activitats .activitats-graella {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 48px;
  }
/* TARGETA HORITZONTAL — 3 columnes */
.tl-activitats .act-card {
    background: var(--blanc);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    height: 98px;
    animation: fadeUp 0.4s ease both;
  }
.tl-activitats .act-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    border-color: var(--marro);
  }
/* Col 1 — imatge */
.tl-activitats .act-preview {
    position: relative;
    overflow: hidden;
  }
.tl-activitats .act-preview img {
    width: 100%; height: 100%; object-fit: cover;
  }
/* Placeholders de color fins que arribin les imatges */
.tl-activitats .prev-a { background: linear-gradient(135deg, #EEF4EB, #C8E0C4); }
.tl-activitats .prev-b { background: linear-gradient(135deg, #FDF0E4, #F0D4B8); }
.tl-activitats .prev-c { background: linear-gradient(135deg, #EEF0FB, #D4D8F0); }
.tl-activitats .prev-d { background: linear-gradient(135deg, #FDF6EE, #F0E4C8); }
.tl-activitats .prev-e { background: linear-gradient(135deg, #F0EEFB, #D8D4F0); }
.tl-activitats .prev-f { background: linear-gradient(135deg, #EEFAF4, #C4E8D4); }
/* Col 2 — descripció */
.tl-activitats .act-info {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
/* Pill de tipus — sobre la imatge, a baix centrat */
.tl-activitats .act-tipus-badge {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    color: var(--text-suau);
    font-size: 9px; font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(4px);
  }
.tl-activitats .act-titol {
    font-family: "Playfair Display", serif;
    font-size: 15px; font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
.tl-activitats .act-desc {
    font-size: 12px; color: var(--text-suau);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
/* Col 3 — botons apilats */
.tl-activitats .act-botons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    justify-content: center;
    flex-shrink: 0;
  }
.tl-activitats .act-descarregar-btn {
    display: flex; align-items: center; justify-content: center;
    background: var(--verd); color: white;
    text-decoration: none;
    padding: 9px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
    border: none; cursor: pointer; white-space: nowrap;
  }
.tl-activitats .act-descarregar-btn:hover { background: var(--marro); }
/* Card clicable */
.tl-activitats .act-card { cursor: pointer; }
.tl-activitats .act-baixar {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--verd); color: white;
    text-decoration: none;
    padding: 7px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
    border: none; cursor: pointer; white-space: nowrap;
  }
.tl-activitats .act-baixar:hover { background: var(--marro); }
.tl-activitats .act-separador {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 4px;
  }
.tl-activitats .act-separador-linia {
    width: 100%;
    height: 1px;
    background: var(--border);
  }
.tl-activitats .act-separador-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--marro-fosc);
    letter-spacing: 0.2px;
  }
.tl-activitats .act-card.login-required {
    opacity: 0.5;
    animation: none;
  }
.tl-activitats .act-card.login-required:hover {
    opacity: 0.85;
  }
.tl-activitats .act-baixar.blocat {
    background: var(--crema-fosca);
    color: var(--text-suau);
    border: 1.5px solid var(--border);
  }
.tl-activitats .act-baixar.blocat:hover {
    background: var(--crema);
    border-color: var(--marro);
    color: var(--marro-fosc);
  }
/* MODAL VISTA PRÈVIA */
.tl-activitats .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    backdrop-filter: blur(4px);
  }
.tl-activitats .modal-overlay.obert { display: flex; }
.tl-activitats .modal {
    background: var(--blanc);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: modalEntrada 0.25s ease;
    display: grid;
    grid-template-columns: 1fr 260px;
    overflow: hidden;
  }
@keyframes modalEntrada {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
/* Previsualització esquerra */
.tl-activitats .modal-preview {
    background: var(--crema);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
  }
.tl-activitats .pdf-pagina {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    aspect-ratio: 210/297;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    font-size: 48px;
  }
.tl-activitats .pdf-pagina-text {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    color: var(--text);
    text-align: center;
    padding: 0 20px;
  }
.tl-activitats .pdf-pagina-sub {
    font-size: 10px;
    color: var(--text-suau);
    font-style: italic;
    text-align: center;
    padding: 0 20px;
  }
/* Info dreta */
.tl-activitats .modal-info {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
  }
.tl-activitats .modal-tancar {
    align-self: flex-end;
    background: var(--crema);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-suau);
    transition: all 0.2s;
    margin-bottom: 16px;
    flex-shrink: 0;
  }
.tl-activitats .modal-tancar:hover { background: var(--crema-fosca); color: var(--text); }
.tl-activitats .modal-titol {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
  }
.tl-activitats .modal-subtitol {
    font-size: 11px;
    color: var(--text-suau);
    margin-bottom: 12px;
  }
.tl-activitats .modal-desc {
    font-size: 13px;
    color: var(--text-suau);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
  }
.tl-activitats .modal-peu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }
.tl-activitats .modal-baixar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--verd);
    color: white;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
    border: none;
    cursor: pointer;
    width: 100%;
  }
.tl-activitats .modal-baixar:hover { background: var(--marro); }
.tl-activitats .modal-cancel {
    background: var(--crema-fosca);
    border: 1px solid var(--border);
    color: var(--text-suau);
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    transition: all 0.2s;
    width: 100%;
  }
.tl-activitats .modal-cancel:hover { background: var(--crema); color: var(--text); }
.tl-activitats .banner-inferior {
    background: var(--crema-fosca);
    border-top: 1px solid var(--border);
    padding: 48px;
    text-align: center;
  }
.tl-activitats .banner-inferior h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: var(--marro-fosc);
    margin-bottom: 8px;
  }
.tl-activitats .banner-inferior p {
    font-size: 15px;
    color: var(--text-suau);
    font-weight: 300;
    margin-bottom: 20px;
  }
.tl-activitats .btn-renard-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--marro);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
  }
.tl-activitats .btn-renard-banner:hover { background: var(--marro-fosc); transform: translateY(-2px); }
@media (max-width: 900px) {
.tl-activitats .header-top {
      grid-template-columns: 1fr;
      gap: 20px;
      min-height: auto;
    }
.tl-activitats .header-titol {
      font-size: 36px;
    }
.tl-activitats .activitats-layout {
      flex-direction: column;
    }
.tl-activitats .sidebar-tematica {
      width: 100%;
      position: relative;
      top: 0;
    }
}
@media (max-width: 640px) {
.tl-activitats .filtres-zona,
.tl-activitats .activitats-main {
      padding-left: 24px;
      padding-right: 24px;
    }
.tl-activitats .act-card {
      grid-template-columns: 96px 1fr;
      height: auto;
    }
.tl-activitats .act-botons {
      grid-column: 1 / -1;
      flex-direction: row;
      padding: 12px 14px 14px;
    }
.tl-activitats .act-info {
      border-right: none;
    }
}
.tl-activitats .paginacio {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
  }
.tl-activitats .pagina-btn {
    border: 1px solid var(--border);
    background: var(--blanc);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
  }
.tl-activitats .pagina-btn:hover {
    border-color: var(--marro);
    color: var(--marro);
  }
.tl-activitats .pagina-btn.actiu {
    background: var(--marro);
    color: white;
    border-color: var(--marro);
  }
.tl-activitats .pagina-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tl-activitats .act-tematica {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-suau);
  background: var(--crema-fosca);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 999px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.tl-activitats .tema-halloween {
  background: #FFF0E6;
  color: #8A4B2A;
}
.tl-activitats .tema-nadal {
  background: #EAF6EF;
  color: #2F6B4F;
}
.tl-activitats .tema-santjordi {
  background: #FDECEF;
  color: #8A2F3B;
}
.tl-activitats .tema-animals {
  background: #EEF6FA;
  color: #2A5A7A;
}


/* ====================================================================
   EN RENARD — part 1 · classe .tl-renard · Pàgina "En Renard"
   ==================================================================== */


.tl-renard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }
.tl-renard .renard-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 72px);
  }
/* PANEL ESQUERRE */
.tl-renard .renard-intro {
    background: linear-gradient(180deg, #1A2B1B 0%, #0F1F10 100%);
    padding: 24px 36px 48px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto;
    scrollbar-width: none;
  }
.tl-renard .renard-intro::-webkit-scrollbar { display: none; }
/* Avatar */
.tl-renard .renard-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C17B3F, #8B5A2B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(193,123,63,0.3);
    flex-shrink: 0;
  }
.tl-renard .renard-nom {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    margin-top: -10px;
  }
.tl-renard .renard-carrec {
    font-size: 13px;
    color: #E8A86A;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
.tl-renard .renard-carrec::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #8FAF7E;
    border-radius: 50%;
    display: inline-block;
  }
.tl-renard .renard-bio {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 16px;
  }
.tl-renard .renard-bio-cita {
    font-style: italic;
    color: rgba(255,255,255,0.35) !important;
    border-left: 2px solid rgba(193,123,63,0.4);
    padding-left: 14px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
  }
/* Il·lustració */
.tl-renard .renard-ilustracio {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    overflow: visible;
    flex: 0 0 auto;
  }
.tl-renard .renard-ilustracio img.renard-personatge {
    height: 250px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-top: -5px;
  }
.tl-renard .ilustracio-placeholder {
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 48px;
  }
.tl-renard .ilustracio-text {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    font-style: italic;
  }
/* PANEL DRET — Xat */
.tl-renard .xat-zona {
    display: flex;
    flex-direction: column;
    background: var(--crema);
    overflow: hidden;
  }
/* Historial xat */
.tl-renard .xat-historial {
    flex: 1;
    overflow-y: auto;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
.tl-renard .xat-historial::-webkit-scrollbar { width: 4px; }
.tl-renard .xat-historial::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
/* Missatge benvinguda */
.tl-renard .missatge-benvinguda {
    text-align: center;
    padding: 48px 0 24px;
    animation: fadeUp 0.6s ease both;
  }
.tl-renard .benvinguda-titol {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--marro-fosc);
    margin-bottom: 8px;
  }
.tl-renard .benvinguda-titol em { color: var(--marro); font-style: italic; }
.tl-renard .benvinguda-sub {
    font-size: 15px;
    color: var(--text-suau);
    font-weight: 300;
    margin-bottom: 32px;
  }
/* Pills suggerides */
.tl-renard .pills-suggerides {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
  }
.tl-renard .pill-suggerida {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-suau);
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Nunito", sans-serif;
  }
.tl-renard .pill-suggerida:hover {
    background: var(--crema-fosca);
    border-color: var(--marro);
    color: var(--marro-fosc);
    transform: translateY(-1px);
  }
/* Missatges */
.tl-renard .missatge {
    display: flex;
    gap: 12px;
    animation: fadeUp 0.4s ease both;
  }
.tl-renard .missatge.usuari { flex-direction: row-reverse; }
.tl-renard .missatge-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 4px;
  }
.tl-renard .avatar-renard {
    background: #1A2B1B;
    box-shadow: 0 4px 12px rgba(26,43,27,0.3);
    font-size: 18px;
  }
.tl-renard .avatar-usuari {
    background: var(--crema-fosca);
    border: 1px solid var(--border);
    font-size: 16px;
  }
.tl-renard .missatge-bombolla {
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 18px 18px 18px 4px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    max-width: 560px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
.tl-renard .missatge.usuari .missatge-bombolla {
    background: var(--marro);
    color: white;
    border-color: var(--marro);
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 12px rgba(193,123,63,0.2);
  }
/* Cards recomanació */
.tl-renard .recomanacio-xat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }
.tl-renard .rec-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--crema);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
  }
.tl-renard .rec-card:hover {
    border-color: var(--marro);
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  }
.tl-renard .rec-cover {
    width: 52px;
    height: 64px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
  }
.tl-renard .rec-info { flex: 1; }
.tl-renard .rec-titol {
    font-family: "Playfair Display", serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
  }
.tl-renard .rec-autor {
    font-size: 12px;
    color: var(--text-suau);
    margin-bottom: 6px;
  }
.tl-renard .rec-desc {
    font-size: 12px;
    color: var(--text-suau);
    line-height: 1.5;
    margin-bottom: 4px;
  }
.tl-renard .rec-edat {
    font-size: 11px;
    color: var(--marro);
    font-weight: 700;
  }
.tl-renard .rec-arrow {
    font-size: 20px;
    color: var(--border);
    flex-shrink: 0;
  }
/* Escrivint */
.tl-renard .escrivint {
    display: none;
    gap: 12px;
    align-items: center;
  }
.tl-renard .escrivint-dots {
    display: flex;
    gap: 4px;
    background: var(--blanc);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 18px;
  }
.tl-renard .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-suau);
    animation: dotPulse 1.4s infinite;
  }
.tl-renard .dot:nth-child(2) { animation-delay: 0.2s; }
.tl-renard .dot:nth-child(3) { animation-delay: 0.4s; }
/* Input zona */
.tl-renard .xat-nova-conversa {
    text-align: right;
    margin-bottom: 8px;
    display: block;
  }
.tl-renard .btn-nova-conversa {
    background: none;
    border: none;
    color: var(--text-suau);
    font-size: 12px;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s;
    letter-spacing: 0.01em;
  }
.tl-renard .btn-nova-conversa:hover { color: var(--marro); }
.tl-renard .xat-input-zona {
    padding: 20px 48px 16px;
    background: var(--blanc);
    border-top: 1px solid var(--border);
  }
.tl-renard .xat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--crema);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 8px 12px;
    transition: border-color 0.2s;
  }
.tl-renard .xat-input-wrapper:focus-within { border-color: var(--marro); }
.tl-renard .xat-textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    resize: none;
    line-height: 1.5;
    max-height: 120px;
    min-height: 24px;
  }
.tl-renard .xat-textarea::placeholder { color: var(--text-suau); }
.tl-renard .xat-enviar {
    background: var(--marro);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
  }
.tl-renard .xat-enviar:hover { background: var(--marro-fosc); transform: scale(1.05); }
.tl-renard .xat-enviar:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.tl-renard .xat-peu {
    text-align: center;
    font-size: 11px;
    color: var(--text-suau);
    margin-top: 10px;
  }
@keyframes dotPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
  }


/* ====================================================================
   ENTRAR — part 1 · classe .tl-entrar · Pàgina "Entrar"
   ==================================================================== */




/* ====================================================================
   CREAR COMPTE — part 1 · classe .tl-crear-compte · Pàgina "Crear compte"
   ==================================================================== */




/* ====================================================================
   EL MEU COMPTE — part 1 · classe .tl-compte · Pàgina "El meu compte"
   ==================================================================== */



/* ====================================================================
   3. COMPONENTS COMUNS (classe .tl) — capçalera, peu, targetes, badges, botons
   ==================================================================== */

/* ============================================================
   components.css — Territori lector
   Estils compartits per totes les pàgines.
   Canvia aquí i s'aplica arreu.
   ============================================================ */
/* ============================================================
   VARIABLES GLOBALS
   ============================================================ */
/* ============================================================
   RESET BASE
   ============================================================ */
.tl, .tl *,
.tl::before, .tl *::before,
.tl::after, .tl *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.tl {
  font-family: "Nunito", sans-serif;
  background: var(--crema);
  color: var(--text);
}
/* ============================================================
   NAVEGACIÓ
   ============================================================ */
.tl nav {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.tl .nav-marca {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.tl .nav-logo {
  height: 56px;
  width: auto;
  display: block;
}
.tl .nav-nom {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--marro-fosc);
  letter-spacing: -0.3px;
}
.tl .nav-lema {
  font-size: 11px;
  color: var(--text-suau);
  font-weight: 300;
  letter-spacing: 0.5px;
}
.tl .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.tl .nav-links a {
  text-decoration: none;
  color: var(--text-suau);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.tl .nav-links a:hover { color: var(--marro); }
.tl .nav-links a.actiu { color: var(--marro); font-weight: 600; }
.tl .nav-renard {
  background: var(--marro);
  color: white !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s !important;
  text-decoration: none;
}
.tl .nav-renard:hover { background: var(--marro-fosc) !important; color: white !important; }
/* Menú hamburger (mòbil) */
.tl .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.tl .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
/* ============================================================
   FOOTER
   ============================================================ */
.tl footer {
  background: #1A2020;
  padding: 22px 48px;
}
.tl .footer-inner-final {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.tl .footer-top-final {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tl .footer-marca { text-align: left; }
.tl .footer-marca .nav-nom {
  color: #E8D5B8;
  font-size: 20px;
  margin-bottom: 4px;
}
.tl .footer-marca .nav-lema {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.tl .footer-links-simple {
  display: flex;
  gap: 32px;
  align-items: center;
}
.tl .footer-links-simple a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: transparent;
  font-size: 14px;
  transition: color 0.2s;
}
.tl .footer-links-simple a:hover { color: rgba(255,255,255,0.9); }
.tl .footer-bottom-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tl .footer-bottom-final span {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.tl .footer-legal { display: flex; gap: 24px; }
.tl .footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.tl .footer-legal a:hover { color: rgba(255,255,255,0.6); }
/* ============================================================
   CARD DE LLIBRE
   ============================================================ */
.tl .llibre-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.tl .llibre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: var(--marro);
}
.tl .llibre-cover {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
/* Colors de portada */
.tl .cover-a { background: linear-gradient(135deg, #E8D5C4, #D4B896); }
.tl .cover-b { background: linear-gradient(135deg, #C4D4E8, #A0B8D4); }
.tl .cover-c { background: linear-gradient(135deg, #C4E8C4, #96C896); }
.tl .cover-d { background: linear-gradient(135deg, #E8C4D5, #D496B4); }
.tl .cover-e { background: linear-gradient(135deg, #D4E8C4, #A8D090); }
.tl .cover-f { background: linear-gradient(135deg, #E8D4C4, #D0A888); }
.tl .cover-g { background: linear-gradient(135deg, #C4D4E8, #88A8D0); }
.tl .cover-h { background: linear-gradient(135deg, #E8C4D4, #D088A8); }
.tl .cover-i { background: linear-gradient(135deg, #E8E4C4, #D0C888); }
.tl .llibre-info {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tl .llibre-etapa {
  font-size: 10px;
  font-weight: 700;
  color: var(--verd);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.tl .llibre-titol {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  height: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl .llibre-autor {
  font-size: 12px;
  color: var(--text-suau);
  margin-bottom: 10px;
  line-height: 1.45;
  height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl .llibre-peu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}
.tl .llibre-edat {
  font-size: 11px;
  color: var(--marro);
  font-weight: 700;
}
.tl .llibre-estreles { display: none; }
.tl .llibre-tematiques {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tl .tematica-tag {
  font-size: 10px;
  color: var(--text-suau);
  background: var(--crema-fosca);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
/* ============================================================
   BADGES
   ============================================================ */
/* Stack superior esquerre: col·lecció + premi */
.tl .badge-stack {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.tl .badge-stack .col-badge,
.tl .badge-stack .premi-badge {
  position: static !important;
}
/* Col·lecció */
.tl .col-badge {
  background: var(--badge-coleccio-bg);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.2;
}
/* Premi */
.tl .premi-badge {
  background: var(--badge-premi-bg);
  color: var(--badge-premi-text);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1.2;
}
/* Si premi-badge és el primer fill del stack (sense col-badge abans),
   afegim un marge superior equivalent a l'alçada del col-badge */
.tl .badge-stack .premi-badge:first-child {
  margin-top: calc(1.2em + 6px + 6px);
}
/* NOU — franja diagonal */
.tl .nou-badge {
  position: absolute;
  top: 12px;
  right: -20px;
  width: 90px;
  background: var(--badge-nou-bg);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 0;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  text-align: center;
  z-index: 2;
  font-family: "Nunito", sans-serif;
}
/* Especial — franja inferior */
.tl .especial-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--badge-especial-bg);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
/* Recomanat — cercle inferior dret */
.tl .recomanat-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--badge-recomanat-bg);
  color: white;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 3;
}
/* ============================================================
   BOTONS GLOBALS
   ============================================================ */
.tl .btn-principal {
  background: var(--marro);
  color: white;
  padding: 14px 28px;
  border-radius: 32px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(193,123,63,0.3);
}
.tl .btn-principal:hover {
  background: var(--marro-fosc);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193,123,63,0.4);
}
/* ============================================================
   SECCIÓ — títol amb "Veure tot"
   ============================================================ */
.tl .seccio-titol {
  padding: 40px 40px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tl .seccio-titol h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
}
.tl .seccio-titol h2 span {
  color: var(--marro);
  font-style: italic;
}
.tl .veure-tot {
  color: var(--marro);
  text-decoration: underline;
  text-decoration-color: var(--marro);
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
/* ============================================================
   SENSE RESULTATS
   ============================================================ */
.tl .sense-resultats {
  text-align: center;
  padding: 80px 40px;
  display: none;
}
.tl .sense-resultats-emoji { font-size: 48px; margin-bottom: 16px; }
.tl .sense-resultats h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.tl .sense-resultats p {
  font-size: 15px;
  color: var(--text-suau);
  font-weight: 300;
}
/* ============================================================
   ANIMACIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   RESPONSIVE — NAV MÒBIL (fins a 700px; tauleta com ordinador)
   ============================================================ */
@media (max-width: 700px) {
.tl nav { padding: 0 20px; height: 60px; position: relative; }
.tl .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 16px 24px;
    gap: 20px;
    min-width: 200px;
    z-index: 200;
  }
.tl .nav-links.obert { display: flex; }
.tl .nav-links a { font-size: 16px; }
.tl .nav-hamburger { display: flex; }
.tl footer { padding: 22px 24px !important; }
.tl .footer-top-final {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
.tl .footer-links-simple {
    flex-wrap: wrap !important;
    gap: 14px !important;
  }
.tl .footer-bottom-final {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}
/* ============================================================
   LA MEVA LLISTA — Nav icona i botó '+'
   ============================================================ */
/* Icona al nav */
.tl .nav-llista {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-suau);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.tl .nav-llista:hover { color: var(--marro); }
.tl .nav-llista-icona { font-size: 16px; line-height: 1; }
.tl .nav-llista-text { letter-spacing: 0.3px; }
.tl .nav-llista-badge {
  display: none;
  background: var(--marro);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -22px;
  line-height: 1;
}
/* Botó '+' a les cards */
.tl .btn-llista-card {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--crema-fosca);
  border: 1.5px solid var(--border);
  color: var(--marro-fosc);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: "Nunito", sans-serif;
  flex-shrink: 0;
}
.tl .btn-llista-card:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  border-color: var(--marro);
}
.tl .btn-llista-card.afegit {
  background: var(--verd-molt-clar);
  border-color: var(--verd);
  color: var(--verd);
}
.tl .btn-llista-card.animant {
  animation: llista-pop 0.35s ease;
}
@keyframes llista-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
/* ============================================================
   LA MEVA LLISTA — Fons blanc
   ============================================================ */
.tl-llista {
  background: var(--blanc);
}
/* ============================================================
   CAPÇALERA · ENLLAÇ AL COMPTE (Entrar / El meu compte)
   ============================================================ */
.tl .nav-compte {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tl .nav-compte svg { width: 17px; height: 17px; flex-shrink: 0; }
.tl .nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--verd);
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tl .nav-compte-logat .nav-compte-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl .nav-compte-logat:hover .nav-avatar { background: var(--verd-fosc); }
.tl .nav-links a.nav-compte-logat:hover { color: var(--verd-fosc); }
/* Tauleta estreta: només el cercle amb la inicial, perquè hi càpiga tot */
@media (min-width: 701px) and (max-width: 860px) {
.tl .nav-compte-logat .nav-compte-text { display: none; }
}
/* ============================================================
   PÀGINES DE COMPTE (Entrar · Crear compte · El meu compte)
   ============================================================ */
.tl .compte-franja {
  background: var(--verd);
  color: white;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  letter-spacing: 0.2px;
}
.tl .compte-franja span + span::before {
  content: "•";
  margin: 0 10px;
  opacity: 0.6;
}
.tl .compte-pagina {
  background: var(--crema);
  padding: 56px 24px 80px;
  min-height: calc(100vh - 72px - 101px);
}
/* --- Targeta del formulari --- */
.tl .compte-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(139, 90, 43, 0.08);
}
.tl .compte-card-icona {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--verd-molt-clar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.tl .compte-titol {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}
.tl .compte-titol em { font-style: italic; font-weight: 400; color: var(--marro); }
.tl .compte-subtitol {
  font-size: 14.5px;
  color: var(--text-suau);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 26px;
}
.tl .compte-subtitol strong { color: var(--text); font-weight: 600; }
/* --- Botons --- */
.tl .compte-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: var(--marro);
  color: white;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.tl .compte-btn:hover { background: var(--marro-fosc); }
.tl .compte-btn-google {
  background: white;
  border: 1.5px solid #E0E0E0;
  color: #333;
}
.tl .compte-btn-google:hover { background: #F7F7F7; }
.tl .compte-btn-auto { width: auto; display: inline-flex; padding: 11px 24px; }
.tl .compte-btn-secundari {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--marro-fosc);
}
.tl .compte-btn-secundari:hover { background: var(--crema); }
.tl .compte-btn-perill {
  background: white;
  border: 1.5px solid #E3B5AA;
  color: #A8402C;
}
.tl .compte-btn-perill:hover { background: #FBEFEC; }
.tl .compte-btn-perill-ple { background: #A8402C; color: white; }
.tl .compte-btn-perill-ple:hover { background: #8E3423; }
/* --- Separador "o amb el teu correu" --- */
.tl .compte-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12.5px;
  color: var(--text-suau);
}
.tl .compte-separador::before,
.tl .compte-separador::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* --- Camps --- */
.tl .compte-camp { margin-bottom: 16px; }
.tl .compte-camp label,
.tl .compte-etiqueta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.tl .compte-camp-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tl .compte-input-wrap { position: relative; }
.tl .compte-camp input[type="text"],
.tl .compte-camp input[type="email"],
.tl .compte-camp input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #FFFCF8;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl .compte-camp input:focus {
  border-color: var(--marro);
  box-shadow: 0 0 0 3px rgba(193, 123, 63, 0.15);
  background: white;
}
.tl .compte-camp input::placeholder { color: #B5A99A; }
.tl .compte-input-wrap input { padding-right: 76px; }
.tl .compte-mostra {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--marro);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.tl .compte-mostra:hover { background: var(--crema); }
.tl .compte-ajuda {
  font-size: 12px;
  color: var(--text-suau);
  margin-top: 6px;
}
.tl .compte-camp-error input { border-color: #C8553D; }
.tl .compte-error {
  font-size: 12.5px;
  color: #A8402C;
  margin-top: 6px;
}
/* --- Caselles --- */
.tl .compte-casella {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
  cursor: pointer;
}
.tl .compte-casella input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid #CDBBA2;
  border-radius: 5px;
  background: white;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.tl .compte-casella input::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.tl .compte-casella input:checked { background: var(--marro); border-color: var(--marro); }
.tl .compte-casella input:checked::after { opacity: 1; }
.tl .compte-casella input:focus-visible { box-shadow: 0 0 0 3px rgba(193, 123, 63, 0.2); }
.tl .compte-casella small { display: block; color: var(--text-suau); font-size: 12px; }
.tl .compte-caselles { margin: 6px 0 22px; }
/* --- Enllaços i textos petits --- */
.tl .compte-enllac {
  color: var(--marro);
  font-weight: 600;
  text-decoration: none;
}
.tl .compte-enllac:hover { text-decoration: underline; }
.tl .compte-enllac-petit { font-size: 12.5px; }
.tl .compte-peu {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-suau);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--crema-fosca);
}
.tl .compte-nota {
  display: flex;
  gap: 10px;
  background: var(--verd-molt-clar);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--verd-fosc);
}
/* --- Estats alternatius dins la mateixa targeta --- */
.tl .compte-estat { display: none; }
.tl .compte-estat.actiu { display: block; }
/* ============================================================
   CREAR COMPTE · dues columnes
   ============================================================ */
.tl .compte-dues-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.tl .compte-avantatges {
  background: var(--verd-molt-clar);
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 24px;
}
.tl .compte-avantatges-kicker {
  display: inline-block;
  background: var(--verd);
  color: white;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.tl .compte-avantatges h2 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--verd-fosc);
  margin-bottom: 12px;
}
.tl .compte-avantatges h2 em { font-style: italic; font-weight: 400; color: var(--verd); }
.tl .compte-avantatges > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-suau);
  margin-bottom: 28px;
}
.tl .compte-avantatges ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.tl .compte-avantatges li { display: flex; gap: 14px; align-items: flex-start; }
.tl .compte-avantatge-icona {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 124, 89, 0.12);
  color: var(--marro);
}
.tl .compte-avantatges li strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.tl .compte-avantatges li span { font-size: 13.5px; color: var(--text-suau); line-height: 1.5; }
.tl .compte-avantatges-peu {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(74, 124, 89, 0.18);
  font-size: 13px;
  color: var(--verd);
  font-weight: 600;
}
/* ============================================================
   EL MEU COMPTE
   ============================================================ */
.tl .compte-capcal {
  max-width: 1000px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.tl .compte-avatar-gran {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--verd);
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl .compte-capcal h1 {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}
.tl .compte-capcal h1 em { font-style: italic; font-weight: 400; color: var(--marro); }
.tl .compte-capcal p { font-size: 14px; color: var(--text-suau); margin-top: 4px; }
.tl .compte-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.tl .compte-menu {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  position: sticky;
  top: 96px;
}
.tl .compte-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-suau);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tl .compte-menu a:hover { background: var(--crema); color: var(--marro); }
.tl .compte-menu a.actiu { background: var(--crema); color: var(--marro-fosc); font-weight: 600; }
.tl .compte-menu-icona { width: 20px; text-align: center; font-size: 15px; }
.tl .compte-menu hr { border: none; border-top: 1px solid var(--crema-fosca); margin: 8px 6px; }
.tl .compte-menu .compte-menu-sortir { color: var(--text-suau); }
.tl .compte-seccions { display: flex; flex-direction: column; gap: 20px; }
.tl .compte-seccio {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  scroll-margin-top: 96px;
}
.tl .compte-seccio h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.tl .compte-seccio-desc {
  font-size: 13.5px;
  color: var(--text-suau);
  line-height: 1.55;
  margin-bottom: 20px;
}
.tl .compte-graella {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.tl .compte-accions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
/* Accessos ràpids */
.tl .compte-rapids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tl .compte-rapid {
  background: var(--crema);
  border: 1px solid var(--crema-fosca);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.tl .compte-rapid:hover { border-color: var(--marro); transform: translateY(-2px); }
.tl .compte-rapid-num {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--marro-fosc);
  line-height: 1;
}
.tl .compte-rapid-text { font-size: 13px; color: var(--text-suau); margin-top: 6px; }
/* Interruptor (newsletter) */
.tl .compte-interruptor {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: var(--crema);
  border-radius: 12px;
}
.tl .compte-interruptor strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.tl .compte-interruptor span { font-size: 13px; color: var(--text-suau); line-height: 1.5; }
.tl .compte-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer; }
.tl .compte-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.tl .compte-switch-pista {
  position: absolute;
  inset: 0;
  background: #D9CDBB;
  border-radius: 26px;
  transition: background 0.2s;
}
.tl .compte-switch-pista::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.tl .compte-switch input:checked + .compte-switch-pista { background: var(--verd); }
.tl .compte-switch input:checked + .compte-switch-pista::after { transform: translateX(20px); }
.tl .compte-switch input:focus-visible + .compte-switch-pista { box-shadow: 0 0 0 3px rgba(74,124,89,0.25); }
.tl .compte-estat-newsletter {
  font-size: 12.5px;
  color: var(--verd);
  font-weight: 600;
  margin-top: 12px;
}
/* Files de privacitat */
.tl .compte-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.tl .compte-fila + .compte-fila { border-top: 1px solid var(--crema-fosca); }
.tl .compte-fila strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.tl .compte-fila span { font-size: 13px; color: var(--text-suau); line-height: 1.5; }
.tl .compte-fila-perill strong { color: #A8402C; }
/* Finestra de confirmació */
.tl .compte-modal-fons {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tl .compte-modal-fons.obert { opacity: 1; pointer-events: all; }
.tl .compte-modal {
  background: white;
  border-radius: 16px;
  padding: 34px 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tl .compte-modal h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin: 10px 0 10px;
}
.tl .compte-modal p { font-size: 14px; color: var(--text-suau); line-height: 1.6; margin-bottom: 18px; }
.tl .compte-modal .compte-camp { text-align: left; }
.tl .compte-modal-botons { display: flex; gap: 10px; }
.tl .compte-modal-botons .compte-btn { flex: 1; }
/* ============================================================
   RESPONSIVE · COMPTE
   ============================================================ */
@media (max-width: 900px) {
.tl .compte-dues-col { grid-template-columns: 1fr; max-width: 520px; gap: 24px; }
.tl .compte-dues-col .compte-card { max-width: none; }
.tl .compte-dues-col > div { order: -1; }
/* al mòbil, primer el formulari */
.tl .compte-avantatges { margin-top: 0; padding: 32px 28px; }
.tl .compte-avantatges h2 { font-size: 28px; }
.tl .compte-layout { grid-template-columns: 1fr; gap: 16px; }
.tl .compte-menu {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }
.tl .compte-menu::-webkit-scrollbar { display: none; }
.tl .compte-menu a { white-space: nowrap; flex-shrink: 0; padding: 8px 12px; }
.tl .compte-menu hr { display: none; }
}
@media (max-width: 600px) {
.tl .compte-franja { font-size: 12px; }
.tl .compte-franja span:nth-child(n/**/+2) { display: none; }
.tl .compte-pagina { padding: 32px 16px 56px; min-height: calc(100vh - 60px - 101px); }
.tl .compte-card { padding: 30px 22px 24px; border-radius: 18px; }
.tl .compte-titol { font-size: 26px; }
.tl .compte-capcal { gap: 14px; margin-bottom: 22px; }
.tl .compte-avatar-gran { width: 54px; height: 54px; font-size: 24px; }
.tl .compte-capcal h1 { font-size: 26px; }
.tl .compte-seccio { padding: 22px 18px; }
.tl .compte-graella { grid-template-columns: 1fr; }
.tl .compte-rapids { grid-template-columns: 1fr 1fr; gap: 10px; }
.tl .compte-rapids .compte-rapid:last-child { grid-column: 1 / -1; }
.tl .compte-accions .compte-btn { width: 100%; }
.tl .compte-fila { flex-direction: column; align-items: flex-start; gap: 12px; }
.tl .compte-interruptor { padding: 14px; }
.tl .compte-modal-botons { flex-direction: column-reverse; }
}
/* Que cap enllaç de la capçalera es parteixi en dues línies */
.tl .nav-links a { white-space: nowrap; }
/* ============================================================
   FORMULARIS DE JETFORMBUILDER DINS LES TARGETES DE COMPTE
   (fan que el formulari real s'assembli al disseny)
   ============================================================ */
.tl .compte-card .jet-form-builder { margin: 0; padding: 0; }
.tl .compte-card .jet-form-builder-row { padding: 0; margin: 0 0 16px; }
.tl .compte-card .jet-form-builder__label { margin: 0 0 6px; padding: 0; }
.tl .compte-card .jet-form-builder__label-text,
.tl .compte-card .jet-form-builder__label > div {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.tl .compte-card .jet-form-builder__required { color: var(--marro); }
.tl .compte-card .jet-form-builder input.jet-form-builder__field.text-field {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #FFFCF8;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  line-height: normal;
  color: var(--text);
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl .compte-card .jet-form-builder input.jet-form-builder__field.text-field:focus {
  border-color: var(--marro);
  box-shadow: 0 0 0 3px rgba(193, 123, 63, 0.15);
  background: white;
}
.tl .compte-card .jet-form-builder input.jet-form-builder__field::placeholder { color: #B5A99A; opacity: 1; }
/* Ull de la contrasenya */
.tl .compte-card .jet-form-builder__field-wrap.has-eye-icon .jet-form-builder__field { padding-right: 48px; }
.tl .compte-card .jfb-eye-icon {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--marro);
  opacity: 0.85;
}
.tl .compte-card .jfb-eye-icon:hover { opacity: 1; }
.tl .compte-card .jfb-eye-icon svg { width: 20px; height: 20px; fill: currentColor; }
/* Descripcions i errors */
.tl .compte-card .jet-form-builder__desc small { font-size: 12px; color: var(--text-suau); }
.tl .compte-card .jet-form-builder__field-error,
.tl .compte-card .jet-form-builder-row .error-message {
  font-size: 12.5px;
  color: #A8402C;
  margin-top: 6px;
}
.tl .compte-card .jet-form-builder input.field-has-error,
.tl .compte-card .field-has-error input.jet-form-builder__field.text-field { border-color: #C8553D; }
/* Caselles */
.tl .compte-card .field-type-checkbox-field { margin-bottom: 12px; }
.tl .compte-card .field-type-checkbox-field .jet-form-builder__label:empty { display: none; }
.tl .compte-card .jet-form-builder__field-wrap.checkradio-wrap { width: 100%; }
.tl .compte-card .jet-form-builder__field-label.for-checkbox {
  display: flex;
  width: 100%;
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}
.tl .compte-card .jet-form-builder__field-label.for-checkbox > span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.tl .compte-card .field-type-checkbox-field .jet-form-builder__field-label.for-checkbox > span::before {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid #CDBBA2;
  border-radius: 5px;
  background-color: white;
  background-size: 10px 10px;
  transition: background-color 0.15s, border-color 0.15s;
}
.tl .compte-card .field-type-checkbox-field .jet-form-builder__field-label.for-checkbox :checked + span::before {
  background-color: var(--marro);
  border-color: var(--marro);
}
.tl .compte-card .field-type-checkbox-field .jet-form-builder__field-label.for-checkbox :focus-visible + span::before {
  box-shadow: 0 0 0 3px rgba(193, 123, 63, 0.2);
}
.tl .compte-card .field-type-checkbox-field .jet-form-builder__field-label.for-checkbox :not(:disabled):not(:checked):hover + span::before {
  border-color: var(--marro);
}
.tl .compte-card .jet-form-builder__field-wrap.checkradio-wrap span.compte-casella-text { display: block; }
.tl .compte-card .compte-casella-text small { display: block; color: var(--text-suau); font-size: 12px; }
.tl .compte-card .compte-casella-text a { color: var(--marro); font-weight: 600; text-decoration: none; }
.tl .compte-card .compte-casella-text a:hover { text-decoration: underline; }
/* Botó d'enviar */
.tl .compte-card .jet-form-builder__action-button-wrapper { margin-top: 22px; padding: 0; }
.tl .compte-card .jet-form-builder button.jet-form-builder__action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: var(--marro);
  color: white;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
  transition: background 0.2s;
}
.tl .compte-card .jet-form-builder button.jet-form-builder__action-button:hover,
.tl .compte-card .jet-form-builder button.jet-form-builder__action-button:focus {
  background: var(--marro-fosc);
  color: white;
}
.tl .compte-card .jet-form-builder.is-loading button.jet-form-builder__action-button { opacity: 0.7; }
/* Missatges del formulari */
.tl .compte-card .jet-form-builder-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: left;
}
.tl .compte-card .jet-form-builder-message--success { background: var(--verd-molt-clar); color: var(--verd-fosc); }
.tl .compte-card .jet-form-builder-message--error { background: #FBEFEC; color: #A8402C; }

/* ====================================================================
   4. BOTÓ FLOTANT D'EN RENARD (comú a totes les pàgines)
   ==================================================================== */

/* BOTÓ FLOTANT */
.tl .renard-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
.tl .renard-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.tl .renard-fab.visible { display: flex; }
.tl .renard-fab-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 18px; height: 18px;
    background: #C17B3F;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
  }
.tl .renard-fab-badge.visible { display: block; }
/* PANELL XAT FLOTANT */
.tl .renard-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 400;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
  }
.tl .renard-panel.obert {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }
/* CAPÇALERA PANELL */
.tl .renard-panel-cap {
    background: #1A2B1B;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
.tl .renard-panel-avatar {
    font-size: 24px;
    line-height: 1;
  }
.tl .renard-panel-info { flex: 1; }
.tl .renard-panel-nom {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
  }
.tl .renard-panel-estat {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
  }
.tl .renard-panel-accions {
    display: flex;
    gap: 6px;
  }
.tl .renard-panel-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
.tl .renard-panel-btn:hover { background: rgba(255,255,255,0.3); }
.tl .renard-panel-btn[title="Obre la pàgina d'En Renard"] { font-size: 12px; font-weight: 700; }
/* HISTORIAL */
.tl .renard-panel-historial {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FDF6EE;
    scrollbar-width: thin;
    scrollbar-color: #E8D9C4 transparent;
  }
.tl .renard-panel-historial::-webkit-scrollbar { width: 4px; }
.tl .renard-panel-historial::-webkit-scrollbar-thumb { background: #E8D9C4; border-radius: 2px; }
/* BOMBOLLES */
.tl .rf-missatge {
    display: flex;
    align-items: flex-end;
    gap: 7px;
  }
.tl .rf-missatge.usuari { flex-direction: row-reverse; }
.tl .rf-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #1A2B1B;
    color: white;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
.tl .rf-missatge.usuari .rf-avatar { background: #C17B3F; }
.tl .rf-bombolla {
    max-width: 240px;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #2C2C2C;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl .rf-missatge.usuari .rf-bombolla {
    background: #C17B3F;
    color: white;
  }
.tl .rf-rec-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    max-width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
.tl .rf-rec-card:hover { border-color: #1A2B1B; box-shadow: 0 2px 12px rgba(26,43,27,0.12); }
.tl .rf-rec-cover {
    width: 40px; height: 54px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C4D4E8, #A0B8D4);
  }
.tl .rf-rec-titol { font-size: 12px; font-weight: 700; color: #2C2C2C; margin-bottom: 2px; }
.tl .rf-rec-autor { font-size: 11px; color: #6B6B6B; }
/* ESCRIVINT */
.tl .rf-escrivint {
    display: none;
    align-items: flex-end;
    gap: 7px;
  }
.tl .rf-escrivint.visible { display: flex; }
.tl .rf-dots {
    background: white;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex; gap: 4px; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl .rf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C8A96E;
    animation: rfDot 1.2s infinite;
  }
.tl .rf-dot:nth-child(2) { animation-delay: 0.2s; }
.tl .rf-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes rfDot { 0%,60%,100% { transform: translateY(0); opacity:0.4; } 30% { transform: translateY(-5px); opacity:1; } }
/* INPUT */
.tl .renard-panel-input {
    padding: 12px;
    border-top: 1px solid #E8D9C4;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: white;
    flex-shrink: 0;
  }
.tl .rf-input {
    flex: 1;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 13px;
    font-family: "Nunito", sans-serif;
    color: #2C2C2C;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color 0.2s;
  }
.tl .rf-input:focus { border-color: #1A2B1B; }
.tl .rf-enviar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
.tl .rf-enviar:hover { background: #3D6B1E; }
.tl .rf-enviar:disabled { background: #C8D9C4; cursor: not-allowed; }
/* MISSATGE BUIT */
.tl .rf-buit {
    text-align: center;
    padding: 32px 16px;
    color: #6B6B6B;
    font-size: 13px;
    line-height: 1.6;
  }
.tl .rf-buit-emoji { font-size: 36px; margin-bottom: 10px; }
@media (max-width: 480px) {
.tl .renard-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
.tl .renard-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
}

/* ====================================================================
   5. ESTILS DE CADA PÀGINA
   ==================================================================== */



/* ====================================================================
   CATÀLEG — part 2 · classe .tl-cataleg · Pàgina "Catàleg"
   ==================================================================== */


.tl-cataleg .btn-llista-card {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid #E8D9C4;
    color: #C4A0A0;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    vertical-align: middle;
  }
.tl-cataleg .btn-llista-card:hover { border-color: #E07070; color: #E07070; transform: scale(1.12); }
.tl-cataleg .btn-llista-card.afegit { background: #FFF0F0; border-color: #E07070; color: #E07070; }
.tl-cataleg .cor-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #2C2C2C;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 10;
    font-family: "Nunito", sans-serif;
  }
.tl-cataleg .cor-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 10px;
    border: 5px solid transparent;
    border-top-color: #2C2C2C;
  }
.tl-cataleg .btn-llista-card:hover .cor-tooltip {
    opacity: 1;
    transform: translateY(0);
  }
.tl-cataleg .login-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
.tl-cataleg .login-modal-overlay.obert { opacity: 1; pointer-events: all; }
.tl-cataleg .login-modal {
    background: white; border-radius: 16px;
    padding: 36px 32px; max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
  }
.tl-cataleg .login-modal-icon { font-size: 40px; margin-bottom: 12px; }
.tl-cataleg .login-modal h3 { font-family: "Playfair Display", serif; font-size: 22px; color: #2C2C2C; margin-bottom: 10px; }
.tl-cataleg .login-modal p { font-size: 14px; color: #6B6B6B; line-height: 1.6; margin-bottom: 24px; }
.tl-cataleg .login-modal-botons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tl-cataleg .btn-login-google,
.tl-cataleg .btn-login-apple,
.tl-cataleg .btn-login-mail {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s; width: 100%; font-family: "Nunito", sans-serif;
  }
.tl-cataleg .btn-login-google { background: white; border: 1.5px solid #E0E0E0; color: #333; }
.tl-cataleg .btn-login-google:hover { background: #F5F5F5; }
.tl-cataleg .btn-login-apple { background: #111; color: white; }
.tl-cataleg .btn-login-apple:hover { background: #333; }
.tl-cataleg .btn-login-mail { background: #C17B3F; color: white; }
.tl-cataleg .btn-login-mail:hover { background: #8B5A2B; }
.tl-cataleg .login-modal-tancar {
    position: absolute; top: 14px; right: 14px;
    background: none; border: none; font-size: 20px; color: #6B6B6B;
    cursor: pointer; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
  }
.tl-cataleg .login-modal-tancar:hover { background: #EEF4EB; }
.tl-cataleg .login-modal-peu { font-size: 12px; color: #BBBBBB; }


/* ====================================================================
   FITXA DE LLIBRE — part 2 · classe .tl-fitxa-llibre · Plantilla Single · Llibre
   ==================================================================== */


.tl-fitxa-llibre { background: var(--crema); }


/* ====================================================================
   FITXA DE PERSONA (autor/a i il·lustrador/a) · classe .tl-persona · Plantilla Single · Persona
   ==================================================================== */


.tl-persona { background: var(--crema); }
/* ── BREADCRUMB ── */
.tl-persona .breadcrumb {
  padding: 10px 48px;
  background: var(--verd-molt-clar);
  border-bottom: 1px solid #C8DFC4;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-suau);
}
.tl-persona .breadcrumb a { color: var(--verd); text-decoration: none; font-weight: 600; transition: color .2s; }
.tl-persona .breadcrumb a:hover { color: var(--verd-fosc); text-decoration: underline; }
.tl-persona .breadcrumb-sep { opacity: .5; color: var(--verd); }
.tl-persona .breadcrumb-actual { color: var(--text); font-weight: 600; }
/* ── HERO ── */
.tl-persona .autor-hero {
  background: var(--crema-fosca);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
}
.tl-persona .autor-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 48px; align-items: center;
}
.tl-persona .autor-foto-wrapper { position: relative; flex-shrink: 0; }
.tl-persona .autor-foto {
  width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, #C4D4B8, #A0BC8C);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid white;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
}
.tl-persona .autor-foto img { width: 100%; height: 100%; object-fit: cover; }
.tl-persona .autor-rol-badge {
  position: absolute; bottom: 8px; right: -4px;
  background: var(--verd); color: white;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  border: 2px solid white; white-space: nowrap;
}
.tl-persona .autor-info { display: flex; flex-direction: column; gap: 14px; }
.tl-persona .autor-rol {
  font-size: 12px; font-weight: 700; color: var(--verd);
  text-transform: uppercase; letter-spacing: 1px;
}
.tl-persona .autor-nom {
  font-family: "Playfair Display", serif;
  font-size: 44px; font-weight: 600; color: var(--text);
  line-height: 1.1; margin: 0;
}
.tl-persona .autor-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tl-persona .autor-obra {
  font-size: 14px;
  color: var(--text-suau);
  font-weight: 400;
}
.tl-persona .autor-obra em {
  font-family: "Playfair Display", serif;
  color: var(--marro);
  font-style: italic;
  font-weight: 600;
}
.tl-persona .autor-link-web {
    font-size: 14px;
    font-weight: 600;
    color: var(--marro);
    text-decoration: underline;
    text-decoration-color: var(--marro);
    text-underline-offset: 3px;
    letter-spacing: .3px;
    transition: color .2s;
  }
.tl-persona .autor-link-web:hover { color: var(--marro-fosc); }
/* ── GRID CONTINGUT (bio + lateral) ── */
.tl-persona .autor-contingut {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 48px 48px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; align-items: flex-start;
}
.tl-persona .autor-seccio {
  background: white; border-radius: 16px;
  border: 1px solid var(--border); padding: 32px;
  margin-bottom: 24px;
}
.tl-persona .autor-seccio:last-child { margin-bottom: 0; }
.tl-persona .autor-seccio-titol {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-weight: 600; color: var(--text);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--crema-fosca);
}
.tl-persona .autor-bio p {
  font-size: 15px; line-height: 1.8; color: var(--text);
  margin-bottom: 14px; font-weight: 400;
}
.tl-persona .autor-bio p:last-child { margin-bottom: 0; }
/* Premis */
.tl-persona .premis-llista { display: flex; flex-direction: column; gap: 12px; }
.tl-persona .premi-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: #FFFDF5; border: 1px solid #F0E4B8; border-radius: 10px;
}
.tl-persona .premi-icona { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.tl-persona .premi-nom { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.tl-persona .premi-detall { font-size: 12px; color: var(--text-suau); }
/* Lateral */
.tl-persona .autor-lateral-card {
  background: white; border-radius: 16px;
  border: 1px solid var(--border); padding: 24px;
  margin-bottom: 20px;
}
.tl-persona .autor-lateral-card:last-child { margin-bottom: 0; }
.tl-persona .autor-lateral-titol {
  font-family: "Playfair Display", serif;
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 16px;
}
.tl-persona .dades-llista { display: flex; flex-direction: column; }
.tl-persona .dada-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; font-size: 13px;
  padding: 10px 0; border-bottom: 1px solid var(--crema-fosca);
}
.tl-persona .dada-item:last-child { border-bottom: none; padding-bottom: 0; }
.tl-persona .dada-label { color: var(--text-suau); font-weight: 500; flex-shrink: 0; }
.tl-persona .dada-valor { color: var(--text); font-weight: 600; text-align: right; }
/* Col·laborador */
.tl-persona .autor-collab-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--crema);
  text-decoration: none; transition: all .2s;
}
.tl-persona .autor-collab-card:hover { border-color: var(--marro); background: white; }
.tl-persona .autor-collab-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tl-persona .autor-collab-nom { font-size: 14px; font-weight: 700; color: var(--text); }
.tl-persona .autor-collab-rol { font-size: 12px; color: var(--text-suau); margin-top: 2px; }
/* ── SECCIÓ LLIBRES — ample complet ── */
.tl-persona .autor-llibres-seccio {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 48px 52px;
  background: white;
}
.tl-persona .autor-llibres-inner {
  max-width: 1100px; margin: 0 auto;
}
.tl-persona .autor-llibres-capçalera {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--crema-fosca);
}
.tl-persona .autor-llibres-titol {
  font-family: "Playfair Display", serif;
  font-size: 28px; font-weight: 600; color: var(--text);
}
.tl-persona .autor-total-pill {
  font-size: 13px; color: var(--text-suau); font-weight: 500;
  background: var(--crema-fosca);
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border);
}
.tl-persona .autor-llibres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.tl-persona .autor-card-oculta { display: none !important; }
/* ── SECCIÓ AUTORS SIMILARS — ample complet ── */
.tl-persona .autors-similars-seccio {
  background: var(--crema-fosca);
  border-bottom: 1px solid var(--border);
  padding: 48px 48px 56px;
}
.tl-persona .autors-similars-inner {
  max-width: 1100px; margin: 0 auto;
}
.tl-persona .autors-similars-cap {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.tl-persona .autors-similars-cap h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px; font-weight: 600; color: var(--text);
}
.tl-persona .autors-similars-cap h2 span { color: var(--marro); font-style: italic; }
.tl-persona .autors-similars-cap p {
  font-size: 13px; color: var(--text-suau);
}
.tl-persona .autors-similars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tl-persona .autor-similar-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tl-persona .autor-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  border-color: var(--marro);
}
.tl-persona .autor-similar-foto {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 24px auto 0;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    flex-shrink: 0;
  }
.tl-persona .autor-similar-info {
  padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.tl-persona .autor-similar-rol {
  font-size: 10px; font-weight: 700; color: var(--verd);
  text-transform: uppercase; letter-spacing: .6px;
}
.tl-persona .autor-similar-nom {
  font-family: "Playfair Display", serif;
  font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.2;
}
.tl-persona .autor-similar-desc {
  font-size: 12px; color: var(--text-suau); line-height: 1.5; margin-top: 4px; flex: 1;
}
.tl-persona .autor-similar-titols {
  font-size: 11px; font-weight: 700; color: var(--marro); margin-top: 8px;
}
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
.tl-persona .autor-hero { padding: 32px 24px; }
.tl-persona .autor-hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
.tl-persona .autor-foto { width: 150px; height: 150px; margin: 0 auto; }
.tl-persona .autor-meta { justify-content: center; }
.tl-persona .autor-stats { justify-content: center; }
.tl-persona .autor-contingut { grid-template-columns: 1fr; padding: 28px 24px 40px; gap: 24px; }
.tl-persona .autor-llibres-seccio { padding: 36px 24px 44px; }
.tl-persona .autors-similars-seccio { padding: 36px 24px 44px; }
.tl-persona .autors-similars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
.tl-persona .breadcrumb { padding: 8px 20px; }
.tl-persona .autor-nom { font-size: 32px; }
.tl-persona .autor-llibres-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tl-persona .autors-similars-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* ── GALERIA IL·LUSTRACIONS ── */
.tl-persona .illustrador-galeria-seccio {
    background: var(--crema-fosca);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 48px;
  }
.tl-persona .illustrador-galeria-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
.tl-persona .illustrador-galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
.tl-persona .illustrador-galeria-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
  }
.tl-persona .illustrador-galeria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
  }
.tl-persona .galeria-imatge {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
  }
.tl-persona .galeria-peu {
    padding: 10px 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
.tl-persona .galeria-titol-llibre {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
.tl-persona .galeria-any {
    font-size: 11px;
    color: var(--text-suau);
    font-weight: 500;
  }
.tl-persona .galeria-nota {
    font-size: 11px;
    color: var(--text-suau);
    margin-top: 16px;
    font-style: italic;
    text-align: center;
  }
@media (max-width: 900px) {
.tl-persona .illustrador-galeria-seccio { padding: 24px; }
.tl-persona .illustrador-galeria-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ====================================================================
   LA MEVA LLISTA · classe .tl-llista · Pàgina "La meva llista"
   ==================================================================== */


/* ============================================================
   PÀGINA LA MEVA LLISTA
   ============================================================ */
.tl-llista,
.tl-llista {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.tl-llista main { flex: 1; }
/* --- Hero --- */
.tl-llista .llista-nom-editable {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  outline: none;
  cursor: text;
  padding: 0;
  display: inline;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.tl-llista .llista-nom-editable:hover,
.tl-llista .llista-nom-editable:focus {
  border-bottom-color: var(--verd);
}
.tl-llista .llista-comptador {
  font-size: 14px;
  color: var(--text-suau);
  font-weight: 400;
}
.tl-llista .btn-exportar-hero {
  background: var(--verd);
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  transition: all 0.2s;
}
.tl-llista .btn-exportar-hero:hover {
  background: var(--verd-fosc);
}
.tl-llista .btn-buidar {
  background: var(--verd);
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  transition: all 0.2s;
}
.tl-llista .btn-buidar:hover {
  background: var(--verd-fosc);
}
/* --- Cos principal --- */
.tl-llista .llista-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
/* --- Zona 2: Llibres --- */
.tl-llista .zona-llibres {}
.tl-llista .zona-llibres-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tl-llista .zona-llibres-cap .zona-titol {
  margin-bottom: 0;
}
.tl-llista .zona-titol {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 20px;
}
.tl-llista .zona-llibres-cap .zona-titol { margin-bottom: 0; }
/* Estat buit */
.tl-llista .llista-buida {
  text-align: center;
  padding: 60px 24px;
  background: var(--crema);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tl-llista .llista-buida-emoji { font-size: 56px; margin-bottom: 16px; }
.tl-llista .llista-buida h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.tl-llista .llista-buida p {
  font-size: 15px;
  color: var(--text-suau);
  margin-bottom: 24px;
  font-weight: 300;
}
/* Cards de la llista */
.tl-llista .llista-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-llista .llista-item {
  background: var(--crema);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.tl-llista .llista-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tl-llista .llista-item-portada {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.tl-llista .llista-item-info {
  flex: 1;
  min-width: 0;
}
.tl-llista .llista-item-titol {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-llista .llista-item-autor {
  font-size: 13px;
  color: var(--text-suau);
  margin-bottom: 5px;
}
.tl-llista .llista-item-meta {
  font-size: 12px;
  color: var(--marro);
  font-weight: 700;
}
.tl-llista .llista-item-accions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.tl-llista .btn-reordenar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-suau);
  padding: 2px 6px;
  transition: color 0.2s;
  font-family: "Nunito", sans-serif;
}
.tl-llista .btn-reordenar:hover { color: var(--marro); }
.tl-llista .btn-treure {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
  padding: 4px 6px;
  transition: color 0.2s;
  font-family: "Nunito", sans-serif;
  line-height: 1;
}
.tl-llista .btn-treure:hover { color: #e55; }
/* --- Zona 3: Personalitzar i exportar --- */
.tl-llista .zona-exportar {
  background: var(--crema-fosca);
  border-radius: 16px;
  padding: 28px 32px;
  border: 1px solid var(--border);
}
.tl-llista .subzona-titol {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-suau);
  margin-bottom: 14px;
}
/* Checkboxes */
.tl-llista .camps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.tl-llista .camp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
}
.tl-llista .camp-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--verd);
  cursor: pointer;
}
.tl-llista .format-opcions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.tl-llista .format-opcio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.tl-llista .format-opcio input[type="radio"] {
  accent-color: var(--verd);
  cursor: pointer;
}
/* Vista prèvia */
.tl-llista .previa-wrap {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  max-height: 380px;
  overflow-y: auto;
}
.tl-llista .previa-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tl-llista .previa-item:last-child { border-bottom: none; }
.tl-llista .previa-portada {
  width: 32px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tl-llista .previa-info { flex: 1; min-width: 0; }
.tl-llista .previa-titol {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
}
.tl-llista .previa-detall {
  font-size: 11px;
  color: var(--text-suau);
  line-height: 1.4;
}
.tl-llista .previa-buida {
  text-align: center;
  color: var(--text-suau);
  font-size: 14px;
  padding: 40px 0;
  font-weight: 300;
}
/* Botons exportar */
.tl-llista .exportar-botons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.tl-llista .btn-exportar {
  background: var(--verd);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.tl-llista .btn-exportar:hover {
  background: var(--verd-fosc);
  transform: translateY(-1px);
}
.tl-llista .btn-exportar.secundari {
  background: var(--blanc);
  color: var(--marro-fosc);
  border: 1px solid var(--border);
  box-shadow: none;
}
.tl-llista .btn-exportar.secundari:hover {
  background: var(--crema);
  border-color: var(--marro);
}
/* Modal de confirmació */
.tl-llista .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.tl-llista .modal-overlay.visible { display: flex; }
.tl-llista .modal-box {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
}
.tl-llista .modal-box h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 10px;
}
.tl-llista .modal-box p {
  font-size: 14px;
  color: var(--text-suau);
  margin-bottom: 24px;
}
.tl-llista .modal-botons { display: flex; gap: 12px; justify-content: center; }
.tl-llista .modal-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.tl-llista .modal-btn.confirmar {
  background: #e55;
  color: white;
  border-color: #e55;
}
.tl-llista .modal-btn.confirmar:hover { background: #c33; border-color: #c33; }
.tl-llista .modal-btn.cancelar:hover { background: var(--crema-fosca); }
/* Responsive */
@media (max-width: 768px) {
.tl-llista .llista-hero { padding: 28px 20px 24px; }
.tl-llista .llista-main { padding: 24px 20px; }
.tl-llista .llista-cap-meta { flex-wrap: wrap; gap: 10px; }
.tl-llista .llista-nom-editable { font-size: 26px; }
.tl-llista .camps-grid { grid-template-columns: 1fr; }
}
/* Nom editable — wrapper amb llapis */
.tl-llista .llista-nom-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tl-llista .btn-editar-nom {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.2s;
  padding: 2px 4px;
  line-height: 1;
  margin-top: 4px;
  flex-shrink: 0;
}
.tl-llista .btn-editar-nom:hover { opacity: 0.6; }
/* Camps pendents */
.tl-llista .camp-pendent {
  opacity: 0.45;
  cursor: default;
}
.tl-llista .camp-pendent input { cursor: not-allowed; }
.tl-llista .camp-pendent-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--marro);
  background: var(--crema-fosca);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
}
/* ── Secció exportar redissenyada ── */
.tl-llista .zona-exportar {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 88px;
}
.tl-llista .exportar-cap {
  margin-bottom: 28px;
}
.tl-llista .exportar-titol {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}
.tl-llista .exportar-subtitol {
  font-size: 14px;
  color: var(--text-suau);
  font-weight: 300;
}
.tl-llista .exportar-cos {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tl-llista .exportar-camps-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-suau);
  margin-bottom: 14px;
}
.tl-llista .camps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
/* Botons d'acció */
.tl-llista .exportar-accions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.tl-llista .btn-accio {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--crema);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.tl-llista .btn-accio:hover {
  border-color: var(--marro);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.tl-llista .btn-accio-icona {
  font-size: 24px;
  flex-shrink: 0;
}
.tl-llista .btn-accio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-llista .btn-accio-text strong {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.tl-llista .btn-accio-text small {
  font-size: 12px;
  color: var(--text-suau);
  font-weight: 300;
}
.tl-llista .btn-accio-previa {
  background: var(--verd);
  border-color: var(--verd);
  color: white;
  padding: 9px 20px;
  border-radius: 20px;
  width: fit-content;
  display: block;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 600;
  font-family: "Nunito", sans-serif;
}
.tl-llista .btn-accio-previa:hover {
  background: var(--verd-fosc);
  border-color: var(--verd-fosc);
  transform: none;
  box-shadow: none;
}
.tl-llista .btn-accio-pdf:hover { border-color: var(--marro); }
.tl-llista .btn-accio-mail:hover { border-color: var(--verd); }
/* ── Modal vista prèvia ── */
.tl-llista .modal-previa-box {
  background: white;
  border-radius: 20px;
  width: 95%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.tl-llista .modal-previa-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  flex: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.tl-llista .modal-camps-col {
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}
.tl-llista .modal-camps-botons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tl-llista .modal-camps-botons .btn-exportar {
  width: 100%;
  padding: 9px 14px;
  font-size: 13px;
  text-align: center;
  justify-content: center;
}
.tl-llista .modal-camps-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-suau);
  margin-bottom: 12px;
}
.tl-llista .modal-camps-col .camps-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.tl-llista .modal-previa-col {
  overflow-y: auto;
  padding: 20px 24px;
  background: white;
  min-height: 0;
}
.tl-llista .modal-previa-cap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tl-llista .modal-previa-titol {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-llista .modal-previa-subtitol {
  font-size: 13px;
  color: var(--text-suau);
}
.tl-llista .modal-previa-tancar {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-suau);
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.tl-llista .modal-previa-tancar:hover { color: var(--text); }
.tl-llista .modal-previa-cos {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
@media (max-width: 768px) {
.tl-llista .exportar-accions { flex-direction: column; }
.tl-llista .btn-accio { min-width: unset; }
.tl-llista .modal-previa-peu { flex-direction: column; }
}
/* --- Pestanyes --- */
.tl-llista .favorits-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.tl-llista .favorits-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-suau);
  cursor: pointer;
  border: none;
  background: none;
  font-family: "Nunito", sans-serif;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-llista .favorits-tab:hover { color: var(--text); }
.tl-llista .favorits-tab.actiu {
  color: var(--marro-fosc);
  border-bottom-color: var(--marro);
}
.tl-llista .favorits-tab-badge {
  background: var(--crema-fosca);
  color: var(--text-suau);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}
.tl-llista .favorits-tab.actiu .favorits-tab-badge {
  background: var(--marro);
  color: white;
}
.tl-llista .favorits-panel { display: none; }
.tl-llista .favorits-panel.actiu { display: block; }
/* Cards autors/il·lustradors */
.tl-llista .llista-item-persona {
  background: var(--crema);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.tl-llista .llista-item-persona:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tl-llista .llista-item-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--crema-fosca);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
/* Drag & drop */
/* Capçalera de pàgina */
.tl-llista .llista-pagina-titol {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.tl-llista .llista-pagina-desc {
  font-size: 15px;
  color: var(--text-suau);
  font-weight: 300;
  line-height: 1.6;
}
/* Capçalera inline (sense hero) */
.tl-llista .llista-cap {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.tl-llista .llista-cap-titol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.tl-llista .llista-cap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tl-llista .llista-cap-botons {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* BANNER LLISTA */
.tl-llista .banner-llista {
    background: var(--marro);
    padding: 7px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
.tl-llista .banner-llista span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
  }
.tl-llista .banner-llista .banner-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
  }
.tl-llista .renard-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
.tl-llista .renard-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.25); }
.tl-llista .renard-fab.visible { display: flex; }
.tl-llista .renard-fab-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 18px; height: 18px;
    background: #C17B3F;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
  }
.tl-llista .renard-fab-badge.visible { display: block; }
/* PANELL XAT FLOTANT */
.tl-llista .renard-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 400;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
  }
.tl-llista .renard-panel.obert {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }
/* CAPÇALERA PANELL */
.tl-llista .renard-panel-cap {
    background: #1A2B1B;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
.tl-llista .renard-panel-avatar {
    font-size: 24px;
    line-height: 1;
  }
.tl-llista .renard-panel-info { flex: 1; }
.tl-llista .renard-panel-nom {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
  }
.tl-llista .renard-panel-estat {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
  }
.tl-llista .renard-panel-accions {
    display: flex;
    gap: 6px;
  }
.tl-llista .renard-panel-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
.tl-llista .renard-panel-btn:hover { background: rgba(255,255,255,0.3); }
.tl-llista .renard-panel-btn[title="Obre la pàgina d'En Renard"] { font-size: 12px; font-weight: 700; }
/* HISTORIAL */
.tl-llista .renard-panel-historial {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FDF6EE;
    scrollbar-width: thin;
    scrollbar-color: #E8D9C4 transparent;
  }
.tl-llista .renard-panel-historial::-webkit-scrollbar { width: 4px; }
.tl-llista .renard-panel-historial::-webkit-scrollbar-thumb { background: #E8D9C4; border-radius: 2px; }
/* BOMBOLLES */
.tl-llista .rf-missatge {
    display: flex;
    align-items: flex-end;
    gap: 7px;
  }
.tl-llista .rf-missatge.usuari { flex-direction: row-reverse; }
.tl-llista .rf-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #1A2B1B;
    color: white;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
.tl-llista .rf-missatge.usuari .rf-avatar { background: #C17B3F; }
.tl-llista .rf-bombolla {
    max-width: 240px;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #2C2C2C;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl-llista .rf-missatge.usuari .rf-bombolla {
    background: #C17B3F;
    color: white;
  }
.tl-llista .rf-rec-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    max-width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
.tl-llista .rf-rec-card:hover { border-color: #1A2B1B; box-shadow: 0 2px 12px rgba(26,43,27,0.12); }
.tl-llista .rf-rec-cover {
    width: 40px; height: 54px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C4D4E8, #A0B8D4);
  }
.tl-llista .rf-rec-titol { font-size: 12px; font-weight: 700; color: #2C2C2C; margin-bottom: 2px; }
.tl-llista .rf-rec-autor { font-size: 11px; color: #6B6B6B; }
/* ESCRIVINT */
.tl-llista .rf-escrivint {
    display: none;
    align-items: flex-end;
    gap: 7px;
  }
.tl-llista .rf-escrivint.visible { display: flex; }
.tl-llista .rf-dots {
    background: white;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex; gap: 4px; align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
.tl-llista .rf-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C8A96E;
    animation: rfDot 1.2s infinite;
  }
.tl-llista .rf-dot:nth-child(2) { animation-delay: 0.2s; }
.tl-llista .rf-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes rfDot { 0%,60%,100% { transform: translateY(0); opacity:0.4; } 30% { transform: translateY(-5px); opacity:1; } }
/* INPUT */
.tl-llista .renard-panel-input {
    padding: 12px;
    border-top: 1px solid #E8D9C4;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: white;
    flex-shrink: 0;
  }
.tl-llista .rf-input {
    flex: 1;
    border: 1px solid #E8D9C4;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 13px;
    font-family: "Nunito", sans-serif;
    color: #2C2C2C;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color 0.2s;
  }
.tl-llista .rf-input:focus { border-color: #1A2B1B; }
.tl-llista .rf-enviar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }
.tl-llista .rf-enviar:hover { background: #3D6B1E; }
.tl-llista .rf-enviar:disabled { background: #C8D9C4; cursor: not-allowed; }
/* MISSATGE BUIT */
.tl-llista .rf-buit {
    text-align: center;
    padding: 32px 16px;
    color: #6B6B6B;
    font-size: 13px;
    line-height: 1.6;
  }
.tl-llista .rf-buit-emoji { font-size: 36px; margin-bottom: 10px; }
@media (max-width: 480px) {
.tl-llista .renard-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
.tl-llista .renard-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1A2B1B;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 400;
    transition: transform 0.2s, box-shadow 0.2s;
  }
}


/* ====================================================================
   6. AJUSTOS PER A WORDPRESS
   ==================================================================== */

/* A l'HTML la capçalera i el peu eren dins de la mateixa pàgina.
   A WordPress són a part (Theme Builder), per això les pàgines que
   ocupen tota la pantalla han de descomptar-ne l'alçada.
   Capçalera: 72px · Peu: uns 101px. Si els canvies, ajusta aquests números. */

.tl-renard {
  height: calc(100vh - 72px);
}

.tl-llista {
  min-height: calc(100vh - 72px - 101px);
}

/* Peu més compacte (101px en lloc de 129px) */
.tl footer { padding: 14px 48px; }
.tl .footer-top-final { padding-bottom: 10px; margin-bottom: 10px; }
.tl .footer-marca .nav-nom { font-size: 18px; margin-bottom: 2px; }

/* El peu sempre a baix de tot, encara que la pàgina tingui poc contingut */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.elementor-location-footer {
  margin-top: auto;
}
body > * {
  width: 100%;
  flex-shrink: 0;
}

/* Capçalera · "Entrar" o "El meu compte" segons si la persona ha entrat.
   WordPress posa la classe "logged-in" al <body> quan hi ha una sessió oberta. */
.tl .nav-compte-logat { display: none; }
body.logged-in .tl .nav-compte-entrar { display: none; }
body.logged-in .tl .nav-compte-logat { display: flex; }

/* Catàleg · "Ordenar per" en una sola línia */
.tl-cataleg .ordenacio-label { white-space: nowrap; }

/* Inici · carrusel de llibres destacats: espai perquè l'ombra de les fitxes
   no quedi retallada (quadrada). El marge negatiu manté la posició. */
.tl-inici .cataleg-carrusel {
  padding: 10px 16px 34px;
  margin: -2px -16px -26px;
}
.tl-inici .cataleg-carrusel .llibre-card:hover {
  box-shadow: 0 12px 22px -8px rgba(0,0,0,0.22);
}

/* Tauleta (701-1024px): capçalera i peu com a l'ordinador, una mica més compactes */
@media (min-width: 701px) and (max-width: 1024px) {
  .tl nav { padding: 0 24px; }
  .tl .nav-logo { height: 48px; }
  .tl .nav-links { gap: 22px; }
  .tl footer { padding: 14px 24px; }
  .tl .footer-links-simple { gap: 22px; }
}

/* Mòbil (fins a 700px): la capçalera fa 60px */
@media (max-width: 700px) {
  .tl-renard { height: calc(100vh - 60px); }
}
