    /* Estilos generales */

    .lato-thin {
      font-family: "Lato", serif;
      font-weight: 100;
      font-style: normal;
    }
    
    .lato-light {
      font-family: "Lato", serif;
      font-weight: 300;
      font-style: normal;
    }
    
    .lato-regular {
      font-family: "Lato", serif;
      font-weight: 400;
      font-style: normal;
    }
    
    .lato-bold {
      font-family: "Lato", serif;
      font-weight: 700;
      font-style: normal;
    }
    
    .lato-black {
      font-family: "Lato", serif;
      font-weight: 900;
      font-style: normal;
    }
    
    .lato-thin-italic {
      font-family: "Lato", serif;
      font-weight: 100;
      font-style: italic;
    }
    
    .lato-light-italic {
      font-family: "Lato", serif;
      font-weight: 300;
      font-style: italic;
    }
    
    .lato-regular-italic {
      font-family: "Lato", serif;
      font-weight: 400;
      font-style: italic;
    }
    
    .lato-bold-italic {
      font-family: "Lato", serif;
      font-weight: 700;
      font-style: italic;
    }
    
    .lato-black-italic {
      font-family: "Lato", serif;
      font-weight: 900;
      font-style: italic;
    }
    

    body {
      font-family: 'Lato';    line-height: 1.6;    color: #343a40;
      padding-top: 70px; /* Ajusta este valor según la altura de tu .navbar */
      font-size: 0.9rem;
      text-align: justify;
    }

   .navbar {
    background-color: #343a40;
    position: fixed;
    top: 0; /* Fija la barra en la parte superior */
    left: 0; /* Asegura que se alinee al borde izquierdo */
    width: 100%; /* Ocupa todo el ancho */
    z-index: 1000; /* Asegura que quede por encima de otros elementos */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Añade sombra para destacar */
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    /* Elimina position: fixed para que no se comporte como un elemento independiente */
}

.nav-item {
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin-left: 10px;
}

.navbar-nav .nav-link:hover {
    color: #859eb8 !important;
}

.cv-all{

  padding: 10px 50px 10px;
  background-image: url("https://raw.githubusercontent.com/cristina-radin/cristinaradin/main/images/background.jpg");
  background-size: cover; /* Hace que la imagen de fondo sea más grande */
  background-repeat: no-repeat;
  color: white;
  with: 100%;  
  height: 100%;

}
    .profile-section {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 50px 20px 30px;
      background-image: url("https://raw.githubusercontent.com/cristina-radin/cristinaradin/main/images/background.jpg");
      background-size: cover; /* Hace que la imagen de fondo sea más grande */
      background-repeat: no-repeat;
      background-position:  left center; /* Desplaza la imagen a la izquierda */
      color: white;
      height: 500px;
      padding-left: 10%; /* Ajusta este valor según necesites */

    }

    .profile-section img {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      margin-right: 50px;
      margin-left: 50px;
      border: 3px solid white;
      object-fit: cover;
    }
    .profile-section .info {
      max-width: 700px; /* Mantiene un límite fijo */
      min-width: 400px; /* Evita que sea demasiado estrecho */      
      text-align: justify;
      font-size: 1.1rem;
      padding-left: 10vw; /* En lugar de porcentaje */
    }

    .section-title {
      text-align: center;
      margin-top: 30px;
      margin-bottom: 20px;
    }
    section.bg-dark {
      background-color: #343a40;
      color: white;
      padding: 50px 20px;
    }
    section.bg-light {
      background-color: #ffffff !important;
      padding: 50px 20px;
    }
    footer {
      background-color: #343a40;
      color: white;
      text-align: center;
      padding: 0.5px 0;
    }
    footer a {
      color: #82a0bd;
      text-decoration: none;
    }
    footer a:hover {
      text-decoration: underline;
    }
    #contact a {
      margin: 0 10px;
      color: #343a40;
      transition: color 0.3s ease;
      text-decoration: none;
    }
    #contact a:hover {
      color: #0066e1 !important;
    }
 /* Estilos para las publicaciones */

  .years-links a {
    color: #6c757d;  /* Gris más suave */
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9rem;  /* Tamaño más pequeño */
    font-weight: 500;
  }

  .years-links a:hover {
    color: #0066e1;  /* Color azul al pasar el ratón */
  }

  /* Diseño de publicaciones */

    /* Estilos para las publicaciones */
