/* ============================================
   GORDITA FONT FAMILY - Archivo centralizado
   Todas las páginas deben enlazar este archivo.
   Cambios aquí se reflejan en toda la web.
   ============================================ */

@font-face {
    font-family: 'Gordita';
    src: url('../fonts/GORDITA-LIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gordita';
    src: url('../fonts/GORDITA-REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gordita';
    src: url('../fonts/GORDITA-BOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gordita';
    src: url('../fonts/GORDITA-BLACK.OTF') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Aplicar Gordita como fuente base en toda la web */
body {
    font-family: 'Gordita', sans-serif;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Compensar el header sticky al navegar con anclas (#id) */
/* Aplica a cualquier sección con id usada como destino de enlace */
[id] {
    scroll-margin-top: 7rem;
}

@media (max-width: 1023px) {
    main,
    footer {
        overflow-x: hidden;
    }

    .px-gutter {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    main:not(.tl-contact) > section:not(#heroSection) {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    main h1,
    main h2,
    main h3,
    main p,
    main li,
    footer h3,
    footer h4,
    footer p,
    footer li,
    footer a {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 767px) {
    main,
    footer {
        overflow-x: hidden;
    }

    .px-gutter {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    main:not(.tl-contact) > section:not(#heroSection) {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    footer {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    main .text-justify {
        text-align: left !important;
    }

    main h1,
    main h2,
    main h3,
    main p,
    main li,
    footer h3,
    footer h4,
    footer p,
    footer li,
    footer a {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}
