/**
 * @file neuroapi-hero.css
 * @description Estilos visuales del Hero, Developer Terminal Showcase, Shell de Documentación Profesional (Sidebar + Viewport) y Modal de Preguntas Frecuentes.
 * @module Landing / NeuroAPI
 * @dependencies [frontend/public/landing/styles.css]
 * @lastModified 2026-11-19 - Erradicación de solapamiento visual en Hero y anclaje limpio de documentación a escala 100%.
 */

/* =========================================================================
   0. HERO VIEWPORT DESACOPLADO (CERO SOLAPAMIENTO A ESCALA 100%)
   ========================================================================= */
.stage-viewport--neuroapi,
.stage-viewport#soluciones {
  position: relative !important;
  height: auto !important;
  min-height: calc(100vh - 48px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
  box-sizing: border-box !important;
}

.stage-viewport--neuroapi .stage-container,
.stage-viewport#soluciones .stage-container {
  margin-top: auto;
  margin-bottom: auto;
}

/* =========================================================================
   1. TRANSICIONES Y CABECERA DE DOCUMENTACIÓN
   ========================================================================= */
.doc-section {
  padding: 36px 0;
  border-bottom: 1px solid #eef2f6;
  scroll-margin-top: 84px;
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section-heading {
  max-width: 840px;
  margin-bottom: 28px;
  position: relative;
}

.doc-section-heading .eyebrow {
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-section-heading .section-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #0f172a);
  margin-bottom: 10px;
}

.doc-section-heading .section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2, #475569);
}

/* =========================================================================
   2. DEVELOPER CODE TERMINAL & LIVE RESPONSE SHOWCASE (HERO)
   ========================================================================= */
