/* ==========================================================================
   SOLVERALIA v3 — Tendencias 2026
   Tipografía XXL · Scroll narrativo · Microinteracciones · Modo oscuro
   Maquetación fluida asimétrica · Paleta vibrante orgánica
   ========================================================================== */

:root {
  --bg:           oklch(98% 0.006 152);
  --surface:      oklch(100% 0.002 152);
  --surface-alt:  oklch(95.5% 0.018 80);
  --ink:          oklch(14% 0.015 152);
  --ink-soft:     oklch(44% 0.014 152);
  --ink-faint:    oklch(62% 0.01 152);

  /* Acento verde — más saturado que v2 */
  --leaf:         oklch(50% 0.17 152);
  --leaf-deep:    oklch(38% 0.17 152);
  --leaf-glow:    oklch(58% 0.19 152);
  --leaf-pale:    oklch(93% 0.042 152);
  --leaf-text:    oklch(32% 0.09 152);

  /* Acento dopamina: terracota vibrante */
  --clay:         oklch(62% 0.16 45);
  --clay-deep:    oklch(50% 0.16 45);
  --clay-pale:    oklch(94% 0.04 45);

  /* Acento dorado suave */
  --gold:         oklch(74% 0.14 72);
  --gold-pale:    oklch(96% 0.03 72);

  --border:       oklch(88% 0.014 152);
  --border-strong:oklch(78% 0.018 152);

  --font: 'Schibsted Grotesk', sans-serif;
  --mono: 'Fragment Mono', monospace;

  --r:  16px;
  --r-sm: 10px;
  --r-pill: 100px;

  /* Easing de calidad cinematográfica */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 1, 1);
}

/* Modo oscuro */
[data-theme="dark"] {
  --bg:           oklch(12% 0.015 152);
  --surface:      oklch(17% 0.018 152);
  --surface-alt:  oklch(20% 0.02 80);
  --ink:          oklch(95% 0.006 152);
  --ink-soft:     oklch(68% 0.01 152);
  --ink-faint:    oklch(48% 0.01 152);
  --leaf:         oklch(62% 0.19 152);
  --leaf-deep:    oklch(72% 0.18 152);
  --leaf-glow:    oklch(68% 0.21 152);
  --leaf-pale:    oklch(22% 0.04 152);
  --leaf-text:    oklch(80% 0.12 152);
  --clay:         oklch(68% 0.17 45);
  --clay-deep:    oklch(75% 0.16 45);
  --clay-pale:    oklch(24% 0.04 45);
  --gold:         oklch(78% 0.15 72);
  --gold-pale:    oklch(22% 0.03 72);
  --border:       oklch(26% 0.02 152);
  --border-strong:oklch(35% 0.025 152);
}

/* ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) { .container { padding: 0 1.25rem; } }

/* ==========================================================================
   Tipografía — XXL como tendencia principal
   ========================================================================== */

h1 {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--clay);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.55;
}

/* Número decorativo gigante */
.xxl-num {
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--leaf-pale);
  pointer-events: none;
  user-select: none;
}
[data-theme="dark"] .xxl-num { color: oklch(22% 0.04 152); }

/* ==========================================================================
   Navegación
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 300ms var(--ease);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.nav__logo { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__logo span { color: var(--leaf); }

.nav__links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav__links a {
  transition: color 140ms;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--leaf);
  transition: width 200ms var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--leaf); }

.nav__right { display: flex; align-items: center; gap: 0.75rem; }

/* Toggle modo oscuro */
.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 200ms, transform 200ms var(--ease);
  border: 1px solid var(--border);
}
.theme-btn:hover { transform: rotate(20deg) scale(1.1); }

.nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 180ms, transform 140ms var(--ease);
}
.nav__cta:hover { background: var(--leaf-deep); transform: translateY(-1px); }
.nav__cta:active { transform: scale(0.97); }

.nav__toggle { display: none; font-size: 1.4rem; }

/* Selector de idioma */
.lang { position: relative; }

.lang-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: background 200ms, transform 200ms var(--ease);
  border: 1px solid var(--border);
}
.lang-btn:hover { transform: scale(1.1); }
.lang-btn:active { transform: scale(0.95); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
  min-width: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px color-mix(in oklch, var(--ink) 14%, transparent);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  z-index: 150;
}
.lang.open .lang__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: background 140ms, color 140ms;
  text-align: left;
}
.lang__option:hover { background: var(--leaf-pale); color: var(--ink); }
.lang__option.active { color: var(--leaf); font-weight: 700; }

