﻿/* =========================
   Layout base de la página
========================= */
#fondo {
    background-color: #F4F4F4 !important;
}

/* Evita que el card se “meta” bajo el header al hacer scroll */
.card-contenido {
    position: relative;
    z-index: 10;
}

/* Encabezado tipo badge (ya lo usas en el H1) */
.nombre-badge {
    display: inline-block;
    background-color: #d5661c;
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    margin: 0 0 14px 0;
}

/* =========================
   Cards con imagen de fondo
========================= */
.contenedor-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.card-bg-link {
    display: inline-block;
    width: 160px;
    height: 160px;
    text-decoration: none;
}

.card-bg {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* si no quieres sombra, déjalo así */
    box-shadow: none;
    /* hover suave opcional */
    transition: transform .15s ease, box-shadow .15s ease;
}

.card-bg-link:hover .card-bg {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

/* Imágenes por tarjeta */
.bg-ciencia {
    background-image: url("../img/01.png");
}

.bg-docentes {
    background-image: url("../img/02.png");
}

.bg-proyectos {
    background-image: url("../img/03.png");
}

.bg-cuerposAcademicos {
    background-image: url("../img/04.png");
}

.bg-dependencias {
    background-image: url("../img/05.png");
}

.bg-riiuat {
    background-image: url("../img/06.png");
}

/* =========================
   Ranking / Dropdown
========================= */
.ranking {
    font-weight: 700;
    text-align: center;
    display: block;
}

/* =========================
   Modales + iframes
========================= */
.modal-lg {
    min-width: 1220px !important;
}

.modaliframe {
    width: 100%;
    height: 800px;
}

.modaliframe2 {
    width: 100%;
    height: 600px;
    border: 0;
}

iframe {
    box-shadow: 10px 10px 10px rgba(0,0,0,.5);
}

/* =========================
   Sección de imágenes (Red / Mapa)
========================= */
.divimgs {
    max-width: 500px;
}

.cuadro-body2 {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

/* Títulos */
h2 {
    margin-top: 2rem;
}

h1 {
    margin: 20px;
}


.card-disabled {
    cursor: default;
}
