/* 1. Reset y box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. html & body full height */
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

/* 3. Tipografía y fondo global */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* 4. Contenedor */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 5. Botones genéricos */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2a8fbd;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #236b8e;
}

/* 6. Hero completo */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__background img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-5%, -5%);
  animation: slow-pan 60s infinite alternate;
}
@keyframes slow-pan {
  from { transform: translate(-5%, -5%) scale(1.1); }
  to   { transform: translate(0%, 0%) scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.6) 100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}
.hero__copy h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero__copy p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Logo y menú */
.hero__logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.main-nav {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  transition: background 0.3s;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Responsive hero */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero__logo { width: 80px; top: 10px; right: 10px; }
}

/* Sección Quiénes somos */
.quienes-somos {
  padding: 4rem 0;
  background-color: #fff;
  text-align: center;
}
.quienes-somos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2a8fbd;
}
.quienes-somos p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
}

/* Sección Nuestros objetivos */
.objetivos {
  padding: 4rem 0;
  background-color: #f0f8fc;
  text-align: center;
}
.objetivos h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2a8fbd;
}
.objetivos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.objetivo {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.objetivo img {
  width: 60px;
  margin-bottom: 1rem;
}
.objetivo h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #236b8e;
}
.objetivo p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Sección Proyectos destacados */
.proyectos-destacados {
  padding: 4rem 0;
  background-color: #fff;
}
.proyectos-destacados h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2a8fbd;
}
.proyectos-destacados__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.proyecto-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.proyecto-texto h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #236b8e;
}
.proyecto-texto p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}
.proyecto-texto ul {
  list-style: disc inside;
  margin-bottom: 1.5rem;
  color: #555;
}
.proyecto-texto .btn {
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .proyectos-destacados__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Sección Galería */
.galeria {
  padding: 4rem 0;
  background-color: #f0f8fc;
}
.galeria h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2a8fbd;
}
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.galeria__item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.galeria__item img:hover {
  transform: scale(1.05);
}

/* Sección Estatutos */
.estatutos {
  padding: 4rem 0;
  background-color: #fff;
  text-align: center;
}
.estatutos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2a8fbd;
}
.estatutos p {
  margin-bottom: 2rem;
  color: #555;
}
.estatutos__viewer {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.estatutos__viewer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Sección Contacto */
.contacto {
  padding: 4rem 0;
  background-color: #f0f8fc;
}
.contacto__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.contacto h2 {
  color: #2a8fbd;
  margin-bottom: 1rem;
}
.contacto__form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.contacto__form input,
.contacto__form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contacto__form button {
  margin-top: 1.5rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2a8fbd;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.back-to-top:hover {
  opacity: 1;
}
/* Barra de navegación fija */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffffcc;       /* blanco semi-transparente */
  backdrop-filter: blur(8px);   /* efecto vidrio */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.site-header__logo {
  width: 120px;
}
.site-header__nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}
.site-header__nav a {
  color: #236b8e;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  transition: background 0.2s;
}
.site-header__nav a:hover {
  background: #2a8fbd;
  color: #fff;
  border-radius: 4px;
}

/* Empuja todo el contenido hacia abajo para no tapar el header */
body {
  padding-top: 60px; /* ajusta según la altura real del header */
}
.site-footer {
  background: #236b8e;
  color: #fff;
  padding: 2rem 0 1rem;
  margin-top: 4rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-sect {
  flex: 1 1 200px;
}
.footer-sect h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}
.footer-sect ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-sect a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-sect a:hover {
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-links img {
  width: 32px;
  height: 32px;
}
.site-footer__bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 1rem;
}

