/* =========================================================
   ESTILOS PARA EL PLUGIN VRI EMPRENDIMIENTOS
   (Con !important para asegurar prioridad)
   ========================================================= */

.vri-unicauca-wrapper {
    max-width: 1490px !important;
    width: 1490px !important;
    margin: 0 auto !important;
    font-family: 'Open Sans', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif !important;
    color: #000066 !important;
}

.vri-unicauca-wrapper h1,
.vri-unicauca-wrapper h2,
.vri-unicauca-wrapper h3,
.vri-unicauca-wrapper h4,
.vri-unicauca-wrapper h5,
.vri-unicauca-wrapper h6 {
    font-family: 'Titillium Web', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif !important;
}

.vri-unicauca-wrapper i.fa {
    font-family: 'FontAwesome' !important;
}


.vri-unicauca-wrapper * {
    box-sizing: border-box !important;
}

/* --- FILTROS Y BÚSQUEDA --- */
.vri-unicauca-wrapper .vri-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
    background: #ffffff !important;
    padding: 15px 20px !important;
    border-radius: 60px !important;
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(26, 59, 93, 0.08) !important; */
}

.vri-unicauca-wrapper .vri-filter-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.vri-unicauca-wrapper .vri-filter-buttons button {
    font-family: "Open Sans" !important;
    background: #eef3f9 !important;
    border: none !important;
    padding: 6px 18px !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 12px !important;
    color: #000066 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.vri-unicauca-wrapper .vri-filter-buttons button:hover {
    background: #5056AC !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.vri-unicauca-wrapper .vri-filter-buttons button.active {
    background: #5056AC !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(26, 59, 93, 0.3) !important;
}

.vri-unicauca-wrapper .vri-search-box {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    padding: 4px 12px 4px 16px !important;
    border-radius: 30px !important;
    border: 1px solid #5056AC !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.vri-unicauca-wrapper .vri-search-box:focus-within {
    border-color: #000066 !important;
    box-shadow: 0 0 0 3px rgba(26, 59, 93, 0.15) !important;
}

.vri-unicauca-wrapper .vri-search-box input {
    border: none !important;
    background: transparent !important;
    padding: 8px 0 !important;
    font-size: 0.9rem !important;
    outline: none !important;
    width: 180px !important;
    color: #000066 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.vri-unicauca-wrapper .vri-search-box input::placeholder {
    color: #8a9cb0 !important;
}

.vri-unicauca-wrapper .vri-search-box button {
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    color: #5056AC !important;
    transition: transform 0.2s !important;
}

.vri-unicauca-wrapper .vri-search-box button:hover {
    transform: scale(1.1) !important;
}

/* --- GRID DE TARJETAS --- */
.vri-unicauca-wrapper .vri-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

/* --- CADA TARJETA --- */
.vri-unicauca-wrapper .vri-card-container {
    perspective: 1000px !important;
    height: 420px !important;
}

.vri-unicauca-wrapper .vri-card {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
    transform-style: preserve-3d !important;
}

.vri-unicauca-wrapper .vri-card.flipped {
    transform: rotateY(180deg) !important;
}

.vri-unicauca-wrapper .vri-card-front,
.vri-unicauca-wrapper .vri-card-back {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    transition: box-shadow 0.3s !important;
}

.vri-unicauca-wrapper .vri-card-front:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.vri-unicauca-wrapper .vri-card-front img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background: #d9e2ec !important;
    display: block !important;
}

