/* =============================================================================
   UniControl Field Partner - extensión técnica para fabricantes y proveedores
   1) Bloque destacado en index.html (#field-partner)
   2) Página field-partner.html

   Se carga DESPUÉS de site.css y de idas.css: reutiliza sus tokens (:root), nav,
   footer, .btn, .btn-whatsapp, .btn-ghost-dark, .badge-clean y .idas-chip.
   Prefijo propio: fp-
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Radar de anillos de respuesta (SVG inline, compartido por el bloque y la página)
   ----------------------------------------------------------------------------- */
.fp-radar { display: block; width: 100%; height: auto; }
.fp-rl { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--brand-cyan); letter-spacing: 0.04em; }
.fp-sweep { transform-origin: 350px 350px; animation: fp-spin 9s linear infinite; }
.fp-ping { transform-origin: 350px 350px; animation: fp-ping 2.8s ease-out infinite; opacity: 0; }
.fp-ping2 { animation-delay: 1.4s; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
@keyframes fp-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(4.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fp-sweep, .fp-ping { animation: none; }
  .fp-ping { opacity: 0; }
}

/* -----------------------------------------------------------------------------
   1) Bloque destacado en el home (sección propia, tarjeta oscura)
   ----------------------------------------------------------------------------- */
.fp-home { padding: 5rem 0; background: var(--bg-titanium); }
.fp-showcase {
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(0, 82, 204, 0.35) 0%, transparent 60%),
    linear-gradient(200deg, #0f1d3a 0%, var(--scada-surface) 55%);
  border: 1px solid rgba(0, 198, 215, 0.45);
  box-shadow: var(--shadow-scada);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.75rem;
  align-items: center;
}
.fp-showcase > * { min-width: 0; }
.fp-ribbon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #090e17; background: var(--brand-cyan);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full); margin-bottom: 1.1rem;
}
.fp-showcase h3 {
  font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em;
  color: #fff; margin-bottom: 0.4rem; line-height: 1.1;
}
.fp-showcase h3 span, .fp-hero h1 span { color: var(--brand-cyan); }
.fp-sub { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.04em; margin-bottom: 1.1rem; }
.fp-lead { font-size: 1.05rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 1.5rem; }
.fp-points { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.85rem; }
.fp-points li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.55; color: var(--text-light); }
.fp-points li b { color: #fff; font-weight: 600; }
.fp-points .ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--brand-cyan); background: rgba(0, 198, 215, 0.12);
}
.fp-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; }
.fp-showcase .fp-radar { max-width: 520px; margin-inline: auto; }
.fp-note { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-light); margin-top: 0.75rem; text-align: center; }

/* -----------------------------------------------------------------------------
   2) Página field-partner.html
   ----------------------------------------------------------------------------- */
.fp-hero {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(0, 82, 204, 0.4) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 198, 215, 0.12) 0%, transparent 70%),
    #090e17;
  color: var(--text-white);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.fp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.fp-hero-grid > * { min-width: 0; }
