/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  rgba(37, 99, 235, 0.07);
  --blue-border: rgba(37, 99, 235, 0.18);
  --blue-glow:   rgba(37, 99, 235, 0.22);

  --bg:          #ffffff;
  --bg-2:        #f8fafc;
  --bg-3:        #f1f5f9;
  --bg-4:        #e2e8f0;

  --text:        #0f172a;
  --text-2:      #1e293b;
  --text-3:      #475569;
  --text-4:      #94a3b8;

  --white:       #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 860px;
  --max-w-wide: 1100px;
  --radius: 6px;
  --ease: all 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  color: var(--text);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bg-4);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.site-logo span { color: var(--blue); }

nav { display: flex; gap: 4px; flex-wrap: wrap; }

nav a {
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--ease);
  text-decoration: none;
  position: relative;
}

nav a:hover { color: var(--text); background: var(--bg-3); }

nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

/* ===== ADSENSE PLACEHOLDERS ===== */
.adsense-top, .adsense-mid, .adsense-bottom {
  background: var(--bg-3);
  border: 1px dashed var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.adsense-top, .adsense-bottom {
  width: 100%;
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.adsense-mid {
  width: 100%;
  max-width: 336px;
  height: 280px;
  margin: 36px auto;
}

.adsense-wrap { padding: 14px 0; background: var(--bg-2); border-top: 1px solid var(--bg-4); border-bottom: 1px solid var(--bg-4); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, var(--bg) 70%);
  color: var(--text);
  padding: 96px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bg-4);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-4) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-4) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--text);
}

.hero h1 em { font-style: normal; color: var(--blue); }

.hero p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  color: var(--text-3);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ease);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--blue-glow);
  text-decoration: none;
}

/* ===== SECTIONS ===== */
section { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--blue); }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-3);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ===== ARTICLE CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--bg-4);
  border: 1px solid var(--bg-4);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}

.card {
  background: var(--bg);
  padding: 28px 26px;
  transition: background 0.2s ease;
}

.card:hover { background: var(--bg-2); }

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 12px;
}

.card h3 { font-size: 0.97rem; font-weight: 600; line-height: 1.45; margin-bottom: 10px; color: var(--text); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; }
.card-meta { font-size: 0.75rem; color: var(--text-4); margin-top: 14px; border-top: 1px solid var(--bg-4); padding-top: 10px; }

/* ===== ARTICLE PAGE ===== */
.article-header {
  background: var(--bg-2);
  color: var(--text);
  padding: 64px 20px 52px;
  text-align: center;
  border-bottom: 1px solid var(--bg-4);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-4) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-4) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.7;
}

.article-header .breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--text-4);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.article-header .breadcrumb a { color: var(--text-3); text-decoration: none; }
.article-header .breadcrumb a:hover { color: var(--blue); }

.article-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 16px;
  letter-spacing: -0.8px;
  color: var(--text);
}

.article-header .meta { position: relative; z-index: 1; font-size: 0.82rem; color: var(--text-4); }

.article-body { padding: 52px 0 72px; }

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 16px;
  letter-spacing: -0.3px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 20px; color: var(--text-2); line-height: 1.8; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 20px 20px; }
.article-body li { margin-bottom: 8px; color: var(--text-2); }

.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 14px 22px;
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  color: var(--text-2);
  font-style: italic;
}

.article-cta {
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0 0;
  font-size: 0.92rem;
}

.article-cta p { margin: 0; color: var(--text-3); }
.article-cta a { color: var(--blue); font-weight: 500; }
.article-cta a:hover { color: var(--blue-dark); }

/* ===== COMPARE TABLE ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.9rem;
}

.compare-table th {
  background: var(--bg-3);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border: 1px solid var(--bg-4);
  text-align: left;
}

.compare-table td {
  padding: 11px 16px;
  border: 1px solid var(--bg-4);
  color: var(--text-2);
  background: var(--bg);
  vertical-align: top;
}

.compare-table tr:hover td { background: var(--bg-2); }

/* ===== PROMPT BLOCK ===== */
.prompt-block {
  background: var(--bg-3);
  border: 1px solid var(--bg-4);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== FEATURES SECTION ===== */
.features { background: var(--bg-2); border-top: 1px solid var(--bg-4); border-bottom: 1px solid var(--bg-4); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--bg-4);
  border: 1px solid var(--bg-4);
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.2s;
}

.feature-item:hover { background: var(--bg-2); }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}

.feature-item h3 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.feature-item p { font-size: 0.83rem; color: var(--text-3); line-height: 1.65; }

/* ===== ABOUT / CONTACT ===== */
.page-header {
  background: var(--bg-2);
  color: var(--text);
  padding: 72px 20px 60px;
  text-align: center;
  border-bottom: 1px solid var(--bg-4);
}

.page-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.8px; color: var(--text); }
.page-header p { font-size: 1rem; color: var(--text-3); max-width: 520px; margin: 0 auto; }

.page-body { padding: 60px 0; }
.page-body h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 36px 0 12px; padding-left: 12px; border-left: 3px solid var(--blue); }
.page-body p { margin-bottom: 16px; color: var(--text-2); line-height: 1.8; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 560px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bg-4);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--ease);
}

.btn-submit:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px var(--blue-glow); }

/* ===== NEWSLETTER STRIP ===== */
.newsletter {
  background: var(--bg-2);
  color: var(--text);
  padding: 56px 20px;
  text-align: center;
  border-top: 1px solid var(--bg-4);
  border-bottom: 1px solid var(--bg-4);
}

.newsletter h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; color: var(--text); }
.newsletter p { font-size: 0.93rem; color: var(--text-3); margin-bottom: 28px; }

.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.nl-form input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--bg-4);
  background: var(--bg);
  color: var(--text);
  font-size: 0.93rem;
  width: 280px;
  max-width: 100%;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.nl-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }

.nl-form button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--ease);
}

.nl-form button:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--bg-4);
  padding: 48px 20px 28px;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p { font-size: 0.83rem; color: var(--text-4); margin-top: 12px; max-width: 260px; line-height: 1.7; }

.footer-col h4 { font-size: 0.72rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-4); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--bg-4);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-4);
}

.footer-bottom a { color: var(--text-4); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }

/* ===== BLOG INDEX ===== */
.blog-section { margin-bottom: 48px; }
.blog-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: -0.3px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-4); }
.blog-section h2 span { color: var(--blue); }

.article-list { list-style: none; }
.article-list li { border-bottom: 1px solid var(--bg-4); }
.article-list li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  color: var(--text-2);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.article-list li a:hover { color: var(--blue); }
.article-list li a span { font-size: 0.75rem; color: var(--text-4); white-space: nowrap; }

/* ===== UTILITY ===== */
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tag-pill { font-size: 0.75rem; padding: 4px 12px; border-radius: 20px; background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-border); }

/* ===== INTERNAL LINK BOX ===== */
.internal-link-box {
  background: var(--bg-2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 28px 0;
  font-size: 0.88rem;
  border-top: 1px solid var(--bg-4);
  border-bottom: 1px solid var(--bg-4);
  border-right: 1px solid var(--bg-4);
}

.internal-link-box strong { display: block; margin-bottom: 4px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }

/* ===== SEARCH TOGGLE (mobile) ===== */
.search-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--text-3);
  border-radius: var(--radius);
  transition: background 0.2s;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-toggle:hover { background: var(--bg-3); color: var(--text); }

.mobile-search-panel {
  display: none;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--bg-4);
  background: var(--bg);
}
.mobile-search-panel form { display: flex; }
.mobile-search-panel input[type="search"] {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--bg-4);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-3);
  outline: none;
  -webkit-appearance: none;
}
.mobile-search-panel input[type="search"]:focus {
  border-color: var(--blue);
  background: var(--bg);
}
.mobile-search-panel button[type="submit"] {
  padding: 9px 16px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.mobile-search-panel button[type="submit"]:hover { background: var(--blue-dark); }

/* ===== SITE SEARCH ===== */
.site-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-search input[type="search"] {
  padding: 7px 13px;
  border: 1px solid var(--bg-4);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-3);
  outline: none;
  width: 170px;
  transition: border-color 0.2s, width 0.25s;
  -webkit-appearance: none;
}

.site-search input[type="search"]:focus {
  border-color: var(--blue);
  background: var(--bg);
  width: 210px;
}

.site-search button {
  padding: 7px 13px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  white-space: nowrap;
}

.site-search button:hover { background: var(--blue-dark); }

/* ===== ARTICLE FEATURED IMAGE ===== */
.article-featured-img {
  width: 100%;
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(37,99,235,0.10);
}
.article-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-featured-img img:hover { transform: scale(1.02); }
.article-featured-img figcaption {
  font-size: 0.75rem;
  color: var(--text-4);
  text-align: right;
  padding: 6px 10px;
  background: var(--bg-2);
}

/* ===== FAQ SECTION ===== */
.faq-section { margin: 48px 0 0; }
.faq-section h2 { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 24px; letter-spacing: -0.3px; padding-left: 14px; border-left: 3px solid var(--blue); }
.faq-item { border: 1px solid var(--bg-4); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  cursor: pointer;
  background: var(--bg-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--blue); font-weight: 400; }
details[open] .faq-item summary::after { content: "−"; }
.faq-item p { padding: 14px 18px 18px; font-size: 0.9rem; color: var(--text-2); line-height: 1.75; margin: 0; border-top: 1px solid var(--bg-4); }

/* ===== COMPARE TABLE SCROLL (all sizes) ===== */
.compare-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.compare-table th, .compare-table td { white-space: normal; min-width: 120px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Header: grid — logo+lupa en fila 1, nav en fila 2 */
  .site-search { display: none; }
  .mobile-search-panel { display: none; }
  .search-toggle { display: flex; }
  header.search-open .mobile-search-panel { display: block; }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo toggle" "nav nav";
    padding: 10px 16px 0;
    gap: 0;
    column-gap: 8px;
    align-items: center;
  }
  .site-logo {
    grid-area: logo;
    font-size: 1.05rem;
    align-self: center;
    padding-bottom: 10px;
  }
  .search-toggle {
    grid-area: toggle;
    align-self: center;
    margin-bottom: 10px;
  }
  nav {
    grid-area: nav;
    display: flex;
    border-top: 1px solid var(--bg-4);
    padding-top: 0;
    gap: 0;
  }
  nav a {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 1.8rem; letter-spacing: -0.5px; }
  .hero p { font-size: 0.93rem; margin-bottom: 24px; }

  /* Sections */
  section { padding: 40px 0; }
  .section-title { font-size: 1.3rem; }
  .section-sub { margin-bottom: 24px; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }

  /* Features */
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-item { padding: 22px 18px; }

  /* Article */
  .article-header { padding: 40px 16px 32px; }
  .article-body { padding: 32px 0 48px; }
  .article-body h2 { font-size: 1.15rem; margin: 32px 0 12px; }
  .article-body h3 { font-size: 0.98rem; }

  /* Newsletter */
  .newsletter { padding: 40px 16px; }
  .nl-form { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .nl-form input { width: 100%; }
  .nl-form button { width: 100%; }

  /* Article list: stack title and tag */
  .article-list li a { flex-direction: column; gap: 3px; padding: 12px 0; }
  .article-list li a span { white-space: normal; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Page header */
  .page-header { padding: 48px 16px 36px; }
}

@media (max-width: 480px) {
  /* Header */
  .header-inner { padding: 10px 14px; }
  .site-logo { font-size: 0.98rem; }
  nav a { font-size: 0.74rem; padding: 6px 2px; }

  /* Hero */
  .hero { padding: 36px 14px 32px; }
  .hero h1 { font-size: 1.5rem; }
  .btn { width: 100%; justify-content: center; }

  /* Sections */
  section { padding: 32px 0; }

  /* Cards */
  .card { padding: 18px 16px; }

  /* Features */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { padding: 18px 16px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 32px 14px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Page header */
  .page-header { padding: 36px 14px 28px; }
  .page-header h1 { font-size: 1.5rem; }

  /* Article */
  .article-header { padding: 32px 14px 24px; }
  .article-body h2 { font-size: 1.1rem; padding-left: 10px; }

  /* Blog index tags */
  .tag-list { gap: 6px; }

  /* Newsletter */
  .newsletter { padding: 32px 14px; }
}
