:root {
  --bg: #100223;
  --logo-1: #7425e3;
  --logo-2: #1fb1ff;
  --logo-3: #66f940;
  --text-primary: #FAFAFA;
  --text-body: #D8CFEE;
  --text-muted: #8676AE;
  --text-accent: #e4dbff;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--logo-2);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-small {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
  background: linear-gradient(90deg, var(--logo-1), var(--logo-2), var(--logo-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.site-footer a:not(.logo-small) {
  color: var(--text-muted);
  font-size: 13px;
}

.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.article-tags {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: lowercase;
  margin: 0 0 12px;
}

.article-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.article-subtitle {
  font-size: 16px;
  color: var(--text-accent);
  line-height: 1.5;
  margin: 0 0 14px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.article-meta--end {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-body h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body strong {
  color: var(--text-primary);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-body th {
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.cta-block {
  text-align: center;
  margin: 48px 0;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-button {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--logo-1), var(--logo-2));
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
}
.cta-button:hover { text-decoration: none; opacity: 0.9; }

.related h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.related li a {
  color: var(--text-body);
  font-size: 14px;
}
.related li a:hover { color: var(--logo-2); }

/* blog index page */
.blog-hero {
  text-align: center;
  padding: 0 20px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.blog-hero .kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--logo-2);
  margin: 0 0 16px;
}
.blog-hero .article-title {
  text-align: center;
  margin: 0 0 16px;
}
.blog-hero .article-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 480px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.blog-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.blog-card .card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--logo-2);
  text-transform: lowercase;
  margin: 0 0 10px;
}

.blog-card .card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.blog-card .card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 14px;
}

.blog-card .card-date {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .article-title { font-size: 24px; }
}

/* ===== header logo (idéntico al de la landing) ===== */
.logo-hero {
  padding: 150px 24px 60px;
  text-align: center;
}
.logo {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 125%;
  letter-spacing: 4px;
  text-transform: lowercase;
  margin: 0;
  background: linear-gradient(90deg, var(--logo-1) 0%, var(--logo-2) 50%, var(--logo-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--logo-2);
}

/* ===== footer (mismo patrón que la landing: dos íconos, Instagram + lista de espera) ===== */
.site-footer {
  border-top: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 20px 48px;
  margin-top: 60px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.social a,
.social button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  opacity: 0.75;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.social a:link,
.social a:visited {
  color: #ffffff;
}

.social a:hover,
.social a:focus-visible,
.social button:hover,
.social button:focus-visible {
  opacity: 1;
}

.social svg {
  width: 24px;
  height: 24px;
}

/* ===== modal de lista de espera (idéntico al de la landing) ===== */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 2, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.waitlist-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.waitlist-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 26px 28px;
  background: linear-gradient(180deg, #271259 0%, #180934 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s ease;
}

.waitlist-overlay.is-open .waitlist-modal {
  transform: translateY(0) scale(1);
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.waitlist-close:hover,
.waitlist-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.waitlist-close svg { width: 16px; height: 16px; }

.waitlist-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 3.4vw, 22px);
  line-height: 130%;
  color: #FAFAFA;
  text-align: center;
  margin: 0;
  max-width: 24ch;
}

.waitlist-subtext {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 145%;
  color: var(--text-accent);
  text-align: center;
  margin: -8px 0 0;
  max-width: 30ch;
}

.waitlist-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.waitlist-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.waitlist-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.waitlist-input:focus { border-color: var(--logo-2); background: rgba(255, 255, 255, 0.12); }

.waitlist-button {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1e0843;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.waitlist-button:hover:not(:disabled) { opacity: 0.9; }
.waitlist-button:active:not(:disabled) { transform: scale(0.98); }
.waitlist-button:disabled { opacity: 0.6; cursor: default; }

.waitlist-feedback {
  min-height: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.waitlist-feedback--success { color: var(--logo-2); }
.waitlist-feedback--error { color: #ff9b9b; }

.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
