/* ==========================================================
   1. CONTENEDOR PRINCIPAL BBDD
   ========================================================== */

.contenedor-principal-bbdd {
    max-width: 1280px;
    width: 100%; /* Cambiado de 95% a 100% para evitar márgenes laterales */
    margin: 40px auto; /* Añadido margen superior/inferior para separar de los textos */
    display: grid;
    /* CAMBIO CLAVE: Forzamos 3 columnas para que ocupen todo el ancho */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px; 
}

/* 2. LA TARJETA BBDD - TU DISEÑO ORIGINAL INTACTO */
.contenedor-vertical-bbdd {
    width: 100%;
    height: 100%; 
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #000000; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(25px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(255,255,255,0.1), rgba(255,255,255,0.4)) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: none !important;
    transform: none !important;
}

/* 3. IMAGEN BBDD - TU DISEÑO ORIGINAL INTACTO */
.img-wrapper-bbdd {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.img-wrapper-bbdd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper-bbdd.tiene-video:hover img {
    transform: scale(1.1);
}

.img-wrapper-bbdd.tiene-video::after {
    content: '▶';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 50px;
    display: flex;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.img-wrapper-bbdd.tiene-video:hover::after { opacity: 1; }

/* 4. BOTONES BBDD - TU DISEÑO ORIGINAL INTACTO */
.boton-container-bbdd {
    display: flex;
    justify-content: center; 
    padding: 15px 20px 20px 20px; 
    width: 100%; 
    margin-top: auto;
    gap: 10px;
    box-sizing: border-box;
}

/* 4. BOTONES BBDD - ADAPTACIÓN PARA BOTONES TUX */
.boton-container-bbdd {
    display: flex;
    justify-content: center; 
    padding: 15px 20px 20px 20px; 
    width: 100%; 
    margin-top: auto;
    gap: 10px;
    box-sizing: border-box;
}

/* Forzamos que tus botones estándar (.btn-tux-base) midan 40px aquí */
.boton-container-bbdd .btn-tux-base {
    height: 40px !important;    /* Altura máxima que querías */
    min-height: 40px !important; 
    flex: 1;                    /* Para que se repartan el ancho si hay varios */
    max-width: 150px;           /* Límite para que no se estiren demasiado */
    font-size: 13px !important; /* Ajuste fino para la nueva altura */
    padding: 0 10px !important;
    box-sizing: border-box;
}

/* Eliminada la clase .btn-bbdd-negro completa ya que usas .btn-glass-light */

/* ==========================================================
   CONTROL DE REGIONES PARA BOTONES
   ========================================================== */

.js-btn-eu, .js-btn-latam {
    display: none;
}
.mostrar-boton-region {
    display: inline-flex !important;
}