/* =============================================
   RELLOTGES_DE_SOL.CSS
   Requereix plantilla.css com a base.
   ============================================= */

/* ——— LAYOUT PRINCIPAL ——— */
.cos_interior {
    display: flex;
    gap: clamp(20px, 2.5vw, 40px);
    height: 100%;
    overflow: hidden;
}

/* ——— ESQUERRA ——— */
.esquerra {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vh, 12px);
    overflow: hidden;
    margin: clamp(10px, 1.8vh, 20px) 0;
}

.caixa_texte {
    font-size: clamp(0.78rem, 0.82vw, 0.92rem);
    line-height: 1.6;
    color: #555;
    background: #fdfcfb;
    padding: clamp(10px, 1.2vh, 15px);
    border: 1px solid #e5e0d8;
    border-radius: 4px;
    overflow-y: auto;
    flex: 0 0 60%;
    min-height: 0;
}

.titol_interior {
    font-size: clamp(0.78rem, 0.85vw, 0.92rem);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5d2e0a;
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(8px, 1.2vh, 16px);
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e0d8;
    margin-bottom: clamp(10px, 1.5vh, 18px);
}

.descripcio_autor {
    text-align: justify;
    text-indent: 1.5em;
}

/* ——— BOTONS ——— */
.panell_botons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    margin-bottom: clamp(10px, 1.5vh, 20px);
}

.fila_boto {
    display: flex;
}

.fila_boto a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.8vh, 8px) 10px;
    border: 1px solid #d5c9b8;
    border-radius: 4px;
    background-color: #f0ece6;
    color: #555;
    text-decoration: none;
    font-size: clamp(0.70rem, 0.72vw, 0.80rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.fila_boto a:hover {
    background-color: #e5ddd4;
    border-color: #b8ac9e;
    color: #333;
}

/* ——— DRETA ——— */
.dreta {
    flex: 3;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ——— FOTO PORTADA ——— */
.rs-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: clamp(12px, 2vh, 24px) 0;
}

.rs-foto img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 8px solid white;
    outline: 1px solid #c9b99a;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    .cos_interior {
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 20px 0;
    }

    .esquerra {
        overflow: visible;
    }

    .caixa_texte {
        overflow: visible;
        flex: none;
        font-size: 1rem;
    }

    .dreta {
        height: auto;
        overflow: visible;
        min-height: 50vw;
    }
}
