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

:root {
  --verde-noche: #0F2A1E;
  --verde-marca: #1D9E75;
  --verde-claro: #5DCAA5;
  --menta: #E1F5EE;
  --arena: #F5F0E8;
  --texto-oscuro: #0A1F16;
  --texto-medio: #3D6B57;
  --blanco: #FAFAF8;
  --ease: 0.25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--blanco); color: var(--texto-oscuro); overflow-x: hidden; }

/* SCROLL ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.problem-grid  .fade-up:nth-child(2), .services-grid .fade-up:nth-child(2) { transition-delay: .1s; }
.problem-grid  .fade-up:nth-child(3), .services-grid .fade-up:nth-child(3) { transition-delay: .2s; }
.problem-grid  .fade-up:nth-child(4) { transition-delay: .3s; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(15,42,30,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(225,245,238,0.06);
  transition: padding .3s ease;
}
nav.scrolled { padding-top: .875rem; padding-bottom: .875rem; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Serif Display', serif; font-size: 1.5rem;
  color: var(--menta); text-decoration: none; letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .875rem; color: rgba(225,245,238,.65); text-decoration: none; transition: color var(--ease); }
.nav-links a:hover { color: var(--verde-claro); }
.nav-cta {
  font-size: .875rem; font-weight: 500;
  background: var(--verde-marca); color: var(--menta);
  border: none; padding: .6rem 1.4rem; border-radius: 6px;
  cursor: pointer; text-decoration: none; transition: background var(--ease);
}
.nav-cta:hover { background: #16835f; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--menta); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.mobile-nav {
  display: none; position: fixed; top: 65px; left: 0; right: 0;
  background: rgba(15,42,30,0.98); backdrop-filter: blur(10px);
  padding: 1.5rem; z-index: 99;
  border-bottom: 1px solid rgba(225,245,238,0.08);
  transform: translateY(-8px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: .875rem 0; font-size: 1rem; color: rgba(225,245,238,.8); text-decoration: none; border-bottom: 1px solid rgba(225,245,238,.06); }
.mobile-nav .mobile-cta { display: block; margin-top: 1.25rem; background: var(--verde-marca); color: var(--menta); text-align: center; padding: .875rem; border-radius: 8px; font-weight: 500; text-decoration: none; }

/* HERO */
.hero {
  min-height: 100vh; background: var(--verde-noche);
  display: flex; align-items: center;
  padding: 8rem 3rem 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(29,158,117,.11) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -10%; left: 15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(93,202,165,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 360px;
  gap: 5rem; align-items: center; position: relative; z-index: 1;
}
/* Variante de una sola columna para landing pages */
.hero-inner.single { grid-template-columns: 1fr; max-width: 820px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--verde-claro);
  border: 1px solid rgba(93,202,165,.3); padding: .4rem .9rem; border-radius: 100px;
  margin-bottom: 2rem; animation: fadeUp .6s ease both;
}
.hero-tag span { width: 6px; height: 6px; border-radius: 50%; background: var(--verde-claro); animation: pulse 2s infinite; }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.75rem);
  line-height: 1.06; color: var(--blanco); letter-spacing: -.03em;
  max-width: 680px; margin-bottom: 1.75rem;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--verde-claro); }
.hero p {
  font-size: 1.125rem; font-weight: 300; line-height: 1.8;
  color: rgba(225,245,238,.68); max-width: 540px; margin-bottom: 2.5rem;
  animation: fadeUp .6s .2s ease both;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; animation: fadeUp .6s .3s ease both; }

.btn-primary {
  background: var(--verde-marca); color: var(--menta);
  border: none; padding: .875rem 2rem; border-radius: 8px;
  font-size: .9375rem; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: all var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #16835f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,158,117,.35); }
.btn-secondary {
  background: transparent; color: rgba(225,245,238,.8);
  border: 1px solid rgba(225,245,238,.2); padding: .875rem 2rem; border-radius: 8px;
  font-size: .9375rem; cursor: pointer; text-decoration: none; transition: all var(--ease);
}
.btn-secondary:hover { border-color: rgba(93,202,165,.5); color: var(--verde-claro); }

/* SHARED SECTION */
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-marca); margin-bottom: 1rem; }

/* PROBLEM / GRID DE TARJETAS */
.problem { background: var(--arena); padding: 6rem 3rem; }
.problem h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem,4vw,3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--texto-oscuro); max-width: 700px; margin-bottom: 1.5rem; }
.problem > .section-inner > p { font-size: 1rem; color: var(--texto-medio); max-width: 620px; line-height: 1.75; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.problem-card { background: var(--blanco); border-radius: 12px; padding: 1.75rem; border: 1px solid rgba(15,42,30,.08); transition: transform var(--ease), box-shadow var(--ease); }
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,42,30,.08); }
.problem-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--menta); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.25rem; }
.problem-card h3 { font-size: 1rem; font-weight: 500; color: var(--texto-oscuro); margin-bottom: .5rem; }
.problem-card p { font-size: .875rem; color: var(--texto-medio); line-height: 1.7; }

/* SERVICES (fondo blanco, mismas tarjetas) */
.services { background: var(--blanco); padding: 6rem 3rem; }
.services.arena { background: var(--arena); }
.services h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem,4vw,3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--texto-oscuro); max-width: 700px; margin-bottom: 1.5rem; }
.services > .section-inner > p { font-size: 1rem; color: var(--texto-medio); max-width: 620px; line-height: 1.75; }
.services .problem-card { background: var(--arena); }
.services.arena .problem-card { background: var(--blanco); }

/* HOW */
.how { background: var(--arena); padding: 6rem 3rem; }
.how.blanco { background: var(--blanco); }
.how h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem,4vw,3rem); color: var(--texto-oscuro); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 3rem; max-width: 560px; }
.how-steps { display: flex; flex-direction: column; }
.how-step { display: grid; grid-template-columns: 60px 1fr; gap: 0 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(15,42,30,.08); }
.how-step:last-child { border-bottom: none; }
.step-num { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--verde-marca); opacity: .5; padding-top: 2px; }
.step-content h3 { font-size: 1.0625rem; font-weight: 500; color: var(--texto-oscuro); margin-bottom: .4rem; }
.step-content p { font-size: .875rem; color: var(--texto-medio); line-height: 1.7; }

/* FAQ */
.faq { background: var(--arena); padding: 6rem 3rem; }
.faq.blanco { background: var(--blanco); }
.faq h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem,4vw,3rem); letter-spacing: -.02em; line-height: 1.15; max-width: 640px; margin-bottom: 3rem; }
.faq-list { display: flex; flex-direction: column; max-width: 780px; }
.faq-item { border-bottom: 1px solid rgba(15,42,30,.1); }
.faq-q {
  width: 100%; text-align: left; padding: 1.5rem 0;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  color: var(--texto-oscuro); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--verde-marca); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--menta); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform .3s ease, background .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--verde-marca); }
