.banner{
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel de imágenes - detrás de todo */
.banner__carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.banner__slide--active {
    opacity: 1;
    transform: scale(1);
}

/* Degradado encima del carousel */
.banner__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.9) 53%, rgba(213, 58, 58, 0.55) 100%);
    z-index: 2;
}

.banner__wrapper{
    width: 100%;
    margin: 0 auto;
    padding: 0rem var(--spacing-md) 2.5rem var(--spacing-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 4;


    @media (min-width: 520px) {
        max-width: 600px;
    }

    @media (min-width: 768px) {
        max-width: 980px;
        padding: var(--spacing-lg);
    }

    @media (min-width: 1024px){
        max-width: 1120px;
        padding: 1rem var(--spacing-lg) 3.5rem var(--spacing-md);
    }

    @media (min-width: 1280px){
        max-width: 1190px
    }

    @media (min-width: 1366px){
       max-width: 1440px;
       padding: 1rem var(--spacing-xl) 3.5rem var(--spacing-xl);
    }
    
}

.banner-logo{
    margin: 0 auto;
    
    & img{
        width: 10rem;
    }

    @media (min-width: 768px) {
        width: 100%;
    }

    @media (min-width: 1024px) {
        margin: 0;
    }
}

.banner-title h1{
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    letter-spacing: 0.2px;

    @media (min-width: 768px){
        text-align: center;
        font-size: 3rem;
    }

    @media (min-width: 1024px){
        font-size: 3.2rem;
        line-height: 1.2;
    }
}

.banner-title h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-text-ev{
    color:white;
    text-align: center;
}

.banner-subtitle{
    width: fit-content;

    @media (min-width: 768px) {
        align-self: end;
    }
}

.banner-subtitle p{
    color: var(--light-300);
    font-size: 1.16rem;
    line-height: 1.6;
    letter-spacing: 0.38px;
    font-weight: 300;

    @media (min-width: 1024px) {
        font-size: 1.4rem;
    }

}

.banner-text{
    @media (min-width: 768px) {
        text-align: right;
    }

    @media (min-width: 1024px) {
    }
}

/* Estilos para el <p> de garantía */
.banner-text > p {
    color: var(--light-300);
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: 0.38px;
    font-weight: 300;
    margin: 0;

    @media (min-width: 768px) {
        font-size: 1.4rem;
    }

    @media (min-width: 1024px) {
        font-size: 1.6rem;
    }
}

.banner-text_services {
    display: flex;
    flex-wrap: wrap;
    gap: 0rem 0.3rem;
    align-items: center;

    @media (min-width: 768px) {
        padding: 0 0 0 16rem; 
        justify-content: end;
    }

    @media (min-width: 1024px) {
        padding: 0 0 0 30rem;
    }

    @media (min-width: 1280px) {
        padding: 0 0 0 36rem;
    }

    @media (min-width: 1366px){
       padding: 0 0 0 40rem;
    }
}

/* Estilos para los links de servicios */
.banner-text_services a {
    text-decoration: none;
    color: var(--light-300);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

/* Subrayado animado */
.banner-text_services a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

.banner-text_services a:hover::after {
    width: 100%;
}

.banner-text_services a:hover {
    color: white;
}

.banner-text_services a:hover p {
    color: white;
}

.banner-text_services a:hover i {
    color: var(--primary);
    transform: scale(1.15);
}

/* Asegurar que el <p> dentro del <a> herede los estilos */
.banner-text_services a p {
    color: inherit;
    transition: all 0.3s ease;
    margin: 0;
}

.banner-text_services a i {
    transition: all 0.3s ease;
}

.banner-text_services p {
    color: var(--light-300);
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.38px;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
    padding-right: 0.3rem;

    @media (min-width: 768px) {
        font-size: 1.4rem;
        line-height: 1.9;
    }

    @media (min-width: 1280px) {
        letter-spacing: 0.6px;
        line-height: 2;
    }
}

.banner-text_services i {
    margin-right: 0rem;
}


.banner-btn{

    @media (min-width: 768px) {
        width: fit-content;
        align-self: end;
    }
}

.btn-cot {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cot:hover {
    background: var(--light-200);
    color: var(--dark-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 3;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 3;
}