/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* =========================================
   ÚNICO ESPECTADOR DE LA OBRA
   Versión 2
   ========================================= */


/* ---------- COLORES ---------- */

:root {

    --indigo: #403a72;
    --indigo-dark: #29254f;
    --indigo-deep: #201d3c;

    --indigo-light: #e8e6f3;

    --background: #E7BA08;
    --paper: #faf8f4;

    --text: #292833;
    --muted: #777382;

    --accent: #b56b70;
    --accent-light: #ead5d6;

}


/* ---------- CONFIGURACIÓN GENERAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(64, 58, 114, 0.05),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(181, 107, 112, 0.04),
            transparent 25%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;

    line-height: 1.7;
}


/* ---------- CONTENEDOR ---------- */

.page {

    width: min(1100px, 94%);

    margin: 30px auto;

    background: var(--paper);

    border: 1px solid rgba(64, 58, 114, 0.25);

    box-shadow:
        0 8px 35px rgba(41, 37, 79, 0.08);
}


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

header {

    position: relative;

    padding: 55px 30px 45px;

    background:
        linear-gradient(
            135deg,
            var(--indigo-deep),
            var(--indigo)
        );

    color: white;

    text-align: center;

    overflow: hidden;
}


/* decoración */

header::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 50%;

    top: -90px;
    left: -60px;
}

header::after {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 50%;

    bottom: -170px;
    right: -100px;
}


.ornament {

    margin-bottom: 20px;

    color: #d8d4ec;

    font-size: 0.85rem;

    letter-spacing: 3px;
}


h1 {

    margin: 0;

    font-size: clamp(2.2rem, 6vw, 4rem);

    font-weight: normal;

    line-height: 1.1;

    letter-spacing: -1px;
}


.subtitle {

    max-width: 600px;

    margin: 22px auto 28px;

    color: #d9d6e7;

    font-size: 0.95rem;

    font-style: italic;
}


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

nav {

    display: flex;

    justify-content: center;

    gap: 12px;

    align-items: center;
}


nav a {

    color: white;

    text-decoration: none;

    padding: 5px 10px;

    border-bottom: 1px solid transparent;

    transition:
        border-color 0.2s,
        color 0.2s;
}


nav a:hover {

    color: var(--accent-light);

    border-bottom-color: var(--accent-light);
}


/* ---------- CONTENIDO ---------- */

main {

    width: 90%;

    max-width: 940px;

    margin: 65px auto;
}


.layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        250px;

    gap: 65px;
}


/* ---------- TÍTULOS ---------- */

.small-title {

    margin: 0 0 8px;

    color: var(--accent);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.72rem;

    font-weight: bold;

    letter-spacing: 2px;
}


h2 {

    margin-top: 0;

    color: var(--indigo-dark);

    font-size: 1.7rem;

    font-weight: normal;

    line-height: 1.3;
}


h3 {

    margin: 5px 0 8px;

    color: var(--indigo-dark);

    font-size: 1.35rem;

    font-weight: normal;
}


/* ---------- PRESENTACIÓN ---------- */

.welcome {

    position: relative;

    padding: 35px 40px;

    background: var(--indigo-light);

    border: 1px solid rgba(64,58,114,0.15);

    margin-bottom: 65px;
}


.welcome::before {

    content: "✦";

    position: absolute;

    right: 25px;

    top: 20px;

    color: var(--accent);

    font-size: 1.2rem;
}


.welcome h2 {

    max-width: 650px;
}


/* ---------- CABECERAS DE SECCIÓN ---------- */

.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 20px;

    border-bottom: 1px solid rgba(64,58,114,0.25);

    margin-bottom: 25px;

    padding-bottom: 15px;
}


.section-heading h2 {

    margin-bottom: 0;
}


.more {

    color: var(--indigo);

    text-decoration: none;

    font-size: 0.9rem;

    white-space: nowrap;
}


.more:hover {

    color: var(--accent);
}


/* ---------- ENTRADAS ---------- */

.entry {

    padding: 25px 0;

    border-bottom: 1px dashed rgba(64,58,114,0.25);

    transition:
        padding-left 0.2s;
}


.entry:hover {

    padding-left: 10px;
}


.date {

    margin: 0;

    color: var(--muted);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.75rem;

    letter-spacing: 1px;
}


.entry a {

    color: var(--indigo);

    text-decoration: none;

    font-size: 0.9rem;
}


.entry a:hover {

    color: var(--accent);
}


/* ---------- COLUMNA LATERAL ---------- */

aside {

    border-left: 1px solid rgba(64,58,114,0.2);

    padding-left: 25px;
}


.side-box {

    margin-bottom: 40px;

    padding-bottom: 25px;

    border-bottom: 1px solid rgba(64,58,114,0.15);
}


.side-box p:not(.small-title) {

    margin-top: 5px;

    color: var(--muted);

    font-size: 0.9rem;
}


.status {

    color: var(--accent) !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.85rem !important;
}


.quote {

    padding: 18px;

    background: #f0edf5;

    border-left: 3px solid var(--accent);
}


.quote p {

    margin: 0;

    color: var(--indigo-dark) !important;

    font-style: italic;

    font-size: 0.9rem !important;
}


/* ---------- ENLACES GENERALES ---------- */

a {

    transition:
        color 0.2s;
}


/* ---------- PIE ---------- */

footer {

    padding: 30px;

    color: var(--muted);

    text-align: center;

    font-size: 0.85rem;
}


.footer-line {

    margin-bottom: 15px;

    color: var(--indigo);

    opacity: 0.6;

    letter-spacing: 2px;
}


.footer-small {

    margin-top: 0;

    color: var(--accent);

    font-size: 0.75rem;

    font-style: italic;
}


/* ---------- MÓVIL ---------- */

@media (max-width: 750px) {

    .page {

        width: 100%;

        margin: 0;

        border-left: none;
        border-right: none;
    }


    .layout {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    aside {

        border-left: none;

        border-top: 1px solid rgba(64,58,114,0.2);

        padding-left: 0;

        padding-top: 35px;
    }


    .welcome {

        padding: 28px;
    }


    .section-heading {

        align-items: start;

        flex-direction: column;
    }


    main {

        margin: 45px auto;
    }

}
/* ---------- IMAGEN DEL TÍTULO ---------- */

.titulo-decoracion {
    width: 70px;
    height: auto;

    vertical-align: middle;

    margin-right: 12px;

    position: relative;
    top: -4px;
}
/* ---------- ENTRADAS COMPLETAS ---------- */

.entrada-completa {
    max-width: 760px;
    margin: 0 auto;
}

.entrada-completa h2 {
    margin-top: 5px;
    margin-bottom: 45px;

    font-size: 2.4rem;
}

.texto-entrada {
    font-size: 1.05rem;
}

.texto-entrada p {
    margin-bottom: 1.6em;
}

.texto-entrada code {
    padding: 2px 5px;

    background: var(--indigo-light);

    color: var(--indigo-dark);

    font-size: 0.85em;
}

.volver {
    margin-top: 60px;
    padding-top: 20px;

    border-top: 1px solid rgba(64, 58, 114, 0.2);
}

.volver a {
    color: var(--indigo);

    text-decoration: none;
}

.volver a:hover {
    color: var(--accent);
}