/* =====================================================
   LLEGIR I IMAGINAR — Art Direction Premium
   ===================================================== */

/* ==================== HERO LLIBRE — MÉS PROTAGONISME ==================== */
.llibre-panel {
    padding: 3rem 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Doodle decoratiu subtil — cercles orgànics */
.llibre-panel::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(148,191,32,.08);
    pointer-events: none;
}

.llibre-panel::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(148,191,32,.06);
    pointer-events: none;
}

/* Cover del llibre — més presència */
.llibre-cover {
    position: relative;
}

.llibre-img {
    border-radius: 8px;
}

/* ==================== SOBRE EL LLIBRE — MÉS DINÀMIC ==================== */
.llibre-detall.llibre-detall-visible {
    padding: 2rem 0 0;
    margin-top: 2rem;
}

.llibre-detall-title {
    position: relative;
    display: inline-block;
}

.llibre-detall-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 3px;
    background: var(--verde);
    border-radius: 2px;
}

.llibre-detall-text {
    margin-bottom: 1rem;
}

.llibre-detall-text strong {
    color: var(--verde);
}

.llibre-detall-text em {
    color: var(--verde);
    font-weight: 700;
}

/* Dades — millor UI */
.llibre-detall-dades {
    margin-top: 1.75rem;
}

.llibre-dada {
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(0,0,0,.04);
}

.llibre-dada:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.llibre-dada strong {
    font-size: .82rem;
}

/* ==================== TASTET — MÉS PRESÈNCIA ==================== */
.llibre-tastet-section {
    padding-top: 1rem;
    padding-bottom: .5rem;
}

.llibre-tastet-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--verde);
    margin-bottom: 1.25rem;
    text-align: center;
}


.llibre-tastet-sub {
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1rem;
    margin-top: -.5rem;
}

.llibre-tastet-grid {
    max-width: 800px;
}

.llibre-tastet-img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.llibre-tastet-img:hover {
    transform: scale(1.03) rotate(.5deg);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ==================== APRENDRÀS — MILLOR PROFUNDITAT ==================== */
.llibre-aprens-panel {
    position: relative;
    overflow: hidden;
}

.llibre-aprens-panel::before {
    content: '';
    position: absolute;
    top: -20px; right: 20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(148,191,32,.04);
    pointer-events: none;
}

.llibre-aprens-title {
    font-size: 1.4rem;
    position: relative;
}

.llibre-aprens-item {
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(0,0,0,.03);
}

.llibre-aprens-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
}

.llibre-aprens-item span {
    transition: transform .2s ease;
}

.llibre-aprens-item:hover span {
    transform: scale(1.15);
}

/* Mirem / Wink swap */
.llibre-aprens-mirem { position: relative; }
.llibre-aprens-icon {
    width: 48px; height: 48px; object-fit: contain;
    margin: 0 auto .4rem;
    transition: opacity .2s ease;
}
.llibre-aprens-icon-hover {
    width: 48px; height: 48px; object-fit: contain;
    position: absolute;
    top: 1rem; left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .2s ease;
}
.llibre-aprens-mirem:hover .llibre-aprens-icon { opacity: 0; }
.llibre-aprens-mirem:hover .llibre-aprens-icon-hover { opacity: 1; }

/* ==================== TAGLINE — DESTACAT ==================== */
.llibre-tagline {
    position: relative;
}

/* ==================== BLOC 1 — VIATGE DELS RESIDUS ==================== */
.ll-viatge { padding: 1.5rem 0; }

.ll-viatge-panel {
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.ll-viatge-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--verde);
    text-align: center;
    margin-bottom: .5rem;
}

.ll-viatge-intro {
    font-size: 1.1rem;
    color: var(--muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ==================== VIATGE — CARDS ==================== */
.ll-viatge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ll-vcard {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .25s ease;
}

.ll-vcard:hover {
    transform: scale(1.03);
}

/* Top — zona color amb personatge */
.ll-vcard-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    position: relative;
}

.ll-vcard-char {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.12));
    transition: transform .25s ease;
}

