
/* =========================================================
   FOOTER GENERAL
   ========================================================= */

.site-footer {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    font-family: var(--careon-font);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbff 18%,
            #edf7fc 28%,
            #0a4b90 44%,
            #073173 70%,
            #041d42 100%
        );
    isolation: isolate;
    z-index: 1;
}

.site-footer__bg-shape {
    display: none !important;
}

/* =========================================================
   CTA SUPERIOR CON IMAGEN DE FONDO ORIGINAL
   ========================================================= */

.site-footer__newsletter {
    position: relative;
    width: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image: url('../../images/resources/contacto-cardiologos-intervencionistas-en-cdmx.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

/* Overlay más ligero para que la imagen se aprecie mucho más */
.site-footer__newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(var(--careon-white-rgb), .52) 0%,
            rgba(var(--careon-white-rgb), .44) 38%,
            rgba(var(--careon-primary-rgb), .24) 66%,
            rgba(var(--careon-white-rgb), .08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(var(--careon-white-rgb), .10) 0%,
            rgba(var(--careon-white-rgb), .04) 62%,
            rgba(var(--careon-white-rgb), .20) 100%
        );
    z-index: 0;
}

/* transición suave hacia el cuerpo */
.site-footer__newsletter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 82px;
    background:
        linear-gradient(
            180deg,
            rgba(var(--careon-white-rgb), 0) 0%,
            rgba(var(--careon-white-rgb), .95) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.site-footer__newsletter .container {
    position: relative;
    z-index: 3;
}

/* CTA centrado con botones debajo */
.site-footer__newsletter-inner {
    position: relative;
    display: block;
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 42px 38px;
    text-align: center;
    overflow: hidden;

    border: 1px solid rgba(var(--careon-base-rgb), .13);
    border-radius: 28px;
    background:
        linear-gradient(
            180deg,
            rgba(var(--careon-white-rgb), .90) 0%,
            rgba(var(--careon-extra-rgb), .84) 100%
        ) !important;

    box-shadow:
        0 28px 68px rgba(var(--careon-black-rgb), .13),
        0 8px 20px rgba(var(--careon-base-rgb), .05),
        inset 0 1px 0 rgba(var(--careon-white-rgb), .96);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-footer__newsletter-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(
        90deg,
        var(--color1) 0%,
        var(--color2) 58%,
        #0aa1e0 100%
    );
}

.site-footer__newsletter-inner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(var(--careon-primary-rgb), .82),
            rgba(var(--careon-primary-rgb), .18) 56%,
            transparent 72%
        );
    pointer-events: none;
}

/* Título más visible */
.site-footer__newsletter-inner-title-box {
    position: relative;
    z-index: 2;
}

.site-footer__newsletter-title {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    color: var(--color1);
    font-size: clamp(34px, 3.3vw, 50px);
    font-weight: 900;
    line-height: 1.09;
    letter-spacing: -.010em;
    word-spacing: .03em;
    text-align: center !important;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(var(--careon-white-rgb), .75);
    z-index: 2;
}

.site-footer__newsletter-title strong {
    color: var(--color2);
    font-weight: 900;
    display: inline-block;
    margin-top: 7px;
}

/* BOTONES SIEMPRE DEBAJO DEL TEXTO */
.site-footer__newsletter-inner-title-box > div {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    z-index: 3;
}

.faq-two__btn-box {
    display: flex;
    width: auto;
    margin: 0;
}

/* botones */
.site-footer__newsletter .thm-btn,
.site-footer__newsletter .thm-btn-1 {
    position: relative;
    isolation: isolate;
    min-width: 200px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 30px;

    color: var(--white) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;

    box-shadow:
        0 15px 30px rgba(var(--careon-black-rgb), .15),
        inset 0 1px 0 rgba(var(--careon-white-rgb), .16);

    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        filter 280ms ease;
}

.site-footer__newsletter .thm-btn::before,
.site-footer__newsletter .thm-btn-1::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -60%;
    width: 42%;
    height: 190%;
    transform: skewX(-24deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--careon-white-rgb), .42),
        transparent
    );
    z-index: -1;
    transition: left 560ms ease;
}

.site-footer__newsletter .thm-btn::after,
.site-footer__newsletter .thm-btn-1::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            rgba(var(--careon-white-rgb), .08),
            transparent 42%,
            rgba(var(--careon-white-rgb), .10)
        );
    z-index: -2;
}

.site-footer__newsletter .thm-btn:hover::before,
.site-footer__newsletter .thm-btn-1:hover::before {
    left: 120%;
}

.site-footer__newsletter .thm-btn:hover,
.site-footer__newsletter .thm-btn-1:hover {
    color: var(--white) !important;
    transform: translateY(-4px) scale(1.015);
    filter: saturate(1.05);
}

