.if-garantia {
    --if-green: #20b83a;
    --if-green-dark: #15952a;
    --if-ink: #141814;
    --if-muted: #667067;
    --if-line: #e3e9e4;
    --if-soft: #f6f9f6;

    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 26px 0 12px;
    padding: 22px;
    border: 1px solid var(--if-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, var(--if-soft) 100%);
    box-shadow: 0 10px 28px rgba(17, 24, 18, .055);
}

.if-garantia__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef9f0;
}

.if-garantia__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: var(--if-green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.if-garantia__content { flex: 1; min-width: 0; }

.if-garantia__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--if-green-dark);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .09em;
}

.if-garantia h3 {
    margin: 0 0 8px !important;
    color: var(--if-ink);
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.2;
    font-weight: 750;
}

.if-garantia p {
    margin: 0 0 8px !important;
    color: var(--if-muted);
    font-size: 14px;
    line-height: 1.55;
}

.if-garantia p strong { color: var(--if-ink); }

.if-garantia__promise {
    color: var(--if-ink) !important;
    font-weight: 600;
}

.if-garantia__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    padding: 12px 17px;
    border-radius: 9px;
    background: var(--if-green);
    color: #fff !important;
    font-size: 13.5px;
    line-height: 1.2;
    font-weight: 750;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(32, 184, 58, .18);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.if-garantia__button:hover {
    background: var(--if-green-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(32, 184, 58, .23);
}

.if-garantia__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .if-garantia {
        gap: 13px;
        padding: 17px;
        border-radius: 12px;
    }
    .if-garantia__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .if-garantia__button {
        width: 100%;
    }
}

/* ================================================================
   LANDING — GARANTÍA DE INSTALACIÓN
   ================================================================ */
.ifg-landing-active .entry-header,
.ifg-landing-active .page-header { display: none !important; }
.ifg-landing-active .site-content,
.ifg-landing-active .content-area,
.ifg-landing-active .site-main,
.ifg-landing-active article.page,
.ifg-landing-active .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; }

