/* ===========================================================
   Jorge Fela — Sitio personal
   Paleta: Olivo + Ocre + Piedra (tonos tierra)

   Índice
   1. Variables / Reset / Tipografía / Botones
   2. Nav
   3. Hero (home)
   4. Marquee (logos)
   5. Section scaffold + bloques de contenido
      (servicios, stats, proceso, stack, split, ecosistema,
       cta-band, page-hero, about, contacto)
   6. Footer
   7. Scroll reveal + utilidades
   8. Ecosistema (tarjetas de marca)
   9. Testimonios (video)
   10. Newsletter
   11. Blog
   12. Cookie consent
   13. Experto en GHL (destacado)
   14. Programas recomendados
   15. Agenda / calendario
   16. Artículo (blog post) + galería "a la vanguardia"
   17. Admin
   18. Responsive (920px, 720px, prefers-reduced-motion)
   =========================================================== */

/* ===========================================================
   1. VARIABLES / RESET / TIPOGRAFÍA / BOTONES
   =========================================================== */
:root {
  /* Tierra: piedra / arena / olivo / ocre */
  --stone-950: #1c1a14;
  --stone-900: #26241c;
  --stone-800: #34302550;
  --stone-bg:  #f4efe4;   /* crema piedra */
  --stone-bg2: #ebe3d3;   /* arena */
  --stone-card:#fbf8f0;
  --ink:       #2a261d;   /* marrón oscuro texto */
  --ink-soft:  #6b6452;
  --line:      #d9cfb8;

  --olive:     #6b7344;   /* olivo */
  --olive-d:   #525a33;
  --olive-l:   #8a9460;
  --ocre:      #c2882f;   /* ocre dorado */
  --ocre-l:    #d9a94e;
  --clay:      #a8632e;   /* refuerzo cálido */

  --accent:    var(--olive);
  --accent-2:  var(--ocre);

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -22px rgba(42,38,29,.45);
  --shadow-sm: 0 8px 24px -14px rgba(42,38,29,.45);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--stone-bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 4px 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Honeypot anti-spam (utilidad genérica, usado en formularios) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.serif-it { font-family: var(--font-serif); font-style: italic; color: var(--olive-d); }
.ocre { color: var(--ocre); }
/* itálica serif legible sobre fondos oscuros (cta-band, newsletter, sección dark) */
.cta-band .serif-it, .nl-band .serif-it, .section.dark .serif-it { color: var(--ocre-l); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ocre); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
  will-change: transform;
}
.btn-primary { background: var(--olive); color: #fbf8f0; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--olive-d); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive-d); transform: translateY(-3px); }
.btn-ocre { background: var(--ocre); color: #2a261d; font-weight: 700; }
.btn-ocre:hover { background: var(--ocre-l); transform: translateY(-3px); }

/* ===========================================================
   2. NAV
   =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled {
  background: rgba(244,239,228,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--font-serif); font-size: 1.18rem; letter-spacing: -.01em; }
.brand span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--ocre); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--olive-d); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--stone-bg); font-size: .88rem; font-weight: 600; }
.nav-cta:hover { background: var(--olive-d); }
/* especificidad .nav-links a hacía el CTA oscuro-sobre-oscuro; se corrige aquí */
.nav-links a.nav-cta { color: #fbf8f0; }
.nav-links a.nav-cta:hover { color: #fbf8f0; }
.nav-links a.nav-cta::after { display: none; }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.menu-btn.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2){ opacity: 0; }
.menu-btn.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   3. HERO (home)
   =========================================================== */
.hero { position: relative; padding: 150px 0 80px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -10%; top: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center, rgba(194,136,47,.18), transparent 62%);
  z-index: 0; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-name { font-size: clamp(3rem, 9vw, 6.6rem); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.hero-tag { margin-top: 14px; font-size: .82rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }
.hero h2, .hero .hero-lead { font-size: clamp(1.4rem, 2.7vw, 2.15rem); margin-top: 28px; max-width: 30ch; font-weight: 500; }
.hero p.lead { margin-top: 20px; font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* photo + floating cards */
.hero-photo { position: relative; }
.photo-frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--olive-l), var(--olive-d));
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.15);
}
.photo-frame .silhouette { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.photo-frame .silhouette svg { width: 78%; height: auto; opacity: .92; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,26,20,.35)); pointer-events: none; }
.photo-frame .ph-label {
  position: absolute; top: 16px; left: 16px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(28,26,20,.45); color: #f4efe4; padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(4px);
}
/* retrato: fade a la foto sonriendo (hero-smile.jpg) al pasar el mouse */
.photo-frame .photo-swap { opacity: 0; transition: opacity .6s ease; }
.photo-frame:hover .photo-swap { opacity: 1; }
@media (hover: none) { .photo-frame .photo-swap { display: none; } }

