/* Estilos generales */
html {
  scroll-behavior: smooth;
  height: auto;
}

body {
  font-family: "Poppins", "Arial", sans-serif;
  background: #040d21;
  color: #fff;
  overflow-x: hidden;
}

/* Secciones visibles sin bloquear contenido */
section {
  position: relative;
  z-index: 1;
  background-color: transparent;
}

/* Cards visibles */
.card {
  background-color: rgba(13, 25, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Textos mejorados */
h3,
h4,
p,
.text-light-emphasis {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* Corrección de fondos que bloqueaban contenido */
.bg-dark,
.bg-dark-opacity-25,
.bg-dark-opacity-75 {
  background-color: transparent !important;
}

/* Cards oscuras */
.card.bg-dark {
  background-color: rgba(18, 29, 43, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==== NUEVOS ESTILOS PROFESIONALES ==== */

/* Perfil con indicador de estado - Imagen más grande */
.profile-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image-container .profile-image {
  width: 160px !important;
  height: 160px !important;
  object-fit: cover;
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  box-shadow: 0 4px 24px 0 rgba(13,110,253,0.15);
}

.profile-status-indicator {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 22px;
  height: 22px;
  background: #28d85a;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #28d85a44;
  z-index: 2;
}

/* Animación de escritura */
.typing-container {
  display: inline-block;
  position: relative;
  min-height: 1.2em;
  white-space: nowrap;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4s steps(22, end) infinite;
}

.typing-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: #007bff;
  font-weight: bold;
}

@keyframes typing {
  0%, 20% { width: 0; }
  30%, 70% { width: 100%; }
  80%, 100% { width: 0; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Badges de expertise */
.expertise-badges .badge {
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.expertise-badges .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Email mejorado */
.email-container {
  max-width: 300px;
}

.email-btn {
  position: relative;
  padding: 12px 20px;
  border: 2px solid #007bff;
  background: rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.email-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.email-btn:hover::before {
  left: 100%;
}

.email-btn:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.email-copy-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-btn:hover .email-copy-icon {
  opacity: 1;
}

.copy-tooltip {
  background: #28a745;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  transform: translateX(-50%) translateY(-100%);
  left: 50%;
  top: -10px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-120%);
}

.email-modal {
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.email-option {
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.email-option:hover {
  background: rgba(0, 123, 255, 0.1);
  transform: translateX(5px);
}

/* Tecnologías modernas */
.tech-card-main {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tech-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tech-card-main:hover::before {
  transform: scaleX(1);
}

.tech-card-main:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.tech-icon-main {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tech-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tech-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.tech-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #00ff88);
  border-radius: 2px;
  transition: width 1s ease;
}

.tech-category-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.8), rgba(18, 29, 43, 0.8));
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
}

.tech-category-title {
  color: #007bff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-item-modern:hover {
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-5px);
}

.tech-item-modern img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.tech-item-modern span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.platform-badge:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.platform-badge img {
  width: 24px;
  height: 24px;
}

.platform-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

/* Proyectos mejorados */
.project-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
}

/* Modales de proyectos */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.98) !important;
  backdrop-filter: blur(15px);
}

.modal-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 123, 255, 0.3);
  background: rgba(4, 13, 33, 0.98) !important;
}

.modal-dialog {
  z-index: 1060;
}

.project-gallery img {
  height: 300px;
  object-fit: cover;
}

.project-details {
  padding-left: 2rem;
}

.badge.bg-danger { background-color: #dc3545 !important; }
.badge.bg-info { background-color: #17a2b8 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-purple { background-color: #6f42c1 !important; }

/* Navbar blur */
.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Tabs de proyectos */
.proyectos-tab {
  background: rgba(13, 25, 48, 0.85);
  color: #fff;
  border: 2px solid #007bff;
  border-radius: 24px 24px 0 0;
  padding: 12px 32px;
  margin: 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  box-shadow: 0 2px 12px rgba(0,123,255,0.08);
}
.proyectos-tab.active, .proyectos-tab:hover {
  background: linear-gradient(90deg, #007bff, #00ff88);
  color: #fff;
  border-color: #00ff88;
  box-shadow: 0 4px 24px rgba(0,123,255,0.18);
  transform: translateY(-2px) scale(1.04);
}
.proyectos-lista {
  animation: fadeInUp 0.5s;
}
.d-none {
  display: none !important;
}

/* Tooltip del botón */
.chatbot-tooltip {
  position: absolute;
  bottom: 0;
  right: 70px;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 12px 32px 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 270px;
  white-space: normal;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: flex-start;
}

.chatbot-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.95);
}

.chatbot-tooltip-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chatbot-tooltip-close:hover {
  opacity: 1;
}

/* Ocultar tooltip si no tiene la clase visible */
.chatbot-tooltip:not(.chatbot-tooltip-visible) {
  display: none;
}

/* ==== CHATBOT ESTILOS ==== */

.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: "Poppins", sans-serif;
}

/* Botón del chatbot */
.chatbot-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3, #004085);
}

