* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Contenedor principal de pantalla dividida */
.split-slider {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Panel izquierdo: Imágenes */
.slider-panel {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones del Slider */
.slider-panel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-panel button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.slider-panel .prev { left: 20px; }
.slider-panel .next { right: 20px; }

/* Panel derecho: Reseña y Botón */
.content-panel {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 50px;
}

.review-container {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    max-width: 500px;
}

.review-container.active {
    display: flex;
    animation: fadeIn 0.8s ease-in-out;
}

.stars {
    color: #f39c12;
    font-size: 24px;
    margin-bottom: 15px;
}

.h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.author {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

/* Botón CTA */
.cta-button {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #1a252f;
}

/* Animación para el texto */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .split-slider {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .slider-panel, .content-panel {
        width: 100%;
        height: 50vh;
    }
    
    .content-panel {
        padding: 30px;
    }
}