/* ============================================================
   Sibruno — Internal pages (blog, servicios)
   Comparte variables con la landing principal, pero más sobrio.
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg2: #0d0d16;
  --bg3: #11111e;
  --blue: #0A66C2;
  --cyan: #00d4ff;
  --cyan2: #00a8cc;
  --white: #ffffff;
  --gray: #8892a4;
  --gray2: #4a5568;
  --success: #00e676;
  --error: #ff4757;
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0,212,255,0.3); }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem !important;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.page--wide { max-width: 1100px; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 28px;
}
.breadcrumbs a {
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px dotted var(--gray2);
}
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span.sep { margin: 0 8px; opacity: 0.5; }

/* ============================================================
   ARTICLE / HEADINGS
   ============================================================ */
article header { margin-bottom: 36px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lede {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 24px;
}
.meta {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--gray2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.meta strong { color: var(--gray); font-weight: 500; }

article h2 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 56px 0 18px;
  letter-spacing: -0.015em;
}
article h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 36px 0 12px;
}
article p { margin-bottom: 20px; }
article a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
article a:hover { color: var(--white); }
article ul, article ol { margin: 0 0 24px 24px; }
article li { margin-bottom: 8px; }
article strong { color: var(--white); font-weight: 600; }
article em { color: var(--gray); font-style: italic; }
article code {
  background: var(--bg3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--cyan);
  font-family: 'SF Mono', Consolas, monospace;
}
article blockquote {
  border-left: 3px solid var(--cyan);
  padding: 8px 0 8px 22px;
  margin: 28px 0;
  font-style: italic;
  color: var(--gray);
}
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}
article th, article td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
}
article th {
  background: var(--bg2);
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-title);
}
article tr:hover td { background: rgba(255,255,255,0.02); }

article hr {
  border: 0;
  height: 1px;
  background: var(--glass-border);
  margin: 40px 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 56px; }
.faq h2 { margin-bottom: 24px; }
.faq details {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--cyan2); }
.faq summary {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: '−'; }
.faq details > *:not(summary) { margin-top: 12px; color: var(--gray); }

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  margin: 56px 0 0;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(10,102,194,0.12), rgba(0,212,255,0.06));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-align: center;
}
.cta-block h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.cta-block p {
  color: var(--gray);
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,102,194,0.4);
}

/* ============================================================
   INDEX / LIST PAGES
   ============================================================ */
.post-list { list-style: none; padding: 0; margin: 40px 0 0; }
.post-card {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.post-card:hover {
  border-color: var(--cyan2);
  transform: translateY(-2px);
}
.post-card a { color: inherit; text-decoration: none; display: block; }
.post-card h2 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: var(--white);
}
.post-card .post-desc { color: var(--gray); margin-bottom: 14px; }
.post-card .post-meta {
  font-size: 0.82rem;
  color: var(--gray2);
  display: flex;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 24px;
  text-align: center;
  color: var(--gray2);
  font-size: 0.88rem;
}
.site-footer a { color: var(--gray); text-decoration: none; margin: 0 10px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .footer-cta {
  margin-bottom: 12px;
  color: var(--gray);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { padding: 7px 12px; font-size: 0.82rem !important; }
  .page { padding: 36px 18px 60px; }
  article h2 { font-size: 1.4rem; margin: 40px 0 14px; }
  article h3 { font-size: 1.1rem; }
  .lede { font-size: 1.05rem; }
  .meta { gap: 12px; font-size: 0.82rem; }
  .cta-block { padding: 28px 22px; }
}
