/* Lifesoftw - Home: carrusel y animaciones */

/* ---- Carrusel hero ---- */
.home-carousel-section {
    position: relative;
    margin-top: -1px;
    z-index: 5;
    box-shadow: 0 12px 48px rgba(7, 173, 173, 0.28);
    border-bottom: 4px solid var(--primary);
}

.home-hero-carousel {
    max-height: 92vh;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.home-hero-carousel::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(30, 208, 213, 0.55);
    border-radius: 16px;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(30, 208, 213, 0.12), 0 0 30px rgba(30, 208, 213, 0.15);
}

.home-hero-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 208, 213, 0.08) 0%, transparent 35%, transparent 65%, rgba(7, 173, 173, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.home-hero-carousel .carousel-item {
    min-height: 560px;
    max-height: 92vh;
    position: relative;
}

.home-hero-carousel .carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: kenBurns 12s ease-in-out infinite alternate;
}

.home-hero-carousel .carousel-item.active .carousel-bg {
    animation-play-state: running;
}

.home-hero-carousel .carousel-item:not(.active) .carousel-bg {
    animation: none;
    transform: scale(1);
}

@keyframes kenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.home-hero-carousel .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 28, 33, 0.72) 0%, rgba(15, 28, 33, 0.38) 42%, rgba(7, 173, 173, 0.42) 100%);
}

.carousel-caption-wrap {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 6rem 0 5rem;
}

.carousel-caption-content {
    position: relative;
    max-width: 680px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(30, 208, 213, 0.45);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    overflow: hidden;
    cursor: default;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
    animation: carouselCardFloat 5.5s ease-in-out infinite;
}

.carousel-caption-content > *:not([aria-hidden="true"]) {
    position: relative;
    z-index: 2;
}

.carousel-card-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 232, 255, 0.28), transparent 55%);
    pointer-events: none;
    z-index: 0;
    animation: carouselCardGlow 4s ease-in-out infinite alternate;
}