.fp-hero .badge-clean { background: rgba(0, 198, 215, 0.1); border-color: rgba(0, 198, 215, 0.3); color: var(--brand-cyan); }
.fp-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; color: #fff; margin: 1.1rem 0 0.5rem;
}
.fp-hero .fp-sub { margin-bottom: 1.4rem; }
.fp-hero-lead { font-size: 1.18rem; line-height: 1.65; color: #cbd5e1; margin-bottom: 2rem; }
.fp-cred { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; overflow-wrap: anywhere; }
.fp-cred b { color: #fff; font-weight: 600; }

/* Consola de despacho (ejemplo ilustrativo) */
.fp-console {
  background: var(--scada-surface); border: 1px solid rgba(0, 198, 215, 0.4);
  border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(0, 198, 215, 0.2), 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden; font-family: var(--font-mono);
}
.fp-console-bar {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem;
  background: #0b1220; border-bottom: 1px solid var(--scada-border);
  font-size: 0.72rem; color: var(--text-light);
}
.fp-console-bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.fp-console-bar i:first-child { background: #ef4444; }
.fp-console-bar i:nth-child(2) { background: #f59e0b; }
.fp-console-bar i:nth-child(3) { background: var(--led-run); }
.fp-console-bar span { margin-left: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-console-body { padding: 1.25rem 1.25rem 0.5rem; }
.fp-req { font-size: 0.78rem; color: var(--text-light); margin-bottom: 1.1rem; line-height: 1.6; }
.fp-req b { color: var(--brand-cyan); font-weight: 600; }
.fp-log { list-style: none; margin: 0; padding: 0; position: relative; }
.fp-log::before { content: ''; position: absolute; left: 4.1rem; top: 0.5rem; bottom: 0.9rem; width: 1px; background: var(--scada-border); }
.fp-log li { display: grid; grid-template-columns: 3rem 1.2rem 1fr; gap: 0.5rem; align-items: start; padding: 0.55rem 0; font-size: 0.82rem; color: #cbd5e1; line-height: 1.45; }
.fp-log time { color: var(--text-muted); }
.fp-log .led { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-cyan); margin: 0.35rem auto 0; box-shadow: 0 0 8px rgba(0, 198, 215, 0.7); position: relative; z-index: 1; }
.fp-log li.ok .led { background: var(--led-run); box-shadow: var(--led-run-glow); }
.fp-log b { color: #fff; font-weight: 600; display: block; }
.fp-console-foot { padding: 0.7rem 1.25rem; border-top: 1px solid var(--scada-border); font-size: 0.72rem; color: var(--text-muted); }

.fp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--scada-border);
}
.fp-stats b { display: block; font-family: var(--font-mono); font-size: 1.6rem; color: #fff; }
.fp-stats span { font-size: 0.85rem; color: var(--text-light); }

/* Secciones */
.fp-section { padding: 5rem 0; }
.fp-section.alt { background: var(--bg-subtle); }
.fp-section-head { max-width: 760px; margin-bottom: 3rem; }
.fp-kicker {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 0.6rem; display: block;
}
.fp-section-head h2, .fp-split h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-title); margin-bottom: 0.8rem; line-height: 1.2;
}
.fp-section-head p { font-size: 1.08rem; line-height: 1.7; color: var(--text-body); }

.fp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.fp-split > * { min-width: 0; }
.fp-split p { font-size: 1.04rem; line-height: 1.75; color: var(--text-body); margin-bottom: 1rem; }
.fp-quote {
  margin: 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--brand-blue);
  background: #fff; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow-sm);
  font-size: 1.05rem; line-height: 1.7; color: var(--text-title); font-weight: 500;
}

/* Tarjetas */
.fp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fp-grid.two { grid-template-columns: repeat(2, 1fr); }
.fp-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.fp-card:hover { border-color: var(--brand-cyan); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fp-card .ico {
  width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--brand-blue-soft); color: var(--brand-blue); margin-bottom: 1rem;
}
.fp-card .num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--brand-blue); letter-spacing: 0.08em; display: block; margin-bottom: 0.6rem; }
.fp-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-title); margin-bottom: 0.4rem; }
.fp-card p { font-size: 0.92rem; line-height: 1.6; color: var(--text-body); margin: 0; }
.fp-card .fp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.fp-tags span {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-body);
  background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 0.2rem 0.5rem;
}
.fp-card.accent { border-top: 3px solid var(--brand-blue); }

/* Cobertura: sección oscura con el radar */
.fp-coverage {
  background: radial-gradient(60% 80% at 0% 0%, rgba(0, 82, 204, 0.3), transparent 60%), #090e17;
  color: var(--text-light); padding: 5rem 0;
}
.fp-coverage .fp-kicker { color: var(--brand-cyan); }
.fp-coverage .fp-section-head h2 { color: #fff; }
.fp-coverage .fp-section-head p { color: #cbd5e1; }
.fp-cov-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.fp-cov-grid > * { min-width: 0; }
.fp-rings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.fp-rings li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start;
  background: var(--scada-surface); border: 1px solid var(--scada-border); border-radius: var(--radius-md); padding: 1rem 1.15rem;
}
.fp-rings li:hover { border-color: var(--scada-border-active); }
.fp-rings .n {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--brand-cyan);
  border: 1.5px solid rgba(0, 198, 215, 0.6); background: rgba(0, 198, 215, 0.08);
}
.fp-rings b { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.1rem; }
.fp-rings em { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-cyan); display: block; margin-bottom: 0.3rem; }
.fp-rings span { font-size: 0.9rem; line-height: 1.55; }
.fp-cov-note { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6; color: var(--text-muted); }

