/* ============================================================
   Hero banner premium + header refinado — Dr. Segura Buenrostro
   ============================================================ */

/* --- Banner: overlay y fondo --- */
.main-slider-three--premium .swiper-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    z-index: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
    pointer-events: none;
}

.main-slider-three--premium .main-slider-three__bg {
    opacity: 0.62;
    transition: transform 8000ms ease, opacity 1500ms ease-in;
}

.main-slider-three--premium .main-slider-three__bg::after {
    background:
        radial-gradient(ellipse 95% 75% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(var(--color1-rgb), 0.16) 72%),
        linear-gradient(180deg, rgba(var(--color1-rgb), 0) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(var(--color1-rgb), 0.21) 100%);
}

.main-slider-three--premium .swiper-slide-active .main-slider-three__bg {
    transform: scale(1.08);
}

.main-slider-three--premium .container {
    padding-top: clamp(170px, 22vh, 240px);
    padding-bottom: clamp(120px, 18vh, 200px);
}

/* --- Formas decorativas --- */
.main-slider-three__shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.main-slider-three__shape--blob-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--color1-rgb), 0.28), transparent 65%);
    filter: blur(80px);
}

.main-slider-three__shape--blob-2 {
    width: 520px;
    height: 520px;
    bottom: -200px;
    right: -180px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(16, 37, 66, 0.35), transparent 70%);
    filter: blur(90px);
}

/* Burbujas y destellos */
.main-slider-three__bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.42;
}

.main-slider-three__bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.06) 38%,
        rgba(255, 255, 255, 0.02) 68%,
        transparent 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: segura-bubble-float 12s ease-in-out infinite;
}

.main-slider-three__bubble::after {
    content: "";
    position: absolute;
    top: 14%;
    left: 22%;
    width: 28%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(3px);
    transform: rotate(-28deg);
}

.main-slider-three__bubble--1 {
    width: clamp(70px, 9vw, 110px);
    height: clamp(70px, 9vw, 110px);
    top: 18%;
    right: 8%;
    animation-delay: 0s;
    animation-duration: 11s;
}

.main-slider-three__bubble--2 {
    width: clamp(44px, 5.5vw, 68px);
    height: clamp(44px, 5.5vw, 68px);
    top: 42%;
    right: 18%;
    animation-delay: -1.5s;
    animation-duration: 13s;
}

.main-slider-three__bubble--3 {
    width: clamp(30px, 4vw, 46px);
    height: clamp(30px, 4vw, 46px);
    top: 28%;
    right: 28%;
    animation-delay: -3s;
    animation-duration: 10s;
}

.main-slider-three__bubble--4 {
    width: clamp(54px, 7vw, 86px);
    height: clamp(54px, 7vw, 86px);
    top: 55%;
    right: 6%;
    animation-delay: -2s;
    animation-duration: 14s;
}

.main-slider-three__bubble--5 {
    width: clamp(22px, 2.8vw, 34px);
    height: clamp(22px, 2.8vw, 34px);
    top: 12%;
    right: 22%;
    animation-delay: -4s;
    animation-duration: 9s;
}

.main-slider-three__bubble--6 {
    width: clamp(36px, 4.5vw, 56px);
    height: clamp(36px, 4.5vw, 56px);
    top: 68%;
    right: 22%;
    animation-delay: -0.8s;
    animation-duration: 12s;
}

.main-slider-three__sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.45);
    animation: segura-sparkle-twinkle 5s ease-in-out infinite;
}

