/* ===================== TOKENS ===================== */
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/CormorantGaramond-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/CormorantGaramond-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Montserrat'; src: url('assets/fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Caveat'; src: url('assets/fonts/Caveat-Bold.ttf') format('truetype'); font-weight: 700; }

:root {
  --green-dark: #5B7A5E;
  --green-sage: #A9C5A0;
  --green-pale: #E8EFE6;
  --mustard: #F7C87A;
  --grey-dark: #3D3D3D;
  --white: #FFFFFF;

  --serif: 'Cormorant Garamond', serif;
  --sans: 'Montserrat', sans-serif;
  --script: 'Caveat', cursive;

  --max: 1100px;
  --max-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-dark); color: white; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 28px; }
.wrap-narrow.center, .center { text-align: center; }

/* ===================== REVEAL ANIMATION ===================== */
/* Progressive enhancement: content is visible by default. Only hidden
   pre-animation once JS confirms it loaded (html.js-ready), so a JS
   failure or a missed intersection observer never leaves content invisible. */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-dark);
  color: white;
  box-shadow: 0 4px 16px rgba(91,122,94,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(91,122,94,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-secondary:hover { background: var(--green-pale); }
.btn-large { font-size: 18px; padding: 18px 38px; margin: 8px 0 40px; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-pale);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-logo {
  display: block;
  text-decoration: none;
  white-space: nowrap;
}
.header-logo img { width: 88px; height: 88px; display: block; }
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--grey-dark);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--mustard);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.btn-nav-cta {
  background: var(--mustard);
  color: var(--grey-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
}

.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(--green-dark); display: block; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 90px 28px 70px;
  text-align: center;
  overflow: hidden;
  background: #ffffff;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.hero-logo { width: 680px; max-width: 92%; margin: 0 auto 26px; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.hero-quote {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--grey-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--grey-dark);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== NAME STRIP ===================== */
.name-strip {
  padding: 60px 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-pale) 0%, #ffffff 130%);
}
.name-text {
  font-size: 18px;
  color: var(--grey-dark);
  max-width: 560px;
  margin: 0 auto 14px;
}
.name-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--green-dark);
  margin-top: 24px;
  line-height: 1.4;
}

/* ===================== SECTIONS ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--green-pale); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 10px;
}
.wrap .eyebrow, .wrap-narrow .eyebrow { text-align: left; }
.wrap-narrow.center .eyebrow, .center .eyebrow { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--green-dark);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--mustard);
  border-radius: 2px;
}
.center .section-title::after { left: 50%; transform: translateX(-50%); }

.section p { font-size: 17.5px; margin-bottom: 16px; max-width: 640px; }
.section p:last-child { margin-bottom: 0; }
.lead-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px !important;
  color: var(--green-dark);
  line-height: 1.4;
  margin-top: 24px !important;
}

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 22px 30px;
  box-shadow: 0 3px 16px rgba(91,122,94,0.1);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(91,122,94,0.16); }
.service-card img { width: 150px; margin: 0 auto 16px; }
.service-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; text-align: left; max-width: none; }
.service-meta {
  font-size: 13px !important;
  font-weight: 700;
  color: var(--green-dark);
  text-align: left;
  margin-top: 12px !important;
}

.pricing-note {
  margin: 44px auto 0;
  background: var(--green-pale);
  border-left: 3px solid var(--mustard);
  border-radius: 4px;
  padding: 22px 28px;
  max-width: 640px;
  text-align: center;
}
.pricing-note p { font-style: italic; color: var(--grey-dark); margin: 0; font-size: 16.5px; }

/* ===================== COMPASS (Mi brújula) ===================== */
.compass-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  margin-top: 10px;
}
.compass-grid li {
  font-size: 17px;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.compass-grid li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--mustard);
  border-radius: 50%;
}

/* ===================== TIMELINE (Formación) ===================== */
.timeline { margin-top: 34px; }
.tl-year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--green-dark);
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--mustard);
  display: inline-block;
}
.timeline > .tl-year:first-child { margin-top: 0; }
.tl-item {
  padding-left: 18px;
  border-left: 2px solid var(--green-sage);
  margin-bottom: 16px;
}
.tl-title { font-size: 16.5px; font-weight: 700; color: var(--grey-dark); margin-bottom: 2px; }
.tl-meta { font-size: 14px; color: var(--green-dark); }

.books { margin-top: 50px; }
.books h3 { font-family: var(--serif); font-size: 24px; color: var(--green-dark); margin-bottom: 16px; }
.books ul { list-style: none; }
.books li { font-size: 15.5px; font-style: italic; margin-bottom: 8px; }
.books li span { font-style: normal; color: var(--green-dark); }

/* ===================== QUOTE BLOCK ===================== */
.quote-block {
  background: var(--green-dark);
  color: white;
  text-align: center;
  padding: 80px 28px;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-author {
  font-family: var(--script);
  font-size: 26px;
  color: var(--mustard);
  margin-top: 20px;
}

/* ===================== CONTACT ===================== */
.contact-section { padding: 90px 0; }
.contact-logo { width: 240px; margin: 0 auto 20px; }
p.contact-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 44px);
  color: var(--green-dark);
  margin-bottom: 28px;
  line-height: 1.25;
  max-width: none;
}
.contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
  text-decoration: none;
  color: var(--grey-dark);
}
.contact-row .ic {
  width: 22px; height: 22px;
  color: var(--green-dark);
  flex-shrink: 0;
}
.contact-row .ic svg { width: 100%; height: 100%; }

/* ===================== FOOTER ===================== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  color: var(--green-sage);
  background: var(--white);
  border-top: 1px solid var(--green-pale);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 20px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--green-pale);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .header-logo { font-size: 18px; }
  .btn-nav-cta { font-size: 13px; padding: 8px 16px; }
  .hero { padding: 60px 20px 50px; }
  .services-grid { grid-template-columns: 1fr; }
  .compass-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
}