.vri-unicauca-wrapper .vri-card-content {
    padding: 16px 18px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.vri-unicauca-wrapper .vri-card-content h3 {
    font-family: "Titillium Web" !important;
    font-size: 14px !important;
    font-style: normal !important;
    color: #000066 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.vri-unicauca-wrapper .vri-card-content .vri-detalle {
    font-family: "Titillium Web" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: #000066 !important;
    margin-bottom: 0px !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vri-unicauca-wrapper .vri-card-content .vri-semillero {
    font-family: "Titillium Web" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: #797676 !important;
    background: #ffffff !important;
    padding: 3px 0px !important;
    border-radius: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    align-self: flex-start !important;
    margin-bottom: 46px !important;
    max-width: 100% !important;
}

.vri-unicauca-wrapper .vri-card-buttons {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: -21px !important;
}

.vri-unicauca-wrapper .vri-btn-historia {
    background: #E0E0FF !important;
    color: #000066 !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    flex: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.vri-unicauca-wrapper .vri-btn-historia:hover {
    background: #ffffff !important;
    transform: translateY(-1px) !important;
    border: #5056AC 1px solid !important;
}

.vri-unicauca-wrapper .vri-btn-whatsapp {
    background: #ffffff !important;
    color: #17512B !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.vri-unicauca-wrapper .vri-btn-whatsapp:hover {
    background: #ffffff !important;
    color: #1da851 !important;
    transform: translateY(-1px) !important;
}

/* --- CARA TRASERA --- */
.vri-unicauca-wrapper .vri-card-back {
    transform: rotateY(180deg) !important;
    background: #fafcfd !important;
    padding: 20px 18px !important;
    overflow-y: auto !important;
}

.vri-unicauca-wrapper .vri-card-back h4 {
    font-family: "Titillium Web" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: #000066 !important;
    margin: 12px 0 6px 0 !important;
    border-bottom: 1px solid #d9e2ec !important;
    padding-bottom: 4px !important;
}

.vri-unicauca-wrapper .vri-card-back p {
    font-family: "Open Sans" !important;
    font-size: 12px !important;
    color: #000066 !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}

.vri-unicauca-wrapper .vri-btn-volver {
    background: #E0E0FF !important;
    color: #000066 !important;
    border: none !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    margin-top: 10px !important;
    align-self: center !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.vri-unicauca-wrapper .vri-btn-volver:hover {
    background: #ffffff !important;
    border: #000066 1px solid !important;
}

/* --- PAGINACIÓN --- */
.vri-unicauca-wrapper .vri-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
}

.vri-unicauca-wrapper .vri-pagination button {
    background: #ffffff !important;
    border: 1px solid #b0c4d9 !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #000066 !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.vri-unicauca-wrapper .vri-pagination button:hover:not(:disabled) {
    background: #000066 !important;
    color: #ffffff !important;
}

.vri-unicauca-wrapper .vri-pagination button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.vri-unicauca-wrapper .vri-page-numbers {
    display: flex !important;
    gap: 5px !important;
}

.vri-unicauca-wrapper .vri-page-numbers button {
    padding: 8px 14px !important;
    min-width: 40px !important;
}

.vri-unicauca-wrapper .vri-page-numbers button.active {
    background: #5056AC !important;
    color: #ffffff !important;
    border-color: #5056AC !important;
}

.vri-unicauca-wrapper .vri-no-results {
    text-align: center !important;
    padding: 40px !important;
    font-size: 1.2rem !important;
    color: #6a7a8a !important;
    grid-column: 1 / -1 !important;
}

/* =========================================================
   MEJORAS PARA TEXTOS LARGOS (scroll y ajuste)
   ========================================================= */

/* Cara trasera: asegurar scroll vertical */
.vri-unicauca-wrapper .vri-card-back {
    overflow-y: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    /* Necesario para que el scroll funcione en flex */
}

/* Evitar desbordes horizontales en textos largos */
.vri-unicauca-wrapper .vri-card-back p,
.vri-unicauca-wrapper .vri-card-content .vri-detalle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* Opcional: Si quieres que el scroll sea más visible, puedes personalizar la barra */
.vri-unicauca-wrapper .vri-card-back::-webkit-scrollbar {
    width: 6px;
}

.vri-unicauca-wrapper .vri-card-back::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 10px;
}

.vri-unicauca-wrapper .vri-card-back::-webkit-scrollbar-thumb {
    background: #b0c4d9;
    border-radius: 10px;
}

.vri-unicauca-wrapper .vri-card-back::-webkit-scrollbar-thumb:hover {
    background: #8a9cb0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    .vri-unicauca-wrapper {
        width: 100% !important;
    }

    .vri-unicauca-wrapper .vri-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 30px !important;
        padding: 15px !important;
    }

    .vri-unicauca-wrapper .vri-filter-buttons {
        justify-content: center !important;
    }

    .vri-unicauca-wrapper .vri-search-box {
        width: 100% !important;
    }

    .vri-unicauca-wrapper .vri-search-box input {
        width: 100% !important;
    }

    .vri-unicauca-wrapper .vri-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 20px !important;
    }

    .vri-unicauca-wrapper .vri-card-container {
        height: 380px !important;
    }
}

@media (max-width: 480px) {
    .vri-unicauca-wrapper .vri-card-grid {
        grid-template-columns: 1fr !important;
    }

    .vri-unicauca-wrapper .vri-card-container {
        height: 400px !important;
    }

    .vri-unicauca-wrapper .vri-filter-buttons button {
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }
}