/* ═══════════════════════════════════════════════════
   EDITORIAL LIBELLA — Landing Page Styles
   ═══════════════════════════════════════════════════ */

/* ─── Design 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 & base ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  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.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

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

p {
  color: var(--text);
}

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

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

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 16px;
}

.label i {
  width: 14px;
  height: 14px;
}

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

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

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

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

.btn-primary:hover {
  background: var(--green2);
  border-color: var(--green2);
}

.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);
}

/* ─── 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;
  height: 68px;
}

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

/* ─── HERO ───────────────────────────────────────── */
.hero-section {
  padding: 80px 0 100px;
  background: var(--bg);
}

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

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-support {
  font-size: .95rem;
  color: var(--muted);
  border-left: 3px solid var(--green-lt);
  padding-left: 16px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  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: .72rem;
  color: rgba(255, 255, 255, .7);
  text-align: center;
  margin-top: 4px;
}

/* ─── EDITORIAL INTRO ────────────────────────────── */
.editorial-section {
  padding: 100px 0;
  background: var(--paper);
}

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

.editorial-copy h2 {
  margin-bottom: 20px;
}

.editorial-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.editorial-copy p:last-of-type {
  margin-bottom: 32px;
}

.editorial-image img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* ─── SERVICIOS ──────────────────────────────────── */
.services-section {
  padding: 100px 0;
  background: var(--bg);
}

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

.services-intro h2 {
  margin-bottom: 20px;
}

.services-intro p {
  color: var(--muted);
  margin-bottom: 16px;
}

.services-intro p:last-of-type {
  margin-bottom: 32px;
}

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

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

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

.si-icon {
  width: 44px;
  height: 44px;
  background: rgba(122, 150, 112, .12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--green2);
}

.si-icon i {
  width: 20px;
  height: 20px;
}

.service-item h4 {
  margin-bottom: 8px;
}

.service-item p {
  font-size: .88rem;
  color: var(--muted);
}

/* ─── CARRUSEL ───────────────────────────────────── */
.books-section {
  padding: 100px 0;
  background: var(--bg);
}

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

.books-header h2 {
  margin-top: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-outer {
  overflow: hidden;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-md);
}

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}

.book-card {
  flex: 0 0 calc(25% - 18px);
  margin-right: 24px;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.book-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.book-info {
  padding: 16px 18px;
}

.book-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.book-info span {
  font-size: .8rem;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.c-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all .2s;
}

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

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

.c-dots {
  display: flex;
  gap: 8px;
}

.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

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

/* ─── DESDE 0 ────────────────────────────────────── */
.desde0-section {
  padding: 100px 0;
  background: var(--bg);
}

.desde0-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.desde0-intro h2 {
  margin-bottom: 20px;
}

.desde0-intro p {
  color: var(--muted);
  margin-bottom: 12px;
}

.desde0-box {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 56px;
  box-shadow: var(--shadow-lg);
}

.desde0-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.desde0-col {
  color: #fff;
}

.program-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 24px;
}

.program-tag i {
  width: 14px;
  height: 14px;
}

.benefits,
.ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefits li,
.ecosystem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
}

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

.desde0-img {
  border-radius: var(--r-md);
  margin: 32px 0;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.desde0-col .btn {
  margin-top: 8px;
}

/* ─── AUTOPUBLICACIÓN ────────────────────────────── */
.about-section {
  padding: 100px 0;
  background: var(--paper);
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-header h2 {
  margin-top: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-card {
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

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

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

.ac-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-lt);
}

.about-card.light .ac-icon {
  background: rgba(122, 150, 112, .1);
  color: var(--green2);
}

.ac-icon i {
  width: 22px;
  height: 22px;
}

.about-card h3 {
  margin-bottom: 16px;
  color: inherit;
}

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

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

.about-card-img {
  margin-top: 24px;
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  opacity: .7;
}

.referents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.referents-list li {
  font-size: .88rem;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--green-lt);
}

/* ─── FORMULARIO ─────────────────────────────────── */
.form-section {
  padding: 100px 0;
  background: var(--dark);
}

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

.form-intro {
  color: #fff;
}

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

.form-intro h2 {
  color: #fff;
  margin-bottom: 20px;
}

.form-intro p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 32px;
  font-size: .95rem;
}

.form-intro .btn {
  margin-bottom: 40px;
}

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

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

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

.trust-img {
  margin-top: 8px;
  border-radius: var(--r-md);
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-sm);
  display: block;
}

.form-deco-img {
  display: none;
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  opacity: .6;
}

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

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

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

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

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

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .55);
}

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

  .hero-grid,
  .editorial-grid,
  .services-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-img {
    aspect-ratio: 9/7;
    object-fit: cover;
    object-position: top;
  }

  .editorial-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
  }

  .hero-badge {
    left: auto;
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
  }

  .hero-badge .badge-num {
    font-size: 1.5rem;
  }

  .hero-badge .badge-label {
    font-size: 0.65rem;
    margin-top: 2px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-deco-img {
    display: none !important;
  }

  .trust-img {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 80px;
  }

  .services-items {
    grid-template-columns: 1fr;
  }

  /* Carrusel: 2 visibles */
  .book-card {
    flex: 0 0 calc(50% - 12px);
  }

  .desde0-box {
    padding: 36px 24px;
  }
}

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

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

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

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

  /* Carrusel: 1 visible */
  .book-card {
    flex: 0 0 calc(100% - 0px);
  }
}