/* Fade-in animation */
body.fade-in {
  opacity: 0;
  animation: fadeIn ease 1.2s forwards;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Tipografía base */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Encabezado */
header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Navbar */
.navbar-nav .nav-link {
  color: #e2e8f0 !important;
}

.navbar-nav .nav-link:hover {
  color: #38bdf8 !important;
}

.nav-link.active {
  font-weight: bold;
  border-bottom: 2px solid #0dcaf0; /* color info */
}

/* Secciones */
section {
  padding: 80px 20px;
}

/* Títulos de sección */
.section-title {
  color: #38bdf8;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

/* Servicios - iconos */
.services .icon {
  font-size: 40px;
  color: #38bdf8;
  margin-bottom: 20px;
}

/* Proyectos - logotipos */
.projects img {
  max-height: 60px;
  margin: 10px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}
.projects img:hover {
  filter: grayscale(0);
}
a {
  max-height: 60px;
  margin: 10px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

/* Acerca de mí */
.profile-img {
  max-width: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Formulario */
input, textarea {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
}

/* Botón primario */
.btn-primary {
  background-color: #38bdf8;
  border: none;
}
.btn-primary:hover {
  background-color: #0ea5e9;
}

/* Footer */
footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
}

.projects a {
    color: #e2e8f0;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
  }
  .projects a:hover {
    color: #38bdf8;
  }
  .projects .bi {
    font-size: 1.4rem;
    color: #38bdf8;
  }
  .project-description {
  color: #cbd5e1; /* gris claro azulado */
  font-size: 0.95rem;
}

.solution-card {
  display: block;
  background-color: #1e293b;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.solution-card:hover {
  background-color: #334155; /* Un poco más claro */
  text-decoration: none;
  transform: translateY(-4px);
}
