/* ═══════════════════════════════════════════════════════════════
   Phytallage — Home CSS
   CSS extraído directamente de Claude Design (La_Tienda_Natural_-_Home.html)
   NO modificar manualmente — regenerar desde el archivo de referencia
   NUNCA usar hex hardcoded — solo var(--ltn-*) o rgba()
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
/* Reseteamos html pero NO body — body necesita padding-top del header fijo */
html { margin: 0; padding: 0; }
body {
  margin: 0;
  background: #fff;
  color: var(--ltn-gray-700, #334155);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--ltn-gutter, 32px);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(186,205,112,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(213,123,78,0.18) 0%, transparent 55%),
    linear-gradient(135deg, #2f3d18 0%, #3e5120 60%, #506727 100%);
  color: #fff;
  padding: 96px 0 120px;
  isolation: isolate;
}
.hero::before {
  /* Decorative botanical pattern (SVG leaves) */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23BACD70' stroke-width='1' opacity='0.15'><path d='M100 350c-30-50 0-120 60-150-10 60-30 110-60 150z'/><path d='M340 80c-40-30-110-10-140 50 60-10 110-30 140-50z'/><path d='M50 100c10 40 50 60 90 50-20-30-60-50-90-50z'/><path d='M280 320c30-30 30-90 0-130-20 40-20 100 0 130z'/></svg>");
  background-size: 700px 700px;
  background-position: -100px -100px, calc(100% + 100px) -50px;
  opacity: 0.6;
  z-index: -1;
}
.hero-inner { max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--ltn-terra, #D57B4E);
  box-shadow: 0 0 0 4px rgba(213,123,78,0.25);
}
.hero h1 {
  font-size: 84px; font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.98; margin: 0 0 24px; color: #fff;
  text-wrap: balance;
}
.hero h1 .underline {
  position: relative; display: inline-block; color: #fff;
}
.hero h1 .underline::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px;
  height: 14px; background: var(--ltn-terra, #D57B4E); opacity: 0.6;
  z-index: -1; transform: skewX(-6deg);
}
.hero p.lead {
  font-size: 20px; line-height: 1.55; color: rgba(255,255,255,0.82);
  margin: 0 0 40px; max-width: 620px; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.005em;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ltn-terra, #D57B4E); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(213,123,78,0.7); }
.btn-primary:hover { background: var(--wp--preset--color--ltn-terracota-deep, #B95F33); }
.btn-outline {
  background: transparent; color: var(--ltn-green-light, #BACD70);
  box-shadow: inset 0 0 0 1.5px var(--ltn-green-light, #BACD70);
}
.btn-outline:hover {
  background: var(--ltn-green-light, #BACD70); color: var(--ltn-green-dark, #3e5120);
}
/* Botón sobre fondo oscuro (sección intercambios) */
.btn-swap {
  background: var(--ltn-green-light, #BACD70); color: var(--ltn-green-dark, #3e5120);
  box-shadow: 0 8px 22px -8px rgba(186,205,112,0.5);
}
.btn-swap:hover { background: #fff; color: var(--ltn-green-dark, #3e5120); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 56px; margin-top: 72px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 720px;
}
.hero-stat .num {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ltn-green-light); line-height: 1; margin-bottom: 6px;
}
.hero-stat .lbl {
  font-size: 13px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

/* ── Section frame ─────────────────────────────────────────── */
section.block { padding: 96px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
}
.section-head .left { max-width: 640px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ltn-terra, #D57B4E);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 14px; color: var(--ltn-green-dark);
  text-wrap: balance;
}
.section-head p {
  font-size: 17px; color: var(--ltn-gray-700); line-height: 1.55;
  margin: 0; text-wrap: pretty;
}
.section-head .right {
  flex-shrink: 0; padding-bottom: 6px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ltn-green-primary);
  padding-bottom: 4px; border-bottom: 2px solid var(--ltn-green-light);
}
.link-arrow:hover { color: var(--ltn-terra); border-color: var(--ltn-terra); }

/* ── 2 · Propuesta de valor ──────────────────────────────────────────── */
.props {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.prop {
  background: var(--ltn-green-bg);
  border-radius: 20px; padding: 36px 32px;
  transition: background .2s, transform .2s;
}
.prop:hover { background: var(--wp--preset--color--ltn-light-soft, #E8EFD0); transform: translateY(-2px); }
.prop .ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff;
  color: var(--ltn-green-primary); display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.prop h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ltn-green-dark); margin: 0 0 10px;
}
.prop p { font-size: 15px; color: var(--ltn-gray-700); margin: 0; line-height: 1.6; }

/* ── 3 · Colecciones ────────────────────────────────────────────────────── */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.collection-card {
  background: #fff;
  border: 1px solid var(--ltn-gray-200);
  border-radius: 18px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -20px rgba(80,103,39,0.25);
  border-color: var(--ltn-green-light);
}
.collection-cover {
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(213,123,78,0.4) 0%, transparent 60%),
    linear-gradient(135deg, #506727 0%, #3e5120 100%);
  position: relative; overflow: hidden;
}
.collection-cover svg {
  position: absolute; right: -20px; bottom: -20px;
  width: 220px; opacity: 0.35;
}
.collection-cover .badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--ltn-green-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.collection-body { padding: 24px; }
.collection-author {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ltn-green-light); color: var(--ltn-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0; overflow: hidden;
}
.collection-author .meta .name {
  font-size: 14.5px; font-weight: 700; color: var(--ltn-green-dark);
}
.collection-author .meta .role {
  font-size: 12.5px; color: var(--ltn-gray-500); margin-top: 1px;
}
.collection-card h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  color: #1f2937; margin: 0 0 8px; line-height: 1.25;
}
.collection-desc {
  font-size: 14px; color: var(--ltn-gray-500); margin: 0 0 18px;
  line-height: 1.55;
}
.collection-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--ltn-gray-200);
}
.collection-foot .count {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ltn-green-primary);
}
.collection-foot .go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ltn-terra);
}
/* Empty slot — invitation card */
.collection-card.empty {
  background: var(--ltn-green-bg);
  border: 2px dashed var(--ltn-green-light);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px; text-align: center;
  min-height: 100%;
}
.collection-card.empty:hover {
  border-color: var(--ltn-terra);
  background: #fff;
}
.collection-card.empty .ico {
  width: 56px; height: 56px; border-radius: 999px;
  background: #fff; color: var(--ltn-terra);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px -4px rgba(213,123,78,0.3);
}
.collection-card.empty h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ltn-green-dark); margin: 0 0 8px;
}
.collection-card.empty p {
  font-size: 14px; color: var(--ltn-gray-500); margin: 0 0 20px;
  max-width: 260px; line-height: 1.5;
}
.collection-card.empty .pill {
  background: var(--ltn-terra); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── 4 · Productos ───────────────────────────────────────────────────── */
.block-soft { background: var(--ltn-green-bg); }
.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
/* Nota: estilos de la tarjeta de producto viven en assets/css/shared/product-card.css */
.products-foot {
  text-align: center; margin-top: 56px;
}
.btn-ghost-green {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--ltn-white, #fff); color: var(--ltn-green-primary);
  font-size: 15px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--ltn-green-primary);
  transition: background .15s, color .15s;
}
.btn-ghost-green:hover { background: var(--ltn-green-primary); color: var(--ltn-white, #fff); }

/* ── 5 · Intercambios banner ───────────────────────────────────────────────────── */
.swap {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 50%, rgba(186,205,112,0.18), transparent 50%),
    linear-gradient(135deg, #2f3d18 0%, #506727 100%);
  color: #fff;
  padding: 88px 0;
}
.swap-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: center;
}
.swap h2 {
  font-size: 52px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 24px; color: #fff;
  text-wrap: balance;
}
.swap h2 .accent { color: var(--ltn-terra); }
.swap p.lead {
  font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.85);
  margin: 0 0 32px; max-width: 520px;
}
.swap-steps {
  display: flex; gap: 24px; margin-bottom: 36px;
}
.swap-step {
  flex: 1;
  padding: 16px 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}
.swap-step .n {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ltn-terra); color: #fff;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.swap-step .t {
  font-size: 14px; font-weight: 600; color: #fff;
  line-height: 1.4;
}
.swap-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; max-width: 480px;
  margin-left: auto;
}
.swap-orb {
  position: absolute;
  z-index: 1;
}
.swap-orb.a {
  width: 45%; height: 45%; left: 5%; top: 8%;
}
.swap-orb.b {
  width: 65%; height: 65%; right: 0; bottom: 0;
}
.swap-orb-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
.swap-orb-label {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,0.95); color: var(--ltn-green-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  z-index: 1;
}
.swap-orb.b .swap-orb-label {
  bottom: 22%;
}
.swap-arrows {
  position: absolute; left: 65%; top: 30%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 999px;
  background: #fff; color: var(--ltn-green-primary);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.3);
  z-index: 3;
}

