:root {
  --primary-color: #4f46e5;
  --dark-color: #1e293b;
  --light-color: #f1f5f9;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --light-bg: #f8fafc;
  --white: #ffffff;
  --accent-color: #06b6d4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  backdrop-filter: blur(15px) !important;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.container,
.container-fluid {
  background: transparent !important;
}

/* ====================  NAVBAR STYLES ==================== */
.profile-pic {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
}

/* Estilo original para Mobile */
@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }

  .nav-link {
    font-weight: 500;
    color: #2c3e50 !important;
    margin: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    text-align: center !important;
    padding: 10px 0 !important;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: linear-gradient(135deg, #667eea 0%, #2d5595 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 60px;
  }
}

/* Estilo original para desktop */
@media (min-width: 992px) {
  .nav-link {
    font-weight: 500;
    color: #2c3e50 !important;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #667eea 0%, #2d5595 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 80%;
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  background: url("img/wallpaper.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-image-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 50px;
}

.hero-image {
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.icon-blur {
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  animation: slideInUp 1s ease-out;
}

.hero .lead {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECCIONES GENERALES ==================== */
.section-padding {
  padding: 100px 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--gradient);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ==================== ABOUT SECTION ==================== */
#about {
  background: var(--light-bg);
  position: relative;
}

.about-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
  border: 3px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 30px;
}

.about-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

/* ==================== Experience Section ==================== */
#experience {
  background: var(--white) !important;
  position: relative;
}

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.experience-description ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 0 0;
}

.experience-description ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: #666;
  font-size: 0.9rem;
}

.experience-description ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.experience-item {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-item:hover::before {
  opacity: 1;
}

.experience-item:hover {
  transform: translateY(-2px);
  border-color: #e8e8e8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
}

.company-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.experience-item:hover .company-logo {
  transform: scale(1.02);
}

.experience-info {
  flex: 1;
  min-width: 0;
}

.experience-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 4px;
  line-height: 1.3;
}

.company-name {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 0.85rem;
}

.meta-item i {
  color: var(--primary-color);
  font-size: 0.8rem;
  opacity: 0.8;
}

.experience-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-top: 0;
}

.experience-description p {
  margin-bottom: 8px;
}

.experience-description strong {
  color: var(--dark-color);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .experience-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .company-logo {
    width: 100px;
    height: 65px;
  }

  .experience-item {
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .experience-info h3 {
    font-size: 1.1rem;
  }

  .experience-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==================== TECHNOLOGIES SECTION ==================== */
#technologies {
  background-color: var(--light-bg) !important;
  background-image: none !important;
  position: relative;
  padding: 100px 0;
}

#technologies::before,
#technologies::after {
  display: none !important;
  content: none !important;
}

#technologies .container {
  position: relative;
  z-index: 1;
}

#technologies .col-md-3 {
  margin-bottom: 2rem;
}

#technologies i {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  transform: scale(1.5);
}

#technologies i:hover {
  transform: scale(1.8);
}

#technologies h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0.6rem;
}

#technologies p {
  color: #666;
  font-size: 0.9rem;
}

/* ==================== DEVOPS SECTION ==================== */
#devops {
  background-color: var(--light-bg) !important;
  background-image: none !important;
  position: relative;
  padding: 100px 0;
}

#devops::before,
#devops::after {
  display: none !important;
  content: none !important;
}

#devops .container {
  position: relative;
  z-index: 1;
}

#devops .col-md-3 {
  margin-bottom: 2rem;
}

#devops i {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  transform: scale(1.5);
}

#devops i:hover {
  transform: scale(1.8);
}

#devops h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0.6rem;
}

#devops p {
  color: #666;
  font-size: 0.9rem;
}

/* DEVOPS ICON COLORS */
#devops .icon-git {
  color: #f05032;
}
#devops .icon-docker {
  color: #2496ed;
}
#devops .icon-powershell {
  color: #0078d7;
}
#devops .icon-azure {
  color: #00a4ef;
}
#devops .icon-aws {
  color: #ff9900;
}
#devops .icon-linux {
  color: #fcc624;
}

