body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}
html{
    height: 100%;
    margin: 0;
}
main {
    background-color: #003554;
    flex: 1;
}
.custom-footer {
    background-color: #00171f;
}
.navbar.custom-navbar {
    background-color: #00171f; /* Cambiado a #10403B */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #ffcc00;
}

.navbar-nav .nav-item .nav-link {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #ffcc00;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%288, 8, 8, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}



/* Estilos personalizados para la sección Inicio */
/* Estilos personalizados para la sección Inicio */
.inicio-section {
    background-color: #00171f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width:fit-content; /* Ajusta el ancho según sea necesario */
    margin: 10px auto 0 auto; /* 10px de margen superior para separar del navbar, centrado horizontalmente */
    position: relative;
    top: 35px; /* Asegura que esté a 10px del navbar */
}
.inicio-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.biografia {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    
}

.biografia img {
    margin-bottom: 20px;
    width: 200px;
    height: 200px;
}

.biografia-texto {
    font-size: 1rem;
    line-height: 2;
    color: white;
    text-align: justify;
    max-width: 800px;
}

.biografia-texto p {
    margin-bottom: 15px;
    margin-top: 15px;
}

/* Estilos para la sección de publicaciones */
#publicaciones-index {
    margin-top: 50px;
    padding: 40px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #7598AE, #084e74);
    border-radius: 2px;
}

/* Grid para continentes */
.continentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
    padding: 0 20px;
}

/* Botones de continentes */
.continent-btn {
    background: linear-gradient(135deg, #00171f 0%, #003554 100%);
    border: 2px solid #7598AE;
    border-radius: 15px;
    color: #ffffff;
    padding: 20px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 23, 31, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.continent-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(117, 152, 174, 0.2), transparent);
    transition: left 0.5s;
}

.continent-btn:hover::before {
    left: 100%;
}

.continent-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 23, 31, 0.6);
    background: linear-gradient(135deg, #003554 0%, #00171f 100%);
    border-color: #7598AE;
    color: #7598AE;
}

.continent-btn i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #7598AE;
    transition: color 0.3s ease;
}

.continent-btn:hover i {
    color: #7598AE;
    transform: scale(1.1);
}

.continent-btn.special-btn {
    background: linear-gradient(135deg, #084e74 0%, #00171f 100%);
    border-color: #7598AE;
    box-shadow: 0 8px 25px rgba(8, 78, 116, 0.4);
}

.continent-btn.special-btn:hover {
    background: linear-gradient(135deg, #00171f 0%, #084e74 100%);
    box-shadow: 0 15px 35px rgba(8, 78, 116, 0.6);
    border-color: #7598AE;
    color: #7598AE;
}

/* Grid para especialidades */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
    padding: 0 20px;
    justify-content: center;
}

/* Botones de especialidades */
.specialty-btn {
    background: linear-gradient(135deg, #084e74 0%, #00171f 100%);
    border: 2px solid #7598AE;
    border-radius: 15px;
    color: #ffffff;
    padding: 20px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(8, 78, 116, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.specialty-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(117, 152, 174, 0.2), transparent);
    transition: left 0.5s;
}

.specialty-btn:hover::before {
    left: 100%;
}

.specialty-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(8, 78, 116, 0.6);
    background: linear-gradient(135deg, #00171f 0%, #084e74 100%);
    border-color: #7598AE;
    color: #7598AE;
}

.specialty-btn i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #7598AE;
    transition: color 0.3s ease;
}

.specialty-btn:hover i {
    color: #7598AE;
    transform: scale(1.1);
}

/* Grid para países */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

/* Botones de países */
.country-btn {
    background: linear-gradient(135deg, #084e74 0%, #00171f 100%);
    border: 1px solid #7598AE;
    border-radius: 10px;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 78, 116, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(117, 152, 174, 0.15), transparent);
    transition: left 0.5s;
}

.country-btn:hover::before {
    left: 100%;
}

.country-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(8, 78, 116, 0.5);
    background: linear-gradient(135deg, #00171f 0%, #084e74 100%);
    border-color: #7598AE;
    color: #7598AE;
}

.country-btn:active {
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .continentes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .continent-btn {
        padding: 15px 10px;
        font-size: 1rem;
        min-height: 100px;
    }
    
    .continent-btn i {
        font-size: 1.5rem;
    }
    
    .specialty-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .specialty-btn {
        padding: 15px 10px;
        font-size: 1rem;
        min-height: 100px;
    }
    
    .specialty-btn i {
        font-size: 1.5rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .country-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .continentes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialty-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#libros-estilo .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

#libros-estilo .card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#libros-estilo .card-body {
    padding: 20px;
}

#libros-estilo .card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

#libros-estilo .btn-primary {
    background-color: #00171f;
    border-color: #00171f;
}

#libros-estilo .btn-primary:hover {
    background-color: #00334e;
    border-color: #00334e;
}

