 /*==========================================================================
   MORENA IMPULSA— ESTILOS GENERALES
   ========================================================================== */

/* Fuentes */

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bellefair';
    src: url('../fonts/Bellefair-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Variables */

:root {
    --blush: #FFF4F9;
    --rose-light: #FCD3E6;
    --rose-pink: #D584A1;
    --dusty-rose: #8D6775;
    --maroon: #4E0E1A;
    --maroon-hover: #3A0A13;
    --maroon-deep: #5C233C;
    --brown: #442C28;
    --superdark: #2A1520;
    --pastel-blue: #E3ECF4;
    --celeste: #B1CFD7;
    --cream: #F5F2EE;
    --white: #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-script: 'Bellefair', Georgia, serif;
    --font-body: 'Montserrat', Arial, sans-serif;
}

/* Reset básico */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--brown);
}

img {
    display: block;
    max-width: 100%;
}

/* Contenedor general */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   PÁGINA LEGAL
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--blush);
    color: var(--maroon);
}

/* Header legal */

.header-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(90%, 1100px);
    margin: 0 auto;
    padding: 24px 0;
}

.logo-legal {
    display: inline-block;
    line-height: 0;
}

.logo-legal img {
    display: block;
    width: auto;
    height: 46px;
}

.volver-inicio {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--maroon);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.volver-inicio:hover {
    opacity: 0.65;
}

/* Hero */

.hero-legal {
    padding: 70px 24px 80px;
    background: var(--blush);
}

.contenedor-legal {
    width: min(100%, 820px);
    margin: 0 auto;
}

.hero-legal .contenedor-legal {
    text-align: center;
}

.eyebrow-legal {
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose-pink);
}

.hero-legal h1 {
    max-width: 650px;
    margin: 0 auto 18px;
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 700;
    line-height: 0.98;
    color: var(--maroon);
}

.hero-legal h1 em {
    font-weight: 500;
}

.hero-legal > .contenedor-legal > p:not(.eyebrow-legal) {
    max-width: 590px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--maroon);
}

/* Índice superior */

.indice-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.indice-legal a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--maroon);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.indice-legal a:hover {
    background: var(--maroon);
    color: var(--blush);
}

/* ==========================================================================
   SECCIONES LEGALES
   ========================================================================== */

.seccion-legal {
    scroll-margin-top: 25px;
    padding: 80px 24px;
}

#politica-privacidad {
    background: var(--blush);
}

#terminos-condiciones {
    background: var(--blush);
}

/* Encabezado de documento */

.encabezado-documento-legal {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 20px;
    margin-bottom: 42px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(86, 31, 44, 0.18);
}

.encabezado-documento-legal > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--maroon);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--maroon);
}

.encabezado-documento-legal h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1;
    color: var(--maroon);
}

.encabezado-documento-legal .eyebrow-legal {
    margin-bottom: 8px;
}

.fecha-legal {
    margin: 10px 0 0;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    color: var(--rose-pink);
}

/* Contenido */

.contenido-legal {
    max-width: 760px;
    margin: 0 auto;
}

.contenido-legal article {
    padding: 28px 0;
    border-bottom: 1px solid rgba(86, 31, 44, 0.12);
}

.contenido-legal article:first-child {
    padding-top: 0;
}

.contenido-legal article:last-child {
    border-bottom: 0;
}

.contenido-legal h3 {
    margin: 0 0 13px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--maroon);
}

.contenido-legal p {
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--maroon);
}

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

.contenido-legal strong {
    font-weight: 700;
    color: var(--maroon);
}

.contenido-legal ul {
    margin: 14px 0;
    padding-left: 20px;
}

.contenido-legal li {
    margin-bottom: 7px;
    padding-left: 3px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--maroon);
}

.contenido-legal li:last-child {
    margin-bottom: 0;
}

.contenido-legal li::marker {
    color: var(--rose-pink);
}

.contenido-legal a {
    color: var(--maroon);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.contenido-legal a:hover {
    opacity: 0.65;
}

/* Volver arriba */

.volver-arriba {
    display: block;
    width: fit-content;
    margin: 42px auto 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.volver-arriba:hover {
    opacity: 0.65;
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */

footer {
    background: var(--blush);
}

/* Contenedor */

footer .piedepagina {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: min(90%, 900px);
    margin: 0 auto;
    padding: 40px 0;
}

/* Logo */

footer .logopie {
    justify-self: start;
    width: auto;
    height: 50px;
}

/* Enlaces legales */

footer .piecentro {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

footer .piecentro p {
    margin: 0;
    color: var(--rose-pink);
    font-size: 13px;
}

footer .piecentro a {
    color: var(--rose-pink);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer .piecentro a:hover {
    opacity: 1;
    color: #8D6775;
}

/* Información derecha */

footer .pie-derecha {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

footer .pie-derecha p {
    margin: 0;
    color: var(--rose-pink);
    font-size: 14px;
    line-height: 1.5;
}

footer .pie-derecha a {
    color: var(--rose-pink);
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer .pie-derecha a:hover{
    opacity: 0.7;
}

/* Instagram */

footer .pie-instagram {
    display: inline-block;
    margin-top: 10px;
    line-height: 0;
}

footer .pie-instagram img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE PIE DE PÁGINA
   ========================================================================== */

@media (max-width: 600px) {
    footer .piedepagina {
        grid-template-columns: 1fr;
        gap: 22px;
        width: min(85%, 400px);
        padding: 35px 0 30px;
    }

    footer .logopie {
        justify-self: center;
        height: 45px;
    }

    footer .piecentro {
        justify-self: center;
        order: 2;
    }

    footer .pie-derecha {
        justify-self: center;
        align-items: center;
        text-align: center;
        order: 3;
    }

    footer .piecentro a,
    footer .pie-derecha p,
    footer .pie-derecha a {
        font-size: 13px;
    }
}

/* ==========================================================================
   RESPONSIVE PÁGINA LEGAL
   ========================================================================== */

@media (max-width: 700px) {
    .header-legal {
        width: min(88%, 500px);
        padding: 20px 0;
    }

    .logo-legal img {
        height: 40px;
    }

    .volver-inicio {
        font-size: 12px;
    }

    .hero-legal {
        padding: 55px 22px 65px;
    }

    .hero-legal h1 {
        max-width: 420px;
        font-size: 44px;
    }

    .hero-legal > .contenedor-legal > p:not(.eyebrow-legal) {
        max-width: 440px;
        font-size: 14px;
        line-height: 1.65;
    }

    .indice-legal {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 28px auto 0;
    }

    .indice-legal a {
        width: 100%;
        box-sizing: border-box;
    }

    .seccion-legal {
        padding: 60px 22px;
    }

    .encabezado-documento-legal {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 34px;
        padding-bottom: 24px;
    }

    .encabezado-documento-legal > span {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }

    .encabezado-documento-legal h2 {
        font-size: 38px;
    }

    .contenido-legal article {
        padding: 24px 0;
    }

    .contenido-legal h3 {
        font-size: 20px;
    }

    .contenido-legal p,
    .contenido-legal li {
        font-size: 13.5px;
        line-height: 1.7;
    }
}

@media (max-width: 420px) {
    .header-legal {
        width: 88%;
    }

    .logo-legal img {
        height: 36px;
    }

    .volver-inicio {
        font-size: 11px;
    }

    .hero-legal {
        padding: 45px 20px 55px;
    }

    .hero-legal h1 {
        font-size: 39px;
    }

    .seccion-legal {
        padding: 50px 20px;
    }

    .encabezado-documento-legal h2 {
        font-size: 34px;
    }

    .contenido-legal h3 {
        font-size: 19px;
    }
}