.site-footer__newsletter .thm-btn {
    background:
        linear-gradient(
            135deg,
            #087c2d 0%,
            var(--color4) 55%,
            #19b85a 100%
        );
    box-shadow:
        0 15px 30px rgba(4,95,35,.20),
        inset 0 1px 0 rgba(var(--careon-white-rgb), .16);
}

.site-footer__newsletter .thm-btn-1 {
    background:
        linear-gradient(
            135deg,
            var(--color1) 0%,
            var(--color2) 62%,
            #0093ce 100%
        );
    box-shadow:
        0 15px 30px rgba(var(--careon-black-rgb), .22),
        inset 0 1px 0 rgba(var(--careon-white-rgb), .16);
}

.site-footer__newsletter .thm-btn i,
.site-footer__newsletter .thm-btn-1 i {
    font-size: 15px;
    transition: transform 250ms ease;
}

.site-footer__newsletter .thm-btn:hover i,
.site-footer__newsletter .thm-btn-1:hover i {
    transform: translateX(3px) scale(1.05);
}

/* =========================================================
   BLOQUE INTERMEDIO
   BLANCO ARRIBA + AZUL OSCURO ABAJO
   ========================================================= */

.site-footer__top {
    position: relative;
    display: block;
    padding-top: 20px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbff 16%,
            #e8f4fb 31%,
            #0c5598 52%,
            #073173 78%,
            #041f46 100%
        );
    z-index: 1;
    overflow: hidden;
}

.site-footer__top::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(var(--careon-white-rgb), .92) 0%,
            transparent 25%
        ),
        radial-gradient(
            circle at 82% 18%,
            rgba(var(--careon-primary-rgb), .72) 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 80%,
            rgba(var(--careon-base-rgb), .16) 0%,
            transparent 34%
        );
    z-index: 0;
}

.site-footer__top .container {
    position: relative;
    z-index: 2;
}

.site-footer__top-inner {
    position: relative;
    display: block;
    padding: 34px 0 70px;
    z-index: 2;
}

.site-footer__top-inner .row {
    row-gap: 24px;
}

/* tarjetas claras */
.footer-widget-two__newsletter-box,
.footer-widget__contact-info,
.footer-widget__page-link {
    position: relative;
    height: 100%;
    padding: 28px 25px;
    overflow: hidden;

    border: 1px solid rgba(var(--careon-base-rgb), .11);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(var(--careon-white-rgb), .97) 0%,
            rgba(var(--careon-extra-rgb), .95) 100%
        ) !important;

    box-shadow:
        0 18px 44px rgba(var(--careon-black-rgb), .09),
        inset 0 1px 0 rgba(var(--careon-white-rgb), 1);

    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.footer-widget-two__newsletter-box:hover,
.footer-widget__contact-info:hover,
.footer-widget__page-link:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--careon-base-rgb), .20);
    box-shadow:
        0 24px 52px rgba(var(--careon-black-rgb), .12),
        inset 0 1px 0 rgba(var(--careon-white-rgb), 1);
}

.footer-widget-two__newsletter-box::before,
.footer-widget__contact-info::before,
.footer-widget__page-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
}

.footer-widget-two__newsletter-box .img-533 {
    display: block;
    max-width: 510px;
    width: 100%;
    height: auto;
    padding: 8px;
    border: 1px solid rgba(var(--careon-base-rgb), .10);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 22px rgba(var(--careon-black-rgb), .08);
}

.footer-widget-two__newsletter-text {
    margin: 0;
    color: var(--black) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
}

.footer-widget__title {
    position: relative;
    display: inline-block;
    margin: 0 0 24px;
    color: var(--color1) !important;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -.01em;
}

.footer-widget__title::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin-top: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
}

.footer-widget__contact-list {
    position: relative;
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.footer-widget__contact-list li,
.footer-widget__contact-list li + li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 13px;

    border: 1px solid rgba(var(--careon-base-rgb), .09);
    border-radius: 14px;
    background: rgba(var(--careon-primary-rgb), .62);

    transition:
        transform 250ms ease,
        background 250ms ease,
        border-color 250ms ease;
}

.footer-widget__contact-list li:hover {
    transform: translateX(4px);
    background: rgba(var(--careon-primary-rgb), .88);
    border-color: rgba(var(--careon-base-rgb), .16);
}

.footer-widget__contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    box-shadow: 0 8px 16px rgba(var(--careon-base-rgb), .14);
}

.footer-widget__contact-icon i,
.footer-widget__contact-icon span {
    color: var(--white) !important;
    font-size: 14px;
}

.footer-widget__contact-content {
    min-width: 0;
    flex: 1;
}

.footer-widget__contact-content span {
    display: block;
    margin-bottom: 3px;
    color: var(--color2) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.22;
}

.footer-widget__contact-text {
    margin: 0 !important;
    color: var(--color1) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45;
    text-transform: none;
}