.float-card {
  position: absolute; background: var(--stone-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.float-card .num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--olive-d); line-height: 1; }
.float-card .lbl { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.float-card.fc1 { top: 8%; left: -8%; animation: floaty 6s ease-in-out infinite; }
.float-card.fc2 { bottom: 10%; right: -6%; animation: floaty 7s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ===========================================================
   4. MARQUEE (logos)
   =========================================================== */
.marquee-sec { padding: 46px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--stone-bg2); }
.marquee-title { text-align: center; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto; height: 56px; min-width: 150px; padding: 0 26px; display: flex; align-items: center; justify-content: center;
  background: var(--stone-card); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; letter-spacing: .02em;
  transition: color .2s, border-color .2s;
}
.logo-chip:hover { color: var(--olive-d); border-color: var(--olive-l); }
@keyframes scrollx { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ===========================================================
   5. SECTION SCAFFOLD
   =========================================================== */
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--stone-bg2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 18px; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-card {
  position: relative; background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--olive), var(--ocre)); transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--olive-l); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--font-serif); font-size: .95rem; color: var(--ocre); display: flex; justify-content: space-between; align-items: center; }
.svc-num .arrow { color: var(--olive); transition: transform .3s; }
.svc-card:hover .svc-num .arrow { transform: translate(4px,-4px); }
.svc-card h3 { font-size: 1.45rem; margin: 16px 0 12px; }
.svc-card p { color: var(--ink-soft); font-size: .98rem; }
.svc-tags { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.svc-tags li { font-size: .86rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.svc-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ocre); flex: 0 0 auto; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { border-top: 2px solid var(--olive); padding-top: 18px; }
.stat .big { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); line-height: 1; }
.stat .cat { margin-top: 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); font-weight: 700; }
.stat .desc { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--stone-card); }
.proc-step { padding: 34px 26px; border-right: 1px solid var(--line); transition: background .3s; }
.proc-step:last-child { border-right: 0; }
.proc-step:hover { background: var(--stone-bg2); }
.proc-step .pn { font-family: var(--font-serif); font-size: 2.2rem; color: var(--olive-l); }
.proc-step .pk { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ocre); font-weight: 700; margin: 10px 0 14px; }
.proc-step h4 { font-size: 1.2rem; margin-bottom: 10px; }
.proc-step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Specialties / stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stack-item {
  aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, border-color .3s, background .3s; text-align: center; padding: 12px;
}
.stack-item:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--ocre); background: #fff; }
.stack-item .ic { width: 40px; height: 40px; color: var(--olive-d); }
.stack-item img.ic { object-fit: contain; }
.stack-item span { font-size: .8rem; font-weight: 600; color: var(--ink); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split .media {
  aspect-ratio: 5/4; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--olive-d), var(--stone-950));
  position: relative; overflow: hidden; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.split .media .badge { position: absolute; top: 18px; left: 18px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #f4efe4; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 8px; }
.split .media .wm { font-family: var(--font-serif); font-style: italic; color: rgba(244,239,228,.5); font-size: 1.4rem; }
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .media.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(28,26,20,.3)); pointer-events: none; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.split p { margin-top: 18px; color: var(--ink-soft); }
.split .mini-stats { margin-top: 28px; display: flex; gap: 30px; }
.split .mini-stats .ms b { font-family: var(--font-serif); font-size: 1.8rem; color: var(--olive-d); display: block; }
.split .mini-stats .ms span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Ecosystem cards (simples) ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.eco-card {
  display: block; background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.eco-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--olive-l); }
