:root {
  --primary: #0066cc;
  --secondary: #3498db;
  --light: #ecf0f1;
  --dark: #000000;
  --accent: #e5ff00;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


#logo-header {
  width: 60px;
  height: auto;
  margin-right: 1rem;
}

.historia-container {
  display: flex;
  margin: 2rem auto;
  max-width: 1000px;
}
.historia-texto, .historia-imagen {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.historia-imagen img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


header {
  background-color: var(--primary);
  color: white;
  padding: 0.7rem;
  box-shadow: 0 2px 5px rgba(17, 0, 250, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

.logo {
  font-size: 1rem;
  font-weight: bold;
}

#nome-associacao {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  flex-grow: 1;
  margin-left: 1rem;
}

.nav-header {
  display: flex;
  gap: 2rem;
}

.nav-header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}

.nav-header a:hover {
  color: var(--secondary);
  background: transparent;
}

.cuerpo {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  color: var(--primary);
  margin-top: 0.5em;
  text-align: center;
}

.botones-mosaico, .botones-mosaico-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.acordeon-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.acordeon-btn.active,
.acordeon-btn:hover {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acordeon-content {
  display: none;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s;
}

.acordeon-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lista-documentos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-documentos li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.lista-documentos li::before {
  content: "📄";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.lista-documentos a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.lista-documentos a:hover {
  color: var(--primary);
  text-decoration: underline;
}

#contacto-fijo {
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer-info {
  font-size: 1rem;
  line-height: 1.7;
  min-width: 220px;
}

.footer-maps {
  margin-left: 2rem;
}


@media (max-width: 900px) {
  footer#contacto-fijo {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .footer-maps {
    margin-left: 0;
    margin-top: 1rem;
  }
}
