/* ── VARIABLES ── */
:root {
  --bg:        #0f0f0f;
  --surface:   #161616;
  --surface-2: #1e1e1e;
  --border:    rgba(255,255,255,0.07);
  --text:      #f0ede8;
  --text-2:    #888880;
  --text-3:    #555550;
  --amber:     #e8a020;
  --amber-dim: rgba(232,160,32,0.12);
  --amber-glow:rgba(232,160,32,0.25);
  --green:     #4caf80;
  --purple:    #a070e8;
  --red:       #e05050;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h:     58px;
  --r:         12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  opacity: 0; animation: up 0.7s ease forwards 0.1s;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--amber); border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(1.3)}
}
.eyebrow-text {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -3px; color: var(--text);
  margin-bottom: 28px;
  opacity: 0; animation: up 0.7s ease forwards 0.25s;
  position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); font-weight: 300;
  color: var(--text-2); line-height: 1.65;
  max-width: 520px; margin-bottom: 44px;
  opacity: 0; animation: up 0.7s ease forwards 0.4s;
  position: relative; z-index: 1;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: up 0.7s ease forwards 0.55s;
  position: relative; z-index: 1;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 32px 56px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  opacity: 0; animation: up 0.6s ease forwards 0.1s;
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; letter-spacing: -2.5px;
  line-height: 1.0; color: var(--text);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 17px; color: var(--text-2);
  font-weight: 300; max-width: 520px; line-height: 1.6;
}

/* ── BUTTONS ── */
.btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 13px 26px; border-radius: var(--r);
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer; letter-spacing: 0.2px;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--amber-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-family: var(--font-body);
  font-size: 14px; font-weight: 400;
  padding: 13px 26px; border-radius: var(--r);
  text-decoration: none; transition: all 0.2s;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--surface); }

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; justify-content: center;
  opacity: 0; animation: up 0.7s ease forwards 0.7s;
}
.stats-inner {
  max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: repeat(3,1fr);
}
.stat-item {
  padding: 32px 0 32px 32px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-size: 36px;
  font-weight: 800; color: var(--amber);
  letter-spacing: -1.5px; line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 300; }

/* ── SECTION ── */
.section { max-width: 1100px; margin: 0 auto; padding: 80px 32px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--text-3);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.0; color: var(--text); margin-bottom: 14px;
}
.section-desc {
  font-size: 16px; color: var(--text-2);
  font-weight: 300; max-width: 480px; line-height: 1.6;
}
.articles-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}