/* Banderas SVG */
.flag {
  width: 19px;
  height: 13px;
  display: block;
  border-radius: 2.5px;
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 12%, transparent);
}
.lang-btn__flag, .lang__flag { display: flex; align-items: center; }
.lang-btn__flag .flag { width: 17px; height: 12px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none; flex-direction: column;
  padding: 1.5rem 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.mobile-menu__close { font-size: 1.6rem; }
.mobile-menu a { font-weight: 800; font-size: 1.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); letter-spacing: -0.02em; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform 140ms var(--ease), background 140ms, box-shadow 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 6px 24px color-mix(in oklch, var(--leaf) 35%, transparent);
}
.btn--primary:hover {
  background: var(--leaf-deep);
  box-shadow: 0 10px 32px color-mix(in oklch, var(--leaf) 45%, transparent);
}

.btn--ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--leaf-deep); }

/* ==========================================================================
   Scroll narrativo — animaciones de entrada
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ==========================================================================
   Hero — maquetación asimétrica XXL
   ========================================================================== */

.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Forma orgánica de fondo */
.hero__blob {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at 40% 40%, color-mix(in oklch, var(--leaf) 18%, transparent), transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: blob-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes blob-drift {
  0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: translate(0,0) rotate(0deg); }
  33%  { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; transform: translate(-20px, 15px) rotate(3deg); }
  66%  { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; transform: translate(10px, -10px) rotate(-2deg); }
  100% { border-radius: 50% 50% 40% 60% / 55% 45% 65% 35%; transform: translate(-10px, 20px) rotate(4deg); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}

.hero__eyebrow { margin-bottom: 0.8rem; }

/* La palabra verde con microinteracción de color al hover */
.hero__accent {
  color: var(--leaf);
  display: inline-block;
  transition: color 200ms, transform 200ms var(--ease);
}
.hero h1:hover .hero__accent {
  color: var(--clay);
  transform: skewX(-2deg);
}

.hero__side {
  max-width: 26ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}

.hero__meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.meta-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.meta-pill b {
  display: block;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__side { max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero__blob { width: 300px; height: 300px; opacity: 0.6; }
}

/* ==========================================================================
   Bento — asimétrico y fluido
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 240px 200px;
  gap: 0.85rem;
  margin-top: 3rem;
}

.cell {
  border-radius: var(--r);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms;
  cursor: pointer;
}
.cell:hover { transform: translateY(-4px) scale(1.01); }
.cell:hover.cell--leaf { box-shadow: 0 20px 48px color-mix(in oklch, var(--leaf) 30%, transparent); }
.cell:hover.cell--clay { box-shadow: 0 20px 48px color-mix(in oklch, var(--clay) 25%, transparent); }

/* Patrón de grid interno — textura sutil */
.cell--leaf {
  background: var(--leaf);
  color: #fff;
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}
.cell--leaf::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cell--leaf .eyebrow { color: oklch(88% 0.06 152); }
.cell--leaf h3 { color: #fff; font-size: 1.6rem; }
.cell--leaf p { color: oklch(90% 0.04 152 / 0.9); font-size: 0.95rem; margin-top: 0.5rem; }

.cell--sand {
  background: var(--surface-alt);
  grid-column: 6 / 10;
  grid-row: 1 / 2;
}

.cell--clay {
  background: var(--clay);
  color: #fff;
  grid-column: 10 / 13;
  grid-row: 1 / 2;
}
.cell--clay .eyebrow { color: oklch(92% 0.05 45); }
.cell--clay h3 { color: #fff; font-size: 1rem; }

.cell--pale {
  background: var(--leaf-pale);
  grid-column: 6 / 9;
  grid-row: 2 / 3;
}

.cell--dark {
  background: var(--ink);
  color: var(--bg);
  grid-column: 9 / 13;
  grid-row: 2 / 3;
}
.cell--dark .eyebrow { color: var(--gold); }
.cell--dark h3 { color: var(--bg); }

@media (max-width: 940px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 220px 180px 180px;
  }
  .cell--leaf { grid-column: 1 / 7; grid-row: 1 / 2; }
  .cell--sand { grid-column: 1 / 4; grid-row: 2 / 3; }
  .cell--clay { grid-column: 4 / 7; grid-row: 2 / 3; }
  .cell--pale { grid-column: 1 / 4; grid-row: 3 / 4; }
  .cell--dark { grid-column: 4 / 7; grid-row: 3 / 4; }
}

/* ==========================================================================
   Secciones generales
   ========================================================================== */

section { padding: 5rem 0; }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Número XXL decorativo en secciones */
.section--numbered { position: relative; }
.section--numbered .xxl-num {
  position: absolute;
  top: -0.15em;
  left: -0.05em;
  z-index: 0;
}
.section--numbered .container { position: relative; z-index: 1; }

/* ==========================================================================
   Artículos
   ========================================================================== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease), border-color 200ms, box-shadow 220ms;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px color-mix(in oklch, var(--ink) 8%, transparent);
}

.article-card__thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.thumb-1 { background: var(--leaf-pale); }
.thumb-2 { background: var(--clay-pale); }
.thumb-3 { background: var(--gold-pale); }

.article-card__body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.article-card__meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.article-card__readtime { font-size: 0.72rem; color: var(--ink-faint); }
.article-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.article-card p { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }

/* ==========================================================================
   Teaser Vera
   ========================================================================== */

.vera-teaser {
  background: var(--leaf-pale);
  border-radius: var(--r);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Número decorativo detrás */
.vera-teaser::before {
  content: 'V';
  font-weight: 900;
  font-size: 14rem;
  line-height: 1;
  color: color-mix(in oklch, var(--leaf) 12%, transparent);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.vera-teaser__icon { flex-shrink: 0; width: 80px; height: 80px; position: relative; z-index: 1; }
.vera-teaser__text { position: relative; z-index: 1; }
.vera-teaser__text h3 { margin: 0.4rem 0 0.6rem; }
.vera-teaser__text p { color: var(--leaf-text); max-width: 50ch; font-size: 0.95rem; }
.vera-teaser__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-weight: 700; font-size: 0.9rem;
  color: var(--leaf-deep);
}
.vera-teaser__link svg { transition: transform 160ms var(--ease); }
.vera-teaser__link:hover svg { transform: translateX(4px); }

@media (max-width: 700px) {
  .vera-teaser { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .vera-teaser::before { font-size: 8rem; opacity: 0.5; }
}

/* ==========================================================================
   Hábitos
   ========================================================================== */

.habits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .habits-grid { grid-template-columns: 1fr; } }

.habit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color 200ms, transform 200ms var(--ease);
  position: relative;
}
.habit-card:hover { border-color: var(--leaf); transform: translateY(-3px); }

/* Número flotante en la esquina */
.habit-card__num {
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--leaf-pale);
  position: absolute;
  top: 0.8rem; right: 1rem;
  letter-spacing: -0.04em;
  transition: color 200ms;
}
[data-theme="dark"] .habit-card__num { color: oklch(22% 0.04 152); }
.habit-card:hover .habit-card__num { color: color-mix(in oklch, var(--leaf) 25%, transparent); }

.habit-card .eyebrow { color: var(--leaf); margin-bottom: 0.5rem; display: block; }
.habit-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.habit-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ==========================================================================
   Tienda
   ========================================================================== */

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 940px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 200ms, box-shadow 220ms;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--leaf);
  box-shadow: 0 12px 32px color-mix(in oklch, var(--leaf) 15%, transparent);
}
.product-card__img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--leaf-pale); transition: background 200ms; }
.product-card:hover .product-card__img { background: color-mix(in oklch, var(--leaf-pale) 80%, var(--clay-pale)); }
.product-card__body { padding: 1rem; }
.product-card__body h4 { font-weight: 600; font-size: 0.95rem; margin: 0.3rem 0; }
.product-card__price { font-weight: 800; color: var(--leaf); font-size: 1rem; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: var(--ink);
  border-radius: var(--r);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Blob decorativo en newsletter */
.newsletter::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, color-mix(in oklch, var(--leaf) 20%, transparent), transparent 70%);
  border-radius: 50%;
  top: -100px; right: -100px;
  pointer-events: none;
}
.newsletter h2 { color: var(--bg); position: relative; }
.newsletter p { color: color-mix(in oklch, var(--bg) 70%, transparent); margin-top: 0.5rem; position: relative; }
.newsletter__form { display: flex; gap: 0.6rem; max-width: 420px; margin: 1.5rem auto 0; position: relative; }
.newsletter__form input { flex: 1; padding: 0.85rem 1.2rem; border-radius: var(--r-pill); border: none; font-family: var(--font); font-size: 0.92rem; background: color-mix(in oklch, var(--bg) 15%, white); color: oklch(20% 0.015 152); }
[data-theme="dark"] .newsletter__form input { background: oklch(25% 0.02 152); color: var(--ink); }
.newsletter__form input::placeholder { color: oklch(55% 0.01 152); }
[data-theme="dark"] .newsletter__form input::placeholder { color: color-mix(in oklch, white 55%, transparent); }
.newsletter__form input:focus-visible { outline: 2px solid var(--leaf-glow); }

