/* =============================================
   ANZATHU · style.css
   Paleta: tierra, ocre, verde zambia, blanco
   Fuentes: Lora (títulos) + DM Sans (cuerpo)
   ============================================= */

/* ---------- VARIABLES ---------- */
:root {
  --tierra:    #C4703A;   /* ocre cálido principal */
  --tierra-dk: #9E5425;   /* tierra oscuro, hover */
  --verde:     #3D6B44;   /* verde Zambia */
  --verde-dk:  #2A4D31;
  --crema:     #FAF6F0;   /* fondo claro */
  --blanco:    #FFFFFF;
  --gris-texto:#3A3530;   /* casi negro cálido */
  --gris-suave:#7A7068;   /* texto secundario */
  --oscuro:    #1E1A16;   /* sección oscura */

  --font-titulo: 'Lora', Georgia, serif;
  --font-cuerpo: 'DM Sans', Helvetica, sans-serif;

  --radio:     6px;
  --sombra:    0 4px 20px rgba(0,0,0,0.10);
  --max-w:     1100px;
  --gap:       2rem;
}

/* ---------- RESET BÁSICO ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-cuerpo);
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tierra); text-decoration: none; }
a:hover { color: var(--tierra-dk); text-decoration: underline; }

/* ---------- UTILIDADES ---------- */
.container {
  width: min(var(--max-w), 100% - 2 * 1.25rem);
  margin-inline: auto;
}
.container.narrow { max-width: 680px; }
.centered { text-align: center; }

/* ---------- TIPOGRAFÍA GLOBAL ---------- */
h1, h2, h3 { font-family: var(--font-titulo); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tierra);
  margin-bottom: 0.6rem;
}
.section-kicker.light { color: #d4956b; }
.intro-text { font-size: 1.1rem; color: var(--gris-suave); max-width: 680px; margin-bottom: 2rem; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radio);
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-hero {
  background: var(--tierra);
  color: var(--blanco);
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
}
.btn-hero:hover { background: var(--tierra-dk); color: var(--blanco); }

.btn-secondary {
  background: transparent;
  color: var(--verde);
  border: 1.5px solid var(--verde);
  margin-top: 1.2rem;
}
.btn-secondary:hover { background: var(--verde); color: var(--blanco); }

.btn-cta {
  background: var(--blanco);
  color: var(--tierra-dk);
  font-size: 1rem;
  margin-top: 1.5rem;
}
.btn-cta:hover { background: var(--crema); }

/* ---------- CABECERA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid #e8e0d6;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text {
  font-family: var(--font-titulo);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tierra);
}
.logo-sub { font-size: 0.72rem; color: var(--gris-suave); letter-spacing: 0.05em; }

.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--gris-texto);
  font-weight: 400;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--tierra); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gris-texto);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; }
.hero-img-wrap { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,6,2,0.92) 0%, rgba(10,6,2,0.60) 45%, rgba(10,6,2,0.25) 75%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
  max-width: 680px;
}
.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4956b;
  margin-bottom: 0.8rem;
}
.hero-title { color: var(--blanco); margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9); }
.hero-lead { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }

/* ---------- BARRA DE PROGRESO ---------- */
.progress-bar-section {
  background: var(--oscuro);
  padding: 3rem 0;
}
.progress-wrap { max-width: 760px; margin-inline: auto; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.progress-label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 0.2rem; }
.progress-amount { font-family: var(--font-titulo); font-size: 1.8rem; color: var(--blanco); }
.progress-track {
  height: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}
.progress-fill {
  height: 100%;
  background: var(--tierra);
  border-radius: 100px;
  width: 0%; /* controlado por JS */
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.progress-caption { font-size: 0.88rem; color: #888; text-align: center; }

/* ---------- BIZUM SECTION ---------- */
.bizum-section { background: var(--crema); padding: 4rem 0; }
.bizum-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.bizum-text h2 { color: var(--verde-dk); margin-bottom: 1rem; }
.bizum-note { font-size: 0.9rem; color: var(--gris-suave); margin-top: 0.5rem; }

.bizum-card {
  background: var(--blanco);
  border: 2px solid var(--tierra);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 220px;
  box-shadow: var(--sombra);
}
.bizum-card-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris-suave); margin-bottom: 0.3rem; }
.bizum-number {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tierra);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.bizum-concept {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--verde);
  margin-bottom: 0;
}