.ll-vcard:hover .ll-vcard-char {
    transform: scale(1.08);
}

/* Colors */
.ll-vc-blau     { background: #D0EBFF; }
.ll-vc-groc     { background: #FFF3B8; }
.ll-vc-verd     { background: #D3F9D8; }
.ll-vc-marro    { background: #F0DCC8; }
.ll-vc-gris     { background: #E9ECEF; }
.ll-vc-especial { background: #e8f0d4; }

/* Body */
.ll-vcard-body {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
}

.ll-vcard-body h3 {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: .75rem;
}

/* Journey — mini camí */
.ll-vcard-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-bottom: .75rem;
}

.ll-vcard-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.ll-vcard-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.ll-vcard-label {
    font-size: .6rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ll-vcard-stop-final .ll-vcard-icon {
    background: var(--verde);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ll-vcard-stop-final .ll-vcard-label {
    color: var(--verde);
    font-weight: 800;
}

.ll-vcard-dot {
    font-size: 1.2rem;
    color: var(--verde);
    font-weight: 900;
    margin: 0 .15rem;
    align-self: flex-start;
    margin-top: .3rem;
}

/* Text */
.ll-vcard-text {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ==================== BLOC 2 — IMAGINA UN MÓN MÉS NET ==================== */
.ll-imagina { padding: 1rem 0 2rem; }

.ll-imagina-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.ll-imagina-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .75rem;
    line-height: 1.1;
}

.ll-imagina-text {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.ll-imagina-contrast {
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 2rem 2.5rem;
    background: #fff5f5;
}

.ll-imagina-subtitle {
    font-size: 1.2rem;
    font-weight: 900;
    color: #e53935;
    margin-bottom: .5rem;
}

.ll-imagina-contrast-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
}

.ll-imagina-activitat {
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 2rem 2.5rem;
    text-align: center;
}

.ll-imagina-activitat-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--verde);
    margin-bottom: .5rem;
}

.ll-imagina-img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    margin: 1rem auto 1.25rem;
    display: block;
    cursor: pointer;
    transition: transform .2s ease;
}

.ll-imagina-img:hover {
    transform: scale(1.02);
}

.ll-imagina-activitat-intro {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.ll-imagina-preguntes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ll-imagina-pregunta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 1;
    min-width: 160px;
}

.ll-imagina-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--verde);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ll-imagina-pregunta p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.ll-imagina-final {
    text-align: center;
    padding: 2.5rem 0 4rem;
}

.ll-imagina-frase {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--verde);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ==================== LULA MINI BUBBLE ==================== */
.lula-bubble-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto .5rem;
}

.lula-mini-bubble {
    position: absolute;
    top: -8px;
    left: calc(100% + 8px);
    background: var(--verde);
    color: var(--white);
    font-size: .7rem;
    font-weight: 800;
    padding: .35rem .7rem;
    border-radius: 10px 10px 10px 3px;
    max-width: 220px;
    white-space: normal;
    line-height: 1.3;
    opacity: 0;
    transform: scale(.8) translateX(-4px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.lula-bubble-wrap:hover .lula-mini-bubble {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.lula-mini-bubble::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 100%;
    border: 5px solid transparent;
    border-right-color: var(--verde);
}

@keyframes lula-bubble-in {
    0% { opacity: 0; transform: scale(.8) translateX(-4px); }
    100% { opacity: 1; transform: scale(1) translateX(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .llibre-panel { padding: 2rem 1.5rem; }
    .llibre-panel::before, .llibre-panel::after { display: none; }
    .llibre-tastet-grid { max-width: 100%; }
    .ll-viatge-grid { grid-template-columns: repeat(2, 1fr); }
    .ll-viatge-panel { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
    .llibre-aprens-panel::before { display: none; }
    .ll-viatge-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .ll-imagina-hero { padding: 2rem 1rem; }
    .ll-imagina-contrast, .ll-imagina-activitat { padding: 1.5rem; }
    .ll-imagina-preguntes { flex-direction: column; align-items: center; }
}