/* ==========================================================================
   Social
   ========================================================================== */

.social__links { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
  transition: color 180ms;
}
.social-link:hover { color: var(--leaf); }
.social-link__icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: transform 220ms var(--ease), border-color 200ms, box-shadow 220ms;
}
.social-link:hover .social-link__icon {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--leaf);
  box-shadow: 0 8px 20px color-mix(in oklch, var(--leaf) 20%, transparent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--surface-alt); padding: 5rem 0 2rem; margin-top: 3rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.footer__brand span { color: var(--leaf); }
.footer__tagline { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); max-width: 26ch; }
.footer h4 { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; color: var(--ink-faint); }
.footer ul { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; color: var(--ink-soft); }
.footer ul a { transition: color 140ms; }
.footer ul a:hover { color: var(--leaf); }
.footer__bottom { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.78rem; color: var(--ink-faint); }
.footer__affiliate { margin-bottom: 0.6rem; font-size: 0.75rem; color: var(--ink-faint); }
.disclosure__amazon { display: block; margin-top: 0.6rem; }

/* ==========================================================================
   Ilustraciones mesh-gradient para artículos + hover de tendencia
   ========================================================================== */

.article-card__thumb, .article-full__visual {
  position: relative;
  overflow: hidden;
}

/* Recetas de gradiente mesh (estética 2026, colores de marca) */
.mesh-1 { background:
  radial-gradient(at 25% 25%, oklch(78% 0.12 152 / 0.9), transparent 55%),
  radial-gradient(at 80% 15%, oklch(88% 0.08 80 / 0.8), transparent 50%),
  radial-gradient(at 70% 85%, oklch(52% 0.15 152 / 0.85), transparent 60%),
  oklch(93% 0.04 152); }
