/* Reset / General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background-color: #1f1f1f;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-left: 20px;
}

.navbar a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #90caf9;
}

/* SECCIÓN HERO */
#hero {
  background: url('https://via.placeholder.com/1200x600') no-repeat center center/cover;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.btn-hero {
  background-color: #2196f3;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-hero:hover {
  background-color: #1976d2;
}

/* SECCIONES */
section {
  padding: 60px 0;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  color: #ffffff;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 20px;
  color: #b0bec5;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.about-image {
  text-align: center; /* centra la foto */
}
.about-image img {
  max-width: 250px; /* límite de tamaño */
  width: 100%;      /* ocupa todo el espacio permitido */
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}


/* PROYECTOS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.project-card img {
  width: 100%;
  display: block;
}

.card-info {
  padding: 20px;
  color: #f5f5f5;
}

.card-info h3 {
  margin-top: 0;
  color: #ffffff;
}

/* CONTACTO */
#contact a {
  display: inline-block;
  background-color: #2196f3;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#contact a:hover {
  background-color: #1976d2;
}

/* FOOTER */
footer {
  background-color: #1f1f1f;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
}

footer a {
  color: #90caf9;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

#project-selector {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 0.5em;
  font-size: 1em;
  margin: 1em 0;
  width: 100%;
  max-width: 400px;
}

#project-selector option {
  background-color: #000;
  color: #fff;
}
