@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design tokens (Libella) ─────────────── */
: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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1.1; }
h1 em { font-style: italic; color: var(--green2); }
[data-lucide] { width: 1.1em; height: 1.1em; stroke-width: 1.8; flex-shrink: 0; }

/* ── Utilidades ──────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green2); margin-bottom: 14px;
}

/* ── Botones ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .95rem 'Inter', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 28px rgba(95,122,86,.35); }
.btn-primary:hover { background: var(--green2); }
.btn-dark { background: var(--dark); color: #fff; padding: 12px 22px; font-size: .88rem; }
.btn-dark:hover { background: var(--dark-mid); }
.btn-outline { border-color: var(--green); color: var(--green2); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ── Reveal ──────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .perks-list li.reveal:nth-child(2) { transition-delay: .08s; }
.js .perks-list li.reveal:nth-child(3) { transition-delay: .16s; }
.js .perks-list li.reveal:nth-child(4) { transition-delay: .24s; }
.js .perks-list li.reveal:nth-child(5) { transition-delay: .32s; }

/* ── NAV ─────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,240,235,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); transition: border-color .3s, box-shadow .3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo a { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }

/* Menú de enlaces de secciones (centro) */
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text); font-size: .88rem; font-weight: 500; text-decoration: none;
  transition: color .2s ease; position: relative; padding: 6px 0;
}
.nav-link:hover { color: var(--green2); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta-wrapper { display: flex; align-items: center; }

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; padding: 7px;
  align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--dark); transition: background .2s, border-color .2s; z-index: 110;
}
.nav-toggle:hover { background: rgba(0,0,0,.04); border-color: var(--green); }
.nav-toggle .icon-close { display: none; }
.nav-toggle .icon-menu { display: block; }
.nav-toggle.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* ── HERO compacto (sin panel lateral) ───── */
.hero {
  position: relative; padding: 48px 0 56px; overflow: hidden; text-align: center;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(180,200,173,.45), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(200,168,122,.28), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); margin-bottom: 18px; color: var(--dark); }
.hero-sub { font-size: 1.12rem; color: var(--text); max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ── CÓDIGO dentro del CTA (ticket grande y destacado) ── */
.code-chip {
  position: relative; display: inline-block; margin-top: 32px;
  background: var(--paper); padding: 32px 56px;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  -webkit-mask:
    radial-gradient(circle 20px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 20px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
        mask:
    radial-gradient(circle 20px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 20px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.code-chip::before {
  content: ""; position: absolute; inset: 12px; border: 2.5px dashed var(--warm);
  border-radius: calc(var(--r-md) - 6px); pointer-events: none;
}
.code-label {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green2); margin-bottom: 12px;
}
.code-label [data-lucide] { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.code-value {
  font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1;
  font-size: clamp(2.5rem, 5vw, 4rem); color: var(--dark);
  letter-spacing: .02em; user-select: all; padding: 6px 0;
}
.code-value .num { color: var(--green2); display: inline-block; position: relative; }
.code-note { font-size: 1.15rem; color: var(--muted); margin-top: 14px; font-weight: 500; }

/* ── BENEFICIOS ──────────────────────────── */
.perks-strip {
  background: var(--paper); padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.perks-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.perks-list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-weight: 500; font-size: .92rem; line-height: 1.3;
}
.perk-ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: var(--green2);
  border: 1px solid var(--green-lt); background: rgba(122,150,112,.08);
}
.perk-ic [data-lucide] { width: 18px; height: 18px; }

/* ── INVITACIÓN ──────────────────────────── */
.invite { padding: 52px 0; }
.invite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.invite-visual img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: -16px 16px 0 rgba(180,200,173,.55), var(--shadow-lg);
}
.invite-lead {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.35; color: var(--dark);
}
.invite-lead strong { font-weight: 700; color: var(--green2); }
.invite-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.invite-subtitle { font-size: 1.05rem; margin-bottom: 14px; color: var(--dark); }
.invite-subtitle strong { color: var(--green2); }
.genres-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.genres-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text); }
.genres-list li [data-lucide] { color: var(--green); width: 18px; height: 18px; }

/* ── TALLER GRATUITO ─────────────────────── */
.workshop { padding: 64px 0; background: var(--bg); }
.workshop-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 48px 44px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  max-width: 960px; margin: 0 auto;
}
.workshop-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--warm), var(--green), var(--green2));
}
.workshop-header { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.workshop-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(122,150,112,.12); color: var(--green2); border: 1px solid var(--green-lt);
  padding: 7px 18px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
.workshop-header h2 { font-size: clamp(2.1rem, 3.4vw, 2.8rem); color: var(--dark); margin-bottom: 18px; }
.workshop-lead { font-size: 1.15rem; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.workshop-lead strong { color: var(--green2); }
.workshop-sublead { font-size: 1rem; color: var(--muted); }

/* Los 4 pilares */
.workshop-pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px;
}
.pillar-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); padding: 22px 24px; border-radius: var(--r-md);
  border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease;
}
.pillar-item:hover { transform: translateY(-2px); border-color: var(--green-lt); }
.pillar-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--green2); line-height: 1; flex-shrink: 0; width: 32px;
}
.pillar-body h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 4px; }
.pillar-body p { font-size: .92rem; color: var(--muted); }

