*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --g1: #1b9252;
  --g2: #0fad70;
  --t1: #8b6d3b;
  --t2: #7f5e21;
  --n1: #f2ede4;
  --n2: #efe7dd;
  --n3: #f8f8f8;
  --dark: #0d3a20;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--n1);
  color: #111;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--dark) 0%, var(--g1) 55%, #014d28 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8vh 8vw 6vh;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(15,173,112,.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(139,109,59,.2) 0%, transparent 55%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.012) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,.012) 60px);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: clamp(.65rem, 1.1vw, .8rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #a8dfc0;
  display: block;
  margin-bottom: .5rem;
  font-weight: 300;
  opacity: 0; animation: fadeUp .6s .2s ease forwards;
}

.hero-kicker {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp .7s .35s ease forwards;
}
.hero-kicker em {
  color: var(--g2);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.65);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .7s .5s ease forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  background: var(--g2);
  color: #fff;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background .25s, transform .2s;
  opacity: 0; animation: fadeUp .7s .65s ease forwards;
  margin-bottom: 3rem;
}
.hero-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { transform: translateY(-2px); background: #0d9e63; }
.hero-cta svg { width: 16px; height: 16px; transition: transform .25s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-byline {
  position: absolute;
  bottom: 2.5rem; left: 8vw;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  z-index: 2;
  opacity: 0; animation: fadeUp .6s 1s ease forwards;
}
.hero-byline strong { color: rgba(255,255,255,.55); }

/* ── WHAT SECTION ── */
.what {
  padding: 80px 8vw;
  background: var(--n1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.what-text .sec-num {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--t1);
  display: block;
  margin-bottom: .8rem;
}

.what-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--g1);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.what-text h2 em { color: var(--t1); font-style: italic; }

.what-text p {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.85;
  color: #3a3a3a;
  font-weight: 300;
  max-width: 90%;
}

/* ── CHART ── */
.chart-wrap {
  background: var(--n3);
  border: 1px solid rgba(0,0,0,.07);
  padding: 2rem 1rem 1rem;

}

.chart-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.chart-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--g1);
}

.chart-name {
  font-family: var(--serif);
  font-size: .95rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.bar {
  width: 100%;
  background: var(--g1);
  border-radius: 1px 1px 0 0;
  position: relative;
  transition: background .2s;
}

.bar-val {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  font-weight: 700;
}
.bar-exp .bar-val   { color: #1b9252; }
.bar-bien .bar-val  { color: #0c8c58; }
.bar-umbral .bar-val{ color: #7f5e21; }
.bar-drain .bar-val { color: #d94f1e; }

/* Range 8-9: Expansión */
.bar-exp { background: #1b9252; color: #1b9252; }
.bar-exp:hover { background: #166e3e; }

/* Range 6-7: Bienestar */
.bar-bien { background: #0fad70; color: #0fad70; }
.bar-bien:hover { background: #0c9460; }

/* Range 5: Umbral */
.bar-umbral { background: #8b6d3b; color: #8b6d3b; }
.bar-umbral:hover { background: #7f5e21; }

/* Range <5: Drenaje */
.bar-drain { background: #d94f1e; color: #d94f1e; }
.bar-drain:hover { background: #c24018; }

/* Legacy */
.bar-below5 { background: #d94f1e; color: #d94f1e; }

.bar-name {
  font-size: .58rem;
  text-align: center;
  color: #777;
  line-height: 1.3;
  letter-spacing: .02em;
  min-height: 2rem;
}

.chart-rule {
  margin-top: 1.2rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--g2);
  background: rgba(27,146,82,.05);
}
.chart-rule p {
  font-family: var(--serif);
  font-size: .8rem;
  font-style: italic;
  color: #3a3a3a;
  line-height: 1.6;
}
.chart-rule p strong { color: var(--g1); font-style: normal; }

/* scale */
.chart-scale {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 180px;
  margin-right: 4px;
  flex-shrink: 0;
}
.chart-scale span {
  font-size: .6rem;
  color: #bbb;
  line-height: 1;
}

.chart-inner {
  display: flex;
  gap: 0;
  align-items: flex-end;
}

/* ── AREAS ── */
.areas-sec {
  background: var(--n2);
  padding: 70px 8vw;
}
.areas-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.areas-inner .sec-num {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--t1);
  display: block;
  margin-bottom: .8rem;
}
.areas-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--g1);
  font-weight: 400;
  margin-bottom: .6rem;
}
.areas-inner h2 em { color: var(--t1); font-style: italic; }
.areas-inner .sub {
  font-size: .95rem;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.07);
}

.area-card {
  background: var(--n3);
  padding: 1.5rem 1.4rem;
  transition: background .22s;
  cursor: default;
}
.area-card:hover { background: #fff; }

.area-n {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--g2);
  opacity: .3;
  line-height: 1;
  margin-bottom: .4rem;
}
.area-name {
  font-family: var(--serif);
  font-size: .98rem;
  color: #222;
  line-height: 1.3;
}
.area-bar {
  width: 20px;
  height: 2px;
  background: var(--g2);
  margin-top: .9rem;
  opacity: .4;
  transition: width .3s, opacity .3s;
}
.area-card:hover .area-bar { width: 100%; opacity: .8; }

/* ── CTA SECTION ── */
.cta-sec {
  background: var(--dark);
  padding: 90px 8vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-sec::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15,173,112,.18) 0%, transparent 70%);
}
.cta-inner {
  position: relative; z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-sec .sec-num {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--g2);
  display: block;
  margin-bottom: .8rem;
}
.cta-sec h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.cta-sec h2 em { color: var(--g2); font-style: italic; }
.cta-sec p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--g2);
  color: #fff;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.4rem;
  position: relative;
  overflow: hidden;
  transition: background .25s, transform .2s;
}
.cta-btn:hover { background: #0d9e63; transform: translateY(-2px); }
.cta-btn svg { width: 16px; height: 16px; }

.cta-note {
  margin-top: 1.2rem;
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.28);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2rem 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: rgba(255,255,255,.7);
}
.footer-sub {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── BAR ANIMATION ── */
.bar { transform-origin: bottom; }

/* ── HR ── */
.hr {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--g2) 30%, var(--t1) 70%, transparent 100%);
  opacity: .2;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .what {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 6vw;
  }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 10vh 6vw 8vh; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── SI-PC EXPLAIN ── */
.sipc-sec {
  background: var(--dark);
  padding: 80px 8vw;
  position: relative;
  overflow: hidden;
}
.sipc-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(15,173,112,.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(139,109,59,.15) 0%, transparent 55%);
}
.sipc-inner {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.sipc-inner .sec-num { color: var(--g2); }
.sipc-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.sipc-inner h2 em { color: var(--g2); font-style: italic; }

.sipc-intro {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 3rem;
}

.niveles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2.5rem;
}
.nivel {
  padding: 1.8rem 1.6rem;
  background: rgba(255,255,255,.03);
  transition: background .22s;
}
.nivel:hover { background: rgba(255,255,255,.07); }
.nivel-n {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  opacity: .25;
  line-height: 1;
  margin-bottom: .5rem;
}
.nivel-name {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: .5rem;
  font-weight: 400;
}
.nivel-desc {
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
}
.nivel-tags {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .8rem;
  opacity: .4;
}
.nivel-01 .nivel-n, .nivel-01 .nivel-name { color: #c4a06a; }
.nivel-02 .nivel-n, .nivel-02 .nivel-name { color: var(--g2); }
.nivel-03 .nivel-n, .nivel-03 .nivel-name { color: #a8dfc0; }

.sipc-arrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(15,173,112,.1);
  border-left: 4px solid var(--g2);
  max-width: 700px;
}
.sipc-arrow p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}
.sipc-arrow p strong { color: var(--g2); font-style: normal; }
.sipc-arrow-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  opacity: .5;
}

@media (max-width: 768px) {
  .niveles { grid-template-columns: 1fr; }
}


/* ── PAOLA PHOTO (Opción A) ── */
.paola-sec {
  background: var(--n1);
  padding: 80px 8vw;
}
.paola-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: center;
}
.paola-img-wrap {
  position: relative;
}
.paola-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.paola-img-line {
  position: absolute;
  top: 0; left: -14px;
  width: 4px; height: 100%;
  background: var(--g1);
}
.paola-img-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 55%; height: 55%;
  background: var(--g1);
  opacity: .12;
  z-index: -1;
}
.paola-text .sec-num {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--t1);
  display: block;
  margin-bottom: .8rem;
}
.paola-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--g1);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.paola-text h2 em { color: var(--t1); font-style: italic; }
.paola-text p {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  line-height: 1.9;
  color: #3a3a3a;
  font-weight: 300;
  margin-bottom: .9rem;
}
.paola-firma {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--t1);
  margin-top: 1.4rem;
  display: block;
}
@media (max-width: 768px) {
  .paola-inner { grid-template-columns: 1fr; gap: 40px; }
  .paola-img-wrap { max-width: 280px; }
}