/* Ocultar checkbox */
.toggle-texto {
    display: none;
}

/* Texto colapsado */
.texto-limitado {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    overflow: hidden;

    /* Puntitos */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    /* Animación */
    max-height: 4.2em;
    /* 3 líneas */
    transition: max-height 0.35s ease;
}

/* Expandido */
.toggle-texto:checked~.texto-limitado {
    -webkit-line-clamp: unset;
    /* Quita los puntos */
    max-height: 1000px;
}

/* Botón */
.btn-ver-mas {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #0076ff;
    cursor: pointer;
}

/* Texto botón */
.btn-ver-mas::after {
    content: "Ver más";
}

.toggle-texto:checked~.btn-ver-mas::after {
    content: "Ver menos";
}

.contenedor-opciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lado-izq {
    text-align: left;
}

.lado-der {
    text-align: right;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.img-wrapper img {
    transition: transform 0.15s ease;
    user-select: none;
    pointer-events: none;
}


/* ============================= */
/* VISOR PRINCIPAL DEL CARRUSEL */
/* ============================= */
.visor-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, .15);*/
    top: 40px;
}

/* ============================= */
/* CARRUSEL */
/* ============================= */
.carousel-custom {
    width: 100%;
    height: 100%;
}

ons-carousel {
    width: 100%;
    height: 100%;
}

/* ============================= */
/* ITEM DEL CARRUSEL */
/* ============================= */
/* 1️⃣ CONTENEDOR PRINCIPAL */
.visor-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 2️⃣ FORZAR ALTURA EN ONSEN */
#carousel,
#carousel ons-carousel-item {
    width: 100%;
    height: 100%;
}

/* 3️⃣ WRAPPER DE LA IMAGEN */
.img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4️⃣ IMAGEN (ESTA ES LA CLAVE FINAL) */
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}


/* ============================= */
/* BOTONES DE NAVEGACIÓN */
/* ============================= */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, .5);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-nav.left {
    left: 10px;
}

.btn-nav.right {
    right: 10px;
}

/* ============================= */
/* CONTROLES INFERIORES */
/* ============================= */
.controles {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.btn-control {
    background: rgba(0, 0, 0, .6);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .visor-carousel {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 100px);
        border-radius: 0;
    }
}

.card-fondo {
    padding: 0 15px 15px 15px;
}

.izq {
    position: absolute;
    right: 10px;
}