/* =====================================================
   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: #f5f0e0;
  --cream-deep: #ede7d0;
  --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: #a85730;
  --terracota-deep: #7a3d1f;
  --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;
  overflow-x: hidden;
}

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: 400;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5.6vw, 72px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3vw, 44px); line-height: 1.14; }
h3 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }

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: 700;
}

/* ---------- 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: 20px;
  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(48px, 6vw, 80px) 0 0;
  margin-top: 60px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(245,240,224,0.14);
}
.footer-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 18px;
}
.footer-title .f-arrow { opacity: 0.6; font-size: 0.75em; }
.footer-sub { font-size: 15px; color: rgba(245,240,224,0.6); line-height: 1.6; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(245,240,224,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); text-decoration: none;
  transition: background .2s;
}
.footer-social-btn:hover { background: rgba(245,240,224,0.22); }
.footer-right-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,224,0.45); font-weight: 600; margin-bottom: 16px;
}
.footer-cta-btn {
  display: inline-block;
  background: var(--olive); color: var(--white);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; margin-bottom: 28px;
  transition: background .2s;
}
.footer-cta-btn:hover { background: var(--olive-deep); }
.footer-contact-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; font-size: 14px;
  color: rgba(245,240,224,0.65);
}
.footer-contact-row a { color: rgba(245,240,224,0.65); text-decoration: none; transition: color .2s; }
.footer-contact-row a:hover { color: var(--olive); }
.footer-contact-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(245,240,224,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--cream);
}
.footer-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 20px 0 28px; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(245,240,224,0.4);
}
.footer-bottom-links { display: flex; gap: 22px; margin-top: 8px; }
.footer-bottom-links a { color: rgba(245,240,224,0.4); text-decoration: none; font-size: 12px; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--cream); }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; 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: minmax(0, 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-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.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: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 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; }

/* ---------- Responsive grid utility ---------- */
/* Add class="mob-grid-1" to any inline 2-col grid that needs to collapse on mobile */
@media (max-width: 760px) {
  .mob-grid-1 { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Footer: single column on small phones */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Service icon + etapa chips ---------- */
.service-icon {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}
.etapa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.etapa-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--white);
  border: 1px solid var(--brown-faint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brown-soft);
}
.etapa-chip img {
  height: 26px;
  width: auto;
}
.card-service-icon {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ---------- Hero grid ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 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; }
  .hero-stats { gap: 20px !important; }
  .hero-stats > div { min-width: 80px; }
}

/* ---------- 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; }
}
