/* ==========================================
   COMPONENTE: BIO-CONVIVENCIA (Ocupa 4 col)
   ========================================== */

/* Contenedor Principal del Módulo */
.bio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 13px 0 2px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    border: 1px solid #f0f4f1;
}

/* Encabezado */
.bio-header {
    text-align: center;
}

.bio-subtitle {
    font-size: 0.9rem;
    color: var(--teal-oscuro); /* Verde esmeralda suave */
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   MATRIZ DE IMÁGENES & LOGO CENTRAL
   ========================================== */
.bio-grid-container {
    position: relative;
    width: 426px;
    height: 165px;
    margin: 0 auto; /* Centrado horizontal */
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
}

/* Cajas de Imágenes con Estado Inactivo (Opaco) */
.bio-img-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #e9ecef;
    opacity: 0.65; /* Estado inactivo sutilmente opaco */
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(82, 183, 136, 0);
}

.bio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

/* Efecto Hover (Brillo y Color) */
.bio-img-box:hover {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(82, 183, 136, 0.4); /* Glow biodiverso */
}

.bio-img-box:hover img {
    filter: grayscale(0%);
}

.bio-btn-txt{
    position: absolute;
    top: 40%;
    left: 7%;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 90%;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Sombra para garantizar lectura */
    z-index: 2;
}

/* Logo Central que une las imágenes */
.bio-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: #1b4332;
    border: 4px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.logo-circle img{
    max-width: 66%;
}

/* Interacción con el logo central */
.bio-grid-container:hover .logo-circle {
    background: #2d6a4f;
    transform: rotate(-15deg);
    box-shadow: 0 0 12px rgba(45, 106, 79, 0.5);
}


/* ==========================================
   BOTONES HORIZONTALES (Vertical Layout Interno)
   ========================================== */
.bio-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    width: 91%;
    margin: 0 auto;
}

.bio-btn {
    display: flex;
    flex-direction: column; /* Ícono arriba, texto abajo */
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 6px;
    cursor: pointer;
    opacity: 0.7; /* Inactivo un poco opaco */
    transition: all 0.3s ease;
}

.bio-btn i {
    font-size: 1.1rem;
    color: #2d6a4f;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.bio-btn span {
    font-size: 0.68rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

/* Hover de los Botones (Brillo y Opacidad total) */
.bio-btn:hover {
    opacity: 1;
    background: #ffffff;
    border-color: #52b788;
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.2);
}

.bio-btn:hover i {
    transform: translateY(-2px); /* Pequeño salto animado del ícono */
    color: #52b788;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .bio-card{
        padding: 11px;
    }
    .bio-logo-center{
        left: 40%;
    }
    .bio-grid {
        width: 79%;
    }
}