/* Carousel Moderno e Minimalista */

.modern-carousel {
    position: relative;
    height: 430px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    isolation: isolate;
}

.carousel-inner {
    height: 100%;
    position: relative;
}

.carousel-item {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 1;
    overflow: hidden;
    transform: scale(1.05);
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.85) contrast(1.1);
    transition: transform 8s ease-out;
}

.carousel-item.active img {
    transform: scale(1.1);
}



/* ===== GRADIENTES DE FUNDO (FALLBACK) ===== */
.carousel-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.medical-bg {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 50%,
        #667eea 100%);
}

.technology-bg {
    background: linear-gradient(135deg, 
        #f093fb 0%, 
        #f5576c 50%,
        #f093fb 100%);
}

.humanized-bg {
    background: linear-gradient(135deg, 
        #4facfe 0%, 
        #00f2fe 50%,
        #4facfe 100%);
}

.network-bg {
    background: linear-gradient(135deg, 
        #43e97b 0%, 
        #38f9d7 50%,
        #43e97b 100%);
}

/* Overlay moderno com gradiente escuro  */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.6;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 3;
    width: 90%;
    max-width: 700px;
    padding: 40px;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.carousel-btn {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.carousel-btn:hover::before {
    left: 100%;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.05);
    text-decoration: none;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.carousel-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Indicadores horizontais padrão (não vertical) */
.carousel-indicators:not(.vertical .carousel-indicators) {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Indicadores verticais para carrossel com classe .vertical */
.vertical .carousel-indicators {
    bottom: auto;
    top: 50%;
    left: auto;
    right: 30px;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vertical .carousel-indicators li {
    margin: 0;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.carousel-indicators li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-indicators li:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicators li.active {
    background: #ffffff;
    width: 30px;
    border-radius: 10px;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

.vertical .carousel-indicators li.active {
    width: 10px;
    height: 30px;
}

.carousel-control {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.carousel-control.left {
    left: 30px;
}

.carousel-control.right {
    right: 30px;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.carousel-control:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-control .glyphicon {
    font-size: 22px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.carousel-control:hover .glyphicon {
    transform: scale(1.1);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: iconFloat 3s ease-in-out infinite;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.medical-icon i {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(5deg); 
    }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.9;
    }
}

/* Efeitos de transição entre slides */
.carousel-item.active {
    animation: fadeInZoom 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(1.15);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .modern-carousel {
        height: 450px;
        border-radius: 16px;
        margin: 20px 0;
    }
    
    .carousel-title {
        font-size: 2.8rem;
    }
    
    .carousel-subtitle {
        font-size: 1.1rem;
    }
    
    .carousel-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .modern-carousel {
        height: 400px;
        border-radius: 12px;
    }
    
    .carousel-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
    
    .carousel-control {
        width: 48px;
        height: 48px;
    }
    
    .carousel-control.left {
        left: 20px;
    }
    
    .carousel-control.right {
        right: 20px;
    }
    
    .medical-icon {
        width: 60px;
        height: 60px;
        top: 20px;
        right: 20px;
    }
    
    .medical-icon i {
        font-size: 24px;
    }
    
    .vertical .carousel-indicators {
        right: 20px;
        padding: 12px 10px;
    }
}

@media (max-width: 576px) {
    .modern-carousel {
        height: 380px;
        border-radius: 10px;
        margin: 15px 0;
    }
    
    .carousel-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .carousel-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .carousel-content {
        padding: 20px;
        width: 95%;
    }
    
    .carousel-control {
        width: 44px;
        height: 44px;
    }
    
    .carousel-control.left {
        left: 15px;
    }
    
    .carousel-control.right {
        right: 15px;
    }
    
    .carousel-control .glyphicon {
        font-size: 18px;
    }
    
    .medical-icon {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
    
    .medical-icon i {
        font-size: 20px;
    }
    
    .vertical .carousel-indicators {
        right: 15px;
        padding: 10px 8px;
        gap: 10px;
    }
    
    .carousel-indicators li {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicators li.active {
        width: 24px;
    }
    
    .vertical .carousel-indicators li.active {
        width: 8px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .modern-carousel {
        height: 320px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .carousel-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
}

/* Efeitos especiais - Luz radiante */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 20%, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.10) 30%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

/* Animação de entrada para o carousel */
.modern-carousel {
    animation: carouselEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes carouselEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Borda interna sutil para dar profundidade */
.modern-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    pointer-events: none;
}

/* Fade branco nas laterais do carrossel */
.carousel-fade-mask {
    position: relative;
    overflow: hidden;
}

.carousel-fade-mask::before,
.carousel-fade-mask::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-fade-mask::before {
    left: 0;
    background: linear-gradient(to right, #fff 60%, transparent 100%);
}

.carousel-fade-mask::after {
    right: 0;
    background: linear-gradient(to left, #fff 60%, transparent 100%);
}

/* Efeito de partículas flutuantes (opcional) */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

/* Smooth scroll behavior */
.modern-carousel,
.carousel-inner,
.carousel-item {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 