.pg-footer-block,
.pg-footer-block * {
    box-sizing: border-box;
}

.pg-footer-block {
    width: 100%;
}

.pg-footer {
    position: relative;
    width: 100%;
    padding-top: 74px;
    padding-bottom: 50px;
    background-color: var(--wp--preset--color--custom-blanco);
    background-image: var(--pg-footer-bg-desktop);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
}

.pg-footer::after {
    content: none;
}

.pg-footer__inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--wp--style--global--wide-size));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.pg-footer__logo-wrap {
    display: flex;
    justify-content: center;
}

.pg-footer__logo {
    display: block;
    width: var(--pg-footer-logo-width-desktop, 231px);
    max-width: 100%;
    height: auto;
}

.pg-footer__content {
    display: grid;
    grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
}

.pg-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 480px;
}

.pg-footer__newsletter-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 463px;
}

.pg-footer__eyebrow {
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.12px;
    text-transform: uppercase;
    color: var(--wp--preset--color--custom-rojo-principal);
}

.pg-footer__description {
    font-family: var(--wp--preset--font-family--inter-display);
    font-size: 14px;
    line-height: 1.35;
    color: rgba(51, 51, 51, 0.8);
}

.pg-footer__newsletter-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 4px;
    border: 1px solid var(--wp--preset--color--custom-gris);
    border-radius: 2px;
    background: transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pg-footer__newsletter-form:focus-within {
    border-color: var(--wp--preset--color--custom-rojo-principal);
    box-shadow: 0 0 0 1px var(--wp--preset--color--custom-rojo-principal);
}

.pg-footer__form-preview,
.pg-footer__gf-fallback {
    width: 100%;
    padding: 0 12px;
    font-family: var(--wp--preset--font-family--inter-display);
    font-size: 14px;
    line-height: 1.35;
    color: var(--wp--preset--color--custom-gris);
}

.pg-footer__newsletter-gf,
.pg-footer__newsletter-gf .gform_wrapper,
.pg-footer__newsletter-gf form,
.pg-footer__newsletter-gf .gform_body,
.pg-footer__newsletter-gf .gform_fields {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.pg-footer__newsletter-gf .gform_wrapper form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
}

.pg-footer__newsletter-gf .gform_body {
    min-width: 0;
}

.pg-footer__newsletter-gf .gform_fields {
    display: block !important;
}

.pg-footer__newsletter-gf .gfield {
    margin: 0 !important;
}

.pg-footer__newsletter-gf .gfield_required,
.pg-footer__newsletter-gf .gfield_description {
    display: none !important;
}

.pg-footer__newsletter-gf .gfield_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pg-footer__newsletter-gf .validation_message,
.pg-footer__newsletter-gf .gfield_validation_message {
    display: block !important;
    margin-top: 6px !important;
}

.pg-footer__newsletter-gf input[type="email"] {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 16px 0 12px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--wp--preset--font-family--inter-display) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: var(--wp--preset--color--custom-gris) !important;
}

.pg-footer__newsletter-gf input[type="email"]::placeholder {
    color: var(--wp--preset--color--custom-gris) !important;
    opacity: 1 !important;
}

.pg-footer__newsletter-gf input[type="email"]:focus {
    outline: none !important;
}

.pg-footer__newsletter-gf .gform_footer,
.pg-footer__newsletter-gf .gform_page_footer {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pg-footer__newsletter-gf .gform_footer input[type="submit"],
.pg-footer__newsletter-gf .gform_page_footer input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 16px 23px !important;
    margin: 0 !important;
    width: auto !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--wp--preset--color--custom-rojo-principal) !important;
    color: var(--wp--preset--color--custom-blanco) !important;
    font-family: var(--wp--preset--font-family--jetbrains-mono) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.12px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.pg-footer__newsletter-gf .gform_footer input[type="submit"]:hover,
.pg-footer__newsletter-gf .gform_footer input[type="submit"]:focus-visible,
.pg-footer__newsletter-gf .gform_page_footer input[type="submit"]:hover,
.pg-footer__newsletter-gf .gform_page_footer input[type="submit"]:focus-visible {
    background-color: var(--wp--preset--color--custom-negro) !important;
    transform: translateY(-1px);
}

.pg-footer__newsletter-gf .gform_footer input[type="submit"]:focus-visible,
.pg-footer__newsletter-gf .gform_page_footer input[type="submit"]:focus-visible {
    outline: 2px solid var(--wp--preset--color--custom-rojo-principal) !important;
    outline-offset: 3px !important;
}

.pg-footer__newsletter-gf .gform_validation_errors,
.pg-footer__newsletter-gf .gform_confirmation_message,
.pg-footer__newsletter-gf .validation_error {
    grid-column: 1 / -1;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--wp--preset--font-family--inter-display) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.pg-footer__newsletter-gf .gform_validation_errors,
.pg-footer__newsletter-gf .validation_error {
    color: var(--wp--preset--color--custom-rojo-principal) !important;
}

.pg-footer__newsletter-gf .gform_confirmation_message {
    color: var(--wp--preset--color--custom-gris) !important;
}

.pg-footer__input {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0 16px 0 12px;
    font-family: var(--wp--preset--font-family--inter-display);
    font-size: 16px;
    line-height: 1.35;
    color: var(--wp--preset--color--custom-gris);
    outline: 0;
}

.pg-footer__input::placeholder {
    color: var(--wp--preset--color--custom-gris);
    opacity: 1;
}

.pg-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 16px 23px;
    border-radius: 2px;
    background: var(--wp--preset--color--custom-rojo-principal);
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.12px;
    text-transform: uppercase;
    text-align: center;
    color: var(--wp--preset--color--custom-blanco);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pg-footer__aside {
    display: grid;
    grid-template-columns: minmax(0, 529px) 74px auto;
    align-items: center;
    justify-content: end;
    gap: 76px;
    
}

