/* =========================================================
   Pienso Así — prototipo
   ========================================================= */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}
/* original anulado ---
:root {
    --fondo-izquierda: #ddeeff;
    --fondo-principal: #f7f7f4;
    --color-titulo-articulo: #426c91;
    --color-titulo-visto: #7b5a8e;
    --color-texto: #252525;
    --color-menu: #ffffff;
    --color-fecha: #777777;
    --color-linea: #b9b9b4;
    --color-midgrad: #6c8ebf; 
}
--- */

:root {
/*    --fondo-izquierda: #ddeeff;  se unifica con midgrad */ 
    --fondo-principal: #f7f7f4;
    --color-titulo-articulo: #0000ee;
    --color-titulo-visto: #AA0000;
    --color-texto: #252525;
    --color-menu: #ffffff;
    --color-fecha: #777777;
    --color-linea: #b9b9b4;
    --color-midgrad: #84DBD1;
    --color-finalgrad: #000000;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #252525;
    background: #f3f3f0;
}


/* ---------- Banda superior ---------- */

.site-header {
   /* min-height: 178px;*/
    min-height: 112px;

    /* Degradado ya ajustado */
    background: linear-gradient(
        90deg,
        var(--color-midgrad),
        var(--color-midgrad) 18%,
        var(--color-finalgrad)

    );

    color: white;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 0 5%;
}

.header-space {
    height: 24px;
   /* flex: 0 0 24px; */
    flex: 0 0 4px;
}

.site-title {
  /*  min-height: 92px; */
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: normal;
    letter-spacing: 0.02em;
}

.top-menu {
    /*min-height: 30px;*/
    min-height: 24px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.4rem;

    font-size: 0.95rem;
}

.top-menu a {
    color: white;
    text-decoration: none;
}

.top-menu a:hover {
    text-decoration: underline;
}


/* ---------- Cuerpo ---------- */

.page-layout {
    display: grid;
    grid-template-columns: 20% 80%;
    min-height: calc(100vh - 190px);
}


/* ---------- Columna lateral ---------- */

.sidebar {
    background: var(--color-midgrad);
    /* arriba derecha abajo izquierda */
    padding: 42px 10% 42px 12%;
    min-height: 100%;
}

.explore-title {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    margin-bottom: 2rem;
}

.explore-section {
    margin-bottom: 2.2rem;
}

.explore-heading {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
}

.explore-section a {
    display: block;
    color: #283f55;
    text-decoration: none;
    margin: 0.45rem 0;
}

.explore-section a:hover {
    text-decoration: underline;
}


/* ---------- Área principal ---------- */

.content {
    background: #f7f7f4;
    padding: 30px 7% 70px;
    min-width: 0;
}


/* ---------- Presentación ---------- */

.introduction {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 0 20px;

    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.65;
    border-bottom: 2px solid #b9b9b4;
}

.introduction p {
    margin: 0;
}


/* ---------- Artículos ---------- */

.articles {
    max-width: 850px;
    margin: 32px auto 0;
}

.article-preview {
    margin-bottom: 32px;
}

.article-heading {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;

    line-height: 1.35;
}

.article-icon {
    flex: 0 0 auto;
    font-size: 0.65rem;
    color: #587d9c;
    transform: translateY(-1px);
}

.article-heading a {
    color: var(--color-titulo-articulo);
    font-size: 1.3rem;
    text-decoration: none;
}

.article-heading a:visited {
    color: var(--color-titulo-visto);
}

.article-heading a:hover {
    text-decoration: underline;
}

.article-heading time {
    margin-left: auto;
    flex: 0 0 auto;

    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #777;
    white-space: nowrap;
}

.article-preview p {
    margin: 0.55rem 0 0 1.25rem;

    font-size: 0.98rem;
    line-height: 1.55;
    font-style: italic;
    color: #303030;
}

 
/* ---------- Página individual de artículo ---------- */

/* Artículos */

.article-page {
    padding: 44px 12% 70px;
}

