/*
Theme Name: LechugaLab
Theme URI: https://lechugalab.cl
Author: LechugaLab
Description: Tema a medida para LechugaLab, agencia de marketing.
Version: 1.1
Requires at least: 6.0
Text Domain: lechugalab
*/
:root {
  --bg: #0F1712;
  --bg-2: #142019;
  --card: #1C2A20;
  --card-2: #233427;
  --line: #2E4234;
  --lime: #B8EE4A;
  --lime-dark: #9AD12E;
  --cream: #F4F2E9;
  --muted: #B9C0B3;
  --radius: 22px;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; font-weight: 900; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; scroll-margin-top: 76px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  font-weight: 500;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.lime { color: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-dark); }
.btn-ghost { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn-ghost:hover { background: var(--lime); color: var(--bg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav ul a { color: var(--muted); font-weight: 500; transition: color .15s; }
.nav ul a:hover, .nav ul a.active { color: var(--lime); }
.nav .btn { padding: 10px 22px; font-size: .92rem; }
.nav ul a.btn-primary, .nav ul a.btn-primary:hover { color: var(--bg); }
.menu-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { padding: 110px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 238, 74, .18), transparent 65%);
  top: -180px; right: -160px; pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 820px; margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Steps */
.steps { background: var(--bg-2); }
.steps-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 52px;
  counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--lime);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* Tabs */
.tabs { margin-top: 48px; }
.tab-list {
  display: inline-flex; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; gap: 6px; flex-wrap: wrap;
}
.tab-btn {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  padding: 12px 26px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.tab-btn[aria-selected="true"] { background: var(--lime); color: var(--bg); }
.tab-panel {
  margin-top: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.8rem; margin-bottom: 14px; color: var(--cream); }
.tab-panel .what { color: var(--muted); }
.tab-panel .what p + p { margin-top: 12px; }
.tab-panel h4 { font-size: 1.05rem; margin-bottom: 16px; letter-spacing: .02em; }

.leaf-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.leaf-list li { display: flex; gap: 12px; align-items: flex-start; }
.leaf-list li svg { flex: none; margin-top: 4px; }
.leaf-list li span { color: var(--muted); }
.leaf-list li strong { color: var(--cream); font-weight: 600; }

/* Platforms */
.platforms { background: var(--bg-2); }
.platform-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.platform {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 34px; display: flex; align-items: center; gap: 14px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.2rem;
}
.platform .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info .lead { margin: 16px 0 28px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--cream); font: inherit; padding: 13px 16px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; left: 0; top: 0; }
.chip span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: .92rem; transition: all .15s;
}
.chip input:checked + span { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--lime); min-height: 1.2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-grid img { height: 46px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); }
.footer-links a:hover { color: var(--lime); }
.footer-wa { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; }
.footer-wa:hover { color: var(--lime); }
.copy { margin-top: 36px; color: #6F7A6C; font-size: .85rem; text-align: center; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--lime);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* Plans page */
.page-hero { padding: 90px 0 40px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px;
  scroll-margin-top: 100px;
}
.plan.featured { border: 2px solid var(--lime); position: relative; }
.badge {
  display: inline-block; background: var(--lime); color: var(--bg); font-weight: 700; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.plan-type { color: var(--lime); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }
.plan h2 { margin: 6px 0 12px; font-size: 2.2rem; }
.plan .desc { color: var(--muted); margin-bottom: 26px; }
.price-box { background: var(--bg); border-radius: 18px; padding: 22px 24px; margin-bottom: 26px; }
.price-big { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 2rem; color: var(--lime); line-height: 1.1; }
.price-box p { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.price-box p strong { color: var(--cream); }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9rem; }
.mini-table th, .mini-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--muted); font-weight: 500; }
.mini-table td:last-child, .mini-table th:last-child { text-align: right; }
.fine { color: #8C968A; font-size: .82rem; margin-top: 10px; }

.price-group + .price-group { margin-top: 26px; }
.price-group h3 { font-size: 1.1rem; margin-bottom: 12px; }
.price-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.price-item:last-of-type { border-bottom: 0; }
.price-item .name { font-weight: 600; }
.price-item .detail { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; margin-top: 2px; }
.price-item .amount { font-family: 'Nunito', sans-serif; font-weight: 900; color: var(--lime); white-space: nowrap; font-size: 1.15rem; }
.group-note { color: var(--muted); font-size: .86rem; font-style: italic; margin-top: 6px; }
.plan .btn { margin-top: 28px; width: 100%; justify-content: center; }

.combo {
  margin-top: 30px; background: linear-gradient(120deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 28px; padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.combo h3 { font-size: 1.6rem; margin-bottom: 6px; }
.combo p { color: var(--muted); max-width: 620px; }

/* Responsive */
@media (max-width: 980px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-panel, .contact-grid, .plans-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 30px; gap: 28px; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px; gap: 18px;
  }
  .nav ul.open { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .plan, .contact-card, .combo { padding: 28px 22px; }
  .tab-btn { padding: 10px 16px; font-size: .9rem; }
  .footer-grid { flex-direction: column; text-align: center; }
}

/* WordPress */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
