/* ===== HC Asesorías Ambientales — design system ===== */

:root {
  --green-deep: #0f7a3d;
  --green-dark: #0a4a26;
  --green-ink: #0b2a1a;
  --green-sage: #6b9c6e;
  --gold: #d4af37;
  --gold-dark: #8b6914;
  --navy: #10284a;
  --brown: #6b5b3e;
  --lime: #8cc63f;
  --cream: #f4f1e6;
  --ink: #16241c;
  --muted: #5b6b60;
  --white: #ffffff;
  --border: rgba(16, 40, 20, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(11, 42, 26, 0.12);
  --container: 1200px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--navy);
}
h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
p { line-height: 1.65; color: var(--muted); margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons & labels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
}
.btn-light { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-light .btn-arrow { background: var(--white); color: var(--green-dark); }
.btn-light:hover { background: rgba(255,255,255,0.22); }

.btn-gold { background: var(--green-deep); color: var(--white); box-shadow: 0 12px 30px rgba(15,122,61,0.35); }
.btn-gold .btn-arrow { background: var(--gold); color: var(--green-ink); }
.btn-gold:hover { background: var(--green-dark); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark .btn-arrow { background: var(--gold); color: var(--navy); }

.btn-block { width: 100%; justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.eyebrow .eyebrow-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--gold); display: inline-block; flex-shrink: 0; }
.eyebrow-light { color: rgba(255,255,255,0.92); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(10,32,18,0.65), rgba(10,32,18,0.15));
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(9, 28, 17, 0.92);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-logo { height: 46px; width: auto; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn.active { background: var(--white); color: var(--green-dark); }
.lang-btn:not(.active):hover { color: var(--white); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 14.5px;
  color: rgba(255,255,255,0.88);
  flex: 1;
  justify-content: center;
}
.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,28,16,0.75) 0%, rgba(8,28,16,0.55) 40%, rgba(6,20,12,0.88) 100%);
}
.hero-watermark {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(140px, 26vw, 460px);
  color: rgba(255,255,255,0.07);
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  max-width: 820px;
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 34px;
}
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ---------- Client logos strip ---------- */
.logos-strip {
  padding: 56px 0;
  background: var(--white);
  text-align: center;
}
.logos-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 48px;
}
.client-logo {
  height: 34px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.client-logo:hover { opacity: 1; }
.logos-row-muted .client-logo {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.logos-row-muted .client-logo:hover { opacity: 1; }

/* ---------- Why choose us ---------- */
.why { padding: 110px 0; background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.why-media { position: relative; }
.why-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.why-quote-card {
  position: absolute;
  left: -24px;
  bottom: -36px;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: 0 24px 50px rgba(11,42,26,0.18);
}
.why-quote-card p {
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 14px;
  font-style: italic;
}
.why-quote-foot { display: flex; flex-direction: column; gap: 2px; }
.why-quote-foot strong { font-family: var(--font-head); font-size: 14px; color: var(--green-deep); }
.why-quote-foot span { font-size: 12.5px; color: var(--muted); }

.why-copy h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin-bottom: 20px; }
.why-lead { font-size: 16px; margin-bottom: 30px; }
.why-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.why-cols h3 { font-size: 16px; margin-bottom: 8px; color: var(--green-deep); }
.why-cols p { font-size: 14.5px; }

.stats-row {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); max-width: 140px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: linear-gradient(160deg, var(--green-dark), var(--green-ink));
  padding: 100px 0;
  position: relative;
}
.trust-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.trust-inner h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  margin-bottom: 44px;
}
.trust-inner .logos-row { margin-bottom: 44px; }
.trust-inner .btn { margin: 0 auto; }

/* ---------- Services ---------- */
.services { padding: 110px 0; background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; margin-bottom: 16px; }
.section-sub { font-size: 16px; }
.section-head-light .eyebrow, .section-head-light h2 { color: var(--white); }
.section-head-light h2 { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(15,122,61,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.service-card p { font-size: 14.5px; }

/* ---------- Regulatory / Por qué HC ---------- */
.regulatory {
  background: var(--navy);
  padding: 110px 0;
  position: relative;
}
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.reg-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 36px;
}
.reg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 22px;
}
.reg-card h3 { color: var(--white); font-size: 21px; margin-bottom: 14px; }
.reg-card h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--gold); margin-top: 4px; }
.reg-card p { color: rgba(255,255,255,0.75); font-size: 14.5px; }
.reg-list { margin: 18px 0 0; padding-left: 18px; color: rgba(255,255,255,0.85); font-size: 14.5px; }
.reg-list li { margin-bottom: 8px; }

/* ---------- About + Contact ---------- */
.about-contact { padding: 110px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.about-copy p { font-size: 16px; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(15,122,61,0.1);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-icon-whatsapp { background: rgba(37,211,102,0.12); }
.contact-icon-whatsapp svg { width: 18px; height: 18px; fill: #25d366; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #ffffff; }
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 38px rgba(0,0,0,0.32); }
@media (max-width: 640px) {
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

.contact-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { font-size: 20px; margin-bottom: 24px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  resize: vertical;
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-deep);
}
.form-note { font-size: 13px; color: var(--green-deep); margin-top: 12px; min-height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-ink);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 48px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover { background: var(--gold); border-color: var(--gold); color: var(--green-ink); }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 26px 0;
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.footer-watermark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 380px);
  color: rgba(255,255,255,0.04);
  text-align: center;
  line-height: 0.7;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .why-grid, .about-grid, .reg-grid { grid-template-columns: 1fr; }
  .why-media img { height: 420px; }
  .why-quote-card { position: static; margin-top: -60px; margin-left: 16px; margin-right: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .btn.header-cta, .header-inner > .btn { display: none; }
  .lang-btn { padding: 6px 10px; font-size: 11px; }
  .hero-content { padding-top: 100px; }
  .why-cols { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; gap: 24px 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(9,28,17,0.97);
    padding: 24px 32px;
    gap: 20px;
    align-items: flex-start;
  }
}