/* TECHNOLOGIES ICON COLORS */
.icon-laravel {
  color: #ff2d20;
} /* rojo Laravel */
.icon-android {
  color: #3ddc84;
} /* verde Android */
.icon-angular {
  color: #dd0031;
} /* rojo Angular */
.icon-sql {
  color: #b7b5b5;
} /* blanco MySQL/APIs */
.icon-salesforce {
  color: #1798c1;
} /* azul claro Salesforce */
.icon-microsoft {
  color: #0078d4;
} /* azul Microsoft/.NET */
.icon-java {
  color: #5382a1;
} /* azul Java */
.icon-python {
  color: #306998;
} /* azul Python */
.icon-html5 {
  color: #e34f26;
} /* naranja HTML5 */
.icon-git {
  color: #f05032;
} /* naranja Git */
.icon-ai {
  color: #7c3aed;
} /* púrpura IA */
.icon-csharp {
  color: #239120;
} /* verde C# */

/* ==================== PORTFOLIO SECTION ==================== */
#portfolio {
  padding: 100px 0;
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  position: relative;
}

.portfolio-container {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-img-container {
  position: relative;
  width: 40%;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
  display: block;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.9;
}

.portfolio-link {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-link:hover {
  background: var(--dark-color);
  color: white;
  transform: translateY(-3px);
}

.portfolio-content {
  width: 60%;
  padding: 30px;
}

.portfolio-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.portfolio-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.portfolio-tech {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tech-badge {
  background: rgba(214, 221, 254, 0.51);
  color: rgba(7, 42, 199, 0.51);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== LANGUAGES ==================== */
#languages {
  background-color: var(--light-bg) !important;
  position: relative;
  padding: 100px 0;
}

.languages-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.languages-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.languages-item {
  background-color: transparent;
  overflow: hidden;
  margin-bottom: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}

.languages-item:hover {
  transform: translateY(-10px);
  background-color: transparent;
}

/* ==================== CONTACT SECTION ==================== */
#contact {
  background: var(--white) !important;
}

.card-custom {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  background: white;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.social-icon {
  font-size: 2.5rem;
  margin: 0 10px;
}

/* Colores específicos por plataforma */
.linkedin {
  color: #0a66c2;
}

.github {
  color: #333;
}

.email {
  color: #d44638;
}

.download {
  color: #6c757d;
}

.btn-linkedin {
  background: #0077b5;
  color: white;
  border-radius: 30px;
  padding: 12px 25px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-linkedin:hover {
  background: #005983;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
}
.hidden-message {
  display: none;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 50px 0 30px;
}

.social-links a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: white;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  margin: 0 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: white;
}

/* ==================== ANIMACIONES ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .portfolio-item {
    flex-direction: column;
  }
  .portfolio-img-container,
  .portfolio-content {
    width: 100%;
  }
  .portfolio-img {
    height: 200px;
  }
  .hero-image-container {
    padding-right: 0;
    justify-content: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .lead {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .about-img {
    width: 200px;
    height: 200px;
  }
  .portfolio-content {
    padding: 20px;
  }
  .portfolio-title {
    font-size: 1.4rem;
  }
  .hero-image i {
    font-size: 8rem !important;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  .tech-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

.btn-hero {
  background: linear-gradient(90deg, #6a82fb 0%, #56ccf2 100%);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover,
.btn-hero:focus {
  background: linear-gradient(90deg, #56ccf2 0%, #667eea 100%);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.22);
}

.btn-hero.btn-github {
  background: linear-gradient(90deg, #232526 0%, #485563 100%);
  color: #fff !important;
}

.btn-hero.btn-github:hover,
.btn-hero.btn-github:focus {
  background: linear-gradient(90deg, #485563 0%, #232526 100%);
}