html {
  scroll-behavior: smooth; /* desplazamiento suave */
}

body.portfolio-body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.section-title {
  font-weight: bold;
  margin-bottom: 20px;
}

.portfolio-navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  cursor: pointer;
}

.portfolio-hero {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  padding: 80px 20px;
}

.portfolio-btn {
  border-radius: 30px;
  padding: 10px 25px;
}

.portfolio-section {
  padding: 60px 0;
}

.skills-list li {
  background: white;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* PROYECTOS */
.project-card {
    position: relative;
    z-index: 1;
}
.project-card .card-body {
    position: relative;
    z-index: 2;
}

.project-card::after {
    pointer-events: none;
}

.project-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block; /* evita espacios raros */
  position: relative;
  z-index: 1;
}


.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card .card-body {
  padding: 18px;
}

.project-card .card-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.project-card .card-text {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Etiquetas */
.project-tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 2px 5px 2px 0;
    transition: all 0.3s ease;
}

/* Hover elegante */
.tag:hover {
    background: #0d6efd;
    color: #fff;
}

/* CONTACOT */
.contact-box {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-footer {
  background-color: #212529;
}

/* EXPERIENCIA TIMELINE */
.experience-timeline {
  position: relative;
  margin-left: 20px;
  border-left: 3px solid #0d6efd;
  padding-left: 20px;
}

.experience-item {
  position: relative;
  margin-bottom: 40px;
}

.experience-dot {
  position: absolute;
  left: -11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: #0d6efd;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.experience-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.experience-content:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.experience-date {
  display: inline-block;
  font-size: 0.85rem;
  color: white;
  background: #0d6efd;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.experience-tags span {
  display: inline-block;
  background: #e9ecef;
  padding: 5px 10px;
  margin: 5px 5px 0 0;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* EDUCACION CARDS */
.education-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.education-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.education-icon {
  font-size: 30px;
  position: absolute;
  top: -15px;
  right: 20px;
  background: #0d6efd;
  color: white;
  padding: 10px;
  border-radius: 50%;
}

.education-school {
  display: block;
  font-weight: bold;
  margin-top: 5px;
}

.education-date {
  display: inline-block;
  margin: 10px 0;
  background: #e9ecef;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* HABILIDADES PRO */
.skill-box {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* COMPETENCIAS */
        .competence-box {
            background: white;
            padding: 15px 20px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            margin-bottom: 15px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-left: 5px solid #0d6efd;
        }

        .competence-box:hover {
            transform: translateX(8px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .competence-box h6 {
            margin-bottom: 5px;
            font-weight: bold;
        }

        .competence-box p {
            font-size: 0.9rem;
            margin: 0;
        }