/*** Importando hojas de estilo ***/

/*** Rutas ***/
@import url("./home_route.css"); /* Estilos de la ruta home */
@import url("./about_route.css"); /* Estilos de la ruta about */
@import url("./news_route.css"); /* Estilos de la ruta news y news_article */
@import url("./library_route.css"); /* Estilos de la ruta library y resource_detail */
@import url("./auth_route.css"); /* Estilos de las rutas login y register */
@import url("./radio_route.css"); /* Estilos de la ruta radio */

/*** Panel de Control y Perfiles ***/
@import url("./dashboard_editor.css"); /* Estilos de la ruta dashboard_editor */

/*** Utilidades ***/
@import url("./owl_carousel.css"); 
@import url("./owl_transitions.css");
@import url("./slick_theme.css");
@import url("./boxicons.min.css");
@import url("./font_awesome.css");
@import url("./animate.css");
@import url("./slick.css");


/*** GOOGLE FONTS ***/
@import url("../fonts/fonts.css");

/*** VARIABLES CSS ***/
:root {
  /*** Colors ***/
  --title-color: #1e3a8a; 
  --text-color-muted: #6c757d;
  --text-color-dark: #2c3e50;
  --text-color-light: #c8c8c8;
  --color-light: #ffffff;
  --color-dark: #000000;
  --background-color: #f7f7f7;
  --container-color: #ffffff;
  --accent-green: #1abc9c;
  --accent-green-hover: #008369;
  --error-color: #e63946;
  --border-color: #e9ecef;

  /***   ***/
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  
  --shadow-hover: 0px 5px 20px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
  
  /*** Font and typography ***/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.75rem;
  --header-height: 3.5rem;

  /*** Font weight ***/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*** z index ***/
  --z-fixed: 100;
}

/*** Dark Mode ***/
[data-theme="dark"] {
  /*** Colors ***/
  --title-color: #eaeaef;
  --text-color: #a8a8a8;
  --text-color-light: #3b3b3b;
  --color-light: #000000;
  --color-dark: #b2b2b2;
  --background-color: #121212;
  --container-color: #333333;
  --accent-green: #ff5722;
}

/*** Global ***/
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color-dark);
  background-color: var(--background-color);
}