.api-terminal-card {
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(11, 17, 32, 0.45), 0 0 40px -10px rgba(37, 99, 235, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.api-terminal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -12px rgba(11, 17, 32, 0.55), 0 0 50px -8px rgba(37, 99, 235, 0.28);
}

.api-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.api-terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.api-terminal-dots .dot-red { background: #ef4444; }
.api-terminal-dots .dot-yellow { background: #f59e0b; }
.api-terminal-dots .dot-green { background: #10b981; }

.api-terminal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.api-term-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-term-tab:hover {
  color: #f1f5f9;
}

.api-term-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.api-term-copy-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.api-term-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.api-term-copy-btn .copy-tooltip {
  position: absolute;
  top: -26px;
  right: 0;
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.api-term-copy-btn.copied .copy-tooltip {
  opacity: 1;
}

.api-terminal-code-body {
  padding: 16px 18px;
  min-height: 200px;
  overflow-x: auto;
}

.api-term-snippet {
  display: none;
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

.api-term-snippet.active {
  display: block;
}

/* Tokens de sintaxis */
.tok-comment { color: #64748b; font-style: italic; }
.tok-cmd { color: #38bdf8; font-weight: 600; }
.tok-kw { color: #f43f5e; font-weight: 600; }
.tok-str { color: #34d399; }
.tok-json { color: #f8fafc; }
.tok-key { color: #93c5fd; }
.tok-val { color: #86efac; }
.tok-bool { color: #c084fc; font-weight: 600; }
.tok-num { color: #fbbf24; }

/* Barra de Respuesta Simulada en Vivo */
.api-terminal-response-box {
  background: #090e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px 16px 18px;
}

.api-response-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.api-status-pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.status-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite ease-out;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.api-response-engine {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.api-response-json {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 11.5px;
  line-height: 1.5;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

/* =========================================================================
   3. SHELL DE DOCUMENTACIÓN PROFESIONAL (SIDEBAR + MAIN CONTENT)
   ========================================================================= */
.docs-workspace,
#documentacion-tecnica {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
  position: relative;
  clear: both;
  scroll-margin-top: 76px;
}

/* Barra superior de herramientas y selector de servicio */
.docs-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 48px;
  z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 32px;
}

.docs-service-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.docs-service-tabs .api-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.docs-service-tabs .api-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.docs-service-tabs .api-tab-btn.active {
  color: #ffffff;
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.docs-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-faq-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-faq-trigger:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.btn-prompt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-prompt-trigger:hover {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
  transform: translateY(-1px);
}

/* Rejilla de Documentación Profesional */
.docs-layout-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
}

/* Sidebar Navegadora de Endpoints */
.docs-sidebar {
  position: sticky;
  top: 136px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.docs-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.docs-sidebar-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.docs-service-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 4px;
}

.docs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 10px;
  color: #475569;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.docs-sidebar-item:hover {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding-left: 12px;
}

.docs-sidebar-item.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

.docs-item-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #64748b;
}

.docs-sidebar-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.docs-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.docs-sidebar-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.docs-sidebar-card p {
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 8px;
}

.docs-sidebar-card a {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.docs-sidebar-card a:hover {
  text-decoration: underline;
}

/* Área Principal de Contenido Técnico */
.docs-main-content {
  min-width: 0;
}

/* Saneamiento de las tarjetas dentro de los módulos inyectados */
.docs-main-content .doc-quick-nav {
  display: none !important; /* Oculto en favor del sidebar interactivo */
}

.docs-main-content .doc-prompt-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.docs-main-content .doc-prompt-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-main-content .doc-prompt-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.docs-main-content .doc-prompt-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.docs-main-content .doc-prompt-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.docs-main-content .doc-prompt-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  max-width: 660px;
}

.docs-main-content .doc-apikey-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-main-content .service-header {
  margin-bottom: 28px;
}

.docs-main-content .service-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 10px 0 8px 0;
}

.docs-main-content .service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  max-width: 820px;
}

/* Píldoras de endpoints estilo Stripe */
.docs-main-content .endpoint-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 14px 0 16px 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 13px;
  color: #f8fafc;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-main-content .endpoint-pill .path,
.endpoint-pill .path {
  color: #f8fafc !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.docs-main-content .method-badge {
  font-weight: 700;
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.docs-main-content .method-post { background: #10b981; color: #ffffff; }
.docs-main-content .method-get { background: #38bdf8; color: #0b1120; }
.docs-main-content .method-delete { background: #f43f5e; color: #ffffff; }

/* Bloques de código oscuros */
.docs-main-content .code-box {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 14px 0 24px 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.docs-main-content .code-box-header {
  background: #0f172a;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-main-content .code-box-header span {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.docs-main-content .copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docs-main-content .copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.docs-main-content .code-content code {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

/* Tablas de Parámetros */
.docs-main-content .param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px 0;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.docs-main-content .param-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.docs-main-content .param-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.5;
}

.docs-main-content .param-name {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.docs-main-content .param-req {
  color: #ef4444;
  font-weight: 700;
  font-size: 11px;
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-main-content .param-opt {
  color: #64748b;
  font-size: 11px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================================================================
   4. MODAL DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================= */
.api-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.api-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.api-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.api-modal-backdrop.is-open .api-modal-dialog {
  transform: scale(1);
}

.api-modal-header {
  padding: 24px 28px 16px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.api-modal-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0;
}

.api-modal-sub {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.api-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.api-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.api-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-modal-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.faq-modal-item[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.faq-modal-item summary {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-modal-item summary::-webkit-details-marker {
  display: none;
}

.faq-modal-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
}

.faq-modal-content p {
  margin-bottom: 8px;
}

.faq-modal-content ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.faq-modal-content code {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  background: #f1f5f9;
  color: #1e293b;
  padding: 2px 5px;
  border-radius: 4px;
}

.api-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
}

/* =========================================================================
   5. RESPONSIVE DOCS Y AJUSTES MOBILE
   ========================================================================= */
@media (max-width: 1024px) {
  .docs-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }

  .docs-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-top-actions {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .docs-workspace {
    padding: 24px 16px 60px 16px;
  }

  .docs-service-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .api-modal-dialog {
    max-height: 92vh;
    border-radius: 12px;
  }

  .api-modal-header,
  .api-modal-body,
  .api-modal-footer {
    padding: 18px 20px;
  }
}

/* =========================================================================
   BOTÓN FLOTANTE DIRECTO A WHATSAPP DE ATENCIÓN / SOPORTE DEV
   ========================================================================= */
.whatsapp-dev-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.whatsapp-dev-float-btn i {
  font-size: 24px;
}
.whatsapp-dev-float-btn:hover {
  background: #20ba5a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}
.whatsapp-dev-float-btn:active {
  transform: translateY(0) scale(0.98);
}
.whatsapp-float-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  border: 2px solid #25d366;
  animation: waPulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15, 1.3); opacity: 0; }
}
@media (max-width: 640px) {
  .whatsapp-dev-float-btn {
    bottom: 18px;
    right: 18px;
    padding: 12px;
    border-radius: 50%;
  }
  .whatsapp-float-text {
    display: none;
  }
  .whatsapp-dev-float-btn i {
    font-size: 28px;
  }
  .whatsapp-float-pulse {
    border-radius: 50%;
  }
}