.carousel-card-pcb-h,
.carousel-card-pcb-v {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.carousel-card-pcb-h {
    inset: 0;
    border-radius: 20px;
}

.carousel-card-pcb-h::before,
.carousel-card-pcb-h::after {
    content: '';
    position: absolute;
    height: 2px;
    left: 10%;
    right: 10%;
    background: linear-gradient(90deg, transparent, #00e8ff, #ff9a3c, #00e8ff, transparent);
    background-size: 220% 100%;
    animation: pcbFlow 2.4s linear infinite;
    opacity: 0.75;
}

.carousel-card-pcb-h::before { top: 0; }
.carousel-card-pcb-h::after {
    bottom: 0;
    animation-delay: 0.7s;
}

.carousel-card-pcb-v {
    inset: 0;
    border-radius: 20px;
}

.carousel-card-pcb-v::before,
.carousel-card-pcb-v::after {
    content: '';
    position: absolute;
    width: 2px;
    top: 16%;
    bottom: 16%;
    background: linear-gradient(180deg, transparent, #00e8ff, transparent);
    background-size: 100% 220%;
    animation: pcbFlowVert 2.6s linear infinite;
    opacity: 0.65;
}

.carousel-card-pcb-v::before { left: 0; }
.carousel-card-pcb-v::after {
    right: 0;
    animation-delay: 0.9s;
}

.carousel-card-node {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e8ff;
    box-shadow: 0 0 10px #00e8ff, 0 0 18px rgba(0, 232, 255, 0.45);
    z-index: 3;
    pointer-events: none;
    animation: pcbNodePulse 1.8s ease-in-out infinite;
}

.carousel-card-node-tl { top: 10px; left: 12px; }
.carousel-card-node-tr { top: 10px; right: 12px; animation-delay: 0.45s; }
.carousel-card-node-bl { bottom: 10px; left: 12px; animation-delay: 0.9s; }
.carousel-card-node-br { bottom: 10px; right: 12px; animation-delay: 1.35s; }

.carousel-caption-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 1;
    animation: carouselCardShine 6s ease-in-out infinite;
}

.carousel-caption-content:hover {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.025);
    background: rgba(7, 173, 173, 0.38);
    border-color: rgba(0, 232, 255, 0.95);
    box-shadow:
        0 32px 72px rgba(0, 0, 0, 0.38),
        0 0 48px rgba(30, 208, 213, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.carousel-caption-content:hover .carousel-card-glow {
    background: radial-gradient(circle at 40% 30%, rgba(0, 232, 255, 0.55), transparent 60%);
    animation: none;
    opacity: 1;
}

.carousel-caption-content:hover .carousel-card-pcb-h::before,
.carousel-caption-content:hover .carousel-card-pcb-h::after,
.carousel-caption-content:hover .carousel-card-pcb-v::before,
.carousel-caption-content:hover .carousel-card-pcb-v::after {
    opacity: 1;
    animation-duration: 1.2s;
}

.carousel-caption-content:hover .carousel-card-node {
    animation-duration: 0.9s;
    box-shadow: 0 0 14px #00e8ff, 0 0 24px rgba(255, 154, 60, 0.55);
}

.carousel-caption-content:hover .carousel-title {
    color: #fff;
    border-left-color: #ff9a3c;
    text-shadow: 0 0 24px rgba(0, 232, 255, 0.45);
}

.carousel-caption-content:hover .carousel-subtitle {
    color: rgba(255, 255, 255, 1);
}

.carousel-caption-content:hover .btn-outline-light {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.carousel-caption-content:hover .btn-primary-custom,
.carousel-caption-content:hover .btn-glow {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 32px rgba(30, 208, 213, 0.55);
}

@keyframes carouselCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes carouselCardGlow {
    0% { opacity: 0.55; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

@keyframes carouselCardShine {
    0%, 72% { left: -120%; opacity: 0; }
    78% { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

.carousel-title {
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    transition: color 0.35s, border-color 0.35s, text-shadow 0.35s;
}

.carousel-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: .92;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    transition: color 0.35s ease, opacity 0.35s ease;
}

.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.carousel-actions .btn {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.home-hero-carousel .carousel-indicators {
    z-index: 5;
    margin-bottom: 1.5rem;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    opacity: 1;
    transition: all .3s;
}

.home-hero-carousel .carousel-indicators .active {
    background: var(--primary);
    border-color: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(30, 208, 213, 0.8);
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    width: 58px;
    height: 58px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    opacity: 1;
    margin: 0 1.25rem;
    z-index: 5;
    border: 2px solid var(--primary);
    transition: background .25s, transform .25s, box-shadow .25s;
}

.home-hero-carousel .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next-icon {
    filter: invert(48%) sepia(79%) saturate(500%) hue-rotate(142deg) brightness(95%);
}

.home-hero-carousel .carousel-control-prev:hover,
.home-hero-carousel .carousel-control-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 8px 24px rgba(30, 208, 213, 0.45);
}

.home-hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.hero-wave {
    position: relative;
    margin-top: -2px;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

.hero-wave svg path {
    fill: transparent;
}

/* Stats bar debajo del carrusel */
.home-stats-bar {
    padding: 0 0 2.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 4;
}

.stats-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border: 1px solid #eef2f3;
}

.stat-pill {
    text-align: center;
    padding: 0.5rem 1.25rem;
    min-width: 100px;
}

.stat-pill strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.stat-pill span {
    font-size: 0.8rem;
    color: #667;
    font-weight: 600;
}

/* Hero fallback con formas */
.home-fallback-hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes,
.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-shapes .shape,
.cta-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}

.hero-bg-shapes .shape-1 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: -100px; right: -80px;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 300px; height: 300px;
    background: var(--primary-dark);
    bottom: -60px; left: 10%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
    width: 200px; height: 200px;
    background: rgba(255,255,255,.15);
    top: 40%; left: 50%;
    animation: floatOrb 12s ease-in-out infinite 2s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.05); }
}

.floating-cards .showcase-item {
    animation: floatCard 6s ease-in-out infinite;
}

.floating-cards .showcase-2 { animation-delay: 1.5s; }
.floating-cards .showcase-3 { animation-delay: 3s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulse-badge {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,208,213,.4); }
    50% { box-shadow: 0 0 0 12px rgba(30,208,213,0); }
}

.btn-glow {
    position: relative;
    transition: transform .25s, box-shadow .25s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,208,213,.45);
}

.hover-lift {
    transition: transform .3s ease, box-shadow .3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(7,173,173,.12);
}

.icon-float {
    animation: iconBob 3s ease-in-out infinite;
}

.feature-box.pro:nth-child(2) .icon-float { animation-delay: .5s; }
.feature-box.pro:nth-child(3) .icon-float { animation-delay: 1s; }

@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cta-animated {
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes .shape-1 {
    width: 350px; height: 350px;
    background: rgba(255,255,255,.08);
    top: -120px; right: -60px;
    animation: floatOrb 9s ease-in-out infinite;
}

.cta-bg-shapes .shape-2 {
    width: 250px; height: 250px;
    background: rgba(0,0,0,.15);
    bottom: -80px; left: -40px;
    animation: floatOrb 11s ease-in-out infinite reverse;
}

/* ---- Scroll animations ---- */
.home-animated [data-animate] {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}

.home-animated [data-animate="fade-up"] {
    transform: translateY(36px);
}

.home-animated [data-animate="zoom-in"] {
    transform: scale(0.92);
}

.home-animated [data-animate].is-visible {
    opacity: 1;
    transform: none;
}

.home-animated [data-delay="1"] { transition-delay: .1s; }
.home-animated [data-delay="2"] { transition-delay: .2s; }
.home-animated [data-delay="3"] { transition-delay: .3s; }

.home-animated .carousel-caption-content.animate-in {
    animation: carouselCardEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards, carouselCardFloat 5.5s ease-in-out 1s infinite;
}

.home-animated .carousel-caption-content.animate-in .carousel-title {
    animation: carouselTextIn 0.75s ease 0.2s both;
}

.home-animated .carousel-caption-content.animate-in .carousel-subtitle {
    animation: carouselTextIn 0.75s ease 0.4s both;
}

.home-animated .carousel-caption-content.animate-in .carousel-actions {
    animation: carouselTextIn 0.75s ease 0.6s both;
}

@keyframes carouselCardEnter {
    0% {
        opacity: 0;
        transform: translateY(48px) scale(0.92);
        filter: blur(6px);
    }
    65% {
        opacity: 1;
        transform: translateY(-8px) scale(1.03);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes carouselTextIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

.home-hero-carousel .carousel-item.active .carousel-caption-content {
    animation: carouselCardEnter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards, carouselCardFloat 5.5s ease-in-out 1s infinite;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .home-animated [data-animate],
    .home-hero-carousel .carousel-bg,
    .floating-cards .showcase-item,
    .hero-bg-shapes .shape,
    .pulse-badge,
    .icon-float,
    .carousel-caption-content,
    .carousel-caption-content::after,
    .carousel-card-glow,
    .carousel-card-pcb-h::before,
    .carousel-card-pcb-h::after,
    .carousel-card-pcb-v::before,
    .carousel-card-pcb-v::after,
    .carousel-card-node {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .carousel-caption-content:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 768px) {
    .home-hero-carousel,
    .home-hero-carousel .carousel-item,
    .carousel-caption-wrap {
        min-height: 420px;
    }

    .carousel-caption-wrap {
        padding: 5rem 0 4rem;
    }

    .stats-bar-inner {
        gap: 0.5rem;
        padding: 1rem;
    }

    .stat-pill {
        min-width: calc(50% - 0.5rem);
        padding: 0.35rem 0.5rem;
    }
}

/* ---- Home: extras sobre effects.css ---- */
.home-page .clients-strip {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}

.home-page .clients-strip-head {
    text-align: center;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.home-page .clients-strip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(30, 208, 213, 0.18);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 0 24px rgba(30, 208, 213, 0.35);
    animation: clients-icon-pulse 3s ease-in-out infinite;
}

@keyframes clients-icon-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(30, 208, 213, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 28px rgba(30, 208, 213, 0.55); transform: scale(1.06); }
}

.home-page .clients-strip .clients-label {
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-page .clients-strip-line {
    display: block;
    width: 72px;
    height: 3px;
    margin: 0.65rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: clients-line-glow 2.5s ease-in-out infinite;
}

@keyframes clients-line-glow {
    0%, 100% { opacity: 0.55; width: 56px; }
    50% { opacity: 1; width: 88px; }
}

.home-page .clients-marquee-outer {
    position: relative;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-page .clients-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}

.home-page .clients-marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(8, 28, 36, 0.85), transparent);
}

.home-page .clients-marquee-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(8, 28, 36, 0.85), transparent);
}

.home-page .clients-marquee {
    overflow: hidden;
    padding: 0.5rem 0;
}

.home-page .clients-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
}

