/* =========================================================
   ESPAGLOBAL - FOOTER 2
   Theme variables are provided by _design_variables.php
========================================================= */

.espa-footer-2{
    --f2-navy:var(--espa-secondary);
    --f2-primary:var(--espa-primary);
    --f2-primary-hover:var(--espa-primary-hover);
    --f2-text:rgba(255,255,255,.82);
    --f2-muted:rgba(255,255,255,.60);
    --f2-ink:var(--espa-heading);
    --f2-body:var(--espa-text);
    --f2-soft:var(--espa-muted);
    --f2-line:var(--espa-border);
    --f2-link:var(--espa-link);
    --f2-link-hover:var(--espa-link-hover);
    position:relative;
    background:var(--espa-surface);
    color:var(--f2-ink);
    font-family:var(--font-family-body);
}

.espa-footer-2__dark{position:relative;background:var(--f2-navy);color:var(--f2-text)}
.espa-footer-2__top{border-bottom:1px solid rgba(255,255,255,.13)}
.espa-footer-2__top-row{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.espa-footer-2__socials{display:flex;align-items:center;gap:9px}
.espa-footer-2__socials a{width:34px;height:34px;border:1px solid rgba(255,255,255,.74);border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease}
.espa-footer-2__socials a:hover{background:var(--f2-primary);border-color:var(--f2-primary);color:var(--espa-button-text);transform:translateY(-2px)}
.espa-footer-2__socials iconify-icon{width:16px;height:16px}
.espa-footer-2__phone{display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none}
.espa-footer-2__phone>iconify-icon{width:32px;height:32px;color:var(--f2-primary)}
.espa-footer-2__phone span{display:flex;flex-direction:column}
.espa-footer-2__phone strong{font-family:var(--font-family-heading);font-size:20px;line-height:1.05;font-weight:var(--font-weight-heading);letter-spacing:.01em}
.espa-footer-2__phone small{margin-top:5px;color:var(--f2-muted);font-size:10px}
.espa-footer-2__menus{padding:46px 0 102px}
.espa-footer-2__title{margin:0 0 18px;color:#fff;font-family:var(--font-family-heading);font-size:15px;font-weight:var(--font-weight-heading)}
.espa-footer-2__menu{display:flex;flex-direction:column;gap:10px}
.espa-footer-2__menu a{color:var(--f2-text);font-size:13px;line-height:1.35;text-decoration:none;transition:color .16s ease,transform .16s ease}
.espa-footer-2__menu a:hover{color:var(--f2-primary);transform:translateX(3px)}

.espa-footer-2__bottom{position:relative;background:var(--espa-surface);padding:14px 0 44px;overflow:visible}
.espa-footer-2__bottom:before{content:"";position:absolute;left:-4%;top:-60px;width:108%;height:92px;background:var(--espa-surface);border-radius:50% 50% 0 0/100% 100% 0 0;pointer-events:none}
.espa-footer-2__bottom-inner{position:relative;z-index:1}

.espa-footer-2__partners{min-height:54px;margin-top:-24px;margin-bottom:24px;display:flex;align-items:center;justify-content:center;gap:42px;flex-wrap:wrap}
.espa-footer-2__partners a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.espa-footer-2__partners img{display:block;max-width:145px;max-height:48px;width:auto;height:auto;object-fit:contain;filter:grayscale(1);opacity:.5;transition:filter .22s ease,opacity .22s ease,transform .22s ease}
.espa-footer-2__partners a:hover img,.espa-footer-2__partners img:hover{filter:grayscale(0);opacity:1;transform:translateY(-2px)}

.espa-footer-2__identity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-top:18px}
.espa-footer-2__agency{display:flex;flex-direction:column;align-items:flex-start}
.espa-footer-2__agency img{display:block;max-width:170px;max-height:64px;width:auto;height:auto;object-fit:contain;margin-bottom:9px}
.espa-footer-2__agency-info{color:var(--f2-body);font-size:12px;line-height:1.45}

.espa-footer-2__copyright{margin-top:34px;color:var(--f2-body);font-size:12px;line-height:1.55}

.espa-footer-2__bottom-menu{margin:13px 0 0;padding:12px 0;border-top:1px solid var(--f2-line);border-bottom:1px solid var(--f2-line);display:flex;align-items:center;flex-wrap:wrap;gap:0}
.espa-footer-2__bottom-menu a{position:relative;padding:0 14px;color:var(--f2-link);font-size:12px;font-weight:700;text-decoration:none;transition:color .16s ease}
.espa-footer-2__bottom-menu a:first-child{padding-left:0}
.espa-footer-2__bottom-menu a:not(:last-child):after{content:"";position:absolute;right:0;top:50%;width:1px;height:13px;background:var(--f2-line);transform:translateY(-50%)}
.espa-footer-2__bottom-menu a:hover{color:var(--f2-link-hover)}

.espa-footer-2__footer-text{max-width:1080px;margin-top:18px;color:var(--f2-body);font-size:12px;line-height:1.65}
.espa-footer-2__disclaimer{max-width:1080px;margin-top:14px;color:var(--f2-soft);font-size:12px;line-height:1.6}

/* Compact payment badges and trust marks - same assets/size as Footer 1 */
.espa-footer-2__cert-row{
    margin-top:34px;
    padding-top:20px;
    border-top:1px solid var(--f2-line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
}
.espa-footer-2__payments{
    display:flex;
    flex:1 1 790px;
    min-width:0;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    flex-wrap:wrap;
}
.espa-footer-2__payment-methods{
    display:grid;
    grid-template-columns:repeat(7,90px);
    align-items:center;
    gap:6px;
}
.espa-footer-2__trust-logos{
    display:grid;
    grid-template-columns:repeat(2,76px);
    align-items:center;
    gap:6px;
    border-left:1px solid var(--f2-line);
    padding-left:12px;
}
.espa-footer-2__payment-item{
    width:100%;
    min-width:0;
    height:31px;
    padding:4px 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid var(--f2-line);
    border-radius:6px;
    overflow:hidden;
}
.espa-footer-2__payment-item img.espa-footer-2__payment-logo{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:18px;
    object-fit:contain;
    filter:none;
}
.espa-footer-2__trust-logos .espa-footer-2__payment-item{height:34px}
.espa-footer-2__trust-logos .espa-footer-2__payment-item img.espa-footer-2__payment-logo{max-height:24px}
.espa-footer-2__certificates{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.espa-footer-2__certificates a{display:inline-flex;align-items:center}
.espa-footer-2__certificates img{
    display:block;
    height:80px;
    width:auto;
    max-width:180px;
    max-height:none;
    object-fit:contain;
}

@media(max-width:1199.98px){
    .espa-footer-2__menus{padding:38px 0 90px}
    .espa-footer-2__bottom{padding-top:48px}
    .espa-footer-2__partners{gap:24px;margin-top:-18px}
    .espa-footer-2__partners img{max-width:112px}
    .espa-footer-2__identity-row{margin-top:12px}
    .espa-footer-2__bottom-menu{gap:8px 0}
    .espa-footer-2__bottom-menu a{padding:0 12px}
    .espa-footer-2__payment-methods{grid-template-columns:repeat(5,90px)}
    .espa-footer-2__cert-row{gap:16px}
}

@media(max-width:767.98px){
    .espa-footer-2__top-row{min-height:74px}
    .espa-footer-2__phone strong{font-size:15px}
    .espa-footer-2__phone>iconify-icon{width:27px;height:27px}
    .espa-footer-2__socials{gap:8px}
    .espa-footer-2__socials a{width:32px;height:32px}
    .espa-footer-2__menus{padding:30px 0 72px}
    .espa-footer-2__title{font-size:13px}
    .espa-footer-2__menu{gap:9px}
    .espa-footer-2__menu a{font-size:12px}
    .espa-footer-2__bottom:before{top:-42px;height:66px}
    .espa-footer-2__bottom{padding:38px 0 32px}
    .espa-footer-2__partners{min-height:42px;margin-top:-12px;margin-bottom:18px;justify-content:flex-start;gap:18px}
    .espa-footer-2__partners img{max-width:92px;max-height:34px;opacity:.68}
    .espa-footer-2__identity-row{margin-top:10px}
    .espa-footer-2__agency img{max-width:145px}
    .espa-footer-2__copyright{margin-top:26px}
    .espa-footer-2__bottom-menu{margin-top:11px;padding:11px 0}
    .espa-footer-2__bottom-menu a{padding:4px 10px 4px 0;margin-right:10px}
    .espa-footer-2__bottom-menu a:not(:last-child):after{display:none}
    .espa-footer-2__footer-text,.espa-footer-2__disclaimer{font-size:11.5px;line-height:1.6}
    .espa-footer-2__cert-row{margin-top:26px}
    .espa-footer-2__payments{gap:12px}
    .espa-footer-2__payment-methods{grid-template-columns:repeat(4,76px);gap:6px}
    .espa-footer-2__trust-logos{grid-template-columns:repeat(2,76px);border-left:none;border-top:1px solid var(--f2-line);padding:10px 0 0}
    .espa-footer-2__certificates{justify-content:flex-start}
    .espa-footer-2__certificates img{height:80px;max-width:160px}
}

@media(max-width:399.98px){
    .espa-footer-2__payment-methods{grid-template-columns:repeat(3,80px)}
}
