@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─────────────────────────────── */
:root {
  --bg: #f4f0eb;
  --paper: #ffffff;
  --dark: #1c201e;
  --dark-mid: #252b27;
  --green: #7a9670;
  --green2: #5f7a56;
  --green-lt: #b4c8ad;
  --warm: #c8a87a;
  --text: #282c29;
  --muted: #6b706a;
  --border: #ddd8d2;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, .10);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .14);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.08;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── LAYOUT ─────────────────────────────── */
.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ─── LABEL ──────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green2);
  margin-bottom: 12px;
}

.label .lucide {
  width: 12px;
  height: 12px;
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: background .22s, transform .18s, box-shadow .22s;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(95, 122, 86, .32);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--dark);
}

.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.btn .lucide {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 235, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo img {
  height: 36px;
  width: auto;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  padding: 72px 0 80px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* LEFT */
.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--warm);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--green2);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 480px;
}

.hero-support {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--green-lt);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* RIGHT – image */
.hero-media {
  position: relative;
}

.hero-img-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 900/675;
  box-shadow: var(--shadow-lg);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.hero-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hero-badge .badge-icon .lucide {
  width: 20px;
  height: 20px;
}

.hero-badge .badge-text {
  font-size: .78rem;
}

.hero-badge .badge-text strong {
  display: block;
  font-size: 1.15rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
}

.hero-deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lt), var(--green));
  opacity: .18;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   FORMULARIO (FunnelBox iframe)
══════════════════════════════════════════ */
.form-section {
  padding: 80px 0;
  background: var(--dark);
}

.form-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.form-intro .label {
  color: var(--green-lt);
}

.form-intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
}

.form-intro p {
  color: rgba(255, 255, 255, .6);
  font-size: 1.08rem;
  line-height: 1.78;
  margin-bottom: 24px;
}

.form-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--green-lt);
  text-underline-offset: 3px;
  transition: color .18s;
}

.form-link:hover {
  color: var(--green-lt);
}

.form-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}

.trust-item .lucide {
  width: 16px;
  height: 16px;
  color: var(--green-lt);
  flex-shrink: 0;
}

.form-intro-img {
  width: 100%;
  border-radius: var(--r-md);
  margin-top: 28px;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}

@media (max-width:1024px) {
  .form-intro-img {
    display: none;
  }
}

.form-embed-wrap {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.form-embed-wrap iframe {
  width: 100%;
  height: 1471px;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════
   EDITORIAL SECTION
══════════════════════════════════════════ */
.editorial-section {
  padding: 96px 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.editorial-left h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--dark);
}

.editorial-left p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.78;
  margin-bottom: 14px;
}

.editorial-left .btn {
  margin-top: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-item {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .22s, transform .22s;
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-item .si-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(122, 150, 112, .12), rgba(95, 122, 86, .08));
  color: var(--green2);
}

.service-item .si-icon .lucide {
  width: 22px;
  height: 22px;
}

.service-item h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.service-item p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   CAROUSEL BOOKS
══════════════════════════════════════════ */
.books-section {
  padding: 96px 0;
  background: var(--dark);
  overflow: hidden;
}

.books-header {
  text-align: center;
  margin-bottom: 52px;
}

.books-header .label {
  color: var(--green-lt);
  justify-content: center;
}

.books-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #fff;
  max-width: 640px;
  margin-inline: auto;
}

.carousel-outer {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  padding: 16px 0 24px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .52s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.book-slide {
  flex: 0 0 220px;
}

.book-card {
  background: var(--dark-mid);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transition: transform .32s ease, box-shadow .32s;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.book-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.book-meta {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
}

.book-author {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  margin-top: auto;
}

/* controls – centered below */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.c-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .18s;
  flex-shrink: 0;
}

.c-btn:hover {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.08);
}

.c-btn .lucide {
  width: 18px;
  height: 18px;
}

.c-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}

.c-dot.active {
  background: var(--green-lt);
  transform: scale(1.4);
}

/* ══════════════════════════════════════════
   DESDE 0
══════════════════════════════════════════ */
.desde0-section {
  padding: 96px 0;
}

.desde0-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.desde0-lead {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.75;
  margin-bottom: 14px;
}

.desde0-body {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.78;
  margin-bottom: 28px;
}

.desde0-sesion-img {
  padding: 10px;
}

.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.program-tag .lucide {
  width: 12px;
  height: 12px;
}

.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  font-size: .875rem;
  color: var(--text);
}

