/* ============================================================
   BRÚJULAMAYOR — main.css
   Tokens, reset, utilidades, nav, footer, componentes globales
   ============================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  /* Brand — deep forest green: calm, healing, trustworthy */
  --c-primary:      #1D6A56;
  --c-primary-dark: #134A3C;
  --c-primary-lt:   #2E9470;
  --c-primary-xl:   #E6F4EF;   /* very light green tint */

  /* Accent — warm amber: human touch, care */
  --c-accent:       #D4791A;
  --c-accent-lt:    #FAEBD0;

  /* CTA buttons */
  --c-warm:         #f2861f;
  --c-warm-hover:   #A85C10;
  --c-warm-lt:      #FEF0DC;
  --c-warm-shadow:  rgba(207,113,24,.28);

  /* Status */
  --c-rose:         #D44B5A;
  --c-rose-lt:      #FDEAEA;

  /* Surfaces */
  --c-bg:           #FAF8F4;   /* warm off-white */
  --c-bg-soft:      #F3EDE4;   /* warm cream */
  --c-bg-warm:      #FDF8F1;
  --c-dark:         #1C1410;   /* warm near-black for dark sections */

  /* Text */
  --c-text:         #1A120E;   /* warm near-black */
  --c-text-mid:     #54403A;   /* warm medium */
  --c-text-soft:    #9A8880;   /* warm light */

  /* Borders */
  --c-border:       #E3D9D0;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(29,106,86,.07);
  --shadow-md:   0 4px 20px rgba(29,106,86,.12);
  --shadow-lg:   0 12px 48px rgba(29,106,86,.18);
  --shadow-warm: 0 8px 28px rgba(207,113,24,.25);

  /* Layout */
  --max-w:       1200px;
  --section-py:  clamp(4rem, 8vw, 7rem);

  /* Fonts */
  --font-head:   'Fraunces', Georgia, serif;
  --font-body:   'Karla', system-ui, sans-serif;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-inline: auto;
}

/* Tag / pill label */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase;
  background: var(--c-primary-xl); color: var(--c-primary);
  border: 1px solid rgba(29,106,86,.15);
  padding: .35rem .9rem; border-radius: var(--radius-pill);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  padding: .85rem 1.85rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: all .25s ease; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn-primary {
  background: var(--c-warm); color: #fff;
  box-shadow: var(--shadow-warm);
}
.btn-primary:hover {
  background: var(--c-warm-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(207,113,24,.4);
}
.btn-outline {
  background: transparent; color: var(--c-text); border-color: var(--c-border);
}
.btn-outline:hover {
  border-color: var(--c-primary); color: var(--c-primary);
  background: var(--c-primary-xl);
}
.btn-white {
  background: #fff; color: var(--c-primary);
  border-color: rgba(255,255,255,.35);
}
.btn-white:hover {
  background: var(--c-primary-xl);
  transform: translateY(-2px);
}
.btn-sm { padding: .55rem 1.25rem; font-size: .84rem; }

/* Section headings */
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .tag { margin-bottom: 1rem; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 700; line-height: 1.12; color: var(--c-text); margin-bottom: 1rem;
}
.section-head p { font-size: 1.05rem; color: var(--c-text-mid); line-height: 1.78; }
.section-head.center { text-align: center; margin-inline: auto; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .32s; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 0; transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: 1.2rem;
  font-weight: 700; color: var(--c-primary); flex-shrink: 0;
}
.nav-logo i { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .875rem; font-weight: 600; color: var(--c-text-mid);
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.nav-cta { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .35rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px; transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 65px; left: 0; right: 0; bottom: 0;
  background: var(--c-bg); z-index: 99;
  padding: 2rem; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.05rem; font-weight: 600; color: var(--c-text);
  padding: 1rem 0; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: .5rem;
}
.mobile-menu a.active { color: var(--c-primary); }
.mobile-menu .mobile-btns {
  display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem;
}
.mobile-menu .btn { justify-content: center; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--c-dark); color: rgba(255,255,255,.65);
  padding: 4.5rem 0 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 2rem;
}
.footer-brand .logo {
  font-family: var(--font-head); font-size: 1.25rem;
  font-weight: 700; color: #fff; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.footer-brand .logo i { color: var(--c-primary-lt); }
.footer-brand p { font-size: .875rem; line-height: 1.72; max-width: 280px; }
.footer-brand .footer-contact {
  margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.35);
}
.footer-brand .footer-contact a {
  color: rgba(255,255,255,.5); transition: color .2s;
}
.footer-brand .footer-contact a:hover { color: #fff; }
.footer-col h5 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.3); margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  font-size: .875rem; color: rgba(255,255,255,.55); transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.25); }
.footer-credits {
  font-size: .78rem; color: rgba(255,255,255,.22);
  display: flex; align-items: center; gap: .35rem;
}
.footer-credits i { color: var(--c-rose); }

/* ── FLOATING CTA ────────────────────────────────────────── */
#floating-cta {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 89; opacity: 0; pointer-events: none;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
#floating-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}
.fcta-inner {
  display: flex; align-items: center; gap: .75rem;
  background: var(--c-dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-pill);
  padding: .7rem 1.4rem .7rem .9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.fcta-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-lt));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.fcta-text { color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.2; }
.fcta-text strong { color: #fff; display: block; font-size: .88rem; }
.fcta-btn {
  background: var(--c-warm); color: #fff; border: none;
  border-radius: var(--radius-pill); padding: .5rem 1.1rem;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; margin-left: .25rem;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; gap: .35rem; text-decoration: none;
}
.fcta-btn:hover { background: var(--c-warm-hover); transform: scale(1.04); }
.fcta-close {
  background: none; border: none; color: rgba(255,255,255,.35);
  cursor: pointer; padding: .25rem; font-size: 1rem; transition: color .2s;
}
.fcta-close:hover { color: rgba(255,255,255,.75); }

/* ── BACK TO TOP ─────────────────────────────────────────── */
#btt {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; border: none;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: all .3s; text-decoration: none;
}
#btt.visible { opacity: 1; pointer-events: auto; }
#btt:hover { background: var(--c-primary-lt); transform: translateY(-2px); }

/* ── RESPONSIVE: TABLET ≤ 900px ─────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── RESPONSIVE: MOBILE ≤ 600px ─────────────────────────── */
@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #floating-cta { bottom: 1rem; left: 1rem; right: 1rem; transform: translateY(80px); }
  #floating-cta.visible { transform: translateY(0); }
  .fcta-inner { border-radius: var(--radius-lg); justify-content: space-between; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
