@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: oklch(0.985 0.012 80);
  --foreground: oklch(0.18 0.012 60);
  --cream: oklch(0.965 0.018 80);
  --sand: oklch(0.93 0.025 78);
  --card: oklch(0.99 0.008 80);
  --muted-foreground: oklch(0.45 0.02 60);
  --border: oklch(0.88 0.02 78);
  --gold: oklch(0.74 0.10 78);
  --gold-soft: oklch(0.86 0.06 82);
  --deep: oklch(0.20 0.035 225);
  --deep-foreground: oklch(0.97 0.012 80);
  --font-serif: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --shadow-premium: 0 30px 60px -30px oklch(0.20 0.035 225 / 18%);
  --shadow-soft: 0 10px 40px -20px oklch(0.74 0.10 78 / 25%);
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, .font-serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.italic-gold {
  background-image: linear-gradient(135deg, var(--gold) 0%, oklch(0.82 0.08 80) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic; padding-right: 0.08em;
}
.text-gold { color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em; color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.eyebrow .line { height: 1px; width: 2.5rem; background: var(--gold); display: inline-block; }

/* Header */
header.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: all .5s ease; background: transparent;
}
header.site-header.scrolled, header.site-header.menu-open {
  background: oklch(0.985 0.012 80 / 95%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(0.88 0.02 78 / 60%);
}
.header-inner {
  max-width: 80rem; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1024px) { .header-inner { padding: 1.25rem 2.5rem; } }
.logo { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: -0.01em; color: var(--foreground); }
nav.main-nav { display: none; align-items: center; gap: 2.25rem; }
nav.main-nav a { font-size: 1rem; color: oklch(0.18 0.012 60 / 75%); transition: color .2s; }
nav.main-nav a:hover { color: var(--foreground); }
@media (min-width: 1024px) { nav.main-nav { display: flex; } }

.btn-diagnostico {
  display: none; align-items: center; gap: 0.5rem;
  border-radius: 999px; border: 1px solid oklch(0.18 0.012 60 / 15%);
  background: var(--foreground); color: var(--background);
  padding: 0.75rem 1.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  transition: all .25s;
}
.btn-diagnostico:hover { background: var(--deep); border-color: oklch(0.74 0.10 78 / 40%); }
.btn-diagnostico span { color: var(--gold-soft); }
@media (min-width: 768px) { .btn-diagnostico { display: inline-flex; } }

.hamburger {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; gap: 6px; background: none; border: none;
}
.hamburger span { display: block; height: 2px; width: 1.5rem; background: var(--foreground); transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.mobile-panel {
  display: none; border-top: 1px solid oklch(0.88 0.02 78 / 60%);
  background: oklch(0.985 0.012 80 / 98%); backdrop-filter: blur(20px);
}
.mobile-panel.open { display: block; }
.mobile-panel nav { max-width: 80rem; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-panel a { padding: 0.875rem 0; font-size: 1rem; border-bottom: 1px solid oklch(0.88 0.02 78 / 40%); }
.mobile-panel a:last-of-type { border-bottom: none; }
.mobile-panel .btn-diagnostico { display: inline-flex; margin-top: 1.25rem; width: 100%; justify-content: center; padding: 1rem 1.25rem; font-size: 0.875rem; }
@media (min-width: 1024px) { .mobile-panel { display: none !important; } }

/* Buttons general */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  background: var(--deep); color: var(--deep-foreground);
  padding: 0.9rem 1.75rem; font-size: 0.9rem; letter-spacing: 0.02em;
  box-shadow: var(--shadow-premium); transition: all .25s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary span { color: var(--gold-soft); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid oklch(0.18 0.012 60 / 20%); background: oklch(0.985 0.012 80 / 60%);
  backdrop-filter: blur(6px); color: var(--foreground);
  padding: 0.9rem 1.75rem; font-size: 0.9rem; transition: all .25s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 5rem;
}
@media (min-width: 1024px) { .hero { padding: 10rem 0 7rem; } }
.hero-bg {
  position: absolute; inset: 0; z-index: -2; background-color: var(--cream);
  background-image: url('../assets/hero-bg.png');
  background-repeat: no-repeat; background-size: 180% auto; background-position: 75% top;
}
@media (min-width: 640px) { .hero-bg { background-size: 130% auto; background-position: 80% center; } }
@media (min-width: 1024px) { .hero-bg { background-size: cover; background-position: right center; } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, oklch(0.985 0.012 80 / 90%), oklch(0.985 0.012 80 / 70%), oklch(0.985 0.012 80 / 85%));
}
@media (min-width: 1024px) {
  .hero-overlay { background: linear-gradient(to right, var(--background) 0%, oklch(0.985 0.012 80 / 85%) 55%, transparent 100%); }
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero h1 { font-size: 2.2rem; line-height: 1.15; }
@media (min-width: 640px) { .hero h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.2rem; } }
.hero-lead { margin-top: 2rem; max-width: 36rem; color: var(--muted-foreground); font-size: 1rem; }
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; } }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.pillars { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { position: relative; padding-left: 1.5rem; }
.pillar .num { position: absolute; left: 0; top: 0.25rem; font-family: var(--font-serif); font-size: 1rem; color: var(--gold); }
.pillar h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0.01em; }
.pillar p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Section generic */
section { position: relative; }
.section-pad { padding: 7rem 0; }
@media (min-width: 1024px) { .section-pad { padding: 9rem 0; } }
.section-cream { background: var(--cream); }
.section-deep { background: var(--deep); color: var(--deep-foreground); }

/* About */
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; }
.about-media::before, .about-media::after { content: ""; position: absolute; width: 8rem; height: 8rem; }
.about-media::before { left: -1.5rem; top: -1.5rem; border-left: 1px solid oklch(0.74 0.10 78 / 50%); border-top: 1px solid oklch(0.74 0.10 78 / 50%); }
.about-media::after { right: -1.5rem; bottom: -1.5rem; border-right: 1px solid oklch(0.74 0.10 78 / 50%); border-bottom: 1px solid oklch(0.74 0.10 78 / 50%); }
.about-media .frame { position: relative; overflow: hidden; background: var(--cream); aspect-ratio: 4/5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
h2.title { font-size: 2.25rem; line-height: 1.2; }
@media (min-width: 1024px) { h2.title { font-size: 3rem; } }
.about-text { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--muted-foreground); }
.about-cards { margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .about-cards { grid-template-columns: repeat(2, 1fr); } }
.about-cards .card {
  border-radius: 0.5rem; border: 1px solid var(--border); background: oklch(0.99 0.008 80 / 50%);
  padding: 1.25rem; transition: all .25s;
}
.about-cards .card:hover { border-color: oklch(0.74 0.10 78 / 50%); background: var(--card); }
.about-cards .card .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }
.about-cards .card .value { margin-top: 0.75rem; font-family: var(--font-serif); font-size: 1.5rem; }

