.claeg-header {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage,
.owl-carousel .owl-item {
    height: 70vh;
}

.claeg-header-slide {
    position: relative;
    height: 70vh;
    background: linear-gradient(135deg, #006bb3, #b21f1f, #fdbb2d);
}

.claeg-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.claeg-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claeg-header-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(2, 75, 185, 0.7), rgba(37, 117, 252, 0.5));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    position: relative;
    z-index: 2;
}

.claeg-header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transition: all 0.8s ease;
}

.claeg-header-content.active {
    opacity: 1;
    animation: contentEntrance 1.5s ease-out forwards;
}

.claeg-header-content.exiting {
    animation: contentExit 1s ease-in forwards;
}

.claeg-header-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    opacity: 0;
    animation: titleEntrance 0.8s ease 0.3s forwards;
}

.claeg-header-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: subtitleEntrance 0.8s ease 0.6s forwards;
}

.claeg-header-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #cbd5e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: textEntrance 0.8s ease 0.9s forwards;
}

.claeg-header-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #005d92, #2575fc);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
    border: 2px solid transparent;
    transform: translateY(20px);
    opacity: 0;
    animation: buttonEntrance 0.8s ease 1.2s forwards;
}

.claeg-header-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(106, 17, 203, 0.6);
    background: linear-gradient(135deg, #2575fc, #005d92);
    color: white;
    font-weight: bold;
    border: 2px solid white;
}

/* Animaciones */
@keyframes contentEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes contentExit {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controles del carrusel */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 3;
}

.owl-prev, .owl-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border-radius: 50% !important;
    color: white !important;
    font-size: 2rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.owl-prev:hover, .owl-next:hover {
    background: rgba(106, 17, 203, 0.8) !important;
    transform: scale(1.1);
}

.owl-dots {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 3;
}

.owl-dot {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-dot.active {
    background: #6a11cb !important;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .claeg-header-content h1 {
        font-size: 2.5rem;
    }

    .claeg-header-content .subtitle {
        font-size: 1.2rem;
    }

    .claeg-header-content p {
        font-size: 1rem;
    }

    .owl-nav {
        padding: 0 1rem;
    }

    .owl-prev, .owl-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .claeg-header-content h1 {
        font-size: 2rem;
    }

    .claeg-header-content .subtitle {
        font-size: 1rem;
    }

    .claeg-header-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}