/* Coordinador */
.workshop-coordinator {
  display: flex; align-items: center; gap: 18px; background: rgba(200,168,122,.12);
  border: 1px solid rgba(200,168,122,.35); padding: 20px 24px; border-radius: var(--r-md);
  margin-bottom: 32px;
}
.coord-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--warm); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.coord-icon [data-lucide] { width: 24px; height: 24px; }
.coord-info { display: flex; flex-direction: column; gap: 2px; }
.coord-label { font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .1em; color: var(--warm); }
.coord-name { font-size: .98rem; color: var(--text); }
.coord-name strong { color: var(--dark); }

/* Modalidad: diseño limpio y equilibrado */
.workshop-meta-card {
  background: var(--dark); color: #fff; border-radius: var(--r-md);
  padding: 34px 36px; box-shadow: var(--shadow-md);
}
.meta-section-header { margin-bottom: 24px; text-align: center; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #f0dfba; padding: 7px 20px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
}
.meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px;
}
.meta-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 16px 20px; border-radius: var(--r-sm);
}
.meta-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(200,168,122,.18);
  border: 1px solid var(--warm); color: #f0dfba; display: grid; place-items: center; flex-shrink: 0;
}
.meta-icon [data-lucide] { width: 22px; height: 22px; }
.meta-text { display: flex; flex-direction: column; gap: 3px; }
.meta-text strong { font-size: 1rem; color: #fff; font-weight: 600; }
.meta-text span { font-size: .88rem; color: rgba(255,255,255,.75); }

.workshop-cta {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cupos-alert {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .98rem; font-weight: 600; color: #f0dfba; letter-spacing: .02em;
}
.cupos-alert [data-lucide] { color: var(--warm); width: 20px; height: 20px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; font-weight: 600; }

/* ── SORTEO + CHARLAS ────────────────────── */
.extras { padding: 52px 0; background: var(--paper); border-top: 1px solid var(--border); }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.extras-visual {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); min-height: 300px;
}
.extras-visual img { width: 100%; height: 100%; object-fit: cover; }
.extras-cards { display: flex; flex-direction: column; gap: 24px; }
.about-card { border-radius: var(--r-lg); padding: 30px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.about-card.green { background: var(--green2); color: #fff; }
.about-card.light { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.about-card p { font-size: 1.02rem; line-height: 1.6; }
.about-card.light p { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; line-height: 1.4; color: var(--dark); }
.about-card.green p { color: rgba(255,255,255,.92); }
.about-card.green strong { color: #f0dfba; }
.ac-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green); color: #fff;
}
.about-card.green .ac-icon { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.ac-icon [data-lucide] { width: 24px; height: 24px; }

/* ── CIERRE claro al pie (sin banda oscura) ── */
.closing { padding: 52px 0 56px; }
.closing-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.closing h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--dark); }
.closing h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 16px;
  background: var(--warm); border-radius: 2px;
}
.closing-where { font-size: 1.08rem; color: var(--text); margin: 20px 0 26px; }
.closing-where strong { color: var(--green2); font-weight: 600; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.closing-visual img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 16px 16px 0 rgba(200,168,122,.4), var(--shadow-lg);
}

/* ── FOOTER claro ────────────────────────── */
footer {
  background: var(--paper); color: var(--muted); text-align: center;
  padding: 20px 0; font-size: .85rem; border-top: 1px solid var(--border);
}
footer strong { color: var(--dark); font-weight: 600; }

/* ── WA FLOTANTE ─────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 120;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 28px rgba(37,211,102,.45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0; height: calc(100vh - 70px);
    background: rgba(244,240,235,.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: 32px 24px; gap: 28px; transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2,.7,.2,1); overflow-y: auto; z-index: 105;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .nav-link { font-size: 1.15rem; font-weight: 600; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-cta-wrapper { width: 100%; padding-top: 10px; }
  .nav-btn { width: 100%; padding: 14px 20px; font-size: .95rem; justify-content: center; }
}

@media (max-width: 1100px) {
  .perks-list { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 1024px) {
  .hero { padding: 40px 0 48px; }
  .invite-grid, .extras-grid, .closing-grid, .meta-card-grid { grid-template-columns: 1fr; }
  .invite-grid, .closing-grid { gap: 36px; }
  .meta-card-grid { gap: 28px; }
  .invite, .extras, .closing { padding: 44px 0; }
  .extras-visual { min-height: 260px; }
}

@media (max-width: 768px) {
  .hero { padding: 34px 0 44px; }
  .perks-list { grid-template-columns: repeat(2, 1fr); }
  .workshop { padding: 44px 0; }
  .workshop-card { padding: 28px 20px; }
  .workshop-pillars { grid-template-columns: 1fr; gap: 14px; }
  .pillar-item { padding: 18px 20px; }
  .workshop-coordinator { padding: 16px 18px; flex-direction: column; text-align: center; }
  .workshop-meta-card { padding: 24px 18px; }
  .meta-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-card { padding: 26px 24px; }
  .about-card.light p { font-size: 1.3rem; }
  .code-chip { padding: 22px 24px; }
  .wa-float { bottom: 18px; right: 18px; }
}
@media (max-width: 540px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .closing-actions .btn { width: 100%; }
  .perks-list { grid-template-columns: 1fr; }
  .code-chip { display: block; padding: 22px 18px; }
  .code-label { letter-spacing: .06em; font-size: .88rem; }
  .code-note { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