/* Problems */
.problems-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.problems-grid { margin-top: 4rem; display: grid; gap: 1px; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 1024px) { .problems-grid { grid-template-columns: repeat(5, 1fr); } }
.problems-grid .item { background: var(--cream); padding: 2rem; transition: background .3s; }
.problems-grid .item:hover { background: var(--background); }
.problems-grid .item .num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }
.problems-grid .item .bar { margin-top: 1.5rem; height: 1px; width: 2rem; background: oklch(0.74 0.10 78 / 60%); transition: width .3s; }
.problems-grid .item:hover .bar { width: 4rem; }
.problems-grid .item h3 { margin-top: 1.5rem; font-size: 1rem; font-weight: 500; }
.problems-grid .item p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Ecosystem / services (dark) */
.eco-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.eco-head .eyebrow { color: var(--gold-soft); }
.eco-head p.lead { margin-top: 1.5rem; font-size: 0.875rem; color: oklch(1 0 0 / 70%); }
.eco-grid { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .eco-grid { grid-template-columns: repeat(4, 1fr); } }
.eco-card {
  position: relative; border-radius: 0.75rem; border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 3%); padding: 2rem; transition: all .5s;
}
.eco-card:hover { transform: translateY(-4px); border-color: oklch(0.74 0.10 78 / 60%); background: oklch(1 0 0 / 6%); box-shadow: var(--shadow-soft); }
.eco-card .num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }
.eco-card .bar { margin-top: 1.5rem; height: 1px; width: 2.5rem; background: oklch(0.74 0.10 78 / 40%); transition: all .3s; }
.eco-card:hover .bar { width: 5rem; background: var(--gold); }
.eco-card h3 { margin-top: 1.5rem; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.3; }
.eco-card p { margin-top: 1rem; font-size: 0.875rem; color: oklch(1 0 0 / 70%); }
.eco-decor { position: absolute; inset: 0; opacity: 0.07; overflow: hidden; }
.eco-decor .c1 { position: absolute; left: -5rem; top: 2.5rem; height: 24rem; width: 24rem; border-radius: 50%; border: 1px solid var(--gold); }
.eco-decor .c2 { position: absolute; right: -8rem; bottom: 0; height: 30rem; width: 30rem; border-radius: 50%; border: 1px solid var(--gold); }