.mesh-2 { background:
  radial-gradient(at 20% 80%, oklch(70% 0.14 45 / 0.85), transparent 55%),
  radial-gradient(at 85% 25%, oklch(85% 0.1 72 / 0.9), transparent 55%),
  radial-gradient(at 55% 45%, oklch(94% 0.03 45 / 0.7), transparent 60%),
  oklch(94% 0.04 45); }
.mesh-3 { background:
  radial-gradient(at 75% 75%, oklch(45% 0.14 165 / 0.9), transparent 55%),
  radial-gradient(at 20% 30%, oklch(62% 0.13 152 / 0.85), transparent 55%),
  radial-gradient(at 60% 10%, oklch(88% 0.06 120 / 0.8), transparent 50%),
  oklch(35% 0.1 160); }
.mesh-4 { background:
  radial-gradient(at 30% 20%, oklch(87% 0.11 72 / 0.9), transparent 55%),
  radial-gradient(at 80% 80%, oklch(66% 0.15 45 / 0.8), transparent 55%),
  radial-gradient(at 15% 85%, oklch(78% 0.1 100 / 0.7), transparent 50%),
  oklch(95% 0.03 72); }
.mesh-5 { background:
  radial-gradient(at 70% 30%, oklch(60% 0.16 152 / 0.9), transparent 55%),
  radial-gradient(at 25% 70%, oklch(75% 0.12 45 / 0.75), transparent 55%),
  radial-gradient(at 90% 90%, oklch(90% 0.05 80 / 0.8), transparent 50%),
  oklch(90% 0.05 130); }