.publication-year {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: right; /* Centra las publicaciones */

}

/* Diseño de publicaciones */
.publication-item {
  display: flex;
  flex-direction: row;
 justify-content: justify; /* Centra el bloque completo */
  text-align: justify; /* Justifica el texto dentro de la publicación */
 margin-left: 10px;

}

    .publication-item img {
    width: 150px; /* Ajusta según el tamaño que quieras */
    height: 120px; /* Mantén el tamaño cuadrado o proporcional */
    object-fit: cover; /* Recorta y ajusta para mantener proporción */
    border-radius: 5px; /* Redondeo opcional */
    margin-right: 60px; /* Espaciado a la derecha de la imagen */
}


.publication-item h5, .publication-item p, .publication-item a {
  margin: 0; /* Elimina márgenes extra */
  text-align: justify; /* Centra el texto */
  max-width: 650px; /* Opcional: limita el ancho máximo */
  font-size: 0.9rem;
}


/* Centrado de la fila de publicaciones */
.row {
  display: flex;
  justify-content: justify;
}
  .publication-item a:hover {
    color: white !important;
    background-color: #343a40 !important;
          align-items: justify;
      justify-content: justify;
  }

  /* Diseño del título de cada año */
  .publication-year-title {
    font-size: 1.1rem;
    color: #5f6a6a;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: right; /* Alinea el texto a la derecha */

  }

  /* Cada grupo de publicaciones */
  .publication-year {
   position: relative; /* Esto es necesario para posicionar el año */
    margin-bottom: 30px;
  }
  /* Efecto al pasar el ratón sobre el botón */
  .publication-item a:hover {
    color: white !important;
    background-color: #343a40 !important;
  }




    .open-to-work {
      font-size: 24px;
      font-weight: bold;
      color: #859eb8;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 20px; /* Add margin to prevent overlapping */
    }

  .profile-content {
    margin-top: 50px; /* Asegura que el contenido no se solape con la insignia */
    text-align: justify; /* Justifica el texto principal */
    padding: 20px;
    position: relative;
  }
  

  .theme-button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: white; /* Cambia el color según tu navbar */
    transition: color 0.3s ease;
    margin-left: 20px; /* Espaciado hacia la derecha */

  }
  
  .theme-button:hover {
    color: #859eb8; /* Color al pasar el ratón */
  }
  



/* 🌞 Modo Claro (Añadido, sin tocar el resto) */
body.light-mode {
  background-color: white;
  color: #343a40;
}
body.light-mode .navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: #343a40 !important;
}


body.light-mode section.bg-dark {
  background-color: #ffffff !important;
  color: #343a40;
}

body.light-mode section.bg-light {
  background-color: #f8f9fa !important;
  color: #343a40;
}



body.light-mode .navbar, 
body.light-mode footer {
  background-color: white;
  color: #343a40;
}

body.light-mode .navbar-nav .nav-link {
  color: #343a40 !important;
}

body.light-mode .navbar-nav .nav-link:hover {
  color: #0066e1 !important;
}

body.light-mode .theme-button {
  color: #343a40;
}

body.light-mode .theme-button:hover {
  color: #0066e1;
}
.news-carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-wrapper {
  overflow: hidden;
  width: 100%;
}

.news-container {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.news-item {
  min-width: 300px; /* ancho fijo para carrusel */
  flex-shrink: 0;
  opacity: 0.6;
  transform: scale(0.8);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-item.active {
  opacity: 1;
  transform: scale(1);
}

/* FLECHAS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}
.carousel-btn:hover { background-color: rgba(0,0,0,0.8); }

.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }
