:root {
  --white: #ffffff;
  --red: #d98c99;
  --orange: #d9a68c;
  --yellow: #d9cc8c;
  --lima: #bfd98c;
  --green: #99d98c;
  --springgreen: #34c94d;
  --darkgreen: #78b081;
  --cyan: #8cd9cc;
  --blue: #54aeff;
  --transparent-blue: #54afff91;
  --transparent-blue-2: #4059c966;
  --indigo: #4565db;
  --violet: #a68cd9;
  --magenta: #FF7AAD;
  --deeppink: #d98cbf;
  --lightpink: #ffc0ff;
  --lightcyan: #C0FFFF;
  --darkblue: #0d1f75;
  --text-muted: #878787;
  --lightgrey: #ededed;
  --verylightblue: #f2f8fe;
  --darkgrey: #494949;
  --salmon: #ffc2c2;
}

.lightindigo-bg { background-color: #f2f5ff; }
.grey-bg { background-color: #c0c0c0;}
.lightgrey {color: #cccccc;}
.lightgrey-bg {background-color: var(--lightgrey);}
.darkblue-bg { background-color: var(--darkblue); }
.transparent-blue-bg { background-color: var(--transparent-blue); }
.transparent-blue-2-bg { background-color: var(--transparent-blue-2); }

/**** Backgrounds: ****/
.white-bg {background-color: #ffffff;}
.red-bg { background-color: var(--red); }
.orange-bg { background-color: var(--orange); }
.yellow-bg { background-color: var(--yellow); }
.lima-bg { background-color: var(--lima); }
.green-bg { background-color: var(--green); }
.springgreen-bg { background-color: var(--springgreen); }
.cyan-bg { background-color: var(--cyan); }
.blue-bg { background-color: var(--blue); }
.darkgreen-bg { background-color: var(--darkgreen); }
.indigo-bg { background-color: var(--indigo); }
.lightpink-bg { background-color: var(--lightpink); }
.lightcyan-bg { background-color: var(--lightcyan); }
.violet-bg { background-color: var(--violet); }
.magenta-bg { background-color: var(--magenta); }
.deeppink-bg { background-color: var(--deeppink); }
.darkgrey-bg { background-color: var(--darkgrey); }
.verylightblue-bg { background-color: var(--verylightblue); }
.salmon-bg { background-color: var(--salmon); }

a.darkblue, .darkblue { color: var(--darkblue); }
a.darkblue:hover { color: var(--indigo); }
.text-muted { color: var(--text-muted) !important; }
.darkgrey { color: var(--darkgrey); }
.indigo { color: var(--indigo); }

/**** Fonts ****/
@font-face {
  font-family: 'TiemposText-Regular';
  src: url('../fonts/TiemposText-Regular.otf');
}


body {
  font-size: 0.95rem;
}

body.transitions {
  transition: all 0.3s ease;
}

.container {
  max-width: 1192px;
}

a {
    text-decoration: none !important;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

.logo-text {
  font-family: 'helvetica neue', helvetica, sans-serif;
  font-weight: bold;
  font-size: 3.8rem;
  line-height: 4.2rem;
}

h2.news {
  font-size: 1.2rem;
  font-weight: bold;
}

h3.news {
  font-size: 1.1rem;
  font-weight: bold;
}

h3.domain {
  font-size: 0.8rem;
  padding-top: 0.5rem;
}

h3 .article-title {
  font-size: 1rem;
}

.cursor-pointer {
  cursor: pointer;
}

.text-small, .small {
  font-size: 0.875em;
}

.underline {
  text-decoration: underline !important;
}

.social-icon {
    width: 1rem;
}

.header-bg-no-anim {
  background-image: url('../img/header_stars_bg.png');
}

.header-bg {
  background-image: url('../img/header_stars_bg.png');
  animation: header-stars-animation 25s linear infinite;
}

@keyframes header-stars-animation {
  0% { background-position-x: 200px; background-position-y: 0px }
  100% { background-position-x: 0px; background-position-y: 200px; }

} 

.promote-color{
    fill: var(--lightpink);
  }

 /* .glow:hover .promote_color{
    fill: #ffddff;
  } */
  
.project-color{
  fill: #A1F1F1;
  fill: var(--lightcyan);
}

/* .glow:hover .project_color{
  fill: #dfffff;
} */

.glow
{
    will-change: opacity;
    transition: filter 0.4s;
}

.glow:hover
{
  filter: drop-shadow(0px 0px 20px #fffffff8);
  -webkit-filter: drop-shadow(0px 0px 20px rgba(255,255,255,0.9));
}

.buddy_color
{
  fill: #A1F1F1;
  fill: #C0FFFF;
}

.rocket-logo {
  max-height: 5rem;
}


.rocket-fire, .rocket-fire-no-anim {
  top: 2.9rem;
  right: 4.7rem;
  position: relative;
}

.rocket-fire-no-anim {
  max-height: 1.9rem;
  right: 4.75rem;
  animation: none;
  top: 2.9rem;
}

.rocket-fire {
  animation: rocket-fire-animation .5s linear alternate infinite;
}

@keyframes rocket-fire-animation {
  0% { max-height: 1.9rem}
  100% { max-height: 1.7rem; right: 4.5rem}
}

.theme-icon-container {
  border-radius: 100%;
  width: 2rem;
  height: 2rem;
  text-align: center;
  padding-top: 0.4rem;
  color: white;
}

.theme-icon-container:hover {
  background-color: var(--indigo) !important;
}

.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.rounded {
  border-radius: 1rem !important;
}

.width-2 {
  width: 2rem;
}

input.form-control.rounded {
  border-radius: 0.8rem !important;
}

.btn.btn-secondary.dropdown-toggle {
  background-color: #4565db85;
  border: 1px solid #ffffff5c;
}

.btn.btn-secondary.dropdown-toggle:hover {
  background-color: #4565dbff;
  border: 1px solid #ffffffaa;
}

a.header-link {
  width: 100%;
  display: inline-block;
  color: white;
}

a.header-link.selected {
  background-color: var(--transparent-blue);
}

.header-h1 {
  font-size: 1rem !important;
  /* padding-top: .6rem!important;
  padding-bottom: .6rem!important; */
  margin-bottom: 0 !important;
  line-height: var(--bs-body-line-height) !important;
}

.category-link, .section-link {
  white-space: nowrap;
  font-size: 1.05rem;
}

.category-link:hover
{
  text-decoration: none;
  background-color: #74c7ce;
}

.category-link:active
{
  background-color: #74d7be
}

.section-link:hover {
  background-color: var(--blue);
}

.waves_stroke_color
{
  stroke: #88eeff;
  stroke: #eef;
  stroke: #ffbbff;
}

.overflow-ellipsis {
  text-overflow: ellipsis;
  word-wrap: inherit;
  white-space: nowrap;
  overflow: hidden;
}

.overflow-md-hidden {
  overflow: hidden;
}

.search-button {
  background: none;
  border: 0;
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 1rem;
}


.article {
  min-height: 25rem;
  word-break: break-word;
}

.article h3 {
  font-size: 1.28rem !important;
  line-height: 1.65rem;
}


.article-text {
  font-family: 'TiemposText-Regular';
  font-size: 1.25rem;
  color: #303030;
  line-height: 2rem;
  word-spacing: 0.08rem;
}

.article-text p {
  margin-bottom: 1.9rem;
}

.article-text ul > li > p {
  margin-bottom: 0;
}

.article-text ul {
  margin-bottom: 1.9rem;
}

.article-text h1, .article-text h2, .article-text h3, .article-text h4, .article-text h5, .article-text h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
  font-size: 110%;
}

.article-text pre {
  font-size: 0.9rem;
  background: #2a386c;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.8rem;
  line-height: 1.2rem;
  font-weight: bold;
}


.article-text h1 { font-size: 2.2rem; }

.article-text h2 { font-size: 1.9rem; }

.article-text h3 { font-size: 1.7rem; }

.article-text h4 { font-size: 1.5rem; }

.article-text h5 { font-size: 1.4rem; }

/* .article-text h2, .article-text h3 {
  background-color: var(--darkblue);
  padding: 1rem;
  border-radius: 0.7rem;
  color: white;
  font-weight: normal;
} */

.article-text ul li {
  margin-bottom: 0.5rem;
}

.google-login:hover {
  transition: all 0.2s ease;
  transform: scale(102%);
}

.share-buttons {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.share-button {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.share-button:hover, .share-button:active, .share-button:hover {
  color: white;
  opacity: 0.89;
}

.facebook {
  background-color: #3b5998;
}

.twitter {
  background-color: #1da1f2;
}

.email {
  background-color: #ff5722;
}

.linkedin {
  background-color: #0077b5;
}

.icon-thumb, .can-vote
{
  color: #8a98d7;
  font-size: 1.2rem;
}

.icon-thumb-comment {
  color: #8a98d7;
  font-size: 1.1rem;
}

.icon-thumb-comment .fa-thumbs-down {
  padding-top: 0.37rem;
}

.icon-thumb-voted
{
  color: #FA5E67;
}

.can-vote:hover {
  color: #FA5E67;
  cursor: pointer;
  }

.can-vote:active {
    transform: translateY(-3px) scale(1.05);
}

.votes-text {
  color: #6f52be;
}

.news-thumbnail {
  max-height: 7.5rem;
}

.avatar-thumbnail-sm {
  max-height: 4rem;
  border-radius: 100%;
}

.heart {
  cursor: pointer;
  height: 50px;
  width: 50px;
  background-image:url( '../img/social/web_heart_animation.png');
  background-position: left;
  background-repeat:no-repeat;
  background-size:2900%;
  position: absolute;
  left: -0.7rem;
  top: -0.9rem;
}

.heart:hover, .heart.saved {
  background-position:right;
}

.favorite-link:hover .heart {
  background-position: right;
}

.is_animating {
  animation: heart-burst .8s steps(28) 1;
}

@keyframes heart-burst {
  from {background-position:left;}
  to { background-position:right;}
}

.save-link-text {
  position: absolute;
  right: -3.6rem;
  top: 0rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.link-saved-text {
  color: #e2264dcc;
  right: -4.1rem;
}

a.category-button {
  font-size: 0.75rem;
  background-color: var(--blue);
  text-transform: uppercase;
}

a.tag-button {
  font-size: .75rem;
  color: #637487 !important;
  background-color: white !important;
  border-radius: 0.4rem;
  border: 1px solid #ced4da !important;
  }

a.tag-button:hover {
  background-color: #808b97 !important;
  border: 1px solid #808b97 !important;
  color: white !important;
  transition: all .3s ease;
}

.facebook
{
  background-color: rgb(59, 89, 152);
}

.twitter
{
  background-color: rgb(85, 172, 238);
}

.bluesky {
  background-color: rgb(0, 133, 255);
}

.article-img {
  max-height: 10rem;
  overflow: hidden;
}

@keyframes loading-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading_spinner {
  display: inline-block;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--indigo);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: loading-spin 1.2s linear infinite;
}

.active > .page-link, .page-link.active {
  background-color: var(--indigo);
}

a.page-link {
  color: var(--indigo);
}

.file-button {
  display: block;
  position: relative;
  color: #ffffff;
  font-size: 1.1em;
  text-align: center;
  width: 100%;
  padding: 1rem;
  border-radius: 0.3em;
  margin: 0;
  cursor: pointer;
}

.banner-selected-image {
  object-fit: contain;
  max-height: 20rem;
}

#image_zone.active {
  border: 0.2rem dashed var(--indigo);
  border-radius: 2rem;
  background-color: var(--verylightblue);
}

.banner-imagefile {
  object-fit: contain;
  max-height: 8rem;
}

.banner:hover img {
  /* box-shadow: 0 0 10px 0 #5fbb6980;
  transition: all 0.3s ease; */
}

.featured-star {
  width: 4rem;
  position: absolute;
  top: -1.5rem;
  right: -0.9rem;
  transform: rotateZ(11deg);
  z-index: 10;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--darkblue);
  --bs-tooltip-color: white;
}

.follow-icon {
  height: 1rem;
}

#following_button:hover {
  background-color: var(--verylightgrey);
  color: var(--indigo);
  box-shadow: 1px 1px var(--indigo);
}

.fw-semibold {
  font-family: Arial, Helvetica, sans-serif;
}

.form-check-input:checked {
  /* background-color: #39a730; */
  background-color: var(--springgreen) !important;
  /* border-color: #0d90fc; */
  border-color: var(--darkgreen);
}

.modal-header, .modal-body {
  color: black;
}

.thread {
  border-left: 1px dotted grey;
  padding-left: 1.5rem !important;
}

.user-comment {
  border: 2px solid var(--red);
}

.btn-forum-comments {
  background-color: #e6e6e6;
  color: black;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0.7rem;
}

.btn-forum-comments:hover, .btn-forum-comments:active {
  background-color: var(--indigo);
  color: white;
}

footer ul > li {
  background-color: transparent !important;
  color: white !important;
  border: 0 !important;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: .5;
  }
}

/* Estilos para el modal de login */
#loginModal .modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#loginModal .modal-header {
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 1rem 1rem 0 0;
}

#loginModal .modal-body {
  padding: 2rem;
}

#loginModal .form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 0.2rem rgba(69, 101, 219, 0.25);
}