.eco-card .kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre); font-weight: 700; }
.eco-card h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.eco-card p { color: var(--ink-soft); font-size: .95rem; }
.eco-card .go { margin-top: 18px; display: inline-flex; gap: 6px; color: var(--olive-d); font-weight: 600; font-size: .9rem; }
.eco-card:hover .go { gap: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--olive-d), var(--stone-950)); color: var(--stone-bg); border-radius: var(--radius-lg); padding: 64px 50px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 20%, rgba(217,169,78,.25), transparent 50%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fbf8f0; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.cta-band p { color: rgba(251,248,240,.8); max-width: 50ch; margin: 18px auto 0; }
.cta-band .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fbf8f0; border-color: rgba(251,248,240,.4); }
.cta-band .btn-ghost:hover { border-color: var(--ocre-l); color: var(--ocre-l); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 160px 0 70px; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero p { margin-top: 22px; max-width: 56ch; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- About body ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 20px; color: var(--ink); font-size: 1.06rem; }
.prose p .serif-it { font-size: inherit; }
.cred-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.cred { display: inline-flex; align-items: center; gap: 10px; background: var(--stone-card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: .9rem; font-weight: 600; }
.cred .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); }

/* Galería "A la vanguardia" (sobre-mí) */
.io-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.io-gallery figure { margin: 0; }
.io-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.io-gallery figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; letter-spacing: .2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--stone-card);
  font-family: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(107,115,68,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info .ci { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci .ic { width: 22px; color: var(--olive); flex: 0 0 auto; }
.contact-info .ci b { display: block; font-family: var(--font-serif); font-size: 1.1rem; }
.contact-info .ci span { color: var(--ink-soft); font-size: .95rem; }
.form-note { margin-top: 6px; font-size: .85rem; color: var(--ink-soft); }
.form-ok { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(107,115,68,.12); color: var(--olive-d); font-weight: 600; }
/* captcha dentro de un formulario en fila (newsletter) */
.jf-captcha { margin: 8px 0 2px; }

/* ===========================================================
   6. FOOTER
   =========================================================== */
.footer { background: var(--stone-950); color: #cfc7b4; padding: 70px 0 34px; }
.footer .container { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fbf8f0; font-family: var(--font-serif); font-size: 1.4rem; }
.footer .ftag { margin-top: 12px; color: #a59c87; max-width: 38ch; font-size: .95rem; }
.footer .corp { margin-top: 14px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocre-l); }
.footer-col h5 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8f876f; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: #cfc7b4; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--ocre-l); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: #8f876f; }
.footer-bottom a { color: #8f876f; }
.footer-bottom a:hover { color: var(--ocre-l); }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal a { color: #8f876f; }
.footer-bottom .legal a:hover { color: var(--ocre-l); }

/* ===========================================================
   7. SCROLL REVEAL + UTILIDADES
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
/* fallback: si el JS no carga, el contenido se muestra igual tras 2s */
@keyframes jfRevealFallback { to { opacity: 1; transform: none; } }
.reveal { animation: jfRevealFallback .01s linear forwards 2s; }
.reveal.in { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .marquee-track { animation: none; }
}

/* ===========================================================
   8. ECOSISTEMA (tarjetas de marca)
   =========================================================== */
.eco2-stack { display: flex; flex-direction: column; gap: 22px; }
.eco2-card {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 320px;
  border-radius: var(--radius-lg); overflow: hidden; color: #f4efe4;
  box-shadow: var(--shadow-sm); transition: transform .35s ease, box-shadow .35s ease;
}
.eco2-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.eco2-card .txt { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.eco2-card .kick { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .85; display:flex; justify-content: space-between; }
.eco2-card .logo { font-family: var(--font-serif); font-weight: 600; font-size: 2.2rem; line-height: .95; margin: 18px 0 16px; letter-spacing: -.02em; }
.eco2-card .logo .pro { font-family: var(--font-sans); font-size: .6rem; font-weight: 700; letter-spacing: .1em; background: rgba(255,255,255,.18); padding: 3px 7px; border-radius: 5px; vertical-align: middle; margin-left: 6px; }
.eco2-card p { font-size: .98rem; opacity: .9; max-width: 40ch; }
.eco2-card .go { margin-top: auto; padding-top: 22px; display: inline-flex; gap: 8px; font-weight: 600; font-size: .9rem; }
.eco2-card:hover .go { gap: 13px; }
.eco2-card .img { position: relative; overflow: hidden; min-height: 240px; }
.eco2-card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.eco2-card:hover .img img { transform: scale(1.05); }
.eco2-card.c-felamedia { background: #1c1a14; }
.eco2-card.c-crm       { background: #2b3f5c; }
.eco2-card.c-agentpro  { background: #2f4733; }
.eco2-card.c-leads     { background: #9a3f24; }
.eco2-card .accent { color: var(--ocre-l); }
.c-crm .accent { color: #8fb6e6; }
.c-agentpro .accent { color: #9ecb9e; }
.c-leads .accent { color: #f0c39a; }

/* ===========================================================
   9. TESTIMONIOS (video)
   =========================================================== */
.section.dark { background: var(--stone-950); color: #efe9da; }
.section.dark .section-head h2 { color: #fbf8f0; }
.section.dark .section-head p { color: #b8b09d; }
.section.dark .eyebrow { color: var(--ocre-l); }
.section.dark .eyebrow::before { background: var(--ocre-l); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tst-card { background: #2a2820; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.tst-card:hover { transform: translateY(-5px); border-color: rgba(217,169,78,.5); }
.tst-vid { position: relative; aspect-ratio: 9/14; background: #000; overflow: hidden; }
.tst-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; overflow: hidden; }
.tst-meta { padding: 14px 18px 18px; }
.tst-meta .stars { color: var(--ocre-l); letter-spacing: 2px; font-size: .85rem; }
.tst-meta b { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: #fbf8f0; margin-top: 4px; }
.tst-meta span { font-size: .82rem; color: #b8b09d; }
/* miniatura estática + botón de play (carga el iframe solo al hacer clic) */
.tst-vid .tst-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.tst-vid .tst-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tst-vid .tst-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%;
  background: rgba(217,169,78,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .2s;
}
.tst-vid .tst-poster:hover .tst-play { transform: translate(-50%,-50%) scale(1.08); }
.tst-vid .tst-play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #1a1710; margin-left: 4px; }

/* ===========================================================
   10. NEWSLETTER
   =========================================================== */
.nl-band { background: linear-gradient(135deg, var(--olive-d), var(--stone-900)); border-radius: var(--radius-lg); padding: 56px 50px; text-align: center; position: relative; overflow: hidden; }
.nl-band::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(217,169,78,.22), transparent 55%); pointer-events: none; }
.nl-band > * { position: relative; z-index: 1; }
.nl-band .eyebrow { color: var(--ocre-l); justify-content: center; }
.nl-band .eyebrow::before { background: var(--ocre-l); }
.nl-band h2 { color: #fbf8f0; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 14px; }
.nl-band p { color: rgba(251,248,240,.82); max-width: 52ch; margin: 16px auto 0; }
.nl-form { margin: 30px auto 0; max-width: 520px; display: flex; flex-wrap: wrap; gap: 12px; }
.nl-form input { flex: 1; padding: 15px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.95); font-family: inherit; font-size: 1rem; color: var(--ink); }
.nl-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(217,169,78,.4); }
.nl-form button { white-space: nowrap; }
.nl-form .jf-captcha { flex-basis: 100%; display: flex; justify-content: center; }
.nl-mini { margin-top: 14px; font-size: .82rem; color: rgba(251,248,240,.7); position: relative; }
.nl-ok { display:none; margin-top: 16px; color: var(--ocre-l); font-weight: 600; position: relative; }

/* ===========================================================
   11. BLOG
   =========================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--olive-l); }
.blog-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.blog-thumb img { width:100%; height:100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb.grad1 { background: linear-gradient(150deg, var(--olive), var(--olive-d)); }
.blog-thumb.grad2 { background: linear-gradient(150deg, var(--ocre), var(--clay)); }
.blog-thumb.grad3 { background: linear-gradient(150deg, var(--olive-d), var(--stone-900)); }
.blog-thumb .tag { position: absolute; top: 14px; left: 14px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: rgba(28,26,20,.6); color: #f4efe4; padding: 6px 11px; border-radius: 7px; backdrop-filter: blur(4px); }
.blog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-body .date { font-size: .76rem; color: var(--ocre); font-weight: 600; letter-spacing: .04em; }
.blog-body h3 { font-size: 1.28rem; margin: 8px 0 10px; }
.blog-body p { color: var(--ink-soft); font-size: .94rem; }
.blog-body .read { margin-top: auto; padding-top: 16px; color: var(--olive-d); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; }
.blog-card:hover .blog-body .read { gap: 11px; }

/* ===========================================================
   12. COOKIE CONSENT
   =========================================================== */
.cookie {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200; max-width: 560px;
  background: var(--stone-950); color: #e7e1d2; border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow);
  display: none; transform: translateY(20px); opacity: 0; transition: transform .4s ease, opacity .4s ease;
}
.cookie.show { display: block; transform: none; opacity: 1; }
.cookie p { font-size: .9rem; line-height: 1.55; color: #c9c2b1; }
.cookie p a { color: var(--ocre-l); text-decoration: underline; }
.cookie .cookie-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 20px; font-size: .86rem; }
.cookie .btn-ghost { color: #e7e1d2; border-color: rgba(255,255,255,.3); }
.cookie .btn-ghost:hover { border-color: var(--ocre-l); color: var(--ocre-l); }

/* ===========================================================
   13. EXPERTO EN GHL (destacado)
   =========================================================== */
.ghl { background: linear-gradient(135deg, var(--stone-900), var(--stone-950)); color: #efe9da; border-radius: var(--radius-lg); overflow: hidden; }
.ghl-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.ghl-copy { padding: 56px 50px; }
.ghl-copy .eyebrow { color: var(--ocre-l); }
.ghl-copy .eyebrow::before { background: var(--ocre-l); }
.ghl-copy h2 { color: #fbf8f0; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 16px; }
.ghl-copy h2 .serif-it { color: var(--ocre-l); }
.ghl-copy p { color: #c9c2b1; margin-top: 16px; max-width: 48ch; }
.ghl-points { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.ghl-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: #e7e1d2; }
.ghl-points li svg { width: 20px; height: 20px; color: var(--ocre-l); flex: 0 0 auto; margin-top: 2px; }
.ghl-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.ghl-badge { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #34302a, var(--stone-950)); padding: 40px; }
.ghl-mark { width: 230px; height: 230px; border-radius: 50%; border: 3px solid var(--ocre-l); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 0 0 14px rgba(217,169,78,.08); }
.ghl-mark .ic-circle { width: 84px; height: 84px; color: var(--ocre-l); }
.ghl-mark b { font-family: var(--font-serif); font-size: 1.5rem; color: #fbf8f0; }
.ghl-mark span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #b8b09d; }
.ghl-badge .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(217,169,78,.2); }
.ghl .btn-ghost { color:#fbf8f0; border-color:rgba(251,248,240,.45); }
.ghl .btn-ghost:hover { color:var(--ocre-l); border-color:var(--ocre-l); }

/* ===========================================================
   14. PROGRAMAS RECOMENDADOS
   =========================================================== */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog-card { background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--olive-l); }
.prog-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--stone-bg2); display: flex; align-items: center; justify-content: center; color: var(--olive-d); margin-bottom: 16px; }
.prog-ic svg { width: 28px; height: 28px; }
.prog-ic img { width: 28px; height: 28px; object-fit: contain; }
.prog-card h3 { font-size: 1.2rem; }
.prog-card .role { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre); font-weight: 700; margin: 4px 0 10px; }
.prog-card p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.prog-card .go { margin-top: 16px; color: var(--olive-d); font-weight: 600; font-size: .86rem; display: inline-flex; gap: 6px; }
.prog-card:hover .go { gap: 11px; }

/* ===========================================================
   15. AGENDA / CALENDARIO
   =========================================================== */
.cal-wrap { background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.cal-wrap iframe { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); display: block; }
.cal-placeholder { min-height: 480px; border: 2px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px; color: var(--ink-soft); }
.cal-placeholder svg { width: 56px; height: 56px; color: var(--olive); }
.cal-placeholder b { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.cal-tabs { display:flex; gap:10px; justify-content:center; margin-bottom:22px; flex-wrap:wrap; }
.cal-tab { padding:10px 22px; border-radius:999px; border:1px solid var(--line); background:var(--stone-card); font-family:inherit; font-weight:600; font-size:.92rem; color:var(--ink); cursor:pointer; transition:all .2s; }
.cal-tab.active { background:var(--olive); color:#fbf8f0; border-color:var(--olive); }
.cal-frame { background:var(--stone-card); border:1px solid var(--line); border-radius:var(--radius); padding:10px; box-shadow:var(--shadow-sm); }

/* ===========================================================
   16. ARTÍCULO (blog post)
   =========================================================== */
.article { max-width: 760px; margin: 0 auto; }
.article-hero { padding: 150px 0 0; }
.article-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: 24px; }
.article .meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--ocre); font-weight: 700; letter-spacing: .04em; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 6px; }
.article .body { margin-top: 30px; }
.article .body p { font-size: 1.08rem; color: var(--ink); margin-bottom: 20px; }
.article .body h2 { font-size: 1.7rem; margin: 34px 0 12px; }
.article .body h3 { font-size: 1.3rem; margin: 26px 0 10px; }
.article .body ul { margin: 0 0 20px 0; padding-left: 0; }
.article .body ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); }
.article .body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); }
.article .back { display: inline-flex; gap: 8px; color: var(--olive-d); font-weight: 600; margin-top: 10px; }
/* figuras inline dentro del cuerpo del artículo */
.article-fig { margin: 30px 0; }
.article-fig img { width: 100%; border-radius: 16px; display: block; }
.article-fig figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; font-style: italic; }
/* recuadro destacado dentro del artículo (CTAs de afiliado, avisos) */
.callout { background: var(--stone-card); border: 1px solid var(--line); border-left: 4px solid var(--ocre); border-radius: 12px; padding: 22px 26px; margin: 28px 0; }
.callout p { margin-bottom: 10px; font-size: 1rem !important; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.callout .callout-links a { font-weight: 700; color: var(--olive-d); }
.callout .callout-links a:hover { color: var(--ocre); }

/* ===========================================================
   17. ADMIN (composer de artículos)
   =========================================================== */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.admin-card { background: var(--stone-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.admin-note { background: rgba(194,136,47,.1); border: 1px solid rgba(194,136,47,.3); color: var(--ink); padding: 14px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }
.admin-prev { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 300px; background: var(--stone-bg); }
.admin-prev .ph { padding: 40px; color: var(--ink-soft); text-align: center; }

/* ===========================================================
   18. RESPONSIVE
   =========================================================== */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 380px; margin: 0 auto; }
  .float-card.fc1 { left: 0; }
  .float-card.fc2 { right: 0; }
  .svc-grid, .eco-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-step:nth-child(2){ border-right: 0; }
  .proc-step:nth-child(1), .proc-step:nth-child(2){ border-bottom: 1px solid var(--line); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .eco2-card { grid-template-columns: 1fr; }
  .eco2-card .img { min-height: 260px; order: -1; }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .ghl-grid { grid-template-columns: 1fr; }
  .ghl-badge { order: -1; padding: 40px 20px; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
/* Nav de 8 enlaces: el menú hamburguesa entra antes (tablets) para no desbordar */
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--stone-bg);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow); z-index: 105; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.2rem; }
  .menu-btn { display: flex; z-index: 110; }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 26px; }
  .section { padding: 70px 0; }
  .tst-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .nl-band { padding: 40px 24px; }
  .eco2-card .txt { padding: 32px 26px; }
  .prog-grid { grid-template-columns: 1fr; }
  .ghl-points { grid-template-columns: 1fr; }
  .ghl-copy { padding: 36px 26px; }
  /* galería "a la vanguardia": carrusel deslizable en vez de apilar a lo ancho */
  .io-gallery { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .io-gallery::-webkit-scrollbar { display: none; }
  .io-gallery figure { flex: 0 0 78%; scroll-snap-align: start; }
  .io-gallery figcaption { margin-bottom: 2px; }
}

/* 2026-08-19: el blog deja de usar imagenes. La etiqueta vivia dentro
   de la miniatura, posicionada en absoluto; ahora va en el cuerpo. */
.blog-body .tag { position: static; display: inline-block; margin-bottom: 12px; }

/* Links dentro del cuerpo de los artículos: que se note que son clicables */
.article .body p a { color: var(--olive-d); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article .body p a:hover { color: var(--ocre); }