.pg-footer__aside--no-badge {
    grid-template-columns: minmax(0, 529px) auto;
}

.pg-footer__links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-items: start;
    justify-content: space-between;
    column-gap: 24px;
    row-gap: 15px;
    width: 100%;
    max-width: 529px;
}

.pg-footer__link-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.pg-footer__link {
    position: relative;
    display: inline-block;
    font-family: var(--wp--preset--font-family--jetbrains-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.12px;
    text-transform: uppercase;
    color: var(--wp--preset--color--custom-negro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pg-footer__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -14px;
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    opacity: 0;
    transform: translate(-4px, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pg-footer__link--catalogos {
    display: block;
    width: auto;
    margin-left: 0;
    white-space: nowrap;
}

.pg-footer__badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-right: 18px;
}

.pg-footer__badge {
    display: block;
    width: 74px;
    height: auto;
    filter: grayscale(100%);
}

.pg-footer__socials {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 17px;
}

.pg-footer__utilities {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: end;
    gap: 18px;
}

.pg-footer__credit {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--wp--preset--color--custom-gris);
    white-space: nowrap;
}

.pg-footer__credit-text {
    font-family: var(--wp--preset--font-family--inter-display);
    font-size: 15px;
    line-height: 1.25;
}

.pg-footer__credit-link {
    display: inline-flex;
    align-items: center;
    color: var(--wp--preset--color--custom-gris);
    text-decoration: none;
    line-height: 0;
    transition: color 0.3s ease;
}

.pg-footer__credit-mark {
    display: inline-flex;
    width: 60px;
    height: 26px;
    color: currentColor;
}

.pg-footer__credit-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pg-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--custom-negro);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.pg-footer__social-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.pg-footer__social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

a.pg-footer__button:hover,
a.pg-footer__button:focus-visible {
    background-color: var(--wp--preset--color--custom-negro);
    transform: translateY(-1px);
}

.pg-footer__link:hover,
.pg-footer__link:focus-visible,
.pg-footer__link:active,
a.pg-footer__social-link:hover,
a.pg-footer__social-link:focus-visible,
a.pg-footer__credit-link:hover,
a.pg-footer__credit-link:focus-visible {
    color: var(--wp--preset--color--custom-rojo-principal);
}

a.pg-footer__social-link:hover,
a.pg-footer__social-link:focus-visible {
    transform: translateY(-1px);
}

.pg-footer__link:hover::before,
.pg-footer__link:focus-visible::before,
.pg-footer__link:active::before {
    opacity: 1;
    transform: translate(0, -50%);
}

a.pg-footer__button:focus-visible,
a.pg-footer__link:focus-visible,
a.pg-footer__social-link:focus-visible,
a.pg-footer__credit-link:focus-visible {
    outline: 2px solid var(--wp--preset--color--custom-rojo-principal);
    outline-offset: 3px;
}

.editor-styles-wrapper .pg-footer,
.block-editor-block-list__layout .pg-footer {
    min-height: 0;
}

@media (max-width: 1250px) {
    .pg-footer__aside {
        gap: 34px;
    }
}

@media (max-width: 1180px) {
    .pg-footer__content {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .pg-footer__aside {
        grid-template-columns: minmax(0, 1fr);
        justify-content: start;
        gap: 28px;
    }

    .pg-footer__badge-wrap {
        justify-content: flex-start;
    }

    .pg-footer__utilities {
        justify-self: start;
    }
}

@media (max-width: 1023px) {
    .pg-footer {
        padding-top: 48px;
        padding-bottom: 52px;
        background-image: none;
        background-color: #F9F9F9;
    }

    .pg-footer::after {
        content: none;
    }

    .pg-footer__inner {
        gap: 32px;
    }

    .pg-footer__logo-wrap {
        justify-content: flex-start;
    }

    .pg-footer__logo {
        width: var(--pg-footer-logo-width-mobile, 180px);
    }

    .pg-footer__content {
        gap: 28px;
    }

    .pg-footer__aside {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 22px;
    }

    .pg-footer__aside--no-badge {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-footer__social-link {
        min-width: 34px;
        min-height: 34px;
    }

    .pg-footer__newsletter {
        max-width: none;
        gap: 22px;
    }

    .pg-footer__newsletter-copy {
        max-width: none;
    }

    .pg-footer__newsletter-form {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .pg-footer__newsletter-gf .gform_wrapper form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pg-footer__newsletter-gf .gform_footer,
    .pg-footer__newsletter-gf .gform_page_footer {
        display: block !important;
        width: 100% !important;
        justify-content: initial !important;
    }

    .pg-footer__input {
        min-height: 44px;
        padding: 0;
    }

    .pg-footer__button,
    .pg-footer__newsletter-gf .gform_footer input[type="submit"],
    .pg-footer__newsletter-gf .gform_page_footer input[type="submit"] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 100% !important;
    }

    .pg-footer__links {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: 1fr;
        justify-content: flex-start;
        gap: 14px;
    }

    .pg-footer__link-column {
        gap: 12px;
    }

    .pg-footer__link {
        padding-left: 14px;
    }

    .pg-footer__link::before {
        left: 0;
    }

    .pg-footer__badge-wrap {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        justify-content: flex-end;
        margin-right: 0;
    }

    .pg-footer__socials {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .pg-footer__utilities {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-self: stretch;
        gap: 18px;
    }

    .pg-footer__social-icon {
        width: 18px;
        height: 18px;
    }

    .pg-footer__credit {
        justify-content: center;
    }

    .pg-footer__credit-text {
        font-size: 14px;
    }
}
