/* Estilos compartidos por las páginas de ejemplo (/ejemplos/*.html) */

/* Estas páginas no cargan el cursor personalizado del sitio principal: se restaura el cursor normal */
body, a, button, input, textarea { cursor: auto !important; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245,247,250,.18);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.back-link:hover {
  border-color: var(--blue-light);
  background: rgba(45,107,255,.12);
  transform: translateX(-3px);
}

.ex-hero {
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}
.ex-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,107,255,.16), transparent 70%);
  pointer-events: none;
}
.ex-hero .eyebrow { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 4px; color: var(--blue-light); margin: 0 0 20px; }
.ex-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 52px); max-width: 700px; margin: 0 0 22px; line-height: 1.1; }
.ex-sub { color: var(--dim); font-size: 17px; max-width: 560px; margin: 0; }

.ex-section { padding: 70px 0; }
.ex-section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.ex-cta { padding: 90px 0 110px; text-align: center; }
.ex-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; }
.ex-cta p { color: var(--dim); margin: 0 0 30px; }

/* ---- Flow diagram (automatización) ---- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 8px;
}
.flow-line { position: absolute; top: -22px; left: 0; width: 100%; height: 4px; }
.flow-line-fill { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1); }
.flow.is-visible .flow-line-fill { stroke-dashoffset: 0; }
.flow-step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.flow-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(45,107,255,.12);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step h3 { font-family: var(--font-head); font-size: 16px; margin: 0 0 10px; }
.flow-step p { font-size: 14px; color: var(--dim); margin: 0; line-height: 1.6; }

/* ---- WhatsApp conversation mockup ---- */
.wa-mockup {
  max-width: 420px;
  margin: 0 auto;
  background: #0b141a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  border: 1px solid var(--line);
}
.wa-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #1f2c34; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); flex-shrink: 0; }
.wa-name { color: #fff; font-weight: 700; font-size: 15px; }
.wa-status { color: #8696a0; font-size: 12px; }
.wa-body { padding: 20px 16px; background: #0b141a; background-image: radial-gradient(rgba(255,255,255,.02) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { max-width: 82%; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.wa-bubble.in { background: #1f2c34; color: #e9edef; border-top-left-radius: 2px; }
.wa-bubble.out { background: #005c4b; color: #e9edef; margin-left: auto; border-top-right-radius: 2px; }
.wa-bubble strong { color: #fff; }
.wa-tag { text-align: center; font-size: 11.5px; color: #8696a0; margin-top: 6px; transition: opacity .4s ease; }

.wa-hidden { opacity: 0 !important; transform: translateY(10px); pointer-events: none; }
.wa-bubble.in.wa-hidden { transform: translateY(10px) translateX(-6px); }
.wa-bubble.out.wa-hidden { transform: translateY(10px) translateX(6px); }

.wa-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  background: #1f2c34;
  padding: 12px 16px;
  border-radius: 10px;
  border-top-left-radius: 2px;
  margin-bottom: 12px;
  max-height: 44px;
  overflow: hidden;
  transition: opacity .3s ease, max-height .35s ease .15s, margin-bottom .35s ease .15s, padding .35s ease .15s;
}
.wa-typing.wa-collapsed {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.wa-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: waTypingDot 1.1s ease infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---- Content calendar (contenido) ---- */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cal-day { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; min-height: 110px; }
.cal-day-name { font-family: var(--font-head); font-size: 11px; letter-spacing: 1px; color: var(--dimmer); margin-bottom: 10px; }
.cal-post { background: rgba(45,107,255,.1); border: 1px solid rgba(45,107,255,.25); border-radius: 6px; padding: 6px 8px; font-size: 11px; color: var(--blue-light); margin-bottom: 6px; }
.cal-empty { font-size: 11px; color: var(--dimmer); opacity: .4; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- Ads mockups ---- */
.ads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 70px; }
.meta-ad { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.meta-ad-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.meta-ad-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.meta-ad-name { font-weight: 700; font-size: 14px; color: #1a1a1a; }
.meta-ad-sponsored { font-size: 11.5px; color: #8a8a8a; }
.meta-ad-photo { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; }
.meta-ad-cta { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f0f2f5; }
.meta-ad-cta strong { font-size: 13.5px; color: #1a1a1a; }
.meta-ad-btn { background: #e4e6eb; color: #1a1a1a; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 6px; }
.meta-ad-caption { padding: 0 16px 16px; font-size: 13px; color: #333; }

.google-ad { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.google-ad-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #1a1a1a; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.google-ad-url { color: #202124; font-size: 13px; margin-bottom: 4px; }
.google-ad-title { color: #1a0dab; font-size: 19px; margin: 0 0 6px; }
.google-ad-desc { color: #4d5156; font-size: 13.5px; line-height: 1.5; margin: 0; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat-tile { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; }
.stat-tile-label { font-size: 12.5px; color: var(--dimmer); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.stat-tile-value { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--white); }
.stat-tile-delta { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.stat-tile-delta.up { color: #0ca30c; }
.stat-tile-delta.down { color: #d03b3b; }
.ex-note { font-size: 12.5px; color: var(--dimmer); text-align: center; margin-top: 24px; }

/* ---- Consultoría roadmap ---- */
.roadmap { display: flex; flex-direction: column; gap: 0; }
.roadmap-item { display: grid; grid-template-columns: 70px 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid var(--line); }
.roadmap:first-child .roadmap-item:first-child { border-top: none; }
.roadmap-phase { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--blue-light); letter-spacing: 1px; }
.roadmap-content h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; }
.roadmap-content p { color: var(--dim); font-size: 14.5px; margin: 0 0 12px; line-height: 1.6; }
.roadmap-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.roadmap-tag { font-size: 11.5px; font-weight: 600; color: var(--dim); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.diag-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 30px; margin-bottom: 50px; }
.diag-card h3 { font-family: var(--font-head); font-size: 16px; margin: 0 0 16px; color: var(--blue-light); }
.diag-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.diag-row:first-of-type { border-top: none; }
.diag-row span:first-child { color: var(--dim); }
.diag-row span:last-child { color: var(--white); font-weight: 600; }

/* ---- Tarjetas de demo enlazables (diseño web) ---- */
.demo-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.demo-link-card { display: block; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.demo-link-card:hover { transform: translateY(-6px); }
.demo-link-card .browser-frame img { width: 100%; height: 280px; object-fit: cover; object-position: top; display: block; }
.demo-link-card:hover .browser-frame { box-shadow: 0 34px 90px rgba(45,107,255,.22); border-color: rgba(45,107,255,.4); }
.demo-link-caption { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px 0; }
.demo-link-caption h3 { font-family: var(--font-head); font-size: 17px; margin: 0; }
.demo-link-caption .service-link { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .demo-links-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-line { display: none; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .ads-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: repeat(4, 1fr); }
  .roadmap-item { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  .posts-grid { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
}
