
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}


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


.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

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

.skill-card {
    position: relative;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card-inner {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.dark .skill-card-inner {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.experience-card {
    position: relative;
}

.experience-card-inner {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .experience-card-inner {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.experience-card:hover .experience-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Transiciones para modo oscuro */
html.transition-colors,
html.transition-colors *,
html.transition-colors *::before,
html.transition-colors *::after {
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease !important;
}


.dark .text-slate-600,
.dark .text-slate-500,
.dark .text-slate-400 {
    color: #cbd5e1; 
}

.dark .bg-slate-800,
.dark .bg-slate-700,
.dark .bg-slate-900 {
    background-color: rgba(15, 23, 42, 0.9); 
}

.dark .border-slate-700,
.dark .border-slate-800 {
    border-color: rgba(226, 232, 240, 0.1);
}


.dark .skill-card-inner,
.dark .experience-card-inner {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(226, 232, 240, 0.15);
}

.dark .text-slate-300 {
    color: #e2e8f0;
}

.dark .text-slate-200 {
    color: #f1f5f9;
}


.dark .bg-slate-700 {
    background-color: rgba(30, 41, 59, 0.7);
}

.dark .text-slate-200 {
    color: #f8fafc;
}

.dark .bg-white {
    background-color: #1e293b !important; /* equivale a slate-800 */
}

.dark .bg-slate-50 {
    background-color: #0f172a !important; /* equivale a slate-900 */
}

html.dark #menu-btn span {
    background-color: white !important;
}


@media (max-width: 767px) {
  #theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9) !important;
  }
  
  #theme-toggle svg {
    width: 24px;
    height: 24px;
  }
  
  .dark #theme-toggle {
    background-color: rgba(15, 23, 42, 0.9) !important;
  }
}


#menu-btn {
  transition: all 0.3s ease;
}

#menu-btn span {
  background-color: #334155; /* Color para modo claro */
  transition: all 0.3s ease;
}

.dark #menu-btn span {
  background-color: #e2e8f0; /* Color para modo oscuro */
}

#menu-btn:hover span {
  width: 100% !important; 
}


#mobile-menu {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e2e8f0;
}

.dark #mobile-menu {
  background-color: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid #1e293b;
}

/* Ajustes para los iconos del tema */
#theme-toggle-dark-icon,
#theme-toggle-light-icon {
  transition: opacity 0.3s ease;
}

.dark #theme-toggle-dark-icon {
  display: none;
}

.dark #theme-toggle-light-icon {
  display: block;
}

#theme-toggle-light-icon {
  display: none;
}


@media (max-width: 640px) {
 
  .contact-info p.text-slate-600.dark\\:text-slate-400 {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.875rem; 
    line-height: 1.5;
    padding: 0 8px; 
  }


  .contact-info .flex.items-start {
    align-items: center;
  }


  .contact-info .flex.items-start .w-10 {
    min-width: 40px; 
  }


  .contact-info a:hover {
    text-decoration: underline; 
  }
}

@media (max-width: 640px) {
  .bg-slate-50 p.text-slate-600 {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.25rem 0;
    display: inline-block;
    max-width: 100%;
  }
  
  .dark .dark\\:bg-slate-800\\/50 .dark\\:text-slate-400 {
    color: #cbd5e1 !important; 
  }
  
  .bg-slate-50 {
    padding: 0.75rem !important; 
  }
  
  .dark .bg-slate-800\\/50 p.dark\\:text-slate-400:hover {
    color: #818cf8 !important; /
  }
}

