/* === SLIDER ORIGINAL === */
.confilosofia-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #eaf6fd;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1; /* Aseguramos que el CTA pueda estar por encima si es necesario */
}

.confilosofia-slider {
    display: flex;
    transition: transform 0.6s ease;
    width: 300%;
}

.confilosofia-slide {
    display: flex;
    flex-direction: row;
    width: 100vw;
    flex-shrink: 0;
    padding: 3rem 2rem;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    box-sizing: border-box;
    gap: 2rem;
    position: relative;
}

.confilosofia-slide-content {
    flex: 1;
    padding: 0 4rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.confilosofia-slide-content h1,
.confilosofia-slide-content h2,
.confilosofia-slide-content .quote {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.confilosofia-slide-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin-bottom: 1.2rem;
}

.confilosofia-slide-image {
    flex: 1;
    max-width: 45%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confilosofia-slide-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    border-radius: 10px;
    object-fit: cover;
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #0076c6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0.5rem 0.5rem 0 0;
    transition: background 0.3s ease;
}

.btn.secondary {
    background: #ddd;
    color: #333;
}

.btn:hover {
    background: #005f99;
}

/* === FLECHAS SLIDER === */
.confilosofia-slider-prev,
.confilosofia-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: #00A0E0;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.confilosofia-slider-prev { left: 10px; }
.confilosofia-slider-next { right: 10px; }

/* === DOTS === */
.confilosofia-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 5;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #bbb;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #0076c6;
}

/* === CTA PERSONALIZADO DESPUÉS DEL SLIDER === */
.cta-bloque {
    margin: 100px auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    background: white;
}

.cta-bloque h2 {
    font-size: 2rem;
    color: #231f20;
    margin-bottom: 1.5rem;
}

.cta-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-botones a {
    text-decoration: none;
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-boton-llamada {
    background-color: #5ac3e0;
    color: #000;
}

.cta-boton-info {
    background-color: #f5a742;
    color: #000;
}

/* === RESPONSIVE CTA === */
@media (max-width: 768px) {
    .confilosofia-slider-wrapper {
    margin-top: 90px;
}

    .confilosofia-slide {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 2rem 1rem;
        gap: 1.2rem;
    }

    .confilosofia-slide-content {
        padding: 0 1rem;
        max-width: 100%;
    }

    .confilosofia-slide-content h1,
    .confilosofia-slide-content h2,
    .confilosofia-slide-content .quote {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        font-weight: 700;
    }

    .confilosofia-slide-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        margin-top: 1.2rem;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
    }

    .confilosofia-slide-image img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .confilosofia-slider-prev,
    .confilosofia-slider-next {
        opacity: 0.15;
        font-size: 1.3rem;
        background: rgba(0, 118, 198, 0.15);
        padding: 0.3rem 0.5rem;
        z-index: 5;
        transition: opacity 0.3s ease;
        border-radius: 50%;
    }

    .confilosofia-slider-prev:hover,
    .confilosofia-slider-next:hover {
        opacity: 0.3;
    }

    .confilosofia-slider-dots {
        bottom: 10px;
    }

    .cta-bloque h2 {
        font-size: 1.5rem;
    }

    .cta-botones a {
        font-size: 1.2rem;
        padding: 16px 24px;
    }
}