@charset "utf-8";
/* CSS Document */

@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 14px;
	   font-family: 'Libre Franklin', sans-serif;
  }
  .container {
    flex-direction: column;
  }
}
#myLinks {
  transition: max-height 0.3s ease-out;
}

button {
  background-color: #FFD700;
  color: #003366;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #FFC300;
}

input, select, textarea {
  border: 1px solid #CCC;
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

/* Tipografía base */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #F5F5F5;
  color: #333333;
  margin: 0;
  padding: 0;
}

/* Cabecera institucional */
header, .navbar {
  background-color: #003366;
  color: white;
  padding: 15px;
}
header h1, .navbar-brand {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
}

/* Botones */
button, .btn {
  background-color: #FFD700;
  color: #003366;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
button:hover, .btn:hover {
  background-color: #FFC300;
}

/* Formularios */
input, select, textarea {
  border: 1px solid #CCC;
  padding: 8px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 10px;
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table th, table td {
  border: 1px solid #CCC;
  padding: 10px;
  text-align: left;
}
table th {
  background-color: #003366;
  color: white;
}
table tr:nth-child(even) {
  background-color: #EFEFEF;
}

/* Alertas */
.alert-success {
  background-color: #DFF0D8;
  color: #3C763D;
  border: 1px solid #D6E9C6;
}
.alert-danger {
  background-color: #F2DEDE;
  color: #A94442;
  border: 1px solid #EBCCD1;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 14px;
  }
  .container {
    flex-direction: column;
  }
  header h1 {
    font-size: 22px;
  }
}
.navbar-toggler-icon {
  filter: invert(100%);
}
.navbar-collapse {
  background-color: #003366;
}


/*.topnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}*/

.topnav {
  background-color: #003366;
  position: relative;
  min-height: 50px;
}


/*.topnav #myLinks {
  display: none;
}*/
.topnav #myLinks {
  display: none;
  margin: 0;
  padding: 0;
}

.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/*.topnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}*/
.topnav a.icon {
  background-color: #002244;
  position: absolute;
  right: 0;
  top: 0;
  padding: 14px 16px;
  height: 100%;
}


.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.topnav {
  overflow: hidden;
  background-color: #003366; /* Azul UNAM */
  position: relative;
}

.topnav a {
  color: #FFD700; /* Dorado institucional */
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
  font-weight: bold;
}

.topnav a:hover {
  background-color: #FFD700;
  color: #003366;
}

.topnav a.icon {
  background-color: #002244; /* Azul más profundo */
}

.active {
  background-color: #FFD700;
  color: #003366;
}
.container a,
.container a:hover {
  transition: all 0.3s ease-in-out;
}
.p-2 {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h6 {
  border-bottom: 2px solid #FFD700;
  display: inline-block;
  padding-bottom: 4px;
}
hr {
  border: none;
  height: 2px;
  background-color: #FFD700;
  width: 60%;
  margin: 1rem auto;
}
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #FFD700;
  color: #003366;
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  text-align: center;
  transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #003366;
  color: #FFD700;
}
.boton-rcp {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boton-rcp:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boton-rcp {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0; /* Oculto antes de animar */
}
