
body {
    background-color: #110f16 !important;
  }


.articulo-info {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* O ajusta a lo que necesites */
}

.navbar-scroll {
  background-color: transparent !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
  background-color: #121114 !important; /* o blanco si prefieres */
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand,
.navbar-scrolled .fa-bars {
  color: white !important;
}

/* Estilo para el logo dentro del navbar */
.navbar-brand img {
  max-width: 60px; /* Tamaño máximo del logo */
  height: auto; /* Mantiene la proporción del logo */
}

/* Estilo del navbar en pantallas pequeñas */
@media (max-width: 991px) {
  /* Cambiar el color de fondo del navbar a negro */
  .navbar-scroll {
    background-color: #121114 !important; /* Fondo negro */
  }

  /* Cambiar el color del texto y los iconos a blanco */
  .navbar-scroll .navbar-brand,
  .navbar-scroll .nav-link,
  .navbar-scroll .fa-bars {
    color: #fff !important;
  }

  /* Usar flexbox para apilar elementos uno debajo del otro */
  .navbar-nav {
    display: flex;
    flex-direction: column; /* Alinea los elementos verticalmente */
    align-items: center; /* Centra los elementos */
    margin-top: 10px; /* Añade un poco de espacio entre el logo y los enlaces */
  }

  /* Ajustar el tamaño del logo en pantallas pequeñas */
  .navbar-brand img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

/* Navbar por defecto */
.navbar-brand {
  letter-spacing: 3px;
  font-size: 2rem;
  font-weight: 500;
}

/* Estilo cuando el navbar está scrolled */
.navbar-scroll .navbar-brand,
.navbar-scroll .nav-link,
.navbar-scroll .fa-bars {
  color: #fff;
}

.navbar-scroll {
  box-shadow: none;
}

/* Cuando el navbar está scrolleado */
.navbar-scrolled {
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link,
.navbar-scrolled .fa-bars {
  color: #4f4f4f;
}

.navbar-scrolled {
  background-color: #fff;
}

/* Otros estilos para responsive */
@media (max-width: 450px) {
  #intro {
    height: 950px !important;
  }
}

@media (min-width: 550px) and (max-width: 750px) {
  #intro {
    height: 1100px !important;
  }
}

@media (min-width: 800px) and (max-width: 990px) {
  #intro {
    height: 600px !important;
  }
}

/* Ajuste de tamaño de la fuente en el intro */
.display-2 {
  font-weight: 500 !important;
  letter-spacing: 10px;
}

@media (min-width: 1600px) {
  .display-1 {
    font-size: 8rem;
  }
}

/* Titulos */
.titulo-articulo {
  font-weight: 700 !important;
  letter-spacing: 10px;
  font-size: 2.5rem;
  color: #f6d1fd;
  text-shadow: #ffffff;
}

.escribir{
  position: relative;
  width: 24em;
  margin: 20px auto;
  border-right: 2px solid rgba(255,255,255,.75);

  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);    
}
/* Animation */
.escribir-animacion {
animation: 
  escribirAnimacion 5s steps(50) 1s 1 normal both, 
  parapadeoEscribir 500ms steps(50) infinite normal;
}
@keyframes escribirAnimacion {
from { width: 0; }
to { width: 60%; }
}
@keyframes parapadeoEscribir{
from { border-right-color: rgba(255,255,255,.75); }
to { border-right-color: transparent; }
}



/* C A R D */

.colordark {
  background: #16160f;
  padding-top: 100px; /* o el alto real de tu navbar */
  min-height: 100vh;
}

/* Cards */
.postcard {
  flex-wrap: wrap;
  display: flex;
  box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
  margin: 0 0 2rem 0;
  overflow: hidden;
  position: relative;
  color: #ffffff;

  &.colordark {
    background-color: #18151f;
  }

  .small {
    font-size: 80%;
  }

  .card_titulo {
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
    font-size: 3.75rem;
  }

  .card_img {
    width: 100%;
    max-height: auto;
    object-fit: cover;
    position: relative;
    border-top-left-radius: 25px;
  }

  .card_separador {
    width: 50px;
    height: 10px;
    margin: 10px 0;
    border-radius: 0px;
    background-color: #6c4b73;
    transition: width 0.2s ease;
  }

  .card_articulo {
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .card_parrafo {
    overflow: hidden;
    text-align: justify;
    height: 100%;
    width: 90%;
    white-space: pre-line;
    font-size: 22px;
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(-70deg, #424242, transparent 50%);
    opacity: 1;
    border-radius: 0px;
  }

  &:hover .card_separador {
    width: 300px;
  }
}

@media screen and (min-width: 769px) {
  .postcard {
    flex-wrap: nowrap;
    align-items: stretch;

    .card_titulo {
      font-size: 2.5rem;
    }

    .card_img {
      flex: 0 0 40%;
      max-width: 40%;
    }
    .card_articulo {
      flex: 0 0 60%;
    }
    

    &:hover .card_img {
      transform: scale(1.1);
    }

    &:nth-child(2n + 1) {
      flex-direction: row;
    }

    &:nth-child(2n + 0) {
      flex-direction: row-reverse;
    }

    &:nth-child(2n + 1) .card_articulo::before {
      left: -12px !important;
      transform: rotate(4deg);
    }

    &:nth-child(2n + 0) .card_articulo::before {
      right: -12px !important;
      transform: rotate(-4deg);
    }
  }
}

@media screen and (min-width: 1024px) {
  .card_articulo {
    padding: 2rem 3.5rem;
  }

  .card_articulo:before {
    content: "";
    position: absolute;
    display: block;
    top: -20%;
    height: 130%;
    width: 55px;
  }
}

/* ----------------------------------------- */
/* ----------------------------------------- */

/* Footer */
footer {
  position: relative;
  margin-top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #121114;
  text-align: center;
  padding-top: 2%;
  padding-bottom: 2%;
}

.footer p {
  color: rgb(213, 212, 212);
}