.footer-widget__contact-text a {
    color: var(--color1) !important;
    text-decoration: none;
    word-break: break-word;
    transition: color 250ms ease;
}

.footer-widget__contact-text a:hover {
    color: var(--color2) !important;
}

.footer-widget__page-link {
    margin-left: 0 !important;
}

.footer-widget__page-link .footer-widget__title {
    margin-top: 22px;
}

/* =========================================================
   FRANJA FINAL OSCURA
   ========================================================= */

.site-footer__bottom {
    position: relative;
    display: block;
    background:
        linear-gradient(
            180deg,
            #073173 0%,
            #052653 55%,
            #031933 100%
        );
    z-index: 2;
}

.site-footer__bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--careon-white-rgb), .05) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(var(--careon-base-rgb), .08) 0%, transparent 30%);
    z-index: 0;
}

.site-footer__bottom .container,
.site-footer__bottom .row,
.site-footer__bottom .col-xl-12 {
    position: relative;
    z-index: 2;
}

.site-footer__bottom-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border-top: 1px solid rgba(var(--careon-white-rgb), .10);
    background: rgba(var(--careon-white-rgb), .025);
    z-index: 2;
}

.site-footer__copyright-text {
    margin: 0;
    color: rgba(var(--careon-white-rgb), .84) !important;
    font-size: 16px;
}

.site-footer__copyright-text a {
    color: var(--white) !important;
}

.site-footer__bottom-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin: 0;
}

.site-footer__bottom-menu li {
    position: relative;
    display: block;
}

.site-footer__bottom-menu li a {
    position: relative;
    color: rgba(var(--careon-white-rgb), .86) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 250ms ease;
}

.site-footer__bottom-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -5px;
    height: 1px;
    background: #8bdcff;
    transition: right 250ms ease;
}

.site-footer__bottom-menu li a:hover {
    color: #8bdcff !important;
}

.site-footer__bottom-menu li a:hover::after {
    right: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media only screen and (max-width: 991px) {
    .site-footer__newsletter {
        min-height: 360px;
        background-position: center 40%;
    }

    .site-footer__newsletter-inner {
        width: min(720px, calc(100% - 30px));
        padding: 38px 30px 36px;
    }

    .site-footer__top-inner {
        padding: 30px 0 56px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__bottom-menu {
        justify-content: center;
    }
}

@media only screen and (max-width: 767px) {
    .site-footer__newsletter {
        min-height: 400px;
        background-position: center;
    }

    .site-footer__newsletter::before {
        background:
            linear-gradient(
                180deg,
                rgba(var(--careon-white-rgb), .48) 0%,
                rgba(var(--careon-white-rgb), .40) 56%,
                rgba(var(--careon-primary-rgb), .55) 100%
            );
    }

    .site-footer__newsletter-inner {
        width: calc(100% - 24px);
        margin: 24px 12px;
        padding: 30px 20px;
        border-radius: 22px;
    }

    .site-footer__newsletter-title {
        font-size: 30px;
        line-height: 1.15;
    }

    .site-footer__newsletter-inner-title-box > div {
        flex-direction: column;
        gap: 11px;
    }

    .faq-two__btn-box {
        width: 100%;
    }

    .site-footer__newsletter .thm-btn,
    .site-footer__newsletter .thm-btn-1 {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 16px;
    }

    .site-footer__top {
        padding-top: 18px;
    }

    .site-footer__top-inner {
        padding: 24px 0 44px;
    }

    .footer-widget-two__newsletter-box,
    .footer-widget__contact-info,
    .footer-widget__page-link {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .site-footer__bottom-inner {
        padding: 22px 18px;
    }

    .site-footer__bottom-menu {
        gap: 13px 18px;
    }

    .site-footer__copyright-text,
    .site-footer__bottom-menu li a,
    .footer-widget-two__newsletter-text,
    .footer-widget__contact-content span,
    .footer-widget__contact-text {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 480px) {
    .site-footer__newsletter {
        min-height: 390px;
    }

    .site-footer__newsletter-title {
        font-size: 27px;
    }

    .site-footer__newsletter-inner {
        padding: 27px 17px;
    }

    .footer-widget-two__newsletter-box,
    .footer-widget__contact-info,
    .footer-widget__page-link {
        padding: 20px 16px;
    }

    .site-footer__bottom-menu {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__newsletter .thm-btn,
    .site-footer__newsletter .thm-btn-1,
    .site-footer__newsletter .thm-btn::before,
    .site-footer__newsletter .thm-btn-1::before,
    .footer-widget-two__newsletter-box,
    .footer-widget__contact-info,
    .footer-widget__page-link,
    .footer-widget__contact-list li,
    .site-footer__bottom-menu li a::after {
        transition: none !important;
    }
}