/* Fondo de la página */
body { 
    background-color: #f8f9fa; /* Color más neutro y profesional */
    height: 100%;
    margin: 0;
}

/* Encabezado */
.header {
    background: linear-gradient(to right, #030303, #939394);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center; /* Centra verticalmente los elementos */
    justify-content: center; /* Centra horizontalmente los elementos */
}

.header img {
    max-height: 70px; /* Ajusta la altura máxima del logo */
   
}


.navbar {
    background: linear-gradient(to right, #030303, #939394);
    }

.navbar-nav .nav-link {
        color: white;
    }

/* Sección de historia */
h2 {
    font-weight: bold;
}

.titulo-negro {
    color: black;
}

.cuerpo-justificado {
    text-align: justify;
}

.cuerpo-centrado {
    text-align: center;
}

/* Estilizar la tabla */
.table-hover tbody tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.02);
    transition: 0.3s ease-in-out;
}

/* Pie de página */
.footer {
    background: linear-gradient(to right, #030303, #939394);
    padding: 20px; /*Comentario de rada 050925 incrementar el padding del footer*/
}

.footer h5 {
    font-weight: bold;
}

.footer p, 
.footer a {
    font-size: 14px;
}

.footer a:hover {
    text-decoration: underline;
}

.bg-secondary {
    background: linear-gradient(to right, #030303, #939394);
}

/* Estilos para menus */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(to right, #030303, #939394);
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 120px; /* Para que no tape el header */
    overflow-y: auto;
}

    
.sidebar .accordion-button {
     background: linear-gradient(to right, #030303, #939394);
    color: white;
    box-shadow: none;
    border: none;
}

.sidebar .accordion-body {
    background: linear-gradient(to right, #030303, #939394);
    padding-left: 15px;
}

.sidebar a {
    color: white ;
    padding: 8px 10px;
    border-radius: 5px;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.15);
}

        
        

/* Opciones para menus*/


.content {
    background-color: #f8f9fa; /* Opcional: fondo para contenido principal */
}

.contador {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6dd5fa, #2980b9);
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-align: center;  /* centra el texto dentro */
}
.contador span {
    display: flex;
    align-items: center;
    gap: 5px;
}

#contenido {
    margin-left: 260px;
    padding: 40px;
}


@media (max-width: 768px) {


  /* Sidebar se mantiene fijo pero NO empuja al contenido */
  .sidebar {
      width: 200px;
      padding-top: 20px; /* ya no necesitas 120px porque no hay header */
  }

  /* --- SOLUCIÓN PRINCIPAL --- */
  #contenido {
      margin-left: 200px;   /* el contenido inicia después del menú */
      padding: 20px;
      text-align: center;   /* centra todo dentro del contenido */
  }

  #contenido h2,
  #contenido p {
      text-align: center;   /* fuerza el texto centrado */
  }
} 

/*Para la correcta visualizacion en celulares cuando hay ligas y no se rompan las frases*/

.break-smart {
    overflow-wrap: break-word;   /* Rompe solo cuando es necesario */
    word-break: normal;          /* Mantiene palabras normales completas */
    white-space: normal;
}