.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  background-color: var(--container-color);
}
p {
  color: var(--text-color-muted);
  line-height: 1.8;
  font-size: 1rem;
}
h3 {
  margin: 0;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
a,
a:hover,
a:focus {
  text-decoration: none;
}
img {
  width: 100%;
  height: 100%;
}

.button-content {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: var(--accent-green);
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

button:hover .circle {
  width: 100%;
}

button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

button:hover .button-text {
  color: #fff;
}

.row {
  margin-right: auto;
  margin-left: auto;
}
.titleHR {
  background: none repeat scroll 0 0 #e1e1e1;
  height: 3px;
  margin: 10px auto 0;
  position: relative;
  text-align: center;
  width: 130px;
  margin-bottom: 20px;
}

.titleHR span {
  background: none repeat scroll 0 0 var(--accent-green);
  border-left: 5px solid #f7f7f7;
  border-right: 5px solid #f7f7f7;
  display: inline-block;
  height: 3px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 0px;
  width: 50px;
}

.btn {
  text-transform: uppercase;
  color: var(--text-color-muted);
  padding: 10px 20px;
}

.back-to-top {
  background-color: var(--accent-green);
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 0px;
  right: 20px;
  display: none;
  text-align: center;
  z-index: 10000;
}
.back-to-top i {
  color: #fff;
  font-size: 15px;
  display: block;
  line-height: 33px;
}

.back-to-top:hover{
  background-color: var(--accent-green-hover);
}

.button_link_to_radio{
  width: auto;
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.button_link_to_radio a {
  color: black;
  background-color: #fbff00;
  border-radius: 20px;
}


/* Estilos para mensajes flash flotantes */
.flash-messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    max-height: 0;
    overflow: hidden;
}

.flash-message.show {
    opacity: 1;
    transform: translateX(0);
    max-height: 100px;
    margin-bottom: 10px;
}

.flash-message.hide {
    opacity: 0;
    transform: translateX(100%);
    max-height: 0;
    margin-bottom: 0;
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease 0.5s, margin-bottom 0.5s ease 0.5s;
}

.flash-message.success {
    background-color: #4CAF50;
    border-left: 5px solid #388E3C;
    color: white;
}

.flash-message.error {
    background-color: #F44336;
    border-left: 5px solid #D32F2F;
    color: white;
}

.flash-message i {
    margin-right: 10px;
    font-size: 20px;
}

.flash-message .close-btn {
    margin-left: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}


/*** Modals ***/
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal.modal-open {
  display: flex;
}

.modal-content {
  background-color: #fefefe;
  margin:auto;
  padding: 20px;
  border: 1px solid #888;
  width: max-content;
  height: max-content;
  box-shadow: var(--shadow);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.copyleft{
  display: inline-block;
text-align: right;
margin: 0px;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}

/*** ERRORES ***/
.container_error {
  display: flex;
  justify-content: center;
  height: 90vh;
  width: 100%;
  align-items: center;
  flex-direction: column;
}

.error {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  color: var(--title-color);
}

.number {
  font-weight: 900;
  font-size: 15rem;
  line-height: 1;
}

.text {
  margin-top: 1rem;
  font-weight: 300;
  color: #293b49;
}
.button-error {
  margin-top: 2rem;
}
.button-error,
.buttons {
  padding: 1.2rem 3rem;
  color: white;
  background-color: #04cba0;
}

.button-error:hover,
.buttons:hover {
  background-color: #01ac88;
}

/*** HEADER ***/
.header {
  position: relative;
  z-index: var(--z-fixed);
}

.first__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
  padding: 0 10px;
  background-color: var(--background-color);
}

.first__container .logo {
  width: 90px;
  height: 70px;
}

.header__logo {
  width: 400px;
  height: 70px;
}

/*** Nav ***/
.nav {
  width: 100%;
  height: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  padding: 1.1rem 2rem;
  background-color: rgba(52, 58, 64, 0.2);
  transition: background-color 0.5s ease;
  z-index: 1;
}
.nav-logo {
  width: 130px;
  display: flex;
}
.nav-content {
  display: flex;
  margin: 0 auto;
}
.nav-content .nav-link {
  padding: 0.3rem;
  margin: 0 0.5rem;
  padding-inline: 0.7rem;
}
.user-actions {
  display: flex;
}

/* Estilos originales */
.nav-content .nav-link,
.user-actions .nav-link,
.user-actions .nav-profile,
.user-actions .nav-login,
.user-actions .nav-search {
  color: var(--color-light);
  gap: 5px;
  display: flex;
  align-items: center;
}
.user-actions .nav-profile {
  color: var(--color-light);
  padding: 10px;
  border-radius: 1rem;
}

i.bx.bx-user.nav-icon {
  background-color: var(--title-color);
  padding: 10px;
  border-radius: 50%;
  color: #ffffff;
  margin-right: 10px;
}

.nav-content .nav-link:hover {
  border-top: solid;
  border-bottom: solid;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.nav-link.active {
  color: var(--color-light) !important;
  border-top: solid;
  border-bottom: solid;
  transform: scale(1.05);
}

#olympicsDropdownContent {
  margin-top: 5px;
}

#olympicsDropdownContent .nav-dropdown-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-color-dark);
}

#olympicsDropdownContent .nav-dropdown-link:hover {
  color: var(--accent-green-hover);
  transform: translateX(4px);
}

#olympicsDropdownContent .nav-dropdown-link.active {
  color: var(--accent-green);
  font-weight: bold;
}

#olympicsDropdownContent .nav-dropdown-link i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-dropdown {
  display: flex;
  cursor: pointer;
  position: relative;
}

