/* ==========================================================================
   Euskolabs — Páginas de Servicio (SEO/AEO)
   Estilo coherente con el design system de euskolabs.com
   Deep Cyber Dark · High-Performance Engineering Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ============================================================
     PALETA DEFINITIVA EUSKOLABS TECH: MAGENTA PURO
     (Arquitectura Cyber Propietaria, atmósfera magenta profunda)
     ============================================================ */
  --bg-main: #13011a;
  --body-bg-gradient: radial-gradient(circle 1100px at 50% -10%, #630b70 0%, #3a0446 38%, #1b0222 75%, #0d0111 100%);
  --bg-radial-ambient: radial-gradient(circle at 50% 30%, rgba(217, 70, 239, 0.22) 0%, rgba(35, 4, 44, 0.75) 50%, rgba(13, 1, 17, 0.98) 100%);
  --magenta-pure: #ff00ff;
  --magenta-glow: rgba(255, 0, 255, 0.4);
  --theme-accent: #ec4899;
  --theme-glow-accent: rgba(236, 72, 153, 0.55);
  --border-magenta: rgba(236, 72, 153, 0.2);
  --bg-card: rgba(24, 3, 31, 0.78);
  --bg-card-hover: rgba(45, 6, 58, 0.88);
  --bg-card-gradient: linear-gradient(135deg, rgba(38, 6, 48, 0.92), rgba(18, 2, 24, 0.96));
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(236, 72, 153, 0.15);

  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  --grad-secondary: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
  --grad-glow: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-brand: #f472b6;

  --font-heading: 'Orbitron', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-main);
  background-image: var(--body-bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Navegación ===== */
.nav-breadcrumb {
  background: rgba(15, 17, 26, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-breadcrumb a {
  color: var(--text-brand);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.nav-breadcrumb span {
  color: var(--text-dim);
}

/* ===== Layout ===== */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ===== Tipografía ===== */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-brand);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-indigo);
}

ul, ol {
  color: var(--text-muted);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ===== Cards / Glass ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(8px);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

/* ===== Código ===== */
code, pre {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  font-size: 0.88rem;
  color: var(--accent-emerald);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ===== Tablas ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

td {
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-glass-border);
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad-glow);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-brand);
  font-weight: 500;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ===== CTA ===== */
.cta-section {
  background: var(--grad-glow);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-section h2 {
  margin-top: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-primary);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
  color: #fff;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--text-brand);
  font-size: 1rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.page-footer {
  background: rgba(15, 17, 26, 0.6);
  border-top: 1px solid var(--bg-glass-border);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.page-footer a {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0.8rem;
}

.page-footer p {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--grad-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  z-index: 50;
  transition: var(--transition-normal);
  font-size: 1.2rem;
}

.back-top:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* ===== OpenLivery Engine Highlight Box ===== */
.openlivery-highlight-card {
  margin: 2.5rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(15, 17, 26, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.openlivery-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-container { padding: 2rem 1rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .nav-breadcrumb { padding: 0.8rem 1rem; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  .openlivery-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}