.chatbot-button i {
  color: white;
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Tooltip del botón */
.chatbot-tooltip {
  position: absolute;
  bottom: 0;
  right: 70px;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 12px 32px 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 270px;
  white-space: normal;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: flex;
  align-items: flex-start;
}

.chatbot-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.95);
}

.chatbot-tooltip-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chatbot-tooltip-close:hover {
  opacity: 1;
}

/* Ocultar tooltip si no tiene la clase visible */
.chatbot-tooltip:not(.chatbot-tooltip-visible) {
  display: none;
}

/* Ventana del chat */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(13, 25, 48, 0.95);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.chatbot-window.show {
  display: flex;
  animation: slideInUp 0.3s ease;
}

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

/* Header del chat */
.chatbot-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Área de mensajes */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Mensajes */
.message {
  display: flex;
  margin-bottom: 12px;
}

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 80%;
}

.user-message .message-content {
  flex-direction: row-reverse;
}

.message-icon {
  color: #007bff;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.user-message .message-icon {
  color: #28a745;
}

.message-text {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message .message-text {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

/* Input del chat */
.chatbot-input-container {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.chatbot-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.chatbot-input:focus {
  border-color: #007bff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.chatbot-send {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.chatbot-send:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Animaciones de mensajes */
.message {
  animation: messageSlideIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .chatbot-window {
    width: 320px;
    height: 450px;
    bottom: 70px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-button {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-tooltip {
    max-width: 200px;
    font-size: 13px;
  }
  
  /* Mejorar el botón de cerrar del chatbot en móviles */
  .chatbot-tooltip-close {
    font-size: 24px;
    padding: 8px;
    top: 2px;
    right: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  /* Agregar más espacio para la foto en móviles */
  #hero {
    padding-top: 120px !important;
  }
  
  .profile-image-container {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 400px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-container {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
  }
  
  /* Aún más espacio para la foto en pantallas muy pequeñas */
  #hero {
    padding-top: 140px !important;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navbar efecto en links */
.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
}

.video-container-card {
  position: relative;
  padding-top: 57%; /* Más grande que 56.25% para más alto */
  height: 0;
  overflow: hidden;
}

.video-container-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* error arreglado para celulares en seccion educacion */

/* Ocultarla en pantallas menores a 768px (móviles) */
@media (max-width: 767px) {
  .timeline-line {
    display: none;
  }
}

/* Optimizaciones móviles */
@media (max-width: 768px) {
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .tech-card-main {
    padding: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
  
  .project-details {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .project-gallery img {
    height: 200px;
  }
  
  .social-icon-lg {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Lazy loading */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.lazy.loaded {
  opacity: 1;
}

/* Mejoras para accesibilidad */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Animaciones suaves para reducir motion sickness */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .chatbot-window {
    width: 320px;
    height: 450px;
    bottom: 70px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-button {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-tooltip {
    max-width: 200px;
    font-size: 13px;
  }
  
  /* Mejorar el botón de cerrar del chatbot en móviles */
  .chatbot-tooltip-close {
    font-size: 24px;
    padding: 8px;
    top: 2px;
    right: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  /* Agregar más espacio para la foto en móviles */
  #hero {
    padding-top: 120px !important;
  }
  
  .profile-image-container {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    height: 400px;
    right: 50%;
    transform: translateX(50%);
  }
  
  .chatbot-container {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
  }
  
  /* Aún más espacio para la foto en pantallas muy pequeñas */
  #hero {
    padding-top: 140px !important;
  }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  body {
    color-scheme: dark;
  }
}

/* Estilos para el botón de scroll */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #007bff, #00ff88);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Indicadores de carga */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Estilos para tooltips personalizados */
.tech-tooltip {
  position: absolute;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Efectos de partículas mejorados */
#particles-js {
  transition: opacity 0.5s ease;
}

.mobile-optimized #particles-js {
  opacity: 0.3 !important;
}

/* Mejoras para formularios */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #007bff;
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Efectos de hover para enlaces */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: #007bff;
}

/* Mejoras para badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para carruseles */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 123, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 123, 255, 0.9);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Mejoras para indicadores de carrusel */
.carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #007bff;
  transform: scale(1.2);
}

/* Estilos para elementos interactivos */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Mejoras para el contenido principal */
.main-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* Estilos para mensajes de estado */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.status-message.show {
  opacity: 1;
  transform: translateX(0);
}

.status-message.success {
  background: rgba(40, 167, 69, 0.9);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.9);
}

/* Nueva sección de educación profesional */
.education-card {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(18, 29, 43, 0.9));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00ff88);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.formal-education {
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.formal-education::before {
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.education-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.education-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.education-icon-wrapper.angular {
  background: linear-gradient(135deg, #dd0031, #c3002f);
}

.education-icon-wrapper.web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.education-icon-wrapper.design {
  background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.education-icon-wrapper.javascript {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.education-icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.education-info {
  flex: 1;
}

.education-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.education-institution {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.education-status {
  text-align: right;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  animation: pulse-green 2s infinite;
}

.status-badge.completed {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

.education-content {
  margin-top: 1rem;
}

.education-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.education-skills h5 {
  color: #007bff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsividad para educación */
@media (max-width: 768px) {
  .education-header {
    flex-direction: column;
    text-align: center;
  }
  
  .education-status {
    text-align: center;
    margin-top: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.2rem;
  }
}

/* Mejoras adicionales para modales */
.modal.show {
  backdrop-filter: blur(20px);
}

.modal.show .modal-backdrop {
  opacity: 0.98 !important;
}

.modal-xl .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  background: rgba(4, 13, 33, 0.98);
}

.modal-header {
  background: rgba(4, 13, 33, 0.98);
  border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

/* Asegurar que el modal esté por encima de todo */
.modal {
  z-index: 1070;
}

.modal-backdrop {
  z-index: 1060;
}

/* Navbar coherente con el resto del sitio */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Navbar que se oculta al hacer scroll hacia abajo */
.navbar-blur {
  background: rgba(4, 13, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.navbar-blur.scrolled {
  background: rgba(4, 13, 33, 0.98) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.navbar-blur.navbar-hidden {
  transform: translateY(-100%);
}

/* Mostrar navbar al hacer scroll hacia arriba */
.navbar-blur.navbar-visible {
  transform: translateY(0);
}

/* Asegurar que la navbar se oculte correctamente */
#navbar.navbar-blur.navbar-hidden {
  transform: translateY(-100%) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur.navbar-visible {
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

#navbar.navbar-blur {
  transform: translateY(0);
  transition: all 0.3s ease, transform 0.3s ease !important;
}

/* Divider personalizado */
.divider-custom {
  width: 80px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Cursor parpadeante */
.typing::after {
  content: "|";
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Rebote */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

/* Iconos sociales */
.social-icon,
.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 1rem;
}

.social-icon-footer:hover {
  background-color: #0d6efd;
  color: white;
  transform: translateY(-3px);
}

/* Iconos sociales mejorados */
.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 123, 255, 0.1);
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  color: #007bff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-lg:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-icon-lg:hover i {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Tecnologías */
.tech-icon {
  width: 56px;
  height: 56px;
  transition: all 0.3s ease;
}

.tech-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px);
}

.tech-item:hover img {
  transform: scale(1.1);
}

/* Proyectos */
.project-img {
  height: 250px;
  object-fit: cover;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* Proyectos ocultos */
.hidden-project {
  display: none;
}

#ver-mas-toggle:checked ~ .row .hidden-project {
  display: block;
}

.ver-mas-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

#ver-mas-toggle:checked ~ .d-flex .ver-mas-btn #ver-mas-icon {
  transform: rotate(180deg);
}

/* Timeline educación */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(13, 110, 253, 0.5);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.timeline-card {
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-right: 30px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item::before,
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 30px;
    height: 2px;
    background-color: rgba(13, 110, 253, 0.5);
  }

  .timeline-item:nth-child(odd)::before {
    right: 0;
  }

  .timeline-item:nth-child(even)::before {
    left: 0;
  }

  .timeline-item::after {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  }

  .timeline-item:nth-child(odd)::after {
    right: -8px;
  }

  .timeline-item:nth-child(even)::after {
    left: -8px;
  }
}

/* Contacto */
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Hover texto */
.hover-text-white {
  transition: color 0.3s ease;
}

.hover-text-white:hover {
  color: white !important;
}

/* Contenedor de video