body {
  font-family: 'Arial', sans-serif;
  max-width: 1200px;  
  margin: 0 auto;     
  padding: 0 px;    
  background: linear-gradient(to bottom, #8b3de4, #dcb1f7);
  color: #333;
}

header#header {
  text-align: center;
  padding: 2em;
  color: white;
}
ul.actions, ul.features {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul, ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav#nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 1em 0;
}

nav#nav ul li {
  margin: 0 1em;
}

nav#nav ul li a {
  text-decoration: none;
  color: #555;
  list-style-type: none;
}

nav#nav ul li a.active {
  font-weight: bold;
  border-bottom: 2px solid #a972cb;
}

section.main {
  background-color: white;
  padding: 3em;
  text-align: center;
}

ul.features {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
}

ul.features li {
  width: 30%;
  text-align: center;
}

.icon {
  font-size: 40px;
  display: block;
  margin-bottom: 1em;
}

.button {
  background-color: #a972cb;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 4px;
}

.button.primary {
  background-color: #6b3ba2;
}

footer#footer {
  text-align: center;
  padding: 2em;
  color: white;
}
/* Intro con imagen al lado del texto */
.intro-section {
  background-color: white;
  padding: 3em 2em;
  list-style-type: none;
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content .text {
  flex: 1 1 400px;
}

.intro-content .image {
  flex: 1 1 300px;
  text-align: center;
}

.intro-content .image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  border: 5px solid #eee;
}
@media (max-width: 768px) {
  .intro-content {
    flex-direction: column;
    text-align: center;
  }

  .intro-content .text,
  .intro-content .image {
    flex: 1 1 100%;
  }
}
/* MENÚ FIJO EN LA PARTE SUPERIOR */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(255, 0, 0);
  z-index: 1000; /* Asegura que esté por encima del contenido */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra ligera opcional */
  list-style-type: none;
}

/* Ajustamos el espacio del cuerpo para que no quede oculto bajo el menú */
body {
  padding-top: 70px; /* Ajusta este valor según la altura del nav */
}
#nav {
  transition: background-color 0.3s ease;
}
/* Sección de filtros y grilla de lenguajes */
.language-filter-section {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
}

.filter-buttons {
  margin-bottom: 1.5rem;
}

.filter-buttons label {
  margin: 0 10px;
  cursor: pointer;
  font-weight: bold;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
  gap: 2rem;
  justify-items: center;
  max-width: 900px; /* ancho máximo para que quede centrado */
  margin: 0 auto;
}

.language-item {
  text-align: center;
  transition: all 0.3s ease;
}

.language-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Atenuados */
.language-item.dimmed {
  opacity: 0.3;
  transform: scale(0.9);
}


/* Responsive extra */
@media (max-width: 600px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
}
/* Sección general */
#tools-tech {
  text-align: center;
  color: rgb(0, 0, 0);
  background: #ffffff;
  padding: 30px;
}

#tools-tech h2 {
  margin-bottom: 20px;
}

/* Botones */
#tools-tech .filter-buttons {
  margin-bottom: 20px;
}

#tools-tech .filter-buttons button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #e8b5ff;
  color: #ffffff;
  transition: background 0.3s;
}

#tools-tech .filter-buttons button.active {
  background: rgb(180, 52, 255);
}

/* Grid de skills */
#tools-tech .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

#tools-tech .skill-card {
  background: #e8c1ff;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.2s;
}

#tools-tech .skill-card:hover {
  transform: scale(1.05);
}

#tools-tech .skill-card span {
  font-size: 2rem;
  display: block;
}
.project-link {
  text-decoration: none;
  color: inherit;   /* mantiene el color original del texto */
}

.project-card {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.projects {
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.filter-buttons {
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 15px;
  margin: 5px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: #222;
  color: #fff;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff4d6d;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
  text-align: left;
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #000000;
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.tags span {
  display: inline-block;
  background: #333;
  color: #ddd;
  padding: 5px 10px;
  border-radius: 15px;
  margin: 2px;
  font-size: 0.8rem;
}

.links {
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 8px;
  background: #444;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}