/* ── 6 · Comunidad / Telegram ─────────────────────────────────────────────────── */
.community {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(186,205,112,0.4), transparent 50%),
    linear-gradient(180deg, var(--ltn-green-bg) 0%, #fff 100%);
  padding: 96px 0;
}
.community-inner {
  background: #fff; border-radius: 28px;
  border: 1px solid var(--ltn-green-light);
  padding: 56px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
  box-shadow: 0 30px 60px -30px rgba(80,103,39,0.2);
}
.community .eyebrow .tg-icon {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ltn-terra);
}
.community h2 {
  font-size: 42px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 18px; color: var(--ltn-green-dark);
  text-wrap: balance;
}
.community p {
  font-size: 16px; line-height: 1.6; color: var(--ltn-gray-700);
  margin: 0 0 28px; max-width: 480px;
}
.tg-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 18px; border-radius: 999px;
  background: var(--ltn-green-primary); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(80,103,39,0.5);
  transition: background .15s, transform .15s;
}
.tg-cta:hover { background: var(--ltn-green-dark); transform: translateY(-1px); }
.tg-cta .tg-icon-wrap {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
}
.topics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.topic-wide { grid-column: span 2; }
.topic {
  background: var(--ltn-green-bg);
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.topic:hover {
  background: #fff; border-color: var(--ltn-green-light);
  transform: translateY(-1px);
}
.topic .topic-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; color: var(--ltn-green-primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topic:hover .topic-ico { background: var(--ltn-green-primary); color: #fff; }
.topic .t-meta .t-name {
  font-size: 14.5px; font-weight: 700; color: var(--ltn-green-dark);
  line-height: 1.2;
}
.topic .t-meta .t-desc {
  font-size: 12px; color: var(--ltn-gray-500); margin-top: 2px;
}

/* ── Imágenes dinámicas (PHP template) ──── */
.collection-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 999px; display: block;
}

/* Tiny screens — soften grid */
@media (max-width: 1080px) {
  .props { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .swap-grid, .community-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }

  /* Paso 2d — Reduce el padding del card Telegram en tablet */
  .community-inner { padding: 40px 32px; }

  /* Permite que el texto del flex item encoja en lugar de desbordar */
  .topic .t-meta { min-width: 0; }

  .topic .t-meta .t-name,
  .topic .t-meta .t-desc { overflow-wrap: break-word; }
}

/* Móvil — pills Telegram a una sola columna */
@media (max-width: 600px) {
  .community-inner {
    padding: 28px 20px;
    border-radius: 20px;
  }

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

  .topic-wide { grid-column: auto; }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
