/* ══════════════════════════════════════════════
   NOX TECH — Estilo FayerWayer (light, orange)
   ══════════════════════════════════════════════ */

/* ─── Font: Georama (FayerWayer) ─── */
@import url('https://fonts.googleapis.com/css2?family=Georama:wght@400;500;600;700;800&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF3200;
  --orange-hover: #e62b00;
  --dark: #232b39;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #888;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-gray: #f5f5f5;
  --border: #e0e0e0;
  --border-light: #eee;
  --radius: 0;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Georama', 'Trebuchet MS', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: #000; }

img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ─── Header / Nav (FayerWayer orange bar) ─── */
.header {
  background: var(--orange);
  position: relative;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.logo {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff !important;
}
.logo-accent { color: rgba(255,255,255,0.75); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ─── Secondary bar (date / live / social) ─── */
.top-bar {
  background: #f8f8f8;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-date { color: var(--text-light); }
.top-bar-links { display: flex; gap: 16px; }
.top-bar-links a { color: var(--text-light); font-size: 0.82rem; }
.top-bar-links a:hover { color: var(--dark); }

/* ─── Hero / Featured Article (FayerWayer style) ─── */
.hero-featured {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border-light);
}
.hero-featured-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 24px;
}
.hero-featured-main {
  position: relative;
}
.hero-featured-main .post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.hero-featured-main h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #000;
}
.hero-featured-main h1 a { color: #000 !important; }
.hero-featured-main h1 a:hover { color: var(--orange) !important; }
.hero-featured-main .post-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.hero-featured-main .post-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  gap: 6px;
}
.hero-featured-img {
  width: 180px;
  margin-bottom: 10px;
  background: var(--bg-gray);
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

/* ─── Hero Sidebar ─── */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-sidebar-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item .post-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hero-sidebar-item h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 4px;
}
.hero-sidebar-item h3 a { color: var(--dark) !important; }
.hero-sidebar-item h3 a:hover { color: var(--orange) !important; }

/* ─── Ad Placeholder ─── */
.ad-space {
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 90px;
  margin: 14px 0;
}

/* ─── Sections (MÓVILES, ENTRETENIMIENTO, etc) ─── */
.section-fw {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.section-fw:last-child { border-bottom: none; }

.section-fw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-fw-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-fw-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.section-fw-more:hover { color: var(--orange); }

/* ─── Article List (FayerWayer style) ─── */
.article-fw {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.article-fw:last-child { border-bottom: none; }
.article-fw-img {
  width: 150px;
  height: 84px;
  object-fit: cover;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
}
.article-fw-body .post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.3px;
}
.article-fw-body h2 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 4px 0 6px;
  color: var(--dark);
}
.article-fw-body h2 a { color: var(--dark) !important; }
.article-fw-body h2 a:hover { color: var(--orange) !important; }
.article-fw-body .post-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}
.article-fw-body .post-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 6px;
}

/* ─── Two column layout (home+blog) ─── */
.content-area {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 24px;
  padding: 20px 0;
}
.content-main { min-width: 0; }
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  border: 1px solid var(--border-light);
  padding: 14px;
}
.sidebar-widget h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #000;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a:hover { color: var(--orange); }

/* ─── Page Header ─── */
.page-header {
  padding: 32px 0 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
}
.page-header .section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ─── Blog grid (FayerWayer style) ─── */
.posts-grid { display: flex; flex-direction: column; }
.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.post-card:last-child { border-bottom: none; }
.post-card-img {
  width: 150px;
  height: 84px;
  object-fit: cover;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
}
.post-card-body .post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.3px;
}
.post-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 4px 0 6px;
}
.post-card h3 a { color: var(--dark) !important; }
.post-card h3 a:hover { color: var(--orange) !important; }
.post-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}
.post-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 6px;
}

/* ─── Article Page ─── */
.article-header {
  padding: 32px 0 16px;
  border-bottom: 1px solid var(--border-light);
}
.article-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #000;
}
.article-meta {
  display: flex;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: #000;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #000;
}
.article-content p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
  color: var(--text);
}
.article-content li { margin-bottom: 6px; }
.article-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88rem;
  color: #d63384;
}
.article-content pre {
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.article-content th, .article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background: var(--bg-gray);
  font-weight: 600;
  color: #000;
}
.article-content td { color: var(--text); }
.article-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-gray);
  border-radius: 0 4px 4px 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-content a { color: var(--orange); text-decoration: underline; }
.article-content a:hover { color: var(--orange-hover); }
.article-content img {
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

/* ─── Article page (legacy post-content layout) ─── */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.post-header {
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.post-header h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 12px;
  color: #000;
}
.post-header .post-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.3px;
}
.post-image {
  margin: 0 0 24px;
}
.post-image img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.post-image figcaption {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ─── Pages ─── */
.page {
  padding: 40px 0 60px;
  max-width: 720px;
  margin: 0 auto;
}
.page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}
.page p {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
}
.page ul { color: var(--text); margin-left: 24px; margin-bottom: 16px; }
.page li { margin-bottom: 8px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--orange);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff !important;
}
.btn-secondary {
  background: var(--border);
  color: var(--dark) !important;
}
.btn-secondary:hover {
  background: #ccc;
}

/* ─── Footer ─── */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 28px 0 16px;
  margin-top: 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p {
  color: #999;
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: #999 !important;
  font-size: 0.88rem;
}
.footer-col a:hover { color: #fff !important; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  color: #999 !important;
  font-size: 0.85rem;
  border: 1px solid #333;
  padding: 6px 12px;
  border-radius: 3px;
  transition: all 0.15s;
}
.footer-social a:hover {
  color: #fff !important;
  border-color: var(--orange);
  background: var(--orange);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: #777;
  font-size: 0.82rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-featured-grid,
  .content-area {
    grid-template-columns: 1fr;
  }
  .hero-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    background: var(--orange);
    padding: 16px 20px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }

  .article-fw,
  .post-card {
    grid-template-columns: 1fr;
  }
  .article-fw-img,
  .post-card-img {
    width: 150px;
    height: 84px;
  }
  .hero-sidebar { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .top-bar .container { flex-direction: column; gap: 6px; }
}
