/* Alarife Brain — Obsidian & Architectural Gold Theme (SEO / GEO / AEO Static CSS) */
:root {
  --bg: #08090b;
  --surface: #111318;
  --surface-2: #161920;
  --ink: #f8f6f0;
  --ink-2: #d4d1c7;
  --muted: #a39e93;
  --gold: #dfbe74;
  --gold-bright: #ebd091;
  --gold-deep: #b89146;
  --border: rgba(223, 190, 116, 0.22);
  --border-strong: rgba(223, 190, 116, 0.48);
  --radius: 8px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-bright); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px; flex-wrap: wrap; padding: 10px 0;
}
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700; font-size: 1.55rem; letter-spacing: 0.01em;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand:hover { color: var(--gold-bright); }
.brand-mark {
  width: 38px; height: 38px; object-fit: contain;
  border-radius: 6px; display: block;
}
nav.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.94rem; }
nav.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
nav.main-nav a:hover { color: var(--gold); }
.lang-switch { display: inline-flex; gap: 6px; font-size: 0.82rem; padding-left: 14px; border-left: 1px solid var(--border); }
.lang-switch a { padding: 4px 8px; border-radius: 4px; text-decoration: none; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.lang-switch a.active { background: var(--gold); color: #08090b; font-weight: 600; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: #08090b; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-bright); color: #08090b; border-color: var(--gold-bright); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(223, 190, 116, 0.12); color: var(--gold-bright); }
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.86rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 82% 20%, rgba(223, 190, 116, 0.08), transparent 48%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 44px; align-items: center;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 20px; color: var(--ink);
}
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-emblem {
  display: flex; justify-content: center; align-items: center;
  padding: 20px; background: #000000;
  border: 1px solid var(--border); border-radius: 12px;
}
.hero-emblem img {
  width: 100%; max-width: 300px; height: auto; display: block;
}

/* Direct-Answer AEO Box */
.aeo-answer {
  margin: 38px 0 0; padding: 22px 26px;
  background: var(--surface); border-left: 3px solid var(--gold);
  border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.aeo-answer h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; color: var(--gold);
}
.aeo-answer p { margin: 0; color: var(--ink-2); font-size: 0.98rem; max-width: 82ch; }

/* Sections */
section.block { padding: 64px 0; border-bottom: 1px solid var(--border); }
section.block.alt { background: var(--surface); }
h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.14; letter-spacing: -0.01em;
  margin: 0 0 16px; color: var(--ink);
}
h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
p { margin: 0 0 14px; color: var(--ink-2); }

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem; font-weight: 500; color: var(--gold); margin-bottom: 10px;
}
.card p { font-size: 0.94rem; color: var(--ink-2); }
.card-link { font-weight: 600; font-size: 0.92rem; margin-top: 12px; display: inline-block; color: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--bg); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem;
  background: var(--surface-2); font-weight: 500; color: var(--gold);
  border-bottom: 1px solid var(--border-strong);
}
td { color: var(--ink-2); }
td strong a { color: var(--ink); }
.price { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--gold); white-space: nowrap; }

/* Feature list */
ul.features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
ul.features li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.96rem; }
ul.features li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 0.72rem; }

/* FAQ */
.faq-list { display: grid; gap: 22px; margin-top: 24px; max-width: 80ch; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.faq-item h3 { font-size: 1.06rem; color: var(--ink); margin-bottom: 6px; }
.faq-item p { margin: 0; font-size: 0.96rem; color: var(--ink-2); }

/* Footer */
footer.site-footer { background: #040507; color: var(--ink-2); padding: 56px 0 36px; font-size: 0.9rem; border-top: 1px solid var(--border); }
footer.site-footer a { color: var(--ink-2); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--gold); margin: 0 0 12px; font-size: 0.92rem; font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { width: 140px; height: auto; display: block; margin-bottom: 14px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 0.84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Responsive: Tablet (641px - 1024px) & Mobile (<= 640px) */
html, body { overflow-x: clip; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.btn, .lang-switch a, nav.main-nav a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr 0.65fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  nav.main-nav { gap: 14px; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-emblem { max-width: 240px; margin: 0 auto; padding: 14px; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  nav.main-nav { width: 100%; justify-content: flex-start; gap: 10px 16px; }
  .lang-switch { padding-left: 0; border-left: none; }
  ul.features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 36px 0 36px; }
  section.block { padding: 44px 0; }
  .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; min-height: 46px; }
  .aeo-answer { padding: 16px 18px; margin-top: 28px; }
  table { font-size: 0.88rem; }
  th, td { padding: 10px 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Hero sin emblema: el texto ocupa todo el ancho */
.hero-grid > :only-child { grid-column: 1 / -1; }
