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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: 'Inter', sans-serif; }

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

p { line-height: 1.7; }

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

/* ─── LAYOUT ───────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* ─── BUTTONS ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn i { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green2); border-color: var(--green2); box-shadow: var(--shadow-sm); }

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

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

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

/* ─── LABEL ────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}
.label i { width: 14px; height: 14px; }
.label-light { color: var(--green-lt); }

/* ─── NAV ──────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,240,235,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo img {
  height: 36px;
  width: auto;
}

/* ─── HERO ─────────────────────────────── */
.hero-section {
  background: var(--bg);
  padding: 80px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-support {
  font-size: .95rem;
  color: var(--muted);
  border-left: 3px solid var(--green-lt);
  padding-left: 16px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-image-wrap {
  position: relative;
}
.hero-img {
  width: 100%;
  aspect-ratio: 6 / 7;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-md);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-lt);
  line-height: 1;
}
.badge-label {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

/* ─── INTRO ────────────────────────────── */
.intro-section {
  background: var(--paper);
  padding: 72px 0;
}
.intro-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.intro-inner .label { display: flex; justify-content: center; }
.intro-inner p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.intro-inner strong { color: var(--text); }
.intro-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.intro-wide-img {
  margin-top: 48px;
  width: 100%;
}
.intro-wide-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ─── SERVICIOS ────────────────────────── */
.services-section {
  background: var(--bg);
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.services-left h2 { margin-bottom: 1rem; }
.services-left p { color: var(--muted); margin-bottom: 2rem; }
.services-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-item {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.service-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.si-icon {
  width: 40px;
  height: 40px;
  background: rgba(122,150,112,.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green2);
}
.si-icon i { width: 20px; height: 20px; }
.service-item h4 { margin-bottom: 4px; }
.service-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ─── CARRUSEL ─────────────────────────── */
.books-section {
  background: var(--bg);
  padding: 80px 0;
}
.books-header {
  text-align: center;
  margin-bottom: 48px;
}
.books-header h2 { max-width: 640px; margin: 0 auto; }
.carousel-outer {
  position: relative;
  overflow: hidden;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}
.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  gap: 24px;
}
.book-card {
  flex-shrink: 0;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  cursor: default;
}
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.book-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--border);
}
.book-info {
  padding: 16px 18px;
}
.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}
.book-author {
  font-size: .82rem;
  color: var(--muted);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.c-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .2s, border-color .2s;
}
.c-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.c-btn i { width: 18px; height: 18px; }
.c-dots { display: flex; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s;
  cursor: pointer;
}
.dot.active { background: var(--green); }

/* ─── DESDE 0 ──────────────────────────── */
.desde0-section {
  background: var(--paper);
  padding: 80px 0;
}
.d0-intro {
  max-width: 760px;
  margin-bottom: 52px;
}
.d0-intro h2 { margin-bottom: 1.2rem; }
.d0-lead { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.d0-intro p:last-child { color: var(--muted); }
.d0-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 52px;
  color: #fff;
}
.d0-box h3 {
  color: var(--green-lt);
  margin-bottom: 1.6rem;
  font-size: 1.35rem;
}
.benefits, .ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.benefits li, .ecosystem-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.benefits li i, .ecosystem-list li i {
  width: 20px;
  height: 20px;
  color: var(--green-lt);
  flex-shrink: 0;
  margin-top: 2px;
}
.benefits li div, .ecosystem-list li div {
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
}
.benefits li strong, .ecosystem-list li strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.d0-img {
  width: 100%;
  border-radius: var(--r-md);
  margin-top: 24px;
  margin-bottom: 20px;
  opacity: .9;
}
.d0-cta { width: 100%; justify-content: center; }

/* ─── FORMULARIO ───────────────────────── */
.form-section {
  background: var(--dark);
  padding: 88px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.form-intro h2 {
  color: #fff;
  margin-bottom: 2rem;
}
.form-intro .btn-white {
  margin-bottom: 2rem;
}
.form-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.trust-item i { width: 18px; height: 18px; color: var(--green-lt); flex-shrink: 0; }
.form-deco-img {
  border-radius: var(--r-md);
  width: 100%;
  opacity: .85;
}
.form-embed-wrap {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.form-embed-wrap iframe {
  width: 100%;
  border: none;
  display: block;
  height: 1471px;
}

/* ─── AUTOPUBLICACIÓN ──────────────────── */
.about-section {
  background: var(--paper);
  padding: 88px 0;
}
.about-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.about-header h2 { margin-top: 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-card {
  border-radius: var(--r-lg);
  padding: 44px;
}
.about-card.dark {
  background: var(--dark);
  color: #fff;
}
.about-card.light {
  background: var(--bg);
  color: var(--text);
}
.about-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-top: 24px;
}
.ac-icon {
  width: 48px;
  height: 48px;
  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: rgba(122,150,112,.15); color: var(--green2); }
.ac-icon i { width: 24px; height: 24px; }
.about-card.dark h3 { color: var(--green-lt); margin-bottom: 1rem; }
.about-card.light h3 { color: var(--text); margin-bottom: 1rem; }
.about-card.dark p { color: rgba(255,255,255,.8); line-height: 1.7; }
.about-card.light p { color: var(--muted); line-height: 1.7; }
.about-refs {
  list-style: none;
  margin-top: .8rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-refs li {
  font-size: .93rem;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--green);
}
.about-refs li strong { color: var(--text); }

/* ─── FOOTER ───────────────────────────── */
footer {
  background: var(--dark);
  padding: 32px 0;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
footer strong { color: rgba(255,255,255,.85); }

/* ─── WA FLOAT ─────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ─── RESPONSIVE ───────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { height: 380px; }
  .intro-wide-img img { height: 340px; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-deco-img { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .d0-box { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 56px 0 52px; }
  .hero-img { aspect-ratio: 4 / 3; height: auto; }
  .services-right { grid-template-columns: 1fr; }
  .intro-section { padding: 52px 0; }
  .intro-wide-img { margin-top: 32px; }
  .intro-wide-img img { height: 240px; }
  .services-section { padding: 56px 0; }
  .books-section { padding: 56px 0; }
  .desde0-section { padding: 56px 0; }
  .form-section { padding: 56px 0; }
  .about-section { padding: 56px 0; }
  .about-card { padding: 32px; }
  .about-card-img { height: 200px; }
}

@media (max-width: 540px) {
  .site-nav .btn-dark { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .intro-ctas { flex-direction: column; align-items: center; }
  .d0-box { padding: 28px; }
}

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