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

body.gpg-footer-hide-previous .elementor-location-footer:not(.gpg-footer),
body.gpg-footer-hide-previous .site-primary-footer-wrap,
body.gpg-footer-hide-previous .site-below-footer-wrap,
body.gpg-footer-hide-previous .ast-small-footer-wrap {
    display: none !important;
}

.gpg-footer {
    --gpg-footer-bg: #0b0f0a;
    --gpg-footer-panel: #10170f;
    --gpg-footer-accent: #94bc58;
    --gpg-footer-accent-dark: #305625;
    --gpg-footer-text: #ffffff;
    --gpg-footer-muted: #c9ddbd;
    --gpg-footer-border: #2f4728;
    --gpg-footer-max: 1280px;
    --gpg-footer-cta-texture: none;
    --gpg-footer-cta-texture-position: center center;
    --gpg-footer-cta-texture-size: cover;
    --gpg-footer-cta-texture-repeat: no-repeat;
    --gpg-footer-cta-texture-opacity: .18;
    --gpg-footer-main-texture: none;
    --gpg-footer-main-texture-position: center top;
    --gpg-footer-main-texture-size: cover;
    --gpg-footer-main-texture-repeat: no-repeat;
    --gpg-footer-main-texture-opacity: .1;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    color: var(--gpg-footer-text);
    background: var(--gpg-footer-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.42;
    isolation: isolate;
}

.gpg-footer a {
    color: inherit;
    text-decoration: none;
}

.gpg-footer svg {
    display: block;
    width: 1.3em;
    height: 1.3em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gpg-footer__container {
    width: min(calc(100% - 44px), var(--gpg-footer-max));
    margin-inline: auto;
}

/* Franja superior */
.gpg-footer__cta {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--gpg-footer-border);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--gpg-footer-bg) 93%, transparent), color-mix(in srgb, var(--gpg-footer-panel) 78%, transparent)),
        radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--gpg-footer-accent-dark) 28%, transparent), transparent 28%),
        var(--gpg-footer-panel);
}

.gpg-footer__cta::before,
.gpg-footer__main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.gpg-footer__cta::before {
    background-image: var(--gpg-footer-cta-texture);
    background-position: var(--gpg-footer-cta-texture-position);
    background-size: var(--gpg-footer-cta-texture-size);
    background-repeat: var(--gpg-footer-cta-texture-repeat);
    opacity: var(--gpg-footer-cta-texture-opacity);
}

.gpg-footer__cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 54px minmax(230px, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 100px;
    padding-block: 15px;
}

.gpg-footer__cta-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--gpg-footer-accent);
}

.gpg-footer__cta-icon svg {
    width: 46px;
    height: 46px;
    stroke-width: 1.9;
}

.gpg-footer__cta-copy h2,
.gpg-footer__cta-copy p,
.gpg-footer__section h2,
.gpg-footer__brand p,
.gpg-footer__store-note {
    margin: 0;
}

.gpg-footer__cta-copy h2 {
    color: var(--gpg-footer-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    font-size: clamp(19px, 1.55vw, 25px);
    font-weight: 700;
    line-height: 1.12;
}

.gpg-footer__cta-copy p {
    max-width: 540px;
    margin-top: 4px;
    color: var(--gpg-footer-accent);
    font-size: 14px;
    font-weight: 700;
}

.gpg-footer__cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.gpg-footer__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid var(--gpg-footer-accent);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.gpg-footer__button:hover,
.gpg-footer__button:focus-visible {
    transform: translateY(-2px);
}

.gpg-footer__button--primary {
    color: #11200d;
    background: var(--gpg-footer-accent);
}

.gpg-footer__button--primary:hover,
.gpg-footer__button--primary:focus-visible {
    color: #11200d;
    background: color-mix(in srgb, var(--gpg-footer-accent) 88%, white);
}

.gpg-footer__button--ghost {
    color: var(--gpg-footer-text);
    background: color-mix(in srgb, var(--gpg-footer-bg) 64%, transparent);
}

.gpg-footer__button--ghost:hover,
.gpg-footer__button--ghost:focus-visible {
    color: #11200d;
    background: var(--gpg-footer-accent);
}

/* Cuerpo */
.gpg-footer__main {
    position: relative;
    overflow: hidden;
}

.gpg-footer__main::before {
    background-image: var(--gpg-footer-main-texture);
    background-position: var(--gpg-footer-main-texture-position);
    background-size: var(--gpg-footer-main-texture-size);
    background-repeat: var(--gpg-footer-main-texture-repeat);
    opacity: var(--gpg-footer-main-texture-opacity);
}

.gpg-footer__main > .gpg-footer__container {
    position: relative;
    z-index: 1;
}

.gpg-footer__content {
    padding-top: 22px;
}

.gpg-footer__grid {
    display: grid;
    grid-template-columns: 1.08fr .76fr .88fr 1.08fr;
    align-items: start;
    gap: 26px;
    padding-bottom: 20px;
}

.gpg-footer__brand {
    min-width: 0;
}

.gpg-footer__logo {
    display: inline-flex;
    width: clamp(64px, 5.5vw, 78px);
    max-width: 78px;
    color: var(--gpg-footer-text);
}

.gpg-footer__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}


