/* ========================================
   SOBRE MÍ · PALETA Y SCROLL
======================================== */

html.sobremi-activa {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #c5c5be #f6f5f1;
}

body[data-tema="sobre-mi"] {
    --fondo: #f6f5f1;
    --texto: #252a2d;
    --secundario: #686d70;
    --acento: #536477;

    height: auto;
    min-height: 100%;
    overflow: visible;

    color-scheme: light;
}

body[data-tema="sobre-mi"] .experiencia {
    display: block;

    height: auto;
    min-height: 100vh;
    min-height: 100svh;

    padding: 0;
    overflow: visible;
}

/* Retirar las luces del fondo de los otros módulos */

body[data-tema="sobre-mi"] .experiencia::before,
body[data-tema="sobre-mi"] .experiencia::after {
    content: none;
}

body[data-tema="sobre-mi"] .escena {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;
}

/* ========================================
   CONTENEDOR EDITORIAL
======================================== */

.sm {
    width: 100%;

    background: #f6f5f1;
    color: #252a2d;

    text-align: left;
}

.sm-contenedor {
    width: min(100% - 48px, 800px);
    margin-inline: auto;
}

.sm ::selection {
    background: #dbe2e8;
    color: #252a2d;
}

/* Regresar al inicio */

.sm-navegacion {
    padding-top: 30px;
}

.sm-regresar {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    padding: 10px 0;

    background: transparent;
    color: #686d70;
    border: 0;

    font: 11px/1.6 monospace;
    cursor: pointer;

    transition: color 180ms ease;
}

.sm-regresar:hover {
    color: #252a2d;
}

.sm-regresar:focus-visible {
    outline: 2px solid #536477;
    outline-offset: 5px;
}

/* ========================================
   INTRODUCCIÓN
======================================== */

.sm-intro {
    padding: 85px 0 70px;
}

.sm-etiqueta {
    margin: 0 0 25px;

    color: #777d82;

    font: 10px/1.6 monospace;
    letter-spacing: 2.5px;
}

.sm-titulo {
    position: relative;

    margin: 0;

    color: #252a2d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -3px;
}

.sm-titulo-linea {
    display: block;
}

.sm-titulo-acento {
    color: #697989;
}

/* Reservar el espacio del título */

.sm-titulo-base {
    display: block;
    opacity: 0;
}

.sm-titulo-escrito {
    position: absolute;
    inset: 0;
}

/* Cursor de escritura */

.sm-titulo-linea.escribiendo::after {
    content: "";

    display: inline-block;
    width: 2px;
    height: 0.72em;
    margin-left: 5px;

    background: #697989;
    vertical-align: -0.02em;
}

.sm-presentacion {
    max-width: 650px;
    margin: 30px 0 0;

    color: #626b72;

    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.8;
    text-wrap: pretty;
}

.sm-firma {
    margin: 25px 0 0;

    color: #858b8e;

    font: 10px/1.8 monospace;
    letter-spacing: 0.3px;
}

/* ========================================
   BIOGRAFÍA
======================================== */

.sm-capitulo {
    padding: 46px 0;

    border-top: 1px solid #ddded8;
}

.sm-numero {
    display: block;
    margin-bottom: 17px;

    color: #8b9296;

    font: 9px monospace;
    letter-spacing: 2px;
}

.sm-capitulo h3 {
    margin: 0 0 22px;

    color: #30383d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3.2vw, 36px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.sm-capitulo p {
    margin: 0;

    color: #60686d;

    font-size: 15px;
    line-height: 1.95;
    text-wrap: pretty;
}

.sm-capitulo p+p {
    margin-top: 18px;
}

.sm-capitulo strong {
    color: #30383d;
    font-weight: 600;
}

/* Ideas destacadas */

.sm-cita {
    margin: 30px 0;
    padding: 4px 0 4px 24px;

    border-left: 2px solid #a7b2bb;

    color: #4c5b66;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.7vw, 31px);
    line-height: 1.5;
    letter-spacing: -0.4px;
}

.sm-capitulo .sm-nota {
    margin-top: 24px;

    color: #868d92;

    font-size: 12px;
    line-height: 1.8;
}

/* ========================================
   APARICIÓN SUAVE
======================================== */

.sm-revelar {
    opacity: 1;
    filter: blur(0);
}

.sm-revelar.sm-pendiente {
    opacity: 0;
}

.sm-revelar.sm-visible {
    animation: sm-aparecer 650ms ease-out both;
}

@keyframes sm-aparecer {
    from {
        opacity: 0;
        filter: blur(3px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* ========================================
   CIERRE
======================================== */

.sm-cierre {
    padding: 35px 0 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    border-top: 1px solid #ddded8;
}

.sm-cierre-nombre {
    color: #30383d;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.sm-cierre-texto {
    margin-top: 7px;

    color: #858b8e;
    font: 10px/1.6 monospace;
}

/* ========================================
   CELULARES
======================================== */

@media (max-width: 600px) {
    .sm-contenedor {
        width: calc(100% - 48px);
    }

    .sm-navegacion {
        padding-top: 18px;
    }

    .sm-intro {
        padding: 55px 0 45px;
    }

    .sm-titulo {
        font-size: clamp(43px, 11vw, 62px);
        letter-spacing: -2px;
    }

    .sm-presentacion {
        margin-top: 25px;
        font-size: 17px;
    }

    .sm-capitulo {
        padding: 35px 0;
    }

    .sm-capitulo p {
        font-size: 14px;
        line-height: 1.9;
    }

    .sm-cita {
        padding-left: 18px;
        font-size: 24px;
    }

    .sm-cierre {
        padding-bottom: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-regresar {
        transition: none;
    }

    .sm-revelar.sm-pendiente,
    .sm-revelar.sm-visible {
        opacity: 1;
        filter: none;
        animation: none;
    }
}