.ifg-page {
    --ifg-green: #19bd83;
    --ifg-green-dark: #0e9466;
    --ifg-green-pale: #eaf9f3;
    --ifg-ink: #07110d;
    --ifg-text: #28332e;
    --ifg-muted: #68746e;
    --ifg-line: #dfe8e3;
    --ifg-soft: #f4f8f6;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    color: var(--ifg-text);
    background: #fff;
    font-family: inherit;
}
.ifg-page *, .ifg-page *::before, .ifg-page *::after { box-sizing: border-box; }
.ifg-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.ifg-hero { position: relative; isolation: isolate; padding: clamp(70px, 8vw, 118px) 0 0; color: #fff; background: var(--ifg-ink); }
.ifg-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom,black,transparent 88%); }
.ifg-hero__glow { position: absolute; z-index: -1; width: 600px; height: 600px; top: -260px; right: -120px; border-radius: 50%; background: radial-gradient(circle,rgba(25,189,131,.32),transparent 68%); }
.ifg-hero__grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: clamp(42px,8vw,100px); align-items: center; }
.ifg-kicker,.ifg-section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--ifg-green); font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .12em; }
.ifg-kicker span { width: 24px; height: 2px; background: currentColor; }
.ifg-hero h1 { max-width: 800px; margin: 18px 0 22px !important; color: #fff !important; font-size: clamp(42px,5.2vw,76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 820; }
.ifg-lead { max-width: 720px; margin: 0 !important; color: rgba(255,255,255,.72); font-size: clamp(17px,1.8vw,21px); line-height: 1.62; }
.ifg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ifg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; line-height: 1.2; font-weight: 780; text-decoration: none !important; transition: .2s ease; }
.ifg-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ifg-btn--primary { color: #fff !important; background: var(--ifg-green); box-shadow: 0 10px 26px rgba(25,189,131,.22); }
.ifg-btn--primary:hover { color: #fff !important; background: #21cc90; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(25,189,131,.3); }
.ifg-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.04); }
.ifg-btn--ghost:hover { color: #fff !important; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.ifg-microcopy { margin: 14px 0 0 !important; color: rgba(255,255,255,.43); font-size: 12px; }
.ifg-hero__visual { display: grid; place-items: center; min-height: 410px; }
.ifg-shield { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(330px,100%); aspect-ratio: 1/1.08; text-align: center; }
.ifg-shield::before,.ifg-shield::after { content:""; position:absolute; border-radius:50%; border:1px solid rgba(25,189,131,.24); }
.ifg-shield::before { inset: 0; animation: ifg-pulse 4s ease-in-out infinite; }
.ifg-shield::after { inset: 28px; border-color: rgba(255,255,255,.11); }
.ifg-shield svg { width: 142px; height: 165px; fill: rgba(25,189,131,.08); stroke: var(--ifg-green); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 18px 35px rgba(25,189,131,.16)); }
.ifg-shield strong { margin-top: -8px; color: #fff; font-size: 20px; line-height: 1.04; letter-spacing: .04em; }
.ifg-shield span { margin-top: 8px; color: var(--ifg-green); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
@keyframes ifg-pulse { 50% { transform: scale(1.035); border-color: rgba(25,189,131,.45); } }
.ifg-trustbar { display: grid; grid-template-columns: repeat(3,1fr); margin-top: clamp(50px,7vw,90px); border-top: 1px solid rgba(255,255,255,.1); }
.ifg-trustbar div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; min-height: 88px; padding: 18px clamp(16px,3vw,36px); border-right: 1px solid rgba(255,255,255,.1); }
.ifg-trustbar div:last-child { border-right: 0; }
.ifg-trustbar strong { color: var(--ifg-green); font-size: 22px; }
.ifg-trustbar span { color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.35; }

.ifg-section { padding: clamp(72px,8vw,116px) 0; }
.ifg-section--soft { background: var(--ifg-soft); }
.ifg-two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px,8vw,110px); align-items: start; }
.ifg-page h2 { margin: 14px 0 0 !important; color: var(--ifg-ink); font-size: clamp(32px,4vw,52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 810; }
.ifg-richtext p { margin: 0 0 19px !important; color: var(--ifg-muted); font-size: 17px; line-height: 1.75; }
.ifg-richtext p:first-child { color: var(--ifg-text); font-size: 20px; }
.ifg-heading { max-width: 750px; margin-bottom: 42px; }
.ifg-heading > p { max-width: 650px; margin: 18px 0 0 !important; color: var(--ifg-muted); font-size: 17px; line-height: 1.65; }
.ifg-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ifg-card { position: relative; min-height: 300px; padding: 28px 25px; overflow: hidden; border: 1px solid var(--ifg-line); border-radius: 14px; background: #fff; transition: .22s ease; }
.ifg-card:hover { transform: translateY(-4px); border-color: rgba(25,189,131,.45); box-shadow: 0 18px 40px rgba(7,17,13,.08); }
.ifg-card > span { position: absolute; right: 18px; top: 13px; color: #e9efec; font-size: 48px; font-weight: 850; }
.ifg-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 48px; border-radius: 11px; color: var(--ifg-green-dark); background: var(--ifg-green-pale); }
.ifg-card__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ifg-card h3 { margin: 0 0 10px !important; color: var(--ifg-ink); font-size: 19px; font-weight: 780; }
.ifg-card p { margin: 0 !important; color: var(--ifg-muted); font-size: 14px; line-height: 1.65; }

.ifg-process { color:#fff; background: var(--ifg-ink); }
.ifg-heading--light h2 { color: #fff !important; }
.ifg-heading--light > p { color: rgba(255,255,255,.62); }
.ifg-steps { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.13); }
.ifg-steps > div { position: relative; min-height: 220px; padding: 30px 28px 20px 0; border-right: 1px solid rgba(255,255,255,.13); }
.ifg-steps > div:not(:first-child) { padding-left: 28px; }
.ifg-steps > div:last-child { border-right: 0; }
.ifg-steps b { display: block; margin-bottom: 36px; color: var(--ifg-green); font-size: 13px; letter-spacing: .12em; }
.ifg-steps h3 { margin: 0 0 8px !important; color: #fff; font-size: 21px; }
.ifg-steps p { margin: 0 !important; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.55; }

.ifg-coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ifg-panel { position: relative; padding: clamp(30px,4vw,52px); overflow: hidden; border: 1px solid var(--ifg-line); border-radius: 18px; }
.ifg-panel--yes { background: linear-gradient(145deg,#f0fbf7,#fff); }
.ifg-panel--no { background: linear-gradient(145deg,#f8f9f8,#fff); }
.ifg-panel__mark { position: absolute; top: -22px; right: 22px; color: rgba(25,189,131,.09); font-size: 130px; line-height: 1; font-weight: 300; }
.ifg-panel--no .ifg-panel__mark { color: rgba(7,17,13,.055); }
.ifg-panel h2 { max-width: 500px; margin-bottom: 28px !important; font-size: clamp(27px,3vw,38px); }
.ifg-panel ul { display: grid; gap: 13px; margin: 0 !important; padding: 0 !important; list-style: none; }
.ifg-panel li { position: relative; padding-left: 26px; color: var(--ifg-muted); font-size: 15px; line-height: 1.55; }
.ifg-panel li::before { content:""; position:absolute; left:0; top:.58em; width:8px; height:8px; border:2px solid var(--ifg-green); border-radius:50%; }
.ifg-panel--no li::before { border-color: #8b9690; }

.ifg-faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px,8vw,100px); }
.ifg-faq-grid > div:first-child > p { color:var(--ifg-muted); font-size:15px; line-height:1.65; }
.ifg-faq details { border-bottom: 1px solid var(--ifg-line); }
.ifg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; color: var(--ifg-ink); font-size: 16px; font-weight: 740; cursor: pointer; list-style: none; }
.ifg-faq summary::-webkit-details-marker { display:none; }
.ifg-faq summary span { color: var(--ifg-green-dark); font-size: 24px; font-weight: 400; transition:.2s; }
.ifg-faq details[open] summary span { transform: rotate(45deg); }
.ifg-faq details p { margin: -5px 40px 22px 0 !important; color: var(--ifg-muted); font-size: 14px; line-height: 1.65; }

.ifg-cta { padding: clamp(55px,7vw,88px) 0; color:#fff; background: linear-gradient(120deg,#0b1913,#0f2d22); }
.ifg-cta__inner { display:flex; align-items:center; justify-content:space-between; gap:40px; }
.ifg-cta h2 { max-width: 760px; color:#fff !important; font-size:clamp(30px,4vw,48px); }
.ifg-cta p { margin:14px 0 0 !important; color:rgba(255,255,255,.6); }
.ifg-cta .ifg-btn { flex:0 0 auto; }

@media (max-width: 950px) {
    .ifg-hero__grid { grid-template-columns: 1fr; }
    .ifg-hero__visual { display:none; }
    .ifg-cards { grid-template-columns: repeat(2,1fr); }
    .ifg-steps { grid-template-columns: repeat(2,1fr); }
    .ifg-steps > div:nth-child(2) { border-right:0; }
    .ifg-steps > div:nth-child(3),.ifg-steps > div:nth-child(4) { border-top:1px solid rgba(255,255,255,.13); }
    .ifg-coverage,.ifg-faq-grid { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
    .ifg-shell { width:min(100% - 30px,1180px); }
    .ifg-hero { padding-top:64px; }
    .ifg-hero h1 { font-size:clamp(39px,12vw,56px); }
    .ifg-actions,.ifg-actions .ifg-btn { width:100%; }
    .ifg-trustbar { grid-template-columns:1fr; margin-top:55px; }
    .ifg-trustbar div { min-height:70px; border-right:0; border-bottom:1px solid rgba(255,255,255,.1); padding-left:0; }
    .ifg-trustbar div:last-child { border-bottom:0; }
    .ifg-two-col,.ifg-cards,.ifg-steps { grid-template-columns:1fr; }
    .ifg-card { min-height:0; }
    .ifg-steps > div,.ifg-steps > div:not(:first-child) { min-height:0; padding:25px 0; border-right:0; border-top:1px solid rgba(255,255,255,.13); }
    .ifg-steps b { margin-bottom:16px; }
    .ifg-cta__inner { align-items:flex-start; flex-direction:column; }
    .ifg-cta .ifg-btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ifg-shield::before { animation:none; }
    .ifg-card,.ifg-btn { transition:none; }
}

/* Integración con la portada */
.ifg-menu-garantia > .menu-link { position: relative; }
.ifg-menu-garantia > .menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 0;
    height: 2px;
    background: var(--ifg-green, #19bd83);
    transform: translateX(-50%);
    transition: width .2s ease;
}
.ifg-menu-garantia > .menu-link:hover::after,
.ifg-menu-garantia.current-menu-item > .menu-link::after { width: 24px; }
.ifg-home-button { margin-left: 0 !important; }

/* Cabecera Astra: mantiene todo el menú en una línea al 100% de zoom. */
@media (min-width: 922px) {
    .ast-primary-header-bar .main-header-menu {
        flex-wrap: nowrap !important;
    }
    .ast-primary-header-bar .main-header-menu > .menu-item {
        flex: 0 0 auto !important;
    }
    .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
        padding-right: clamp(8px, .8vw, 15px) !important;
        padding-left: clamp(8px, .8vw, 15px) !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 922px) and (max-width: 1350px) {
    .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
        padding-right: 8px !important;
        padding-left: 8px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 921px) {
    /* El acceso permanece en el menú móvil. */
    .ast-header-break-point .ifg-menu-garantia,
    .ast-mobile-header-wrap .ifg-menu-garantia {
        display: list-item !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .ast-mobile-header-wrap .ifg-menu-garantia > .menu-link {
        display: flex !important;
        width: 100% !important;
    }

    /* En la portada móvil se omite el tercer botón para reducir saturación. */
    .ifg-home-button {
        display: none !important;
    }
}