.article-page article {
    max-width: 900px;
    margin: 0 auto;
}

/* Abstract */

.article-abstract h2 {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.article-abstract p {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
}

/* Separador entre introducción y desarrollo */

.article-divider {
    margin: 2.5rem 0 2.5rem;
    text-align: center;
    color: #888888;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

/* Títulos de las secciones */

.article-body > h2 {
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

/* Enlaces: siempre azules, aun después de visitarlos */

.article-page a,
.article-page a:visited {
    color: #0000ee;
}

.article-page a:hover {
    color: #0000ee;
}
.article-content img {
    max-width: 100%;
    height: auto;
}

.article-tags {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 1px solid var(--color-linea);
}

.article-tags a {
    margin-right: 0.8rem;
    color: #283f55;
    text-decoration: none;
}

.article-tags a:hover {
    text-decoration: underline;
}

.article-meta {
    margin-top: 24px;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: var(--color-fecha);
}

/* ---------- Página de tag ---------- */

.tag-page {
    background: #f7f7f4;
    padding: 44px 7% 70px;
}

.tag-header {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-linea);
}

.tag-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: normal;
}

.tag-articles {
    max-width: 850px;
    margin: 32px auto 0;
}

/* ---------- About ---------- */

.about-page {
    background: #f7f7f4;
    padding: 44px 7% 70px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-page h1 {
    max-width: 850px;
    margin: 0 auto 36px;
    font-size: 2rem;
    font-weight: normal;
}

.about-section {
    max-width: 850px;
    margin: 0 auto 32px;
}

.about-section h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: normal;
}

.about-section p {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.65;
}

/* ---------- About ---------- */

.pagina-texto h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 2.2rem;
}

/* Secciones principales */

.pagina-texto h2 {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 2.8rem 0 1rem;
}

/* Nombre y biografía */

.author-description {
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
}

.author-bio {
    font-size: 0.92rem;
    font-style: italic;
    color: #555;
    margin: 0 0 2.5rem;
}


/* Sub-secciones: Trabajos y Espacios */

.author-subsection {
    margin-left: 1.5rem;
    margin-top: 2rem;
}

.author-subsection h3 {
    font-size: 1.05rem;
    font-weight: normal;
    margin: 0 0 0.8rem;
}

.author-works,
.author-spaces {
    margin: 0;
    padding-left: 1.5rem;
}

.author-works li,
.author-spaces li {
    margin-bottom: 0.65rem;
    line-height: 1.45;
}


/* Links de About */

main.about-page a,
main.about-page a:visited,
main.about-page a:hover,
main.about-page a:active {
    color: var(--color-titulo-articulo);
    text-decoration: none;
}

main.about-page a:hover {
    text-decoration: underline;
}


/* Agradecimientos y contacto */

.dato-about {
    margin-top: 2.8rem;
}

.dato-about strong {
    font-weight: normal;
    font-size: 1.25rem;
}

.dato-about p {
    margin-top: 0.6rem;
    line-height: 1.55;
}



/* ---------- Responsive ---------- */

@media (max-width: 800px) {

    .site-header {
        min-height: 170px;
        padding: 0 5%;
    }

    .header-space {
        height: 18px;
        flex-basis: 18px;
    }

    .site-title {
        min-height: 82px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        padding: 28px 8%;
    }

    .content {
        padding: 34px 7% 60px;
    }
}

@media (max-width: 560px) {

    .site-title {
        font-size: 2.25rem;
    }

    .top-menu {
        gap: 0.9rem;
        font-size: 0.88rem;
    }

    .article-heading {
        flex-wrap: wrap;
    }

    .article-heading time {
        margin-left: 1.25rem;
        width: 100%;
    }

    .article-heading a {
        font-size: 1.15rem;
    }
}

/* Forzar color de enlaces en About 
body main.pagina-texto a,
body main.pagina-texto a:visited,
body main.pagina-texto a:hover,
body main.pagina-texto a:active {
    color: #0000ee !important;
} */
