/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  color: #2e2e2e;
  line-height: 1.6;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo.grande {
  width: 140px;
  height: auto;
}

/* Navegación */
nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #2e2e2e;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #7d8a2e;
}

/* Main */
main {
  padding-top: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Hero */
.section {
  padding: 0 0 3rem 0; /* Sin espacio arriba, solo abajo */
}

.hero-content {
  margin-top: 0;
  padding-top: 0;
}

.hero-text {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-centro {
  width: 260px;
  height: auto;
  margin: 0 auto 0.5rem auto; /* Espacio pequeño debajo del logo */
  display: block;
}

.hero-text h1 {
  font-size: 2.75rem;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-text p {
  font-size: 1.25rem;
  color: #34495e;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.section.hero > .hero-content > .hero-text > *:first-child {
  margin-top: 0 !important;
}

.logo-centro {
  margin: 0 auto 0 auto;
}

.section.hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hero Grid (imágenes de inicio) */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.hero-grid-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-grid-item:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

/* Historia */
.historia h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #7d8a2e;
  text-align: center;
}

.historia article {
  margin-bottom: 2rem;
}

.historia h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #34495e;
}

/* Iconos con texto */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.icon-list div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.icon-bandera {
  width: 1.8em;
  height: 1.1em;
  border-radius: 0.3em;
  object-fit: cover;
  vertical-align: middle;
}

/* Galería */
.galeria {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.galeria-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

/* Footer */
footer {
  background-color: #7d8a2e;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .logo.grande {
    width: 120px;
  }

  .galeria-img {
    width: 100%;
    max-width: 300px;
  }

  .hero-grid-item {
    height: 200px;
  }
}
