/* =====================================================
   Ana María Pellerano — Sistema visual
   ===================================================== */

@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Black.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Black Italic.otf') format('opentype');
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Medium Italic.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Laca';
  src: url('fonts/Laca Regular Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --cream: #fbfbf8;
  --cream-deep: #f0ece0;
  --brown: #401c00;
  --brown-soft: #6b4530;
  --brown-faint: rgba(64, 28, 0, 0.12);
  --brown-line: rgba(64, 28, 0, 0.18);
  --olive: #91ba39;
  --olive-deep: #6f9226;
  --terracota: #b65629;
  --terracota-deep: #853013;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(64, 28, 0, 0.04), 0 12px 32px rgba(64, 28, 0, 0.06);

  --font-serif: 'Laca', sans-serif;
  --font-sans: 'Laca', sans-serif;
  --font-mono: ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--brown); text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 900; line-height: 1.06; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; line-height: 1.14; }
h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracota-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--terracota-deep);
}

.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--brown-soft);
  max-width: 56ch;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(72px, 9vw, 140px) 0; }

.divider {
  border: 0;
  border-top: 1px solid var(--brown-line);
  margin: 0;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 224, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--brown-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  align-self: flex-start;
}
.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--brown);
  position: relative;
  padding: 6px 2px;
  font-weight: 500;
}
.nav-links a.is-active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
}
.nav-cta {
  background: var(--brown);
  color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 600;
}
.nav-cta:hover { background: #2a1100; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; }

@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracota); color: var(--white); }
.btn-primary:hover { background: var(--terracota-deep); color: var(--white); }
.btn-secondary { background: var(--brown); color: var(--cream); }
.btn-secondary:hover { background: #2a1100; color: var(--cream); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown-line); }
.btn-ghost:hover { background: var(--brown); color: var(--cream); }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Image / arch placeholders ---------- */
.arch {
  position: relative;
  border-radius: 999px 999px 12px 12px / 70% 70% 12px 12px;
  background:
    repeating-linear-gradient(135deg,
      rgba(64,28,0,0.06) 0 12px,
      rgba(64,28,0,0.02) 12px 24px),
    var(--cream-deep);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--brown-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--brown-faint);
}
.arch.dim { opacity: .85; }

.circle-img {
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg,
      rgba(64,28,0,0.06) 0 10px,
      rgba(64,28,0,0.02) 10px 20px),
    var(--cream-deep);
  display: grid;
  place-items: center;
  color: var(--brown-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  border: 1px solid var(--brown-faint);
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--brown-faint);
  border-radius: 20px;
  padding: clamp(24px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brown-line);
}
.card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--terracota-deep);
}
.card h3 { margin-top: 4px; }
.card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brown);
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--brown-faint);
}
.card-link .arrow { transition: transform .2s; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: clamp(60px, 7vw, 100px) 0 32px;
  margin-top: 60px;
}
.footer h4 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer a { color: var(--cream); opacity: 0.78; font-size: 14px; }
.footer a:hover { opacity: 1; color: var(--olive); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,240,224,0.16);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.footer .brand-wordmark { color: var(--cream); }
.footer .brand-tagline { color: rgba(245,240,224,0.6); }
.footer-tag { max-width: 360px; opacity: 0.78; margin-top: 14px; font-size: 14px; line-height: 1.6; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- Section header helper ---------- */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.section-header .lead { margin: 0; }
@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* ---------- Retoños rings (concentric circles) ---------- */
.retonos {
  --ring: 320px;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.retonos .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--brown-line);
  display: grid;
  place-items: start center;
  padding-top: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 600;
}
.retonos .r1 { width: 100%; height: 100%; }
.retonos .r2 { width: 76%; height: 76%; }
.retonos .r3 { width: 54%; height: 54%; }
.retonos .core {
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
}

/* ---------- Forms ---------- */
.form-row { display: grid; gap: 6px; margin-bottom: 22px; }
.form-row label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 600;
}
.input, .textarea, .select {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--brown);
  background: var(--white);
  border: 1px solid var(--brown-faint);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--terracota);
  box-shadow: 0 0 0 4px rgba(200, 96, 58, 0.15);
}
.textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(145, 186, 57, 0.16);
  color: var(--olive-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.brown { background: rgba(64, 28, 0, 0.08); color: var(--brown); }

/* leaf accent SVG */
.leaf {
  width: 28px; height: 28px;
  color: var(--olive);
  flex-shrink: 0;
}

/* fadein */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .8s ease both; }
.fade-up.d1 { animation-delay: .08s; }
.fade-up.d2 { animation-delay: .16s; }
.fade-up.d3 { animation-delay: .24s; }
.fade-up.d4 { animation-delay: .32s; }

/* ---------- Hero grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 3/2 !important; order: -1; }
  .hero-leaf { display: none !important; }
  .hero-quote { right: 0 !important; left: 0 !important; bottom: -8px !important; max-width: 90% !important; margin: 0 auto; }
}

/* ---------- Mobile hamburger nav ---------- */
.hamburger {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
}
@media (max-width: 880px) {
  .hamburger { display: flex; }
  .nav-inner { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 240, 224, 0.98);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--brown-line);
    padding: 8px var(--pad) 20px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--brown-faint); }
  .nav-cta { align-self: flex-start; margin-top: 14px; }
}
