:root {
  --primary: #0b7a4b;
  --primary-dark: #085e39;
  --accent: #f6a821;
  --ink: #0d1b1e;
  --muted: #5c6b6f;
  --bg: #ffffff;
  --bg-alt: #f2f6f3;
  --line: #e3ebe5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 27, 30, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1100px, 92%); margin-inline: auto; }

/* ---- Botones ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 122, 75, 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ---- Encabezado ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { color: var(--primary); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.2px; }
.brand-text small { color: var(--muted); font-size: 0.72rem; }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { font-weight: 500; color: var(--ink); position: relative; padding: 0.3rem 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.btn-cta { margin-left: 0.5rem; padding: 0.55rem 1.3rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eef7f1 0%, #ffffff 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy p { color: var(--muted); max-width: 50ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--primary-dark); }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

.hero-art {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
}
.sun {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9b0, var(--accent));
  box-shadow: 0 0 80px rgba(246, 168, 33, 0.5);
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 122, 75, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(11, 122, 75, 0.12) 2px, transparent 2px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}
.coin {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: var(--primary-dark);
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.coin-1 { top: 10%; left: 8%; }
.coin-2 { bottom: 12%; right: 8%; animation-delay: 1.2s; }
.coin-3 { top: 20%; right: 18%; width: 44px; height: 44px; animation-delay: 2.4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- Secciones ---- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  margin-bottom: 1.2rem;
}
.card:nth-child(even) .card-icon { background: var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---- Galería ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 180px;
  gap: 1rem;
}
.g-item { margin: 0; overflow: hidden; border-radius: var(--radius); }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.g-item:hover img { transform: scale(1.08); }
.g-tall { grid-row: span 2; }

/* ---- Equipo ---- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  text-align: center;
}
.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.member .name { font-size: 1.05rem; }
.member .role { color: var(--muted); font-size: 0.88rem; }
.team-note { text-align: center; margin-top: 2rem; color: var(--muted); }
.team-note strong { color: var(--primary-dark); }

/* ---- Contacto ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: center; color: var(--ink); }
.contact-list svg { color: var(--primary); flex-shrink: 0; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 122, 75, 0.15);
}
.form-status { font-size: 0.9rem; text-align: center; color: var(--primary-dark); }

/* ---- Pie de página ---- */
.site-footer { background: var(--ink); color: #dce8e1; margin-top: 3rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand small { color: #9db3aa; }
.footer-brand p { color: #9db3aa; max-width: 46ch; }
.footer-brand .nit { margin-top: 0.8rem; font-weight: 600; color: #dce8e1; }
.social-label { font-weight: 600; color: #fff; display: block; margin-bottom: 0.8rem; }
.social-icons { display: flex; gap: 0.8rem; }
.social-icons a {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8e1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #9db3aa; font-size: 0.9rem; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: auto; }
  .btn-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.8rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-art { height: 280px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
}