/* Estilos para los botones*/
/* CSS */
.button-65 {
    appearance: none;
    backface-visibility: hidden;
    background-color: #2f80ed;
    border-radius: 10px;
    border-style: none;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    letter-spacing: normal;
    line-height: 1.5;
    outline: none;
    overflow: hidden;
    padding: 14px 30px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: all .3s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
  }
  
  .button-65:hover {
    background-color: #1366d6;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transform: translateY(0);
    transition-duration: .35s;
  }
  
  .button-65:hover:after {
    opacity: .5;
  }
  
  .button-65:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
    transform: translateY(2px);
    transition-duration: .35s;
  }
  
  .button-65:active:after {
    opacity: 1;
  }
  
  @media (min-width: 768px) {
    .button-65 {
      padding: 14px 22px;
      width: 176px;
    }
  }
  /* CSS para libros */
  .clasebody{
    background-color: #003554;
  }


  /* CSS para research select 

.dark-mode-elegance select {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}*/

  /* CSS para el research contacto */
  .contact-box {
    display: inline-block;
    text-align: center;
    padding: 20px;
    border: 1px solid #00171fa6;
    border-radius: 10px;
    background-color: #00171fa6;
}

.contact-box img {
    max-width: 150px;
    border-radius: 50%;
}

.contact-box p {
    margin-top: 10px;
    font-size: 16px;
}
.contact-box h4,
.contact-box p,
.contact-box a {
    color: #ffffff; /* Color blanco para el texto */
}
.research-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border: 1px solid #00171fa6;
  border-radius: 15px;
  background-color: #00171fa6;
  margin-top: 50px;
  width: 80%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.investigacion-item {
  display: flex; /* Flexbox para los items */
  flex-direction: column;
  justify-content: space-between; /* Asegura que el contenido se distribuya de manera uniforme */
  border: 1px solid #084e748f;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #084e7475;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: auto; /* Ajusta la altura automáticamente */
  box-sizing: border-box; /* Asegura que el padding no afecte el tamaño */
  width: 100%; /* Ocupará todo el ancho disponible */
}

.investigacion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.investigacion-item h3 {
  margin-top: 0;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
}

.investigacion-item p {
  margin: 10px 0;
  font-family: 'Roboto', sans-serif;
  color: #bbb0b0;
  line-height: 1.6;
}

.investigacion-item a {
  color: #1e90ff; /* Color del enlace */
  text-decoration: none; /* Sin subrayado */
}

.investigacion-item a:hover {
  text-decoration: underline; /* Subrayado al pasar el ratón */
}

/* CSS para el contacto  */
.contact-box {
  display: inline-block;
  text-align: center;
  padding: 20px;
  border: 1px solid #00171fa6;
  border-radius: 10px;
  background-color: #00171fa6;
  color: #ffffff; /* Color blanco para el texto */
}

.contact-box img {
  max-width: 150px;
  border-radius: 50%;
}

.contact-box h4,
.contact-box p,
.contact-box a {
  color: #ffffff; /* Color blanco para el texto */
}

form .form-group {
  margin-bottom: 15px;
}

form .form-control {
  border-radius: 5px;
  padding: 10px;
  border: 1px solid #ccc;
}

form .btn-primary {
  background-color: #00171f;
  border-color: #00171f;
  padding: 10px 20px;
  border-radius: 5px;
}

.contacto-texto h2,
.contacto-texto p {
    color: #ffffff; /* Color blanco para el texto */
}

/*estilos libro */
.texto-libro h2,
.texto-libro p {
    color: #ffffff; /* Color blanco para el texto */
}

.libro-item {
    background-color: #00171fa6;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff; /* Color blanco para el texto */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.libro-item img {
    max-width: 100%;
    border-radius: 10px;
}

.libro-item h4 {
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
}

.libro-item p {
    margin: 10px 0;
    font-family: 'Roboto', sans-serif;
    color: #bbb0b0;
    line-height: 1.6;
}

.libro-item a {
    color: #ffffff;
    background-color: #084e74;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.libro-item a:hover {
    background-color: #062d4f;
}

.libro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}