body {
    box-sizing: border-box;
}

.liquid-glass {
    background: rgba(32, 134, 234, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(32, 134, 234, 0.2);
    box-shadow: 
        0 8px 32px rgba(32, 134, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass:hover {
    background: rgba(32, 134, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(32, 134, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.liquid-glass:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(32, 134, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-card {
    background: rgba(167, 197, 227, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 197, 227, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(167, 197, 227, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(32, 134, 234, 0.1);
}

.gradient-bg {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: top center;
    min-height: 100vh;
    width: 100%;
} 

.text-gradient {
    background: linear-gradient(135deg, #2086ea, #5ba6f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

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

.skill-badge {
    background: rgba(91, 166, 240, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 166, 240, 0.3);
}

@media (max-width: 640px) {
  nav {
    top: 12 !important;
  }

  nav .liquid-glass.rounded-full {
    padding: 0.5rem 1rem !important; /* un pelín más de espacio interno */
  }

  nav .flex.items-center {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }

  nav a {
    font-size: 0.8rem !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  #langBtn {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.7rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 640px) {
  .hero {
    margin-top: 80px; /* 🔹 ajusta el valor según te guste */
  }
}