/* About / Legal / Contacto — plantilla compartida */

.pagina-texto-velo {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pagina-texto {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.pagina-texto__titulo {
    position: fixed;
    top: 70px;
    left: 90px;
    right: 90px;
    z-index: 3;
    font-family: 'Andale Mono', ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 25px;
    font-weight: normal;
    letter-spacing: -2px;
    text-transform: lowercase;
    color: #000;
    margin: 0;
    line-height: 1;
}

.pagina-texto__titulo-enlace,
.pagina-texto__titulo-enlace:visited {
    color: #000;
    text-decoration: none;
}

.pagina-texto__titulo-enlace:hover {
    color: #FF2C11;
}

.pagina-texto__contenido {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-left: 90px;
    padding: 190px 40px 80px 0;
    font-family: 'Andale Mono', ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.3px;
    color: #000;
}

.pagina-texto__contenido p {
    margin: 0 0 1.2em;
}

.pagina-texto__contenido h2 {
    margin: 2.2em 0 0.6em;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.pagina-texto__contenido h2:first-child {
    margin-top: 0;
}

.pagina-texto__contenido h3 {
    margin: 1.6em 0 0.4em;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: -0.3px;
}

.pagina-texto__contenido a {
    position: relative;
    z-index: 0;
    color: #000;
    text-decoration: underline;
    text-decoration-color: #FF2C11;
    text-underline-offset: 3px;
}

.pagina-texto__contenido a:visited {
    color: #000;
}

.pagina-texto__contenido a:hover {
    color: #FF2C11;
}

@media (max-width: 768px) {
    .pagina-texto__titulo {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 68px 20px 0;
        font-size: 18px;
        letter-spacing: -0.5px;
    }

    .pagina-texto__contenido {
        margin-left: 0;
        max-width: none;
        padding: 24px 20px 60px;
    }
}

/* Página About */

body.pagina-texto-about .pagina-texto {
    height: 100vh;
    overflow: hidden;
}

body.pagina-texto-about .pagina-texto__contenido {
    max-width: none;
    margin-left: 0;
    padding: 0;
}

.about__layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.about__texto {
    flex: 0 1 680px;
    min-width: 320px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 190px 60px 60px 90px;
    font-family: 'Andale Mono', ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.3px;
    color: #000;
}

.about__texto p {
    margin: 0 0 1.2em;
}

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

.about__imagen {
    flex: 1 1 auto;
    margin-right: 90px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 150px 0 40px;
    box-sizing: border-box;
}

.about__imagen img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    body.pagina-texto-about .pagina-texto {
        height: auto;
        overflow: visible;
    }

    .about__layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .about__texto {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
        overflow-y: visible;
        padding: 90px 20px 40px;
    }

    .about__imagen {
        order: 2;
        margin-right: 0;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .about__imagen img {
        width: 100%;
        height: auto;
        max-width: none;
        object-fit: cover;
        aspect-ratio: 3 / 4;
    }
}

/* Página Contacto */

body.pagina-texto-contacto .pagina-texto__contenido {
    max-width: none;
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto__bloque {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Andale Mono', ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 22px;
    letter-spacing: -1px;
    text-align: center;
}

.contacto__linea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contacto__bloque a,
.contacto__bloque a:visited {
    position: relative;
    z-index: 0;
    color: #000;
    text-decoration: none;
}

.contacto__bloque a:hover {
    color: #000;
}

.contacto__bloque a::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -8px;
    bottom: -2px;
    left: -8px;
    z-index: -1;
    background: #FF2C11;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contacto__bloque a:hover::before {
    transform: scaleX(1);
}

.contacto__copiar {
    font: inherit;
    font-size: 13px;
    letter-spacing: -0.3px;
    background: none;
    border: 1px solid #000;
    padding: 4px 10px;
    cursor: pointer;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contacto__copiar:hover {
    background: #FF2C11;
    border-color: #FF2C11;
    color: #fff;
}

@media (max-width: 768px) {
    .contacto__bloque {
        font-size: 17px;
        padding: 0 20px;
    }
}