/* ============================================================
   Zentria — Pocket · Grabadora Inteligente
   · Bloque "Productos destacados" del home
   · Landing page del producto (/servicios/pocket-grabadora-inteligente.php)
   Marca Pocket: azul → rosa (#2563EB → #EC4899)
   ============================================================ */

:root {
  --pk-a: #2563EB;
  --pk-b: #EC4899;
  --pk-grad: linear-gradient(135deg, #2563EB 0%, #EC4899 100%);
  --pk-grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(236, 72, 153, 0.12));
}

/* ============================================================
   HOME — Productos destacados (ZentrIA Voice + Pocket)
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.fp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.fp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.fp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 0;
}
.fp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
}
.fp-card-icon svg { width: 24px; height: 24px; }
.fp-card-head .fp-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.fp-card-head .fp-tagline { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fp-card-body { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.fp-card-desc { font-size: 0.98rem; color: var(--fg-soft); line-height: 1.65; }
.fp-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.fp-card-cta svg { width: 16px; height: 16px; }
.fp-copilot .fp-card-icon { background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(236,72,153,.14)); }
.fp-copilot .fp-card-cta { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.fp-voice .fp-card-icon { background: var(--zv-grad-soft, rgba(124,58,237,.12)); }
.fp-voice .fp-card-cta { background: var(--zv-grad, linear-gradient(135deg,#7C3AED,#0EA5E9)); }
.fp-pocket .fp-card-icon { background: var(--pk-grad-soft); }
.fp-pocket .fp-card-cta { background: var(--pk-grad); }
.featured-phone-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.featured-phone-note svg { width: 16px; height: 16px; }
.featured-phone-note a { color: var(--fg); font-weight: 600; text-decoration: none; }
.featured-phone-note a:hover { color: var(--accent); }
@media (min-width: 760px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }

/* Navegación flotante de servicios (escritorio, arriba-derecha, plegada) */
.fp-nav {
  position: fixed;
  top: 76px;              /* bajo el encabezado */
  right: 16px;
  z-index: 55;
  width: 244px;
}
.fp-nav-toggle {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.28);
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.fp-nav-toggle:hover { border-color: var(--accent); }
.fp-nav.open .fp-nav-toggle { border-color: var(--accent); }
.fp-nav-toggle-icon { color: var(--accent); display: inline-flex; }
.fp-nav-toggle-icon svg { width: 16px; height: 16px; }
.fp-nav-toggle-label { flex: 1; text-align: left; }
.fp-nav-toggle-chevron { color: var(--muted); display: inline-flex; transition: transform 0.25s ease; }
.fp-nav-toggle-chevron svg { width: 15px; height: 15px; }
.fp-nav.open .fp-nav-toggle-chevron { transform: rotate(180deg); }
/* Atención inicial sutil: un suave resplandor que se apaga solo */
@keyframes fp-attention {
  0%, 100% { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 8px 24px -6px rgba(10, 100, 200, 0.45), 0 0 0 3px rgba(10, 100, 200, 0.14); }
}
.fp-nav-toggle { animation: fp-attention 2.4s ease-in-out 3; }
.fp-nav-panel {
  margin-top: 8px;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-height: 0; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease;
  pointer-events: none;
}
.fp-nav.open .fp-nav-panel { max-height: 460px; opacity: 1; transform: none; pointer-events: auto; }
.fp-nav-eyebrow {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 600; color: var(--muted); padding: 10px 12px 2px;
}
.fp-nav-links { display: flex; flex-direction: column; padding: 6px 8px 8px; }
.fp-nav-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 500; color: var(--fg-soft);
  text-decoration: none; transition: background 0.18s ease, color 0.18s ease;
}
.fp-nav-links a:hover { background: var(--bg-soft); color: var(--fg); }
.fp-nav-links a svg { width: 16px; height: 16px; flex-shrink: 0; }
.fp-nav-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 4px 8px 10px; padding: 9px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.fp-nav-all svg { width: 14px; height: 14px; }
.fp-nav-all:hover { border-color: var(--accent); }
@media (max-width: 900px) { .fp-nav { display: none; } }

/* ============================================================
   LANDING PAGE — Pocket
   ============================================================ */
.pk-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(236, 72, 153, 0.12), transparent 60%),
    radial-gradient(80% 120% at 10% 100%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.pk-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.pk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pk-b);
  background: var(--pk-grad-soft);
  border: 1px solid rgba(236, 72, 153, 0.28);
  margin-bottom: 20px;
}
.pk-hero-badge svg { width: 14px; height: 14px; }
.pk-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 14px; }
.pk-hero h1 .pk-accent { background: var(--pk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 500; color: var(--pk-a); margin-bottom: 14px; }
.pk-hero-desc { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); line-height: 1.75; max-width: 620px; margin-bottom: 26px; }
.pk-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pk-hero-ctas .pill svg { width: 17px; height: 17px; }
.pk-buy-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--pk-grad);
  box-shadow: 0 12px 30px -12px rgba(236, 72, 153, 0.7);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pk-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(236, 72, 153, 0.8); }