/* ---------- SECCIONES GENÉRICAS ---------- */
.section { padding: 5rem 0; }
.section-light { background: var(--blanco); }
.section-dark  { background: var(--oscuro); color: rgba(255,255,255,0.88); }
.section-dark h2 { color: var(--blanco); }
.section-dark .section-kicker { color: #d4956b; }

/* ---------- TWO-COL ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap) 4rem;
  align-items: center;
}
.two-col.reverse .col-media { order: -1; }
.section-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 420px;
}
.fact-list { list-style: none; padding: 0; margin: 1rem 0; }
.fact-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid #eee;
  position: relative;
}
.fact-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--tierra);
}

/* ---------- LÍNEA DE TIEMPO ---------- */
.timeline { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  align-items: start;
}
.timeline-year {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tierra);
}
.timeline-body { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.timeline-item-now .timeline-year { color: #e8a06a; font-size: 1.5rem; }
.timeline-item-now .timeline-body { color: rgba(255,255,255,0.96); }

/* ---------- CARDS GRID ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--crema);
  border: 1px solid #e8dfd4;
  border-radius: 10px;
  padding: 2rem 1.5rem;
}
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { color: var(--verde-dk); }
.card p { font-size: 0.95rem; color: var(--gris-suave); margin: 0; }

.project-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.project-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- GALERÍA ---------- */
.section-gallery { background: var(--crema); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}
.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s, opacity 0.3s;
}
.gallery-img:hover { transform: scale(1.03); opacity: 0.9; }

/* ---------- SECCIÓN VÍDEO ---------- */
.section-video { background: var(--oscuro); padding: 5rem 0; }
.video-wrap {
  max-width: 820px;
  margin: 2rem auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.video-wrap video { width: 100%; display: block; }

/* ---------- TABLA PRESUPUESTO ---------- */
.budget-table-wrap { overflow-x: auto; margin: 2rem 0; }
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.budget-table th {
  background: var(--verde);
  color: var(--blanco);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 500;
}
.budget-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #ece4d8;
}
.budget-table tr:last-child td { border-bottom: none; }
.budget-table tr:nth-child(even) td { background: var(--crema); }
.total-row td {
  background: #f0e8df !important;
  font-weight: 600;
  color: var(--tierra-dk);
}
.budget-note { font-size: 0.83rem; color: var(--gris-suave); margin-top: 1rem; }

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: var(--tierra);
  padding: 5rem 0;
  color: var(--blanco);
}
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--blanco); margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 600px; margin-inline: auto; }
.cta-bizum-big {
  font-size: 1.3rem;
  color: var(--blanco) !important;
  font-weight: 500;
  margin-top: 2rem !important;
  padding: 1rem 2rem;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radio);
  display: inline-block;
}

/* ---------- CONTACTO ---------- */
.contact-info { margin: 1.5rem 0; font-size: 1.05rem; }
.legal { font-size: 0.82rem; color: var(--gris-suave); margin-top: 1.5rem; }

/* ---------- PIE ---------- */
.site-footer {
  background: var(--oscuro);
  padding: 2rem 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-logo { font-family: var(--font-titulo); color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* Nav móvil */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e8e0d6;
    padding: 0.5rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 1.5rem; font-size: 1rem; }
  .site-header { position: relative; }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero-content { padding-bottom: 3.5rem; }

  /* Dos columnas → una */
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: 0; }

  /* Bizum */
  .bizum-inner { grid-template-columns: 1fr; }

  /* Project imgs */
  .project-img-row { grid-template-columns: 1fr; }
  .project-img { height: 200px; }

  /* Galería */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 60px 1fr; }
}
