/* Estilos para la sección de CTA (Llamada a la Acción) */
.cta-section {
    background-color: #11111f; /* Fondo oscuro (similar al de los círculos) */
    color: white;
    padding: 50px 5%;
    min-height: 450px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Importante para que la curva de fondo no cause barras de desplazamiento */
    
    /* Imagen de la curva abstracta de fondo */
    background-image: url('img/curva-abstracta-cta.png'); /* REEMPLAZA CON LA RUTA DE TU IMAGEN (image_676b84.png) */
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.cta-content {
    max-width: 800px;
    z-index: 5; /* Asegura que el texto esté por encima de la imagen de fondo */
}

.cta-content h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Estilo para el logo ServiLord® dentro del título */
.cta-content .logo-servilord {
    font-size: 32px; /* Un poco más pequeño que el resto del título */
    font-weight: 900;
    margin-left: 10px;
    background: linear-gradient(to right, #00ffff, #ff00ff); /* Degradado del logo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback para navegadores antiguos */
}

.cta-content h3 {
    display: block !important;
    width: fit-content !important;
    margin: 3% auto !important;
    font-size: 1.3em;
    color: white;
    padding: 0 !important; 
    font-weight: normal;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
  
}

/* Botón CTA */
.cta-button {
    padding: 15px 30px;
    background-color: white; /* CORREGIDO: RGBA para transparencia (base: #19C9FF) */
    color:  #001337;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    
    /* ESTILO LIQUID GLASS */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid white;
    box-shadow: 0 2px 5px white, inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #00023E; /* Fondo blanco casi opaco para simular la luz */
    transform: scale(1.05);
    color: white; 
    border-color: #00023E;
    box-shadow: 0 2px 5px #00023E, inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-decoration: none;
}  

.banner-final-img {
    position: absolute;
    /* Ajusta la posición de la curva para que quede a la izquierda */
    left: -25%; /* Mueve la curva ligeramente fuera del borde izquierdo */
    top: 80%;
    transform: translateY(-50%);
    
    /* Ajusta el tamaño de la curva según necesites */
    max-height: 800px; 
    width: 70%;
    height: 150%;
    
    z-index: 1; /* Fondo: Nivel inferior */
    opacity: 1s; /* Puedes ajustar la opacidad si la curva es muy intensa */

}

/* RESPONSIVO EL CODIGO */

/* ========================================= */
/* MEDIA QUERIES PARA LA SECCIÓN CTA         */
/* ========================================= */

/* Dispositivos Grandes (Tablets, hasta 1024px) */
@media (max-width: 1024px) {
    .cta-content h1 {
        font-size: 40px;
    }

    .cta-content .logo-servilord {
        font-size: 28px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }

    /* Ajuste de la imagen de fondo abstracta */
    .banner-final-img {
        left: -30%; /* La mueve un poco más */
        width: 80%; /* Ocupa más ancho relativo */
        height: 120%; /* Ocupa menos altura */
        top: 75%;
    }
}

/* Dispositivos Móviles (Móviles y Tablets Pequeñas, hasta 768px) */
@media (max-width: 768px) {
    .cta-section {
        min-height: 350px; /* Reduce la altura mínima */
        padding: 40px 5%; /* Reduce el padding */
    }

    .cta-content h1 {
        font-size: 28px; /* Tamaño de fuente más apropiado para móviles */
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .cta-content h1 br {
        /* Permite que el texto fluya sin forzar saltos innecesarios en móviles */
        display: none; 
    }

    .cta-content .logo-servilord {
        font-size: 22px; /* Reduce aún más el tamaño del logo */
        margin-left: 5px;
        display: block; /* Fuerza el logo a su propia línea si el título es muy largo */
        margin-top: 5px;
    }

    .cta-content h3 {
        font-size: 1em; /* Reduce el tamaño del h3 */
        margin: 10px auto !important;
    }

    /* Botón CTA */
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Imagen de fondo abstracta (Hacemos que ocupe menos espacio y sea menos prominente) */
    .banner-final-img {
        left: -50%; /* La mueve más fuera de la vista para que no estorbe */
        width: 100%; 
        height: 100%;
        top: 85%; /* La mantiene pegada al fondo */
    }
}

/* Móviles Pequeños (Hasta 480px) */
@media (max-width: 480px) {
    .cta-section {
        padding: 30px 5%;
        min-height: 300px;
    }

    .cta-content h1 {
        font-size: 24px;
    }

    .cta-content .logo-servilord {
        font-size: 20px;
    }
}