/* CTA */
.cta-section { text-align: center; overflow: hidden; }
.cta-inner { position: relative; max-width: 56rem; margin: 0 auto; }
.cta-topline { position: absolute; left: 50%; top: 0; height: 1px; width: 12rem; transform: translateX(-50%); background: var(--gold); }
h2.cta-title { font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 640px) { h2.cta-title { font-size: 3rem; } }
@media (min-width: 1024px) { h2.cta-title { font-size: 3.75rem; } }
.cta-lead { margin: 2rem auto 0; max-width: 36rem; color: var(--muted-foreground); }
.cta-btn-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 999px;
  background: var(--deep); color: var(--deep-foreground); padding: 1.25rem 2.5rem;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em;
  box-shadow: var(--shadow-premium); transition: all .25s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-cta span { color: var(--gold-soft); transition: transform .2s; }
.btn-cta:hover span { transform: translateX(4px); }
.cta-foot { margin-top: 2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }
.gold-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; pointer-events: none; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--background); padding: 4rem 0; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-desc { margin-top: 1.25rem; max-width: 24rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col .label { margin-bottom: 1.25rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: oklch(0.18 0.012 60 / 80%); }
.footer-col ul a:hover { color: var(--gold); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  background: var(--deep); color: var(--deep-foreground); padding: 0.75rem 1.5rem;
  font-size: 0.875rem; letter-spacing: 0.15em; box-shadow: var(--shadow-premium); transition: all .25s;
}
.footer-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.footer-insta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; color: oklch(0.18 0.012 60 / 80%); }
.footer-insta:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1rem; font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom .tag { text-transform: uppercase; letter-spacing: 0.2em; }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0,0,0,.28); }

/* ===== Páginas internas ===== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); padding: 9rem 0 6rem; }
@media (min-width: 1024px) { .page-hero { padding: 11rem 0 8rem; } }
.page-hero h1 { font-size: 2.7rem; line-height: 1.05; max-width: 56rem; }
@media (min-width: 640px) { .page-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 4.5rem; } }
.page-hero .lead { margin-top: 2rem; max-width: 42rem; color: var(--muted-foreground); font-size: 1rem; }
@media (min-width: 640px) { .page-hero .lead { font-size: 1.125rem; } }

.cells { margin-top: 4rem; display: grid; gap: 1px; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 640px) { .cells.cols-2 { grid-template-columns: repeat(2, 1fr); } .cells.cols-4 { grid-template-columns: repeat(2, 1fr); } .cells.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cells.cols-3 { grid-template-columns: repeat(3, 1fr); } .cells.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.cell { background: var(--background); padding: 2rem; transition: background .3s; }
.cell:hover { background: var(--cream); }
.cell.on-cream { background: var(--cream); }
.cell.on-cream:hover { background: var(--background); }
.cell .num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }
.cell .bar { margin-top: 1.5rem; height: 1px; width: 2.5rem; background: oklch(0.74 0.10 78 / 60%); transition: width .3s; }
.cell:hover .bar { width: 5rem; }
.cell h3 { margin-top: 1.5rem; font-family: var(--font-serif); font-size: 1.5rem; }
.cell h3.small { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; }
.cell p.desc { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cell .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em; color: var(--gold); }
.cell.big { padding: 2.5rem; }
.cell.big h3 { font-size: 1.875rem; }
.cell.big p.desc { font-size: 1rem; }

.list-dot { list-style: none; max-width: 36rem; margin: 3.5rem auto 0; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.list-dot li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1rem; line-height: 1.6; }
.list-dot li::before { content: ""; margin-top: 0.6rem; height: 5px; width: 5px; flex-shrink: 0; border-radius: 50%; background: var(--gold); }
.list-dot.muted li { color: var(--muted-foreground); }
.list-dot.muted li::before { background: var(--muted-foreground); }
.list-dot.on-dark li { color: oklch(1 0 0 / 70%); }

.btn-light {
  display: inline-flex; align-items: center; gap: 0.75rem; border-radius: 999px;
  background: var(--cream); color: var(--deep); padding: 1.25rem 2.5rem;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.25em;
  box-shadow: var(--shadow-premium); transition: all .25s; text-align: center;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-light span { color: var(--gold); transition: transform .2s; }
.btn-light:hover span { transform: translateX(4px); }

.center-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.section-deep .center-head .eyebrow { color: var(--gold-soft); }
.section-deep h2.title { color: var(--deep-foreground); }
.note-under { margin-top: 1rem; font-size: 0.75rem; color: oklch(1 0 0 / 50%); text-align: center; }
.back-link { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); transition: color .2s; }
.back-link:hover { color: var(--gold); }