#loginModal .btn-primary {
  background-color: var(--indigo);
  border-color: var(--indigo);
  transition: all 0.3s ease;
}

#loginModal .btn-primary:hover {
  background-color: var(--darkblue);
  border-color: var(--darkblue);
  transform: translateY(-1px);
}

#loginModal .btn-success {
  background-color: var(--springgreen);
  border-color: var(--springgreen);
  transition: all 0.3s ease;
}

#loginModal .btn-success:hover {
  background-color: var(--darkgreen);
  border-color: var(--darkgreen);
  transform: translateY(-1px);
}

#loginModal .google-login {
  transition: transform 0.2s ease;
}

#loginModal .google-login:hover {
  transform: scale(1.05);
}

#loginModal .field-error {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

#loginModal .alert {
  border-radius: 0.5rem;
  border: none;
}

#loginModal .spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Animación de entrada del modal */
#loginModal.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

#loginModal.modal.show .modal-dialog {
  transform: none;
}


/* MEDIA QUERIES */

@media screen and (min-width: 760px) and (max-width: 1024px) {
  h1.logo {
    font-size: 2rem;
    margin-right: 0.5rem;
    margin-top: 1rem;
  }
}

@media screen and (max-width: 760px) {

  html, body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .article-text h2 {
    font-size: 1.5rem;
  }

  .overflow-md-hidden {
    overflow: unset !important;
  }

  .header-bg { background-image: none; }

  h1.logo {
    font-size: 2rem;
    margin-right: 0.5rem;
  }

  .rocket-logo { max-height: 3rem; }

  .rocket-fire, .rocket-fire-no-anim {
    max-height: 1.4rem;
    right: 3.2rem;
    animation: none;
    top: 1.8rem;
  }
  /* .rocket-fire, .rocket-fire-no-anim {
    top: 2.9rem;
    right: 4.7rem;
    position: relative;
  }
  
  .rocket-fire-no-anim {
    max-height: 1.4rem;
    right: 3.2rem;
    animation: none;
    top: 1.8rem;
  } */

  .header-bg {
      background-image: url('../img/header_stars_bg.png');
      animation: none;
  }

  h1 {
    font-size: 1.7rem;
  }

  .dropdown-menu[data-bs-popper] {
    right: 0;
    left: initial;
  }

  .article-text {
    font-family: 'TiemposText-Regular';
    font-size: 1.05rem;
    color: #222;
    line-height: 1.75rem;
    word-spacing: 0.08rem;
  }
  
  .article-text p {
    margin-bottom: 1.9rem;
  }
  
  /* Ajustes del modal en móvil */
  #loginModal .modal-dialog {
    margin: 1rem;
  }
  
  #loginModal .modal-body {
    padding: 1.5rem;
  }
  
  #loginModal .google-login {
    width: 10rem !important;
  }
}