.gpg-footer__default-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gpg-footer-text);
}

.gpg-footer__logo-mark {
    flex: 0 0 auto;
    width: 49px !important;
    height: 49px !important;
    fill: currentColor;
    stroke: none !important;
}

.gpg-footer__logo-type {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.gpg-footer__logo-type strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

.gpg-footer__logo-type small {
    margin-top: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .38em;
}

.gpg-footer__description {
    max-width: 290px;
    margin-top: 10px !important;
    color: color-mix(in srgb, var(--gpg-footer-text) 88%, transparent);
    font-size: 12px;
}

.gpg-footer__brand-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.gpg-footer__socials {
    display: flex;
    gap: 7px;
}

.gpg-footer__socials a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--gpg-footer-accent);
    border: 1px solid var(--gpg-footer-accent);
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.gpg-footer__socials a:hover,
.gpg-footer__socials a:focus-visible {
    color: #11200d;
    background: var(--gpg-footer-accent);
    transform: translateY(-2px);
}

.gpg-footer__inase {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 218px;
    padding: 7px 9px;
    color: var(--gpg-footer-text);
    border: 1px solid var(--gpg-footer-accent-dark);
    border-radius: 7px;
    background: color-mix(in srgb, var(--gpg-footer-panel) 76%, transparent);
}

.gpg-footer__inase > svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: var(--gpg-footer-accent);
}

.gpg-footer__inase span {
    display: flex;
    flex-direction: column;
}

