
:root, .light-mode {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #6ee7b7;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fcd34d;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --bg-light: #ffffff;
  --text-light: #1e293b;
  --card-light: #f1f5f9;
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}
.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .nav-link {
    color: var(--text-light);
}

.light-mode .nav-link:hover {
    color: var(--primary);
}


.light-mode .service-card,
.light-mode .stat-card,
.light-mode .bg-darker {
    background: var(--bg-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.light-mode .service-card:hover,
.light-mode .stat-card:hover {
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.light-mode .text-gray-400 {
    color: #64748b;
}

.light-mode .text-gray-300 {
    color: #475569;
}

.light-mode .btn-3d {
    color: white;
}

.light-mode .btn-3d:hover {
    color: white;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.light-mode .loader {
    background: var(--bg-light);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader-3d {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--light);
    font-weight: 500;
}

.light-mode .loader-text {
    color: var(--text-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

body .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: var(--darker);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


body .navbar.scrolled {
  background-color: var(--darker);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--light);
  transition: color 0.3s ease;
  display: inline-block;
}



body.light-mode .nav-link {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}


.nav-link.active::after {
    width: 100%;
}

.hamburger {
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--darker);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

body.light-mode #mobile-menu {
  background-color: var(--bg-light);
}

#mobile-menu.open {
  max-height: 500px;
  padding: 1rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media(max-width:678px){
    #inicio{
        margin-top: 5rem !important;
    }
}

#inicio.hero-gradient {
    margin-top: 5rem !important;
    position: relative;
    overflow: hidden;
}

#inicio.hero-gradient {
   background: transparent !important;
}

#inicio.hero-light-gradient {
    background: white !important;
}

body.light-mode #inicio {
    background: transparent !important;
}



.tech-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.tech-icon .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tech-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.service-card {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.light-mode .service-card {
    background: var(--bg-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.service-card:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transition: all 0.3s ease;
}

.light-mode .project-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.skill-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.light-mode .skill-bar {
    background: rgba(99, 102, 241, 0.1);
}

.skill-progress {
    height: 100%;
    border-radius: 44px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1.55s ease-out;
}

.contact-input {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: var(--light);
}

.light-mode .contact-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-light);
}
.light-mode h2,
.light-mode #coffee-cups,
.light-mode #info,
.light-mode .text-xl,
.light-mode .inline-flex,
.light-mode .line,
.light-mode .text-2xl {
    color: var(--primary);
}

.light-mode .arriva {
    color: var(--light);
}

.light-mode #back-to-top {
    background: var(--primary);
}

.light-mode .contact-input {
    color: var(--dark);
}

.light-mode .enviar-mensaje {
    background: var(--info);
}

.light-mode .fab:hover {
    color: var(--info);
}

.light-mode .fa-whatsapp {
    color: var(--light);
}




.contact-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.light-mode .stat-card {
    background: var(--bg-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.stat-card:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.15);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.tooltip {
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.light-mode .tooltip-text {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.languages-wave {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    perspective: 1000px;
    margin: 40px 0;
}

.language-bubble {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    animation: wave 4s ease-in-out infinite;
}

.light-mode .language-bubble {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
}

.language-bubble:nth-child(2n) {
    background: rgba(16, 185, 129, 0.2);
    animation-delay: 0.5s;
}

.language-bubble:nth-child(3n) {
    background: rgba(245, 158, 11, 0.2);
    animation-delay: 1s;
}

.language-bubble:nth-child(4n) {
    background: rgba(139, 92, 246, 0.2);
    animation-delay: 1.5s;
}

.language-bubble:nth-child(5n) {
    background: rgba(239, 68, 68, 0.2);
    animation-delay: 2s;
}

.profile-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    width: 400px;
    margin: 0% auto;
}
@media(max-width:768px){
    .profile-3d{
        width: 300px;
    }
}

.profile-3d:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.typed-cursor {
    color: var(--primary);
    font-weight: bold;
}

.btn-3d {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 10px 20px rgba(0, 00, 0, 0.2);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-weight: 500;
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.light-mode .btn-3d {
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    color: var(--light);
    background-color: var(--primary);
}

.light-mode .btn-3d:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.light-mode .theme-toggle {
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.light-mode .theme-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.light-mode .theme-toggle i {
    color: var(--primary-dark);
}


.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .glass-effect {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.pricing-card:hover {
    transform: perspective(1000px) translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.neon-text {
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    }
    to {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

.gradient-animation {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary-dark));
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

.light-mode ::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);

}

.gap-0{
    align-items: center !important;
    width: 100%;
}
.color-experiencia{
    color: white;
}
.light-mode .color-experiencia{
    color: black;
}


.light-mode .flex  span{
    color: #3b82f6;
}
.flex i{
    color: white;
}
.icono-whatsap span{
    box-shadow: none !important;
    display: none;
}
