/* -----------------------------------
   Reset de estilos básicos del navegador
   ----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -----------------------------------
   Estilo general del cuerpo de la página
   ----------------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
  line-height: 1.6;
}

/* -----------------------------------
   Encabezados generales
   ----------------------------------- */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 1px;
}

/* -----------------------------------
   Enlaces (con animación al pasar el mouse)
   ----------------------------------- */
a {
  color: #fc86cb;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #ffffff;
}

/* -----------------------------------
   Encabezado del sitio
   ----------------------------------- */
header {
  padding: 20px;
  text-align: center;
  background-color: #141414;
  border-bottom: 1px solid #222;
}

/* -----------------------------------
   Contenedor principal de la página
   ----------------------------------- */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* -----------------------------------
   Sección de proyectos (grilla responsiva)
   ----------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* -----------------------------------
   Tarjeta individual de proyecto
   ----------------------------------- */
.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 225, 0.1);
}

/* -----------------------------------
   Imagen dentro de la tarjeta de proyecto
   ----------------------------------- */
.project-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  object-fit: cover;
  height: 180px;
}

/* -----------------------------------
   Contenido textual de cada proyecto
   ----------------------------------- */
.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.project-content p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* -----------------------------------
   Botón de enlace al proyecto
   ----------------------------------- */
.btn.project-link {
  background: #fc86cb;
  color: #000;
  padding: 10px 15px;
  border-radius: 10px;
  display: inline-block;
  font-weight: 600;
}
.btn.project-link:hover {
  background: #00ccbb;
}

/* -----------------------------------
   Animación sutil al cargar las tarjetas
   ----------------------------------- */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------
   Sección de bienvenida (Hero Intro)
   ----------------------------------- */
.hero-intro {
  background-color: #0a0a0a;
  padding: 80px 20px;
  color: #fff;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-text {
  flex: 1 1 50%;
}
.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 255, 225, 0.1);
}

/* -----------------------------------
   Responsividad para pantallas pequeñas
   ----------------------------------- */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
