﻿.swiper {
    width: 100%;
    max-width: 1200px;
    height: 400px; /* para que tome altura según contenido */
    min-height: 400px; /* opcional para tener altura mínima */
    margin: auto;
}

.slidetxt-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
    transition: background 1.5s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* fondo elegante */
    overflow: visible;
    display: flex;
    align-items: center;
    height: auto;
    background: none; /* quitar el background sólido */
}



    /* Asegurarse que el contenido esté por encima del fondo */
    .slidetxt-content > * {
        position: relative;
        z-index: 1;
    }

.slidetxt-image {
    flex: 1 1 50%;
    margin: 0 20px 20px 20px;
    height: auto;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden;
    filter: none; /* quitar blur aquí para imagen clara */
    transition: filter 1.5s ease;
}

    .slidetxt-image img {
        max-height: 350px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slidetxt-texts {
    flex: 1 1 40%;
    padding-left: 20px;
}

    .slidetxt-texts h2 {
        font-size: 2rem;
        margin-bottom: 0.5em;
    }

    .slidetxt-texts p {
        font-size: 1.1rem;
    }

@media (max-width: 767px) {
    .slidetxt-content {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .slidetxt-image, .slidetxt-texts {
        flex: none;
        width: 100%;
        padding-left: 0;
    }

    .slidetxt-image {
        height: auto;
        margin-bottom: 15px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px; /* igual que la altura del slide */
}

#loadingIndicator {
    display: none;
    color: #007bff;
    font-weight: bold;
    font-size: 20px;
}



.slidetxt-image {
    flex: 1 1 50%;
    margin: 0 20px 20px 20px; /* margen abajo añadido */
    height: auto; /* en vez de height fija, permitir altura automática para que el margin funcione */
    max-height: 90%; /* limitar altura máxima si quieres mantener tamaño */
    border-radius: 8px;
    overflow: hidden;
    filter: blur(8px);
    transition: filter 1.5s ease;
}

    .slidetxt-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Cuando primer slide está activo, quitar blur */
.swiper-slide-active .slidetxt-image {
    filter: blur(0);
}