/* Protocolo */
.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: fp; }
.fp-steps li {
  position: relative; background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius-md); padding: 1.3rem 1.1rem; box-shadow: var(--shadow-sm); counter-increment: fp;
}
.fp-steps li::before {
  content: counter(fp, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--brand-blue); letter-spacing: 0.08em; display: block; margin-bottom: 0.6rem;
}
.fp-steps h3 { font-size: 0.98rem; font-weight: 700; color: var(--text-title); margin-bottom: 0.35rem; }
.fp-steps p { font-size: 0.86rem; line-height: 1.55; color: var(--text-body); margin: 0; }
.fp-principle {
  margin-top: 1.75rem; display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 1.35rem; border-radius: var(--radius-md); background: #fff;
  border: 1px solid var(--border-light); border-left: 4px solid var(--led-run); box-shadow: var(--shadow-sm);
  font-size: 0.98rem; line-height: 1.65; color: var(--text-body);
}
.fp-principle b { color: var(--text-title); }
.fp-principle i, .fp-principle svg { color: var(--led-run); flex-shrink: 0; margin-top: 0.2rem; }

/* Estándares del cliente */
.fp-standards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 2.75rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-blue-soft), var(--brand-cyan-soft)); border: 1px solid var(--border-light);
}
.fp-standards > * { min-width: 0; }
.fp-standards h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-title); margin-bottom: 0.8rem; line-height: 1.2; }
.fp-standards p { font-size: 1.04rem; line-height: 1.75; color: var(--text-body); margin: 0; }
.fp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.fp-list li {
  display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--text-body); box-shadow: var(--shadow-sm);
}
.fp-list li i, .fp-list li svg { color: var(--brand-blue); flex-shrink: 0; }

/* Caso tipo */
.fp-case { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fp-case > div { border-radius: var(--radius-md); padding: 1.75rem; border: 1px solid var(--border-light); background: #fff; box-shadow: var(--shadow-sm); }
.fp-case h3 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.fp-case .before h3 { color: #b45309; }
.fp-case .after { border-top: 3px solid var(--led-run); }
.fp-case .before { border-top: 3px solid var(--led-warning); }
.fp-case .after h3 { color: #047857; }
.fp-case ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.fp-case li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-body); }
.fp-case li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: var(--led-warning); }
.fp-case .after li::before { background: var(--led-run); }
.fp-case-foot { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--text-body); max-width: 860px; }

/* Llamado final */
.fp-cta {
  background: radial-gradient(60% 100% at 100% 0%, rgba(0, 82, 204, 0.4), transparent 60%), #090e17;
  color: var(--text-light); padding: 4.5rem 0;
}
.fp-cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.fp-cta-grid > * { min-width: 0; }
.fp-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.fp-cta p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.fp-box { background: var(--scada-surface); border: 1px solid rgba(0, 198, 215, 0.35); border-radius: var(--radius-lg); padding: 1.75rem; }
.fp-box h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.fp-box p { font-size: 0.9rem; margin-bottom: 1rem; }
.fp-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.fp-box li { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.fp-box li i, .fp-box li svg { color: var(--brand-cyan); flex-shrink: 0; margin-top: 0.2rem; }

/* -----------------------------------------------------------------------------
   Responsivo
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fp-showcase, .fp-hero-grid, .fp-split, .fp-cov-grid, .fp-standards, .fp-cta-grid { grid-template-columns: minmax(0, 1fr); }
  .fp-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fp-home { padding: 3.5rem 0; }
  .fp-showcase { padding: 1.5rem; gap: 2rem; }
  .fp-hero { padding: 3rem 0 3.5rem; }
  .fp-stats { grid-template-columns: repeat(2, 1fr); }
  .fp-section, .fp-coverage { padding: 3.5rem 0; }
  .fp-grid, .fp-grid.two, .fp-steps, .fp-case { grid-template-columns: 1fr; }
  .fp-standards { padding: 1.5rem; gap: 1.75rem; }
  .fp-actions > * { flex: 1 1 100%; }
  .fp-actions .btn { width: 100%; }
  .fp-log::before { left: 3.85rem; }
}
.fp-attr { font-family: var(--font-sans); font-size: 11px; fill: var(--text-muted); }

/* Experiencia por equipos */
.fp-bul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.fp-bul li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; line-height: 1.5; color: var(--text-body); }
.fp-bul li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cyan); }
.fp-exp-foot { margin-top: 1.75rem; font-size: 1rem; line-height: 1.7; color: var(--text-body); max-width: 760px; }
