
:root {
  --primary: #111111;
  --secondary: #1a1a1a;
  --accent: #e67e22;
  --accent-soft: #fff3e8;
  --text: #333333;
  --text-soft: #666666;
  --bg: #f4f7f6;
  --white: #ffffff;
  --border: #e8e8e8;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --container: 1240px;
  --article: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

/* HEADER GLOBAL */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.68);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.25s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* HERO */
.page-hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.78), rgba(0,0,0,0.55)),
    radial-gradient(circle at top right, rgba(230,126,34,0.35), transparent 28%),
    #111;
  color: white;
  padding: 80px 20px 95px;
  border-bottom: 5px solid var(--accent);
}

.hero-inner {
  max-width: var(--article);
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
}

/* CONTENEDOR */
.page-grid {
  max-width: var(--container);
  margin: -55px auto 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--article)) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ad-rail {
  min-height: 250px;
}

.ad-box {
  position: sticky;
  top: 95px;
  background: rgba(255,255,255,0.65);
  border: 1px dashed #cfcfcf;
  border-radius: 12px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 0.9rem;
  text-align: center;
  padding: 18px;
}

.article-shell {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  overflow: hidden;
}

.article-shell p {
  margin: 0 0 24px;
  text-align: justify;
  font-size: 1.1rem;
  color: #444;
}

.article-shell h2 {
  margin: 56px 0 18px;
  font-size: clamp(1.6rem, 2vw, 2.35rem);
  line-height: 1.2;
  color: var(--primary);
  border-left: 7px solid var(--accent);
  padding-left: 18px;
}

.article-shell h3 {
  margin: 36px 0 14px;
  font-size: 1.35rem;
  color: var(--secondary);
}

.lead-intro {
  font-size: 1.16rem;
  color: #3f3f3f;
}

.tech-note {
  margin: 32px 0;
  padding: 26px;
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
  border-radius: 10px;
}

.tech-note strong {
  color: var(--primary);
}

/* BLOQUES TIPO REVISTA */
.split-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin: 42px 0;
}

.split-block.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.split-block.reverse .split-media {
  order: -1;
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
}

.split-media figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.figure-card {
  margin: 28px 0;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.figure-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.figure-card figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.quick-index {
  margin: 26px 0 36px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfcfc;
}

.quick-index h3 {
  margin-top: 0;
}

.quick-index ul {
  margin: 0;
  padding-left: 20px;
}

.quick-index a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.quick-index a:hover {
  text-decoration: underline;
}

/* RELACIONADOS */
.faq-section {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfcfc;
}

.faq-section h2 {
  border: none;
  padding-left: 0;
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.related-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card-inner {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  transition: 0.22s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 120px;
}

.related-card-inner:hover {
  border-color: var(--accent);
  background: #fffdfb;
  transform: translateY(-2px);
}

.related-card-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #181818;
  margin-bottom: 6px;
}

.related-card-description {
  display: block;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.related-card-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #cfcfcf;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer-brand h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-links h4 {
  margin: 0 0 10px;
  color: white;
  font-size: 0.96rem;
}

.footer-links a {
  display: block;
  color: #c8c8c8;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 18px 22px 28px;
  color: #949494;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 12px;
  }

  .article-shell {
    padding: 28px 22px;
  }

  .split-block,
  .split-block.reverse {
    grid-template-columns: 1fr;
  }

  .split-block.reverse .split-media {
    order: 0;
  }

  .page-hero {
    padding: 70px 20px 85px;
  }
}
