/* =========================================================
   Base Styles
   Fonts: Raleway (headings) + Inter (body)
   Palette: warm sand background, dark text, green accent
   ========================================================= */

:root {
  --bg: #f8f6f1;         /* arena clara */
  --text: #333333;       /* gris oscuro */
  --muted: #555555;
  --accent: #007a73;     /* verde topográfico */
  --accent-soft: #e7f3f2;/* verde muy suave */
  --card-bg: #ffffff;
  --section-alt: #faf8f4;/* sutil para alternar */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Navigation (fixed, bilingual)
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
}

.brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* =========================================================
   Fullscreen Hero Header (Everything in one centered box)
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('Map_website.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* mueve el contenido hacia la izquierda */
  padding-left: 8%; /* espacio desde el borde izquierdo */
  margin-top: 56px;
  text-align: left; /* texto alineado a la izquierda */
  color: var(--text);
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(255, 239, 224, 0.05),
    rgba(255, 255, 255, 0.15)
  );
}


/* caja translúcida centrada con transparencia del 60% */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px; /* un poco más estrecha para balance visual */
  padding: 42px 54px;
  background: rgba(255, 255, 255, 0.6); /* 80% opaco */
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 8px;
  color: var(--text);
  white-space: nowrap; /* evita que se divida tu nombre */
}


/* enlaces dentro del recuadro */
.hero .links {
  margin-bottom: 16px; /* espacio antes del botón */
}

.hero .links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero .links a:hover {
  text-decoration: underline;
  color: #015c57;
}

/* botón "Learn more" */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #016c66;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-sub {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}


/* animación de entrada */
.fade-in-onload {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .9s ease .1s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* responsive */
@media (max-width: 700px) {
  .hero-content {
    padding: 28px 24px;
  }
}



/* =========================================================
   Sections
   ========================================================= */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  margin: 0 0 18px 0;
  color: #2d6a4f;
}

/* Two-column layout */
.section-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.text-col p {
  margin: 0 0 14px 0;
}

.lead {
  font-size: clamp(16px, 2.1vw, 18px);
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.links a:hover { text-decoration: underline; }

/* Media card images */
.card-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  background: var(--card-bg);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

/* Alternate subtle background for variety */
.section.alt { background: var(--section-alt); }

/* =========================================================
   About Section
   ========================================================= */

.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.about-main-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.about-text p { margin: 0 0 14px 0; }

.about-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.collage-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(0.96);
  transform: translateZ(0);
  transition: transform .35s ease, filter .35s ease, box-shadow .35s ease;
}
.collage-img:hover {
  filter: brightness(1.04);
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

/* =========================================================
   Fade-in on scroll
   ========================================================= */

.fade-in-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  text-align: center;
  padding: 28px 20px 36px;
  background: #f1ede6;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* =========================================================
   ⋯ Separator between languages
   ========================================================= */
.separator {
  text-align: center;
  color: #9a9a9a;
  font-size: 20px;
  margin: 10px 0 18px;
  letter-spacing: 6px;
}

/* =========================================================
   Photo credits under images
   ========================================================= */
.photo-credit {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .section-two-col, .about-wrap {
    grid-template-columns: 1fr;
  }
  .about-collage {
    grid-template-columns: repeat(2, 1fr);
  }
  .collage-img { height: 160px; }
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { gap: 10px; }
  .hero { padding-left: 5%; }
  .about-collage {
    grid-template-columns: 1fr;
  }
  .collage-img { height: 190px; }
}