/* Icono dentro de la ilustración */
.ill-icon {
  width: 64px; height: 64px;
  color: #fff;
  filter: drop-shadow(0 3px 10px rgb(0 0 0 / 0.22));
  transition: transform 450ms var(--ease);
}
.article-full__visual .ill-icon { width: 84px; height: 84px; }

/* Hover: zoom del icono + barrido de brillo + saturación */
.article-card:hover .ill-icon,
.article-full:hover .ill-icon { transform: scale(1.18) rotate(-5deg); }

.article-card__thumb::after, .article-full__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.4) 50%, transparent 62%);
  transform: translateX(-130%) skewX(-8deg);
  transition: transform 650ms var(--ease);
  pointer-events: none;
}
.article-card:hover .article-card__thumb::after,
.article-full:hover .article-full__visual::after { transform: translateX(130%) skewX(-8deg); }

.article-card__thumb, .article-full__visual { transition: filter 300ms; }
.article-card:hover .article-card__thumb,
.article-full:hover .article-full__visual { filter: saturate(1.25); }

/* Más aire entre artículos */
.article-grid { gap: 2.2rem; }
.article-list { gap: 4rem !important; }
.article-full { padding-bottom: 3rem !important; }

/* ==========================================================================
   Tags, citas y bloques compartidos de las páginas de sección
   ========================================================================== */

.article-full__tags { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--leaf-pale);
  color: var(--leaf-text);
}
.pull-quote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--leaf-deep);
  margin: 1rem 0;
}

/* ==========================================================================
   Optimización móvil y tablet
   ========================================================================== */

/* Móvil grande / phablet */
@media (max-width: 640px) {
  /* Cabecera más respirable: el CTA pasa al menú móvil */
  .nav__inner { padding: 0.85rem 1.25rem; }
  .nav__right { gap: 0.6rem; }
  .nav__cta { display: none; }

  /* Ritmo vertical más compacto */
  section { padding: 3.25rem 0; }
  .section__head { margin-bottom: 2rem; }
  .footer { padding: 3.5rem 0 1.5rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero__meta { gap: 1.25rem; margin-top: 1.8rem; padding-top: 1.2rem; flex-wrap: wrap; }

  /* Newsletter: formulario en columna, botón a ancho completo */
  .newsletter { padding: 2.25rem 1.5rem; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { width: 100%; }
  .newsletter__form .btn { width: 100%; justify-content: center; }

  /* Tarjetas de producto más ligeras y sin flechas huérfanas */
  .product-card__img, .rec-card__img { height: 110px; font-size: 2.6rem; }
  .product-card__price { font-size: 0.92rem; }
  .shop-grid { gap: 0.8rem; }

  /* Tabla de plantas: desplazamiento horizontal en vez de columnas aplastadas */
  .article-full__body { min-width: 0; }
  .plant-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plant-table th, .plant-table td { white-space: nowrap; padding-right: 1.4rem; }

  /* Listas de artículos de sección */
  .article-list { gap: 3rem !important; }
  .article-full { gap: 1.25rem; padding-bottom: 2.25rem !important; }
  .pull-quote { font-size: 1.15rem; }
}

/* Móvil estrecho */
@media (max-width: 560px) {
  .bento { grid-template-rows: 200px 175px 175px; gap: 0.7rem; margin-top: 2.25rem; }
  .cell { padding: 1.15rem; border-radius: 14px; }
  .cell--leaf h3 { font-size: 1.35rem; }
  .cell--clay h3, .cell--pale h3, .cell--dark h3, .cell--sand h3 { font-size: 0.98rem; }

  .article-card__thumb { height: 130px; }
  .article-grid { gap: 1.4rem; }

  .habit-card { padding: 1.25rem; }
  .habits-grid { gap: 1rem; }

  .social__links { gap: 1.4rem; }

  .disclosure { padding: 1rem 1.2rem; }
  .filters { gap: 0.5rem; }
  .filter-btn { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
}

/* Objetivos táctiles algo mayores en pantallas sin ratón */
@media (pointer: coarse) {
  .theme-btn, .lang-btn { width: 40px; height: 40px; }
  .lang__option { padding: 0.65rem 0.85rem; }
  .mobile-menu a { padding: 0.9rem 0; }
}
