/* ============================================
   HISTORIA INDIVIDUAL — historia.css
   Estilos para páginas de historia individual
   jmsdbg.com/historias/
   ============================================ */

/* ----------------------------------------
   ARTÍCULO PRINCIPAL
   ---------------------------------------- */

.historia {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

/* ----------------------------------------
   CABECERA
   ---------------------------------------- */

.historia-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.historia-meta {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.historia-titulo {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.historia-sep {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

/* ----------------------------------------
   BLOQUES DE TEXTO
   ---------------------------------------- */

.historia-texto {
    padding: 2.5rem 3rem;
    max-width: 640px;
    margin: 0 auto;
}

.historia-texto p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin-bottom: 1.2rem;
}

.historia-texto p:last-child {
    margin-bottom: 0;
}

.historia-texto--centro {
    text-align: center;
    padding: 2rem 3rem;
}

.historia-texto--cierre {
    padding: 3rem 2rem 2rem;
    max-width: 100%;
}

/* ----------------------------------------
   TEXTO BILINGÜE (CIERRE)
   ---------------------------------------- */

.historia-bilingue {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.historia-lang p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    margin-bottom: 1.2rem;
}

.historia-lang p:last-child {
    margin-bottom: 0;
}

.historia-lang:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 2rem;
}

.historia-lang:last-child {
    padding-left: 0;
}

/* ----------------------------------------
   FOTOS
   ---------------------------------------- */

.historia-foto {
    margin: 0;
    padding: 0.5rem 0;
    position: relative;
}

.historia-foto img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.historia-caption {
    display: block;
    text-align: right;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.6rem 1rem 0;
}

/* ----------------------------------------
   NAVEGACIÓN INFERIOR
   ---------------------------------------- */

.historia-nav {
    padding: 3rem 2rem 0;
    text-align: center;
}

.historia-nav-back {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.historia-nav-back:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------
   RESPONSIVE MOBILE
   ---------------------------------------- */

@media (max-width: 1280px) {
    .historia {
        padding-top: 4rem;
    }

    .historia-titulo {
        font-size: 2rem;
    }

    .historia-texto {
        padding: 2rem 1.5rem;
    }

    .historia-texto--cierre {
        padding: 2rem 0;
    }

    .historia-bilingue {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1.5rem;
    }

    .historia-lang:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* S24+ tipografía */
@media (min-width: 900px) and (max-width: 1280px) {
    .historia-meta {
        font-size: 1.4rem;
    }

    .historia-titulo {
        font-size: 3.5rem;
    }

    .historia-texto p {
        font-size: 1.9rem;
        line-height: 1.85;
    }

    .historia-lang p {
        font-size: 1.8rem;
    }

    .historia-caption {
        font-size: 1.2rem;
    }

    .historia-nav-back {
        font-size: 1.5rem;
        padding: 1.2rem 3rem;
    }
}