/* ── ARTICLE CARDS ── */
.articles-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.articles-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.card-featured {
  grid-column: span 7;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.card-featured:hover { border-color: rgba(232,160,32,.3); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card-small {
  grid-column: span 5;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.card-small:hover { border-color: rgba(255,255,255,.15); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card-regular {
  grid-column: span 4;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.card-regular:hover { border-color: rgba(255,255,255,.15); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card-full {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: all 0.3s;
}
.card-full:hover { border-color: rgba(232,160,32,.3); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }

.thumb {
  display: flex; align-items: center; justify-content: center;
}
.card-featured .thumb { height: 260px; font-size: 72px; }
.card-small .thumb    { height: 160px; font-size: 52px; }
.card-regular .thumb  { height: 140px; font-size: 44px; }
.card-full .thumb     { height: 180px; font-size: 56px; }

.thumb-amber  { background: linear-gradient(135deg,#1a1200,#2c2000); }
.thumb-green  { background: linear-gradient(135deg,#001a0c,#002a16); }
.thumb-purple { background: linear-gradient(135deg,#100a1a,#1c1230); }
.thumb-red    { background: linear-gradient(135deg,#1a0000,#2c0808); }
.thumb-blue   { background: linear-gradient(135deg,#001018,#001c2c); }
.thumb-gray   { background: linear-gradient(135deg,#111114,#1a1a20); }

.card-body { padding: 20px 20px 0; flex: 1; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.tag-tool    { color: var(--amber);  background: var(--amber-dim); }
.tag-tech    { color: var(--purple); background: rgba(160,112,232,.12); }
.tag-vecinos { color: var(--green);  background: rgba(76,175,128,.12); }
.card-body h3 {
  font-family: var(--font-head); font-size: 17px;
  font-weight: 700; color: var(--text);
  letter-spacing: -0.4px; line-height: 1.3; margin-bottom: 8px;
}
.card-featured .card-body h3 { font-size: 22px; }
.card-body p { font-size: 13px; color: var(--text-2); line-height: 1.55; font-weight: 300; }
.card-foot {
  padding: 14px 20px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-read { font-size: 12px; font-weight: 500; color: var(--amber); }
.card-time { font-size: 11px; color: var(--text-3); }

/* ── PRODUCTS ── */
.products-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-top: 48px;
}
.product-card {
  background: var(--surface); padding: 28px 24px;
  text-decoration: none; display: block;
  transition: background 0.2s; position: relative;
}
.product-card:hover { background: var(--surface-2); }
.product-card::after {
  content: '↗'; position: absolute; top: 20px; right: 20px;
  font-size: 16px; color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
}
.product-card:hover::after { color: var(--amber); transform: translate(2px,-2px); }
.product-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.product-card h3 {
  font-family: var(--font-head); font-size: 15px;
  font-weight: 700; color: var(--text);
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.product-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; font-weight: 300; }
.product-price { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.product-badge { font-size: 11px; color: var(--amber); font-weight: 500; margin-top: 4px; }

/* ── AFFILIATE NOTICE ── */
.affiliate-box { max-width: 1100px; margin: 32px auto 0; padding: 0 32px; }
.notice {
  background: rgba(232,160,32,.06); border: 1px solid rgba(232,160,32,.2);
  border-radius: var(--r); padding: 14px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.notice p { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.notice strong { color: var(--amber); }

/* ── ABOUT PAGE ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 48px; text-align: center;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%); width: 200px; height: 200px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}
.about-emoji { font-size: 64px; display: block; margin-bottom: 24px; }
.about-card-title { font-family: var(--font-head); font-size: 48px; font-weight: 800; color: var(--amber); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.about-card-sub { font-size: 14px; color: var(--text-2); font-weight: 300; }
.about-divider { width: 40px; height: 1px; background: var(--border); margin: 24px auto; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.about-tag { font-size: 11px; color: var(--text-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 4px; }
.about-text h2 { font-family: var(--font-head); font-size: clamp(28px,3.5vw,48px); font-weight: 800; color: var(--text); letter-spacing: -2px; line-height: 1.0; margin-bottom: 20px; }
.about-text p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; font-weight: 300; }

/* ── FILTERS ── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
  font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-2);
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--amber); color: var(--bg);
  border-color: var(--amber);
}

/* ── NEWSLETTER ── */
.newsletter-section {
  border-top: 1px solid var(--border); padding: 96px 32px;
  text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,160,32,.08) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-section h2 {
  font-family: var(--font-head); font-size: clamp(32px,5vw,64px);
  font-weight: 800; color: var(--text); letter-spacing: -2.5px;
  margin-bottom: 12px; position: relative;
}
.newsletter-section p { font-size: 16px; color: var(--text-2); font-weight: 300; margin-bottom: 36px; position: relative; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; position: relative; flex-wrap: wrap; justify-content: center; }
.nl-form input {
  flex: 1; min-width: 240px; padding: 13px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.nl-form input:focus { border-color: var(--amber); }
.nl-form input::placeholder { color: var(--text-3); }
.nl-form button {
  padding: 13px 24px; background: var(--amber); color: var(--bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border: none; border-radius: var(--r); cursor: pointer; transition: all 0.2s;
}
.nl-form button:hover { opacity: .88; transform: translateY(-1px); }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 32px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; color: var(--text-2); line-height: 1.6; font-weight: 300; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { font-size: 11px; color: var(--text-3); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-featured, .card-small { grid-column: span 12; }
  .card-regular { grid-column: span 6; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero, .section, .page-hero { padding-left: 18px; padding-right: 18px; }
  .stats-bar { padding: 0 18px; }
  .card-regular { grid-column: span 12; }
  .footer-top { grid-template-columns: 1fr; }
  .affiliate-box { padding: 0 18px; }
}
