/* Title Banner Section */
.title-banner {
    width: 100vw;
    padding: 30px 0;
    background-color: #CE155E;
    position: relative;
    z-index: 5;
    overflow: hidden;
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateZ(0);
}

.banner-label {
    color: transparent;
    -webkit-text-stroke: 1px #FFFADD;
    font-size: 4rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transform: translateZ(0);
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Simplificar efecto de trazo */
.banner-label::before {
    content: 'Somos expertos en:';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFFADD;
    opacity: 0;
    transform: translateZ(0);
    animation: strokeFill 2s ease infinite;
}

@keyframes strokeFill {

    0%,
    100% {
        opacity: 0;
        transform: translateY(10px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Línea animada */
.banner-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 2px;
    height: 100%;
    background-color: #FFFADD;
    will-change: transform, opacity;
    animation: lineMove 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes lineMove {

    0%,
    5% {
        left: -5%;
        opacity: 1;
        transform: translateZ(0);
    }

    15% {
        left: 105%;
        opacity: 1;
        transform: translateZ(0);
    }

    15.1%,
    85% {
        opacity: 0;
    }

    85.1% {
        left: -5%;
        opacity: 1;
    }
}

/* Cursor Effect */
.cursor-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    contain: layout style paint;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 250, 221, 0.5);
    background: transparent;
    transform: translate(-50%, -50%) translateZ(0);
    pointer-events: none;
    will-change: width, height, opacity, transform;
    animation: circleAnimation 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes circleAnimation {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
        border-width: 2px;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
        border-width: 1px;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Optimizations for devices with reduced motion */
@media (prefers-reduced-motion: reduce) {

    .banner-label,
    .banner-label::before,
    .banner-label::after {
        animation: none;
        transition: none;
    }

    .circle {
        display: none;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .title-banner {
        padding: 20px 0;
    }

    .banner-label {
        font-size: 2.5rem;
        text-align: center;
    }

    .circle {
        width: 60px;
        height: 60px;
    }
}

/* Hardware Acceleration */
.title-banner,
.banner-label,
.circle {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}