.gpg-footer__inase strong {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.gpg-footer__inase small {
    color: var(--gpg-footer-muted);
    font-size: 9px;
}

.gpg-footer__section-toggle {
    display: none;
}

.gpg-footer__section h2 {
    color: var(--gpg-footer-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.gpg-footer__section ul {
    display: grid;
    gap: 2px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

.gpg-footer__section li {
    margin: 0;
    padding: 0;
}

.gpg-footer__section li a {
    display: flex;
    min-height: 27px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: color-mix(in srgb, var(--gpg-footer-text) 88%, transparent);
    font-size: 12px;
    transition: color .2s ease, transform .2s ease;
}

.gpg-footer__section li a svg {
    width: 13px;
    height: 13px;
    opacity: .7;
}

.gpg-footer__section li a:hover,
.gpg-footer__section li a:focus-visible {
    color: var(--gpg-footer-accent);
    transform: translateX(3px);
}

.gpg-footer__store-row {
    display: grid;
    grid-template-columns: 19px 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: color-mix(in srgb, var(--gpg-footer-text) 90%, transparent);
    font-size: 12px;
}

.gpg-footer__store-row > svg {
    align-self: center;
    width: 17px;
    height: 17px;
    margin-top: 0;
    color: var(--gpg-footer-accent);
}

.gpg-footer__store-row a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.gpg-footer__store-row a small {
    color: var(--gpg-footer-muted);
    font-size: 9px;
}

.gpg-footer__map-button {
    display: inline-flex;
    min-width: 188px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    padding: 0 15px;
    border: 1px solid var(--gpg-footer-accent);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease;
}

.gpg-footer__map-button:hover,
.gpg-footer__map-button:focus-visible {
    color: #11200d;
    background: var(--gpg-footer-accent);
}

.gpg-footer__store-note {
    max-width: 230px;
    margin-top: 7px !important;
    color: var(--gpg-footer-accent);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.gpg-footer__legal-mobile,
.gpg-footer__trust {
    display: none !important;
}

/* Renglón fiscal compacto */
.gpg-footer__bottom {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0 11px;
    border-top: 1px solid var(--gpg-footer-border);
}

.gpg-footer__fiscal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: color-mix(in srgb, var(--gpg-footer-text) 84%, transparent);
    font-size: 10px;
}

.gpg-footer__fiscal-separator {
    color: var(--gpg-footer-accent);
}

.gpg-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px 16px;
    font-size: 10px;
}

.gpg-footer__legal a {
    color: var(--gpg-footer-muted);
}

.gpg-footer__legal a:hover,
.gpg-footer__legal a:focus-visible {
    color: var(--gpg-footer-accent);
}

@media (max-width: 1020px) {
    .gpg-footer__cta-inner {
        grid-template-columns: 48px minmax(220px, 1fr);
    }

    .gpg-footer__cta-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 66px;
    }

    .gpg-footer__grid {
        grid-template-columns: 1.08fr .8fr .92fr;
    }

    .gpg-footer__store {
        grid-column: 1 / -1;
        padding-top: 18px;
        border-top: 1px solid var(--gpg-footer-border);
    }

    .gpg-footer__store .gpg-footer__section-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 22px;
        align-items: start;
    }

    .gpg-footer__store h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .gpg-footer__container {
        width: min(calc(100% - 28px), var(--gpg-footer-max));
    }

    .gpg-footer__cta-inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 8px;
        padding: 17px 0 15px;
        text-align: center;
    }

    .gpg-footer__cta-icon,
    .gpg-footer__cta-icon svg {
        width: 38px;
        height: 38px;
    }

    .gpg-footer__cta-copy h2 {
        font-size: 18px;
    }

    .gpg-footer__cta-copy p {
        font-size: 12px;
    }

    .gpg-footer__cta-actions {
        display: grid;
        width: 100%;
        grid-column: auto;
        gap: 8px;
        padding: 7px 0 0;
    }

    .gpg-footer__button {
        width: 100%;
        min-height: 42px;
        padding: 0 15px;
        font-size: 12px;
    }

    .gpg-footer__content {
        padding-top: 17px;
    }

    .gpg-footer__grid {
        display: block;
        padding-bottom: 14px;
    }

    .gpg-footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
        text-align: center;
    }

    .gpg-footer__logo {
        width: clamp(58px, 18vw, 70px);
        max-width: 70px;
        justify-content: center;
    }

    .gpg-footer__logo img {
        max-height: 70px;
        object-position: center;
    }

    .gpg-footer__description {
        display: none;
    }

    .gpg-footer__brand-actions {
        justify-content: center;
        margin-top: 10px;
    }

    .gpg-footer__section,
    .gpg-footer__store {
        padding: 0;
        border-top: 1px solid var(--gpg-footer-border);
    }

    .gpg-footer__section:last-of-type {
        border-bottom: 1px solid var(--gpg-footer-border);
    }

    .gpg-footer__section-toggle {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0;
        color: var(--gpg-footer-text);
        border: 0;
        background: transparent;
        font: inherit;
        font-size: 11px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
        cursor: pointer;
    }

    .gpg-footer__section-toggle svg {
        width: 15px;
        height: 15px;
        transition: transform .2s ease;
    }

    .gpg-footer__section.is-open .gpg-footer__section-toggle svg {
        transform: rotate(180deg);
    }

    .gpg-footer__section-panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .2s ease, padding .25s ease;
    }

    .gpg-footer__section.is-open .gpg-footer__section-panel {
        max-height: 620px;
        padding-bottom: 13px;
        opacity: 1;
    }

    .gpg-footer__section-panel h2 {
        display: none;
    }

    .gpg-footer__section ul {
        gap: 0;
        margin-top: 0;
    }

    .gpg-footer__section li a {
        min-height: 34px;
        font-size: 12px;
    }

    .gpg-footer__store .gpg-footer__section-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gpg-footer__map-button {
        width: 100%;
        min-width: 0;
    }

    .gpg-footer__store-note {
        max-width: none;
        text-align: left;
    }

    .gpg-footer__legal-mobile {
        display: block !important;
    }

    .gpg-footer__bottom {
        min-height: 0;
        justify-content: center;
        padding: 10px 0 12px;
        text-align: center;
    }

    .gpg-footer__fiscal {
        justify-content: center;
        font-size: 9px;
    }

    .gpg-footer__legal {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gpg-footer *,
    .gpg-footer *::before,
    .gpg-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v1.0.4: alineaciones precisas de logo y textos de botones */
.gpg-footer__logo {
    display: flex;
    justify-content: center;
    margin-inline: auto;
}

.gpg-footer__logo img {
    margin-inline: auto;
    object-position: center center;
}

.gpg-footer__default-logo {
    justify-content: center;
    margin-inline: auto;
}

.gpg-footer__button {
    position: relative;
    min-width: 188px;
    text-align: center;
}

.gpg-footer__button span {
    display: block;
    width: 100%;
    text-align: center;
}

.gpg-footer__button > svg {
    position: absolute;
    top: 50%;
    flex: 0 0 auto;
    transform: translateY(-50%);
}

.gpg-footer__button--primary > svg {
    left: 14px;
}

.gpg-footer__button--ghost > svg {
    right: 14px;
}

@media (max-width: 720px) {
    .gpg-footer__button {
        width: 100%;
        min-width: 0;
    }
}


/* v1.0.5: integración exacta con General Paz Header y alineación definitiva */
.gpg-footer[data-use-header-logo="yes"] .gpg-footer__logo img {
    filter: none !important;
}

.gpg-footer .gpg-footer__brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gpg-footer .gpg-footer__logo {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    margin-inline: auto !important;
}

.gpg-footer .gpg-footer__logo img {
    display: block !important;
    margin-inline: auto !important;
    object-position: center center !important;
}

.gpg-footer .gpg-footer__description {
    margin-inline: auto;
    text-align: center;
}

.gpg-footer .gpg-footer__brand-actions {
    justify-content: center;
}

.gpg-footer .gpg-footer__button {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: center !important;
    justify-items: center !important;
    min-width: 188px;
    padding-inline: 42px !important;
    line-height: 1 !important;
    text-align: center !important;
}

.gpg-footer .gpg-footer__button > span {
    display: block;
    width: 100%;
    text-align: center !important;
}

.gpg-footer .gpg-footer__button > svg {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    transform: translateY(-50%);
}

.gpg-footer .gpg-footer__button--primary > svg {
    left: 16px;
}

.gpg-footer .gpg-footer__button--ghost > svg {
    right: 16px;
}

@media (max-width: 767px) {
    .gpg-footer .gpg-footer__button {
        width: 100%;
    }
}

/* v1.0.6: tamaño automático del logo, texturas configurables y renglón inferior único */
.gpg-footer__fiscal{width:100%;justify-content:flex-start}.gpg-footer__bottom{justify-content:flex-start}.gpg-footer__logo{flex:0 0 auto}.gpg-footer__logo img{width:100%!important;height:auto!important;aspect-ratio:auto!important}.gpg-footer__cta::before{background-repeat:var(--gpg-footer-cta-texture-repeat)!important}.gpg-footer__main::before{background-repeat:var(--gpg-footer-main-texture-repeat)!important}@media(max-width:767px){.gpg-footer__fiscal{justify-content:center}.gpg-footer__bottom{justify-content:center}}
/* Ajuste responsive automático del logo sin controles manuales */
.gpg-footer .gpg-footer__logo{width:auto!important;max-width:160px!important;min-width:0!important}
.gpg-footer .gpg-footer__logo img{width:auto!important;max-width:160px!important;height:auto!important;max-height:64px!important;object-fit:contain!important}
@media(max-width:767px){.gpg-footer .gpg-footer__logo{max-width:140px!important}.gpg-footer .gpg-footer__logo img{max-width:140px!important;max-height:56px!important}}

/* v1.0.7 — auditoría y endurecimiento responsive para teléfonos */
.gpg-footer{max-width:100%;overflow-x:clip}
.gpg-footer img,.gpg-footer svg{max-width:100%}
.gpg-footer__container>* ,.gpg-footer__cta-inner>* ,.gpg-footer__grid>*{min-width:0}
.gpg-footer a,.gpg-footer p,.gpg-footer h2,.gpg-footer h3,.gpg-footer span{overflow-wrap:anywhere}
@media(max-width:767px){
  .gpg-footer__container{width:calc(100% - 24px);max-width:100%;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  .gpg-footer__cta-inner{grid-template-columns:1fr!important;text-align:center;justify-items:center;padding-block:20px}
  .gpg-footer__cta-copy{max-width:100%}
  .gpg-footer__cta-actions{width:100%;max-width:420px;display:grid;grid-template-columns:1fr;gap:10px}
  .gpg-footer__cta-actions a,.gpg-footer__button{width:100%;max-width:100%;white-space:normal;text-align:center}
  .gpg-footer__main{padding-bottom:env(safe-area-inset-bottom)}
  .gpg-footer__section,.gpg-footer__brand{max-width:100%}
}
@media(max-width:380px){
  .gpg-footer__container{width:calc(100% - 18px)}
  .gpg-footer__cta-copy h2{font-size:20px}
  .gpg-footer__bottom,.gpg-footer__fiscal{gap:8px;text-align:center}
}
@media(hover:none),(pointer:coarse){.gpg-footer a:hover,.gpg-footer__button:hover{transform:none;box-shadow:none}}