.main-slider-three__sparkle svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.main-slider-three__sparkle--1 { width: 12px; top: 14%; right: 20%; animation-delay: 0s; }
.main-slider-three__sparkle--2 { width: 8px;  top: 32%; right: 12%; animation-delay: -0.6s; }
.main-slider-three__sparkle--3 { width: 14px; top: 48%; right: 30%; animation-delay: -1.2s; }
.main-slider-three__sparkle--4 { width: 7px;  top: 22%; right: 34%; animation-delay: -1.8s; }
.main-slider-three__sparkle--5 { width: 10px; top: 60%; right: 14%; animation-delay: -0.3s; }
.main-slider-three__sparkle--6 { width: 9px;  top: 38%; right: 6%;  animation-delay: -2.1s; }
.main-slider-three__sparkle--7 { width: 7px;  top: 72%; right: 28%; animation-delay: -1.5s; }
.main-slider-three__sparkle--8 { width: 11px; top: 8%;  right: 10%; animation-delay: -2.4s; }

@keyframes segura-bubble-float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50%      { transform: translateY(-8px) translateX(3px) scale(1.01); }
}

@keyframes segura-sparkle-twinkle {
    0%, 100% { transform: scale(1) rotate(0deg);   opacity: 0.5; }
    50%      { transform: scale(0.85) rotate(20deg); opacity: 0.2; }
}

/* --- Subtítulo pill --- */
.main-slider-three--premium .main-slider__sub-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(680px, 92vw);
    padding: 9px 20px 9px 14px;
    background: rgba(var(--color1-rgb), 0.45);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.35;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.20);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: perspective(400px) rotateX(0deg) translateY(-80px);
    transition: all 1200ms ease;
}

.main-slider-three--premium .swiper-slide-active .main-slider__sub-title {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg) translateY(0px);
    transition-delay: 300ms;
}

.main-slider-three--premium .main-slider__sub-title-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E5280 0%, #1B3A5F 100%);
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(var(--color1-rgb), 0.55);
}

/* --- Título --- */
.main-slider-three--premium .main-slider-three__title {
    display: inline-block;
    font-size: clamp(34px, 5.4vw, 78px);
    line-height: 1.08em;
    letter-spacing: -0.5px;
    max-width: 22ch;
    margin: 22px auto 28px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 6px 24px rgba(0, 0, 0, 0.85),
        0 0 48px rgba(var(--color1-rgb), 0.55);
}

.main-slider-three__title-underline {
    position: relative;
    display: block;
    width: 96px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 100px;
    background: linear-gradient(90deg, #2E5280 0%, #ffffff 50%, #2E5280 100%);
    box-shadow: 0 0 24px rgba(var(--color1-rgb), 0.55);
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 800ms ease 800ms, transform 800ms ease 800ms;
}

.main-slider-three--premium .swiper-slide-active .main-slider-three__title-underline {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Texto --- */
.main-slider-three--premium .main-slider-three__text {
    max-width: 720px;
    margin: 0 auto 22px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.75;
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.75);
}

/* --- Trust badges --- */
.main-slider-three__trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    max-width: 760px;
    margin: 0 auto 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 900ms ease 1100ms, transform 900ms ease 1100ms;
}

.main-slider-three--premium .swiper-slide-active .main-slider-three__trust-badges {
    opacity: 1;
    transform: translateY(0);
}

.main-slider-three__trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 300ms ease, background 300ms ease;
}

.main-slider-three__trust-badges span i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E5280 0%, #1B3A5F 100%);
    font-size: 11px;
    flex-shrink: 0;
}

.main-slider-three__trust-badges span:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

/* --- CTAs --- */
.main-slider-three--premium .main-slider-three__btn-and-video-box {
    justify-content: center;
    gap: 18px;
}

.main-slider-three__cta.thm-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 30px 14px 14px !important;
    border-radius: 100px !important;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    overflow: hidden;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 350ms ease;
}

.main-slider-three__cta:hover {
    transform: translateY(-3px);
}

.main-slider-three__cta .main-slider-three__cta-icon {
    display: grid !important;
    place-items: center !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 17px !important;
    line-height: 1 !important;
    flex-shrink: 0;
    padding: 0 !important;
    top: 0 !important;
}

.main-slider-three__cta .main-slider-three__cta-label {
    position: relative;
    z-index: 1;
    padding: 0 !important;
    top: 0 !important;
    line-height: 1;
}

