/* ---- Sección comentarios ---- */
#comentarios {
    display: block;               /* apila título y carrusel en columna */
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Header con el título arriba del carrusel */
.comentarios-header {
    width: 100%;
    text-align: center;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 2;
}

/* 🎯 Nueva clase específica para título sin conflictos */
.Tseccion-comentarios {
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-family: 'Edwardian Script ITC', cursive;
    font-weight: 100;
    margin-bottom: 40px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    position: relative;
}

/* Carrusel intacto */
.carrusel {
    width: 100%;
}

.carrusel-contenedor {
    display: flex;
    transition: transform 0.8s ease;
    gap: 100px;
}

.comentario {
    width: 600px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.comentario img {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    filter: blur(2px); /* 🔧 Blur siempre activo */
    transition: filter 0.5s ease, box-shadow 0.5s ease;
}

.texto, .nombre {
    display: none;
}

.comentario.activo {
    opacity: 1;
    transform: scale(1);
}

.comentario.activo .texto,
.comentario.activo .nombre {
    display: block;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    transition: text-shadow 0.5s ease;
}

.comentario.lado {
    opacity: 0.3;
    transform: scale(0.8);
}

/* 📱 Mobile - portrait */
@media (max-width: 767px) and (orientation: portrait) {
    .Tseccion-comentarios {
        font-size: 42px;
        margin-bottom: 28px;
    }

    .carrusel-contenedor {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .comentario {
        width: 90vw;
        height: auto;
        min-height: 300px;
        padding: 20px;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.8s ease;
    }

    .comentario img {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        object-fit: cover;
        filter: blur(2px);
    }

    .comentario.activo {
        opacity: 1;
    }

    .comentario.activo .texto,
    .comentario.activo .nombre {
        display: block;
        text-align: center;
        max-width: 90vw;
        word-wrap: break-word;
        font-size: 16px;
    }

    .texto {
        margin-bottom: 10px;
    }
}

/* 📱 Mobile - landscape y tablets */
@media (max-width: 1024px) and (orientation: landscape),
       (min-width: 768px) and (max-width: 1024px) {

    #comentarios {
        min-height: 100vh;
        padding: 20px 0;
    }

    .Tseccion-comentarios {
        font-size: 46px;
        margin-bottom: 30px;
    }

    .carrusel-contenedor {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .comentario {
        width: 90vw;
        height: auto;
        min-height: 300px;
        padding: 20px;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.8s ease;
    }

    .comentario img {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        object-fit: cover;
        filter: blur(2px);
    }

    .comentario.activo {
        opacity: 1;
    }

    .comentario.activo .texto,
    .comentario.activo .nombre {
        display: block;
        text-align: center;
        max-width: 90vw;
        word-wrap: break-word;
        font-size: 15px;
    }

    .texto {
        margin-bottom: 10px;
    }
}
