/* about: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — ABOUT PAGE

   Estilos exclusivos de about.html.

   Contiene:
   - Fondo de la página.
   - Sección principal.
   - Imagen corporativa.
   - Historia de Anthoria.
   - Tema oscuro.
   - Responsive específico de About.

   La navegación, tipografía y componentes globales
   permanecen en styles.css.
   ========================================================== */


/* ==========================================================
   FONDO DE ABOUT
   ========================================================== */

body.about-page {
    min-height: 100vh;

    background-image:
        linear-gradient(rgba(244, 239, 230, 0.72),
            rgba(244, 239, 230, 0.72)),
        url(../../assets/images/home-background.jpg);

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}


/* ==========================================================
   SECCIÓN PRINCIPAL
   ========================================================== */

body.about-page main>.about-section {
    width: 100%;
    max-width: none;
}


/* ==========================================================
   IMAGEN PRINCIPAL
   ========================================================== */

body.about-page .about-image {
    width: 100%;

    margin-top: 40px;

    overflow: hidden;

    border-radius: 18px;
}


body.about-page .about-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* ==========================================================
   HISTORIA DE ANTHORIA
   ========================================================== */

body.about-page .about-story {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 40px;

    width: 100%;

    margin: 64px 0 0;
}


/* ==========================================================
   PÁRRAFOS
   ========================================================== */

body.about-page .about-story p {
    width: 100%;

    margin: 0;
    padding-top: 24px;

    border-top: 1px solid #c8ad7f;

    font-size: 1rem;
    line-height: 1.8;

    text-align: left;
    white-space: normal;
}


/* ==========================================================
   DARK THEME
   ========================================================== */

body.about-page.dark-theme {
    background-image:
        linear-gradient(rgba(10, 9, 8, 0.68),
            rgba(10, 9, 8, 0.68)),
        url(../../assets/images/home-background-dark.jpg);

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}


body.about-page.dark-theme .about-story p {
    border-top-color:
        rgba(200, 173, 127, 0.55);
}


/* ==========================================================
   TABLET Y MÓVIL
   ========================================================== */

@media (max-width: 768px) {

    body.about-page {
        min-height: 100svh;

        background-image:
            linear-gradient(rgba(244, 237, 226, 0.76),
                rgba(244, 237, 226, 0.86)),
            url(../../assets/images/home-mobile-ivory.jpg);

        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;

        /*
         * Evita problemas de background-attachment: fixed
         * en navegadores móviles.
         */
        background-attachment: scroll;
    }


    body.about-page.dark-theme {
        background-image:
            linear-gradient(rgba(5, 6, 5, 0.78),
                rgba(5, 6, 5, 0.88)),
            url(../../assets/images/home-mobile-dark.jpg);

        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        background-attachment: scroll;
    }


    body.about-page main>.about-section {
        width: calc(100vw - 36px);
        max-width: none;

        margin-left: calc(50% - 50vw + 18px);
        margin-bottom: 0;

        padding-top: 82px;

        transform: none;
    }


    body.about-page .about-story {
        grid-template-columns: 1fr;

        gap: 32px;

        margin-top: 48px;
    }

}


/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 430px) {

    body.about-page .about-image {
        margin-top: 32px;

        border-radius: 14px;
    }


    body.about-page .about-story {
        gap: 28px;

        margin-top: 40px;
    }


    body.about-page .about-story p {
        padding-top: 20px;

        font-size: 0.96rem;
        line-height: 1.75;
    }

}