.home-page .clients-marquee-animated .clients-marquee-track {
    animation: clients-marquee-scroll 38s linear infinite;
}

.home-page .clients-marquee-animated:hover .clients-marquee-track {
    animation-play-state: paused;
}

@keyframes clients-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-page .clients-strip .container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.home-page .client-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(30, 208, 213, 0.45);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-page .client-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: client-dot-blink 2s ease-in-out infinite;
}

@keyframes client-dot-blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.home-page .client-badge:hover {
    transform: translateY(-3px) scale(1.03);
    background: rgba(30, 208, 213, 0.22);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 28px rgba(30, 208, 213, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .home-page .clients-marquee-animated .clients-marquee-track,
    .home-page .clients-strip-icon,
    .home-page .clients-strip-line,
    .home-page .client-badge-dot {
        animation: none !important;
    }
}

.home-page .home-stats-bar {
    background: transparent;
    position: relative;
    z-index: 3;
}

.home-page .home-stats-bar .stats-bar-inner {
    background: rgba(4, 14, 20, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(30, 208, 213, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(30, 208, 213, 0.15);
    animation: statsBarIn 0.7s ease both;
}

@keyframes statsBarIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.home-page .stats-bar-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 232, 255, 0.5), transparent, rgba(255, 154, 60, 0.35), transparent);
    background-size: 300% 300%;
    animation: logoBorderFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.home-page .stats-bar-inner {
    position: relative;
}

.home-page .home-stats-bar .stat-pill {
    position: relative;
    padding: 0.65rem 1.5rem;
    min-width: 120px;
}

.home-page .home-stats-bar .stat-pill:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(30, 208, 213, 0.25);
}

.home-page .home-stats-bar .stat-pill strong,
.home-page .home-stats-bar .stat-num {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    user-select: none;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-page .home-stats-bar .stat-pill span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Panel legible para títulos de sección */
.home-page .section-head-glass {
    background: rgba(4, 14, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(30, 208, 213, 0.35);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-page .section-head-glass .section-label {
    color: var(--primary) !important;
    text-shadow: 0 0 20px rgba(30, 208, 213, 0.6);
    font-size: 0.82rem;
}

.home-page .section-head-glass h2 {
    color: #fff !important;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
    margin-bottom: 0.75rem;
}

.home-page .section-head-glass .text-muted {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.05rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Tarjetas features — más diseño tech */
.home-page .feature-box.pro {
    border: 1px solid rgba(30, 208, 213, 0.22);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.home-page .feature-box.pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e8ff, #ff9a3c, #00e8ff, transparent);
    background-size: 220% 100%;
    animation: pcbFlow 4s linear infinite;
    opacity: 0.85;
}

.home-page .feature-box.pro:hover::before {
    animation-duration: 2s;
    opacity: 1;
}

.home-page .feature-box.pro .feature-icon {
    box-shadow: 0 8px 24px rgba(30, 208, 213, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-page .feature-box.pro:hover .feature-icon {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 208, 213, 0.45);
}

/* Barra de progreso del carrusel */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 6;
    overflow: hidden;
}

.carousel-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-dark), #00e8ff, var(--primary));
    box-shadow: 0 0 14px rgba(0, 232, 255, 0.75);
}

.home-hero-carousel .carousel-item.active .carousel-bg {
    animation: kenBurns 12s ease-in-out infinite alternate, carouselReveal 1.2s ease;
}

@keyframes carouselReveal {
    from { filter: brightness(0.85) saturate(0.9); }
    to { filter: brightness(1) saturate(1.05); }
}

.home-carousel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(3, 8, 12, 0.85));
    pointer-events: none;
    z-index: 3;
}