.main-slider-three__cta--wa.thm-btn {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.main-slider-three__cta--wa.thm-btn::before,
.main-slider-three__cta--wa.thm-btn::after {
    background-color: rgba(255, 255, 255, 0.18) !important;
}

.main-slider-three__cta--wa .main-slider-three__cta-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.main-slider-three__cta--wa:hover {
    box-shadow: 0 20px 42px rgba(37, 211, 102, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.main-slider-three__cta--tel.thm-btn {
    background: rgba(var(--color1-rgb), 0.55) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.main-slider-three__cta--tel.thm-btn::before,
.main-slider-three__cta--tel.thm-btn::after {
    background-color: rgba(46, 82, 128, 0.92) !important;
}

.main-slider-three__cta--tel .main-slider-three__cta-icon {
    background: linear-gradient(135deg, #2E5280 0%, #1B3A5F 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(var(--color1-rgb), 0.45);
}

.main-slider-three__cta--tel:hover {
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: #ffffff !important;
}

/* --- Scroll indicator --- */
.main-slider-three__scroll {
    position: absolute;
    bottom: clamp(20px, 4vh, 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 300ms ease, transform 300ms ease;
}

.main-slider-three__scroll:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(-4px);
}

.main-slider-three__scroll-mouse {
    position: relative;
    display: block;
    width: 24px;
    height: 38px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.main-slider-three__scroll-wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    border-radius: 4px;
    background: #ffffff;
    animation: segura-banner-scroll 1.8s ease-in-out infinite;
}

.main-slider-three__scroll-text {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

@keyframes segura-banner-scroll {
    0%   { transform: translate(-50%, 0);    opacity: 1; }
    60%  { transform: translate(-50%, 14px); opacity: 0; }
    100% { transform: translate(-50%, 0);    opacity: 0; }
}

/* --- Header refinado --- */
.main-menu-three__wrapper {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(var(--color1-rgb), 0.08) !important;
    box-shadow: 0 4px 24px rgba(var(--color1-rgb), 0.08) !important;
}

.main-menu-three__top-inner {
    padding: 8px 0;
}

.header-top__location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.header-top__pill {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: background 250ms ease, color 250ms ease;
}

.header-top__pill:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.main-menu-three__call {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: rgba(var(--color1-rgb), 0.06);
    border: 1px solid rgba(var(--color1-rgb), 0.12);
    border-radius: 100px;
    transition: background 250ms ease, box-shadow 250ms ease;
}

.main-menu-three__call:hover {
    background: rgba(var(--color1-rgb), 0.1);
    box-shadow: 0 6px 20px rgba(var(--color1-rgb), 0.12);
}

.main-menu-three__call-icon {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #1B3A5F 0%, #2E5280 100%) !important;
}

.main-menu-three__call-icon i {
    color: #ffffff !important;
    font-size: 18px !important;
}

.main-menu-three__call-number p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color2) !important;
    margin-bottom: 2px !important;
}

.main-menu-three__call-number h5 {
    margin: 0;
    line-height: 1.2;
}

.main-menu-three__call-number h5 a {
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .main-slider-three__bubbles {
        opacity: 0.35;
    }
}

@media (max-width: 991px) {
    .main-slider-three__trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .main-slider-three__trust-badges span {
        justify-content: center;
    }

    .main-slider-three__bubbles {
        opacity: 0.28;
    }

    .main-slider-three__bubble--5,
    .main-slider-three__bubble--6,
    .main-slider-three__sparkle--5,
    .main-slider-three__sparkle--6,
    .main-slider-three__sparkle--7,
    .main-slider-three__sparkle--8 {
        display: none;
    }
}

@media (max-width: 575px) {
    .main-slider-three--premium .main-slider-three__btn-and-video-box {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .main-slider-three__cta.thm-btn {
        width: 100%;
        justify-content: center;
    }
}