.pk-buy-btn svg { width: 17px; height: 17px; }
.pk-buy-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.pk-buy-cta-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.pk-partner-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.pk-hero-visual { display: flex; justify-content: center; position: relative; }
.pk-hero-video {
  width: 100%; max-width: 420px;
  border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px -32px rgba(37, 99, 235, 0.5);
  object-fit: cover; aspect-ratio: 3 / 4; background: #000;
}
@media (min-width: 920px) { .pk-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* Secciones */
.pk-section { padding: 64px 0; }
.pk-section-soft { background: var(--bg-soft); }
.pk-head { max-width: 760px; margin-bottom: 40px; }
.pk-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.pk-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--pk-a); margin-bottom: 12px;
}
.pk-kicker svg { width: 15px; height: 15px; }
.pk-title { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.pk-desc { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }

/* Stats */
.pk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pk-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 12px; text-align: center; min-width: 0;
}
.pk-stat .k {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--pk-a);
  line-height: 1.2; overflow-wrap: break-word; hyphens: auto;
}
.pk-stat .v { font-size: 0.8rem; color: var(--muted); margin-top: 6px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 640px) {
  .pk-stats { grid-template-columns: 1fr; gap: 10px; }
  .pk-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 13px 16px; }
  .pk-stat .k { font-size: 1.1rem; white-space: normal; flex-shrink: 0; }
  .pk-stat .v { margin-top: 0; flex: 1; min-width: 0; text-align: right; }
}

/* Cómo funciona (pasos) */
.pk-steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pk-step {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 24px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pk-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(37, 99, 235, 0.3); }
.pk-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--pk-grad); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.pk-step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--pk-grad-soft); border: 1px solid var(--border); margin-bottom: 14px;
}
.pk-step-icon svg { width: 26px; height: 26px; }
.pk-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pk-step p { font-size: 0.94rem; color: var(--muted); line-height: 1.65; }
@media (min-width: 700px) { .pk-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pk-steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* Colores */
.pk-colors { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pk-color {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; text-align: center;
}
.pk-color img { width: 100%; border-radius: 14px; aspect-ratio: 1/1; object-fit: cover; }
.pk-color .name { font-weight: 600; margin-top: 12px; font-size: 1.05rem; }
.pk-color .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
@media (min-width: 640px) { .pk-colors { grid-template-columns: repeat(3, 1fr); } }

/* Carrusel de fotos */
.pk-carousel { position: relative; }
.pk-carousel-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 14px; scrollbar-width: thin;
}
.pk-carousel-track::-webkit-scrollbar { height: 8px; }
.pk-carousel-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.pk-slide {
  flex: 0 0 auto; width: 78%; max-width: 340px; scroll-snap-align: center;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--card);
}
.pk-slide img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
@media (min-width: 640px) { .pk-slide { width: 44%; } }
@media (min-width: 1024px) { .pk-slide { width: 30%; } }
.pk-carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.pk-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-strong); color: var(--fg);
  cursor: pointer; transition: all 0.2s ease;
}
.pk-nav-btn:hover { border-color: var(--pk-a); color: var(--pk-a); }
.pk-nav-btn svg { width: 18px; height: 18px; }

/* Galería de vídeos */
.pk-videos-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pk-video-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.pk-video-card video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.pk-video-card .cap { padding: 12px 14px; font-size: 13px; color: var(--muted); }
@media (min-width: 700px) { .pk-videos-grid { grid-template-columns: 1fr 1fr; } }

/* App en el móvil */
.pk-app-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.pk-app-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-app-shots img { width: 100%; border-radius: 14px; border: 1px solid var(--border); }
.pk-app-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pk-app-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--fg-soft); }
.pk-app-list li svg { width: 16px; height: 16px; color: var(--pk-a); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 900px) { .pk-app-grid { grid-template-columns: 1fr 1fr; } }

/* Casos de uso */
.pk-usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pk-usecase {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; font-size: 0.93rem; font-weight: 500; color: var(--fg-soft);
}
.pk-usecase svg { width: 17px; height: 17px; color: var(--pk-a); flex-shrink: 0; }
@media (max-width: 560px) { .pk-usecases { grid-template-columns: 1fr; } }

/* ZentrIA partner */
.pk-partner {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  border-radius: var(--radius-lg); padding: 40px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(236, 72, 153, 0.12), transparent 55%),
    var(--card);
  border: 1px solid var(--border);
}
.pk-partner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 14px; }
.pk-partner p { color: var(--fg-soft); line-height: 1.7; margin-bottom: 12px; }
.pk-partner .pk-phone {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--pk-grad); color: #fff; text-decoration: none; font-weight: 600;
}
.pk-partner .pk-phone svg { width: 17px; height: 17px; }
.pk-partner-logo { display: flex; justify-content: center; }
.pk-partner-logo img { max-width: 260px; height: auto; }
@media (min-width: 900px) { .pk-partner { grid-template-columns: 1.2fr 0.8fr; } }

/* CTA final */
.pk-cta {
  border-radius: 28px; padding: 56px 32px; text-align: center; color: #fff;
  background: var(--pk-grad); position: relative; overflow: hidden;
}
.pk-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 15% 0%, rgba(255,255,255,0.18), transparent 55%),
              radial-gradient(60% 100% at 85% 100%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.pk-cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 14px; position: relative; }
.pk-cta p { color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.7; position: relative; }
.pk-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }
.pk-cta-actions .pill { background: #fff; color: var(--pk-a); }
.pk-cta-actions .pill-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.pk-cta-actions .pill-outline:hover { background: rgba(255,255,255,0.12); }
.pk-disclosure { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 16px; position: relative; }

@media (prefers-reduced-motion: reduce) {
  .pk-carousel-track { scroll-behavior: auto; }
}
