/* ── RESET & VARIABLES ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:    #0D3D2E;
  --emerald:   #1A5C4A;
  --sage:      #2E8B6E;
  --mint:      #7FD4B0;
  --mist:      #EBF5F1;
  --ivory:     #F0F4F2;
  --warm:      #FAFAF8;
  --charcoal:  #1C2B27;
  --mid:       #4A6B5A;
  --subtle:    #6B8F82;
  --border:    #E0EAE5;
  --amber:     #E8A84C;
  --radius:    12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--emerald); color: white;
  padding: 13px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--sage); }

.btn-amber {
  display: inline-block;
  background: var(--amber); color: white;
  padding: 13px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
}
.btn-amber:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-block;
  background: white; color: var(--emerald);
  padding: 13px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--border);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--emerald); }

/* ── NAV ───────────────────────────────────────────── */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 600; color: var(--emerald); line-height: 1.2;
}
.nav-brand span {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 500; color: var(--subtle);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--mid); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-btn {
  padding: 5px 11px; font-size: 11px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; background: none;
  border: none; cursor: pointer; color: var(--subtle); transition: all 0.2s;
}
.lang-btn.active { background: var(--emerald); color: white; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: all 0.3s;
}
.nav-mobile {
  display: none; position: fixed; inset: 68px 0 0 0;
  height: auto;
  background: white; z-index: 99; padding: 24px 20px 32px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  align-items: stretch;
  justify-content: flex-start;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 17px; font-weight: 500; color: var(--charcoal);
  text-decoration: none; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  width: 100%;
}
.nav-mobile a:last-child {
  border-bottom: none; margin-top: 12px;
  justify-content: center;
}
.nav-mobile .btn-primary {
  padding: 14px 20px;
  color: white;
  border: none;
}
.nav-mobile .btn-primary:hover { background: var(--sage); }

/* ── TRUST BAR ─────────────────────────────────────── */
.trust-bar {
  background: var(--forest);
  padding: 15px 48px;
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 0 24px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.75); font-family: 'DM Sans', sans-serif;
}
.trust-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.12); }

/* ── SECTION UTILITIES ─────────────────────────────── */
.section { padding: 88px 80px; max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}
.section h2 {
  font-size: 42px; font-weight: 400; color: var(--charcoal);
  line-height: 1.2; margin-bottom: 16px;
}
.section h2 em, .section h1 em { font-style: italic; color: var(--emerald); }
.section-sub {
  font-size: 15px; color: var(--mid); max-width: 560px;
  line-height: 1.75; margin-bottom: 48px;
}

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mist); color: var(--emerald);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
  margin-bottom: 24px; font-family: 'DM Sans', sans-serif;
}
.tag-pill::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--sage);
}

/* ── CARDS ─────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 24px rgba(26,92,74,0.08); }
.card-icon {
  width: 48px; height: 48px; background: var(--mist);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 500; color: var(--charcoal); margin-bottom: 10px; }
.card p { font-size: 13px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.card-link {
  font-size: 12px; font-weight: 700; color: var(--emerald);
  text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

/* ── CTA SECTION ───────────────────────────────────── */
.cta-section {
  padding: 88px 80px; text-align: center;
  max-width: 1280px; margin: 0 auto;
}
.cta-section h2 {
  font-size: 44px; font-weight: 400;
  color: var(--charcoal); line-height: 1.2; margin-bottom: 16px;
}
.cta-section h2 em { font-style: italic; color: var(--emerald); }
.cta-section > p { font-size: 15px; color: var(--mid); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: #0A2019;
  color: rgba(255,255,255,0.5);
  padding: 56px 80px 32px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  text-decoration: none; color: inherit;
}
.footer-logo img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; font-weight: 600; color: white; line-height: 1.2;
}
.footer-brand-sub {
  font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em; text-transform: uppercase; font-family: 'DM Sans', sans-serif;
}
.footer-desc { font-size: 12px; line-height: 1.8; max-width: 240px; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px; font-family: 'DM Sans', sans-serif;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.45); font-size: 12px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 11px;
}

/* ── BILINGUAL ──────────────────────────────────────── */
.es { display: none; }
body.lang-es .en { display: none; }
body.lang-es .es { display: block; }
.es-inline { display: none; }
body.lang-es .en-inline { display: none; }
body.lang-es .es-inline { display: inline; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 0 20px; }
  .nav-logo { min-width: 0; flex: 1; gap: 8px; }
  .nav-logo img { width: 36px; height: 36px; }
  .nav-brand { font-size: 14px; line-height: 1.05; }
  .nav-brand span { font-size: 8px; letter-spacing: 0.06em; }
  .nav-links { display: none; }
  .nav-right { flex-shrink: 0; gap: 10px; }
  .nav-hamburger { display: flex; }
  .nav-right .btn-primary { display: none; } /* hide Get Started — in mobile nav instead */

  /* Trust bar: horizontal scroll strip */
  .trust-bar {
    padding: 0 20px;
    overflow-x: auto; flex-wrap: nowrap;
    justify-content: flex-start; gap: 0;
    -webkit-overflow-scrolling: touch;
  }
  .trust-bar::-webkit-scrollbar { display: none; }
  .trust-item {
    flex-shrink: 0; padding: 14px 18px;
    font-size: 11px;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
  }
  .trust-item:last-child { border-right: none !important; }

  /* Sections */
  .section { padding: 52px 20px; }
  .section h2 { font-size: 30px; }
  .section-sub { margin-bottom: 32px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* CTA section */
  .cta-section { padding: 52px 20px; }
  .cta-section h2 { font-size: 30px; }
  .cta-btns {
    flex-direction: column; align-items: stretch; gap: 10px;
  }
  .cta-btns .btn-primary,
  .cta-btns .btn-amber,
  .cta-btns .btn-ghost { text-align: center; }

  /* Footer */
  footer { padding: 40px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-desc { max-width: none; }
  .footer-bottom {
    flex-direction: column; gap: 8px; text-align: center;
  }
}

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,139,110,0.4); }
  50%      { opacity: 0.8; box-shadow: 0 0 0 5px rgba(46,139,110,0); }
}
.fade-up   { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation: fadeUp 0.5s ease 0.1s both; }
.fade-up-2 { animation: fadeUp 0.5s ease 0.2s both; }
.fade-up-3 { animation: fadeUp 0.5s ease 0.3s both; }
.fade-up-4 { animation: fadeUp 0.5s ease 0.4s both; }
.pulse-dot { animation: pulse 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up-1, .fade-up-2, .fade-up-3, .fade-up-4 { animation: none; }
  .pulse-dot { animation: none; }
}
