/* body */
html {
  scroll-behavior: smooth;
}
body {
  padding-top: 70px;
}
.bg-personalizado {
  background-color: #192646 !important;
}

/* navbar */
.navbar {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #FF4C61 !important; 
}

.nav-link.active {
  color: #dc3545 !important; /* rojo */
}


/* sobremi */
.title-Section {
  color: #FF4C61 !important; 
}
.color-base {
  color: #e9666f    !important; 
}


/* sectons */
section {
  scroll-margin-top: 80px;
  padding-bottom: 100px;
}

#proyectos {
  min-height: 90vh;
}
#certificados {
  min-height: 80vh;
}

#habilidades {
  min-height: 60vh;
}

/* experiencia */
#experiencia {
  min-height: 80vh;
}

.timeline-color{
  background-color: #FF4C61  !important;
}
.timeline-border{
  border-color: #FF4C61  !important;
}

/* certificados */
.card-certificado {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  /* No height fijo */
}

.card-certificado:hover {
  transform: scale(1.03);
}

.img-certificado {
  transition: transform 0.3s ease;
  width: 100%;       /* Se ajusta al ancho del contenedor */
  height: auto;      /* Altura automática proporcional */
  position: relative;
  z-index: 1;
  object-fit: unset; /* o simplemente sacá esta línea */
}

.card-certificado:hover .img-certificado {
  transform: scale(1.05);
}

.overlay-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  z-index: 2; /* el overlay está por encima de la imagen */
  transition: opacity 0.3s ease;
}

.card-certificado:hover .overlay-title {
  opacity: 1;
}
/* btn sobre mi */
.btn-background{
  background-color: #FF4C61 !important;
}
.btn-background:hover{
  /* background-color: #C62828 !important; */
    transform: scale(1.15);
  transition: all 0.3s ease;
}


/* carrousel */

.carousel-item {
  min-height: 500px;
}

.card img {
  object-fit: cover;
  max-height: 400px;
}

.card .card-body {
  padding: 1rem 1.25rem;
  background-color: #17213a !important; /* Fondo oscuro */
  /* background-color: #111827 !important; */
}

.card-img-top {
  object-fit: cover;
  max-height: 300px;
  width: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #111827;
  border-radius: 50%;
}

/* botones carrousel */
.btn-carrousel {
  border-radius: 10px;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.btn-demo {
  background-color: #f72585 !important;
  padding: 10px 20px;
}


.btn-demo:hover {
  background-color: #d61c6f !important;
  box-shadow: 0 4px 10px rgba(247, 37, 133, 0.4);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.btn-custom {
  border: 2px solid #C62828;
  border-radius: 10px;
  padding: 10px 20px;
  background-color: transparent; /* Fondo vacío */
  color: #ffff; /* Texto del mismo color del borde */
  cursor: pointer;
  transition: all 0.3s ease; /* Transición suave */
}

.btn-custom:hover {
  background-color: #C62828; /* Fondo cuando pasa el mouse */
  color: white; /* Texto blanco cuando está en hover */
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.4);
  transform: scale(1.05);
}

.btn-custom:not(:disabled):hover {
  background-color: #C62828;
  color: white;
  box-shadow: 0 4px 10px #C62828;
  transform: scale(1.05);
}

/* Estilo cuando está deshabilitado */
.btn-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: transparent;
  color: #C62828;
}

.btn-hover-effect:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

button.btn-carrousel.btn-custom {
  background-color: transparent; /* o un color oscuro, ej. #111827 */
  color: white;
  border: 2px solid #C62828;
  border-radius: 10px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

button.btn-carrousel.btn-custom:hover {
  background-color: #C62828;
  color: white;
  box-shadow: 0 4px 10px #C62828;
  transform: scale(1.05);
}
/* experiencia */
.timeline {
  position: relative;
  margin-left: 30px;
  border-left: 2px solid; /* Línea vertical */
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 17px;
  width: 30px;
  height: 30px;
  background-color: #3b82f6; /* Punto azul */
  border-radius: 50%;
  border: 3px solid #0f172a; /* Fondo detrás para "cortar" la línea */
}

.timeline-content {
  border: 1px solid #4cc9f0;
  border-radius: 8px;
  padding: 20px;
  color: #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content .date {
  color: #38bdf8;
  font-size: 0.9rem;
}

.timeline-content .description {
  font-size: 0.85rem;
  color: #d1d5db;
}

/* formulario */

.placeholder-custom::placeholder {
  color: #ffff !important;
}