.faq-item.open .faq-icon path { stroke: white; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { font-size: .9375rem; color: var(--texto-medio); line-height: 1.75; padding-bottom: 1.5rem; }

/* CTA */
.cta { background: var(--verde-marca); padding: 5rem 3rem; text-align: center; }
.cta h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem,4vw,3.25rem); color: var(--verde-noche); letter-spacing: -.02em; line-height: 1.15; max-width: 640px; margin: 0 auto 1.25rem; }
.cta p { font-size: 1rem; color: rgba(15,42,30,.7); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-dark { background: var(--verde-noche); color: var(--menta); border: none; padding: 1rem 2.5rem; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all var(--ease); }
.btn-dark:hover { background: #071710; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline { background: transparent; color: var(--verde-noche); border: 2px solid var(--verde-noche); padding: 1rem 2.5rem; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all var(--ease); }
.btn-outline:hover { background: rgba(15,42,30,.1); }

/* FOOTER */
footer { background: var(--verde-noche); padding: 4rem 3rem 2rem; border-top: 1px solid rgba(225,245,238,.06); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.375rem; color: var(--menta); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.footer-tagline { font-size: .875rem; color: rgba(225,245,238,.4); line-height: 1.7; max-width: 240px; margin-bottom: 1.25rem; }
.footer-email { font-size: .9375rem; font-weight: 500; color: var(--verde-claro); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; margin-bottom: .6rem; }
.footer-email:hover { text-decoration: underline; }
.footer-col h4 { font-size: .8125rem; font-weight: 500; color: rgba(225,245,238,.45); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { font-size: .875rem; color: rgba(225,245,238,.55); text-decoration: none; transition: color var(--ease); }
.footer-col a:hover { color: var(--verde-claro); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(225,245,238,.06); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .8125rem; color: rgba(225,245,238,.3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8125rem; color: rgba(225,245,238,.4); text-decoration: none; }
.footer-links a:hover { color: var(--verde-claro); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .hero, .problem, .services, .how, .faq, .cta { padding-left: 1.5rem; padding-right: 1.5rem; }
  .problem-grid { grid-template-columns: 1fr; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* ===== BLOG ===== */
/* Cabecera del blog / artículo */
.blog-head { background: var(--verde-noche); padding: 9rem 3rem 4rem; position: relative; overflow: hidden; }
.blog-head::before { content: ''; position: absolute; top: -20%; right: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(29,158,117,.11) 0%, transparent 70%); pointer-events: none; }
.blog-head-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.blog-head .kicker { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--verde-claro); margin-bottom: 1rem; }
.blog-head h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.12; color: var(--blanco); letter-spacing: -.02em; margin-bottom: 1.25rem; }
.blog-head p { font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: rgba(225,245,238,.68); max-width: 640px; }
.article-meta { display: flex; gap: 1.25rem; align-items: center; margin-top: 1.5rem; font-size: .8125rem; color: rgba(225,245,238,.5); flex-wrap: wrap; }
.article-meta .tag { background: rgba(29,158,117,.18); color: var(--verde-claro); padding: .25rem .7rem; border-radius: 100px; }

/* Índice del blog: grilla de notas */
.blog-list { background: var(--blanco); padding: 4rem 3rem 6rem; }
.blog-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid rgba(15,42,30,.1); border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--blanco); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.blog-card:hover { transform: translateY(-4px); border-color: var(--verde-claro); box-shadow: 0 16px 40px rgba(15,42,30,.1); }
.blog-card .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--menta); display: block; }
.blog-card .card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .cat { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--verde-marca); margin-bottom: .6rem; }
.blog-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; line-height: 1.25; color: var(--texto-oscuro); margin-bottom: .6rem; letter-spacing: -.01em; }
.blog-card p { font-size: .875rem; color: var(--texto-medio); line-height: 1.65; flex: 1; }
.blog-card .read { font-size: .8125rem; font-weight: 500; color: var(--verde-marca); margin-top: 1rem; }

/* Cuerpo del artículo */
.article { background: var(--blanco); padding: 3.5rem 3rem 5rem; }
.article-inner { max-width: 760px; margin: 0 auto; }
.article-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; background: var(--menta); margin: -7rem auto 2.5rem; display: block; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(15,42,30,.18); }
.article-body p { font-size: 1.0625rem; line-height: 1.85; color: var(--texto-oscuro); margin-bottom: 1.5rem; }
.article-body h2 { font-family: 'DM Serif Display', serif; font-size: 1.7rem; color: var(--texto-oscuro); letter-spacing: -.01em; margin: 2.75rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; font-weight: 500; color: var(--texto-oscuro); margin: 2rem 0 .75rem; }
.article-body ul { margin: 0 0 1.5rem 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.article-body ul li { font-size: 1.0625rem; line-height: 1.7; color: var(--texto-oscuro); padding-left: 1.6rem; position: relative; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: .65rem; width: 7px; height: 7px; border-radius: 50%; background: var(--verde-marca); }
.article-body strong { font-weight: 600; color: var(--texto-oscuro); }
.article-body blockquote { border-left: 3px solid var(--verde-marca); padding: .5rem 0 .5rem 1.5rem; margin: 0 0 1.5rem 0; font-size: 1.15rem; line-height: 1.7; color: var(--texto-medio); font-style: italic; }
.article-cta { background: var(--arena); border-radius: 16px; padding: 2.5rem; text-align: center; margin-top: 3.5rem; }
.article-cta h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--texto-oscuro); margin-bottom: .6rem; }
.article-cta p { font-size: .9375rem; color: var(--texto-medio); margin-bottom: 1.5rem; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.article-back { display: inline-block; margin-top: 2.5rem; font-size: .875rem; color: var(--verde-marca); text-decoration: none; font-weight: 500; }
.article-back:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .blog-head { padding: 7rem 1.5rem 3rem; }
  .blog-list, .article { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-img { margin-top: -4.5rem; }
  .article-cta { padding: 1.75rem; }
}