#arrowIcon {
  font-size: 13px;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content; /*320px*/
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Estilos para cuando se hace scroll */
.scroll-active {
  background-color: white;
  box-shadow: 0 4px 6px rgb(0 0 0 / 22%);
  position: fixed;
  top: 0;
}

.scroll-active .nav-content .nav-link,
.scroll-active .user-actions .nav-search,
.scroll-active .user-actions .nav-login {
  color: var(--text-color-dark)  !important;
}

.scroll-active .nav-link.active {
  color: var(--accent-green) !important;
  border-top: solid;
  border-bottom: solid;
  transform: scale(1.05);
}

.scroll-active .user-actions .nav-profile {
  color: var(--text-color-dark);
  padding: 10px;
  border-radius: 1rem;
}

.scroll-active i.bx.bx-user.nav-icon {
  background-color: var(--title-color);
  color: #f9f9f9;
  padding: 10px;
  border-radius: 50%;
}

.scroll-active .nav-content .nav-link:hover,
.scroll-active .user-actions .nav-link:hover {
  color: var(--accent-green-hover) !important;
}

/*.switch-actions{
  margin-top: auto;
  overflow: hidden;
}*/

.menu-toggle {
  display: none;
  cursor: pointer;
}

/***** Barra de busqueda *****/


/*** FOOTER ***/
.site-footer {
  background-color: #26272b;
  padding: 45px 0 20px;
  color: #737373;
}
.site-footer p{
  color: #737373;
}
.site-footer h6 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 2px;
}
.footer-container {
  padding-bottom: 20px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: center;
  width: 95%;
  gap: 40px;
  
}
.footer-about {
  width: 90%;
  text-align: justify;
}
.footer-categories{
  width: 40%;
}
.title-footer{
  margin-bottom: 5px;
}
.footer-quick {
  width: 80%;
}

.footer-links {
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
  font-size: 1rem;
}
.footer-links li {
  display: block;
}
.footer-links a {
  color: #737373;
}
.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
  color: #3366cc;
  text-decoration: none;
}

.site-footer .social-icons {
width: 50%;
display: flex;
gap: 30px;
justify-content: center;
}

.site-footer .social-icons a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 100%;
  background-color: #33353d;
  color: #818a91;
  font-size: 25px;
  display: inline-block;
  text-align: center;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.copyright-text {
  margin: 0;
  padding: 20px 0 0 0;
  text-align: center;
}

.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.social-icons li {
  display: inline-block;
  margin-bottom: 4px;
  
}
.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: #96a2b2;
  font-weight: 700;
  font-size: 13px;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #29aafe;
}
.social-icons.size-sm a {
  line-height: 34px;
  height: 34px;
  width: 34px;
  font-size: 14px;
}
.social-icons a.facebook:hover {
  background-color: #3b5998;
}
.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

/*** MEDIA QUERIES ***/

/*Phone*/
@media only screen and (max-width: 600px) {
  .Testimonial-container .contents-wraper {
    width: 90%;
  }
  .contents-wraper .testRow {
    margin-top: 15px;
  }
  .sidebar_library {
    width: 90%;
  }
  .testRow .testItem h3 {
    font-size: 26px;
  }
  .testRow .testItem p {
    font-size: 16px;
    letter-spacing: initial;
    line-height: initial;
  }
}

/*Tablet*/
@media only screen and (max-width: 930px) {
  .sidebar_library {
    width: 100%;
  }
  .nav-content {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 324px;
    padding: 0.7rem;
    position: absolute;
    background-color: rgba(52, 58, 64, 0.2);
    align-items: center;
  }
  .scroll-active .nav-content {
    background-color: rgb(255 255 255 / 95%);
  }
  .nav-content.active {
    display: flex;
  }
  .nav-logo {
    width: 68px;
  }
  .menu-toggle {
    margin-right: 20px;
    display: block;
    color: var(--color-light);
  }
  .scroll-active .menu-toggle {
    color: var(--color-dark);
  }
}

div#modal-dynamic-content {
    height: 700px;
}

video#player {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    height: stretch;
}