.benefits li .lucide {
  width: 16px;
  height: 16px;
  color: var(--green2);
  flex-shrink: 0;
}

.ecosystem {
  background: linear-gradient(135deg, rgba(122, 150, 112, .1), rgba(95, 122, 86, .06));
  border: 1px solid rgba(122, 150, 112, .25);
  border-radius: var(--r-md);
  padding: 22px 24px;
}

.ecosystem h4 {
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--dark);
}

.ecosystem ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecosystem ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
}

.ecosystem ul li .lucide {
  width: 16px;
  height: 16px;
  color: var(--green2);
  flex-shrink: 0;
  margin-top: 1px;
}

/* right panel */
.desde0-visual {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  color: #fff;
  position: sticky;
  top: 80px;
}

.desde0-visual h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #fff;
}

.desde0-visual .vis-sub {
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 38px;
  width: 2px;
  height: calc(100% - 10px);
  background: rgba(255, 255, 255, .08);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green-lt);
  flex-shrink: 0;
  background: rgba(255, 255, 255, .05);
}

.step-body {
  padding-bottom: 24px;
}

.step-body strong {
  display: block;
  font-size: .88rem;
  color: #fff;
  margin-bottom: 3px;
}

.step-body span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
}

/* ══════════════════════════════════════════
   ABOUT / AUTOPUBLICACION
══════════════════════════════════════════ */
.about-section {
  padding: 96px 0;
  background: var(--paper);
}

.about-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.about-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.about-header p {
  color: var(--muted);
  font-size: .9rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.about-card {
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-card.dark {
  background: var(--dark);
  color: #fff;
}

.about-card.light {
  background: var(--bg);
  border: 1px solid var(--border);
}

.about-card .ac-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.about-card.dark .ac-icon {
  background: rgba(255, 255, 255, .08);
  color: var(--green-lt);
}

.about-card.light .ac-icon {
  background: linear-gradient(135deg, rgba(122, 150, 112, .15), rgba(95, 122, 86, .1));
  color: var(--green2);
}

.about-card .ac-icon .lucide {
  width: 26px;
  height: 26px;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.about-card.dark h3 {
  color: #fff;
}

.about-card.light h3 {
  color: var(--dark);
}

.about-card p {
  font-size: .88rem;
  line-height: 1.75;
}

.about-card.dark p {
  color: rgba(255, 255, 255, .6);
}

.about-card.light p {
  color: var(--muted);
}

.about-card .highlight {
  font-size: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  margin-top: 20px;
  color: var(--green-lt);
}

.about-card.light .highlight {
  color: var(--green2);
}

.about-cta {
  text-align: center;
}

.about-cta p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

footer p {
  color: rgba(255, 255, 255, .35);
  font-size: .78rem;
}

footer strong {
  color: rgba(255, 255, 255, .6);
}

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width:1024px) {

  .hero-grid,
  .editorial-grid,
  .from-section-inner,
  .desde0-grid,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .desde0-visual {
    position: relative;
    top: auto;
  }

  .form-section-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .hero-badge {
    left: 0;
    bottom: -14px;
  }
}

@media (max-width:540px) {
  .nav-inner .btn {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   DESDE 0 – single column layout
══════════════════════════════════════════ */
.desde0-single {
  max-width: 960px;
}

.desde0-box {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-top: 32px;
  color: #fff;
}

.desde0-box-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.desde0-col h4 {
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 18px;
}

/* benefits inside dark box */
.desde0-box .benefits li {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
}

.desde0-box .benefits li .lucide {
  color: var(--green-lt);
}

/* ecosystem-list */
.ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

.ecosystem-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.55;
}

.ecosystem-list li .lucide {
  width: 16px;
  height: 16px;
  color: var(--green-lt);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width:700px) {
  .desde0-box-inner {
    grid-template-columns: 1fr;
  }

  .desde0-box {
    padding: 28px 22px;
  }
}

/* ══════════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 87px;
  height: 87px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 36px rgba(37, 211, 102, .48);
  transition: transform .22s, box-shadow .22s;
}

.wa-float svg {
  width: 42px;
  height: 42px;
}

.wa-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 48px rgba(37, 211, 102, .58);
}

@media (max-width:768px) {
  .wa-float {
    width: 70px;
    height: 70px;
    bottom: 20px;
    right: 20px;
  }

  .wa-float svg {
    width: 34px;
    height: 34px;
  }
}