/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #4a4a4a;
  line-height: 1.6;
  background: #C8B8A3;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Skip link accesible */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 1000;
}
.skip-link:focus {
  top: 6px;
}

.hero {
  min-height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
              url('/img/fondoa.webp');
  background-size: 800px 500px ;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: white;
}

/* Navegaci¨®n */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.6rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.2);
  
}

/* Contenido del hero */
.hero-content h2 {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* SecciÃ³n principal */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #D2C2AC
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

/* Grid de equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
}

.team-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%; /* para igualar altura en grid */
}
.team-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.placeholder-img {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.team-item img {
  width: 100%;
  height: auto; /* ajusta a 200px si prefieres (antes ten¨ªas 400px) */
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 4px;
}
.team-item h3 {
 font-size: 1.3rem;
  color: #4a4a4a;
  margin: 0;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer a {
  color: #ccc;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-list {
    gap: 1.2rem;
  }

  .hero-content h2 {
    font-size: 1.7rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}