main > .container {
    padding: 70px 15px 20px;
}

main > .container-lg {
    padding-top: 90px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/*------------------------------------*/

.bg-cuerpo {
    background-color: #ececec;
}

.h-body {
    height: 90vh;
}

.catalogo-actividades {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centra los elementos horizontalmente */
}

.actividad {
    text-align: center;
    width: 200px; /* Ancho fijo para cada actividad */
}

.imagen-container {
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    align-items: center; /* Centra la imagen verticalmente */
    height: 200px; /* Altura fija para el contenedor */
    overflow: hidden; /* Evita que la imagen se desborde */
}

.img-actividad {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.img-actividad:hover {
    transform: scale(1.1);
}

.has-error .form-control {
    border-color: #dd3532;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.help-block {
    color: #dd3532;
}

.has-error .help-block {
    color: #dd3532;
}

.img-header {
    width: 40px;
    height: 28px;
}

.tit-header {
    padding-left: 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Alinea horizontalmente el contenido en el centro */
    gap: 30px; /* Espacio entre los íconos y el texto */
}

.footer-icon {
    width: 40px;
    height: 40px;
}

/*--------------------------*/

.form-instructions {
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.form-instructions ol {
    padding-left: 20px;
}

a {
    color: black; /* Cambia el color de los enlaces a negro */
}

a:hover {
    color: #555; /* Opcional: Cambia el color de los enlaces cuando se pasa el cursor sobre ellos */
}

.tabla-gridview tr {
    border-color: #ffffff;
}

table tr:hover {
    background-color: #c0c0c0;
}

/*-------------------------------*/

.card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.card-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.card-body {
    padding: 15px;
}

.card-body ul {
    list-style-type: none;
    padding-left: 0;
}

.card-body ul li {
    margin-bottom: 10px;
}

/*----------------------------------------*/
.tabla-pdf
{
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 20px; 
    border: 1px solid #ddd !important; 
    font-family: sans-serif;
}
.tabla-td-pdf
{
    border-left: 1px solid #ddd; 
    border-right: 1px solid #ddd; 
    padding: 10px;
}
.tabla-td-final-pdf
{
    border-left: 1px solid #ddd; 
    border-right: 1px solid #ddd; 
    border-bottom: 1px solid #ddd; 
    padding: 10px;
}
.subtabla-pdf
{
    width: 100%; 
    border-collapse: collapse;
}
.titulo-pdf
{
    color: #6c757d; 
    font-family: sans-serif; 
    text-align: center;
}
.encabezado-td-pdf
{
    background-color: #f8f9fa; 
    border: 1px solid #ddd; 
    padding: 10px;
}
.encabezado-pdf
{
    color: #6c757d; 
    margin: 0; 
    font-size: 1em;
    font-weight: bold;
}
.subencabezado-td-pdf{
    border: 1px solid #ddd; 
    padding: 10px; 
    background-color: #f8f9fa;
}
.subencabezado-pdf
{
    color: #17a2b8; 
    margin: 0; 
    font-size: 0.9em;
}
.subsubencabezado-pdf
{
    color: #6c757d; 
    margin: 0; 
    font-size: 0.9em;
    font-weight: bold;
}
.dato-td-pdf
{
    border: 1px solid #ddd; 
    padding: 10px; 
    background-color: #ffffff;
}
.dato-pdf{
    color: #6c757d; 
    font-size: 0.8em;
}
.action-container {
    display: flex;
    gap: 10px; /* Espaciado uniforme entre botones */
}

/* COLORES MACAFI */
.bg-mcf-1 {
    background-color: #e1261c;
}

.bg-mcf-2{
    background-color: #1a428a;
}

/* INFOGRAFÍA */
.infografia-imagen {
    width: 100%;
    max-width: 80%;
    min-width: 20%;
    height: auto;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/*-------------------*/

.video-wrapper {
    position: relative;
    max-width: 100%;   /* se adapta al ancho disponible */
    margin: 0 auto;
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 60vh;      /* altura relativa a la pantalla */
}

/* Overlay inferior derecha */
.overlay-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;   /* porcentaje relativo al ancho */
    height: 48%;  /* porcentaje relativo a la altura */
    background: transparent;
    cursor: not-allowed;
}

/* Overlay superior derecha */
.overlay-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 48%;
    background: transparent;
    cursor: not-allowed;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .video-wrapper iframe {
        height: 40vh; /* más bajo en móviles */
    }
    .overlay-bottom-right,
    .overlay-top-right {
        width: 100%;   /* más ancho para cubrir botones en móviles */
        height: 48%;
    }
}

/*---------------------------*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  display: none; /* oculto por defecto */
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block; /* 👈 se abre al pasar el mouse */
}
