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

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

:root {
  --bg:       #f0f4f8;
  --surface:  #ffffff;
  --surface2: #f8fafc;
  --surface3: #eef2f7;
  --accent:   #2563eb;
  --accent2:  #1d4ed8;
  --accent-soft: #eff6ff;
  --teal:     #0891b2;
  --green:    #16a34a;
  --orange:   #ea580c;
  --purple:   #7c3aed;
  --text:     #0f172a;
  --text2:    #475569;
  --muted:    #94a3b8;
  --border:   #e2e8f0;
  --border2:  #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --max:      1120px;
  --radius:   12px;
  --radius-sm: 6px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ACCESSIBILITY: foco de teclado visible (WCAG) ────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--accent-soft); color: var(--text); }

/* ── ACCESSIBILITY: respetar prefers-reduced-motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── READING PROGRESS ── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 9999; width: 0; transition: width .1s linear;
}

/* ── HEADER ── */
header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 20px rgba(0,0,0,.04);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  font-size: 1.2rem; font-weight: 800;
  color: var(--accent); letter-spacing: -.02em;
  display: flex; align-items: center; gap: .3rem;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
}
.logo span { color: var(--text2); font-weight: 500; }
nav { display: flex; gap: .25rem; margin-left: auto; }
nav a {
  font-size: .875rem; font-weight: 500; color: var(--text2);
  padding: .4rem .75rem; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
nav a:hover { background: var(--surface3); color: var(--text); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #060c1c 0%, #0c1836 55%, #091e3a 100%);
  color: #fff;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* dot grid */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.055) 1px, transparent 0);
  background-size: 32px 32px;
}
/* depth blobs */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(37,99,235,.35) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 82%, rgba(79,70,229,.22) 0%, transparent 45%);
}
/* film grain */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .35rem 1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #93c5fd; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(147,197,253,.8);
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(147,197,253,.8); }
  50%       { opacity: .55; box-shadow: 0 0 12px rgba(147,197,253,.5); }
}

/* editorial rule */
.hero-rule {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), transparent);
  border-radius: 2px; margin: 0 auto 1.4rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.04em;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: #93c5fd; }
.hero > .hero-inner > p { font-size: 1.05rem; opacity: .82; line-height: 1.7; max-width: 520px; margin: 0 auto; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center;
  margin-top: 2.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.7rem; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #bfdbfe);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.hero-stat span { font-size: .78rem; opacity: .72; margin-top: .2rem; display: block; }

/* ── SEARCH ── */
.search-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 2.25rem 1.5rem 0;
}
.search-box {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: .7rem 1.1rem;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow);
  max-width: 560px; margin: 0 auto;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--shadow);
}
.search-icon { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: .95rem; font-family: inherit; color: var(--text);
}
.search-box input::placeholder { color: var(--muted); }

/* ── CONTAINER ── */
.container { max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

/* ── CATEGORY COLORS ── */
.cat-Recomendaciones { --cat: var(--accent); }
.cat-Componentes     { --cat: var(--teal); }
.cat-Almacenamiento  { --cat: var(--orange); }
.cat-Por-Carrera     { --cat: var(--purple); }
.cat-Consejos        { --cat: var(--green); }
.cat-Comparativas    { --cat: #dc2626; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: .6rem;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 1.1em; background: var(--accent); border-radius: 2px;
}
.article-count {
  font-size: .8rem; color: var(--muted);
  background: var(--surface3); padding: .2rem .6rem;
  border-radius: 999px; font-weight: 500;
}

/* ── GRID ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.25rem; }

/* ── CARD IMAGEN ── */
.card-img-wrap {
  width: 100%; height: 180px; overflow: hidden; background: var(--border);
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

/* Placeholder si no carga la imagen */
.card-img-placeholder {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
  color: white; font-size: 2rem;
}

/* Hero imagen dentro del artículo */
.article-hero-img {
  width: 100%; max-height: 420px; overflow: hidden; border-radius: var(--radius);
  margin-bottom: 2rem; background: var(--border);
}
.article-hero-img img {
  width: 100%; height: 100%; object-fit: cover; display: block; max-height: 420px;
}

/* ── CARD ── */
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat, var(--accent));
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--cat, var(--accent));
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--cat, var(--accent));
  margin-bottom: .6rem;
}
.card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: .6rem; color: var(--text);
  flex: 1;
}
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: .855rem; color: var(--text2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .9rem;
}
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: var(--muted);
  padding-top: .75rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-meta-mins {
  background: var(--surface3); padding: .15rem .5rem;
  border-radius: 999px; font-weight: 500;
}
.card-arrow { color: var(--accent); font-size: .9rem; }

/* card CTA link */
.card-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: var(--cat, var(--accent));
  margin-top: .85rem; transition: gap .2s;
}
.card-cta:hover { gap: .6rem; }
.card-cta::after { content: '→'; }

/* ── ARTÍCULO ── */
.article-layout {
  display: grid; grid-template-columns: 1fr 290px;
  gap: 3rem; max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem;
}
@media (max-width: 820px) { .article-layout { grid-template-columns: 1fr; gap: 2rem; } }

.article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--accent);
  background: var(--accent-soft); padding: .25rem .65rem;
  border-radius: 999px; margin-bottom: .85rem;
}
.article-title {
  font-size: 2rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -.03em; margin-bottom: .85rem; color: var(--text);
}
.article-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .82rem; color: var(--muted); flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: .3rem; }
.mins-badge {
  background: var(--surface3); color: var(--text2);
  padding: .2rem .6rem; border-radius: 999px; font-weight: 600;
}

.article-body { max-width: 720px; }
.article-body h2 {
  font-size: 1.3rem; font-weight: 700;
  margin: 2.25rem 0 .85rem; color: var(--text);
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.article-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 .5rem; color: var(--text); }
.article-body p { margin-bottom: 1.1rem; color: var(--text2); line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .5rem; color: var(--text2); }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 1rem 1.5rem;
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--text2);
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 600; color: var(--text); }

/* ── KEY TAKEAWAYS ── */
.key-takeaways {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe; border-radius: var(--radius);
  padding: 1.5rem; margin: 1.75rem 0;
}
.key-takeaways h3 {
  color: var(--accent); font-size: 1rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.key-takeaways h3::before { content: '💡'; }
.key-takeaways ul { padding-left: 0; list-style: none; }
.key-takeaways li {
  padding: .4rem 0 .4rem 1.5rem; position: relative; color: var(--text);
}
.key-takeaways li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ── AFFILIATE BOX ── */
.affiliate-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1.5px solid #bfdbfe; border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0;
}
.affiliate-box h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.affiliate-box p { font-size: .875rem; color: var(--text2); margin-bottom: 1rem; }
.affiliate-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.affiliate-link {
  background: var(--accent); color: #fff;
  padding: .5rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.affiliate-link:hover { background: var(--accent2); transform: translateY(-1px); }
.affiliate-link.secondary {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.affiliate-link.secondary:hover { background: var(--accent-soft); transform: translateY(-1px); }

/* ── FAQ ── */
.faq-section { margin-top: 3rem; }
.faq-section > h2 {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; overflow: hidden;
}
.faq-item h3 {
  font-size: .95rem; font-weight: 600; color: var(--text);
  padding: 1rem 1.25rem; cursor: pointer;
  background: var(--surface2);
}
.faq-item p {
  font-size: .875rem; color: var(--text2);
  padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--border);
  margin: 0;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; align-self: start; }
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.widget h4 {
  font-size: .75rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.related-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .855rem; color: var(--text); padding: .6rem 0;
  border-bottom: 1px solid var(--border); line-height: 1.4;
  transition: color .15s;
}
.related-link::before { content: '→'; color: var(--muted); font-size: .8rem; flex-shrink: 0; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--accent); }
.related-link:hover::before { color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
}
.footer-brand .logo { margin-bottom: .5rem; }
.footer-brand p { font-size: .82rem; color: var(--muted); max-width: 380px; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center; padding: 1rem 1.5rem;
  font-size: .78rem; color: var(--muted);
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* ── UI PRO MAX ENHANCEMENTS ── */
html { scroll-behavior: smooth; }

::selection { background: rgba(37,99,235,.18); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fix search icon: was font-size emoji, now SVG */
.search-icon {
  font-size: unset;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Card hover: glow ring */
.card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--cat, var(--accent)), 0 4px 20px rgba(37,99,235,.1);
  transform: translateY(-4px);
  border-color: var(--cat, var(--accent));
}

/* Filter bar spacing */
.filter-bar { padding-top: 1.5rem; padding-bottom: 0; }

/* Active filter pill glow */
.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(37,99,235,.28);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── STATIC PAGES ── */
.page-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page-content h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.page-content h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; }
.page-content p { margin-bottom: 1rem; color: var(--text2); }

/* ── CATEGORY FILTER PILLS ── */
.filter-bar {
  max-width: var(--max); margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.filter-pill {
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: .35rem .85rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text2);
  transition: all .18s; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── FEATURED CARD ── */
.card--featured {
  grid-column: 1 / -1;
  flex-direction: row; align-items: stretch;
}
.card--featured .card-body { padding: 2rem; }
.card--featured .card-tag { font-size: .75rem; }
.card--featured .card-title { font-size: 1.4rem; line-height: 1.3; }
.card--featured .card-excerpt {
  -webkit-line-clamp: 3;
  font-size: .92rem; line-height: 1.65;
}
.card--featured-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  margin-bottom: .35rem; display: block;
}

/* ── IN-FEED AD CARD ── */
.ad-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; min-height: 120px;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: .5rem;
  position: relative;
}
.ad-card::before {
  content: 'Publicidad';
  position: absolute; top: .6rem; right: .75rem;
  font-size: .62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); opacity: .7;
}

/* ── AD BANNER ── */
.ad-banner {
  max-width: var(--max); margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.ad-banner ins { border-radius: var(--radius-sm); overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 1.25rem; }
  .article-title { font-size: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .card--featured { flex-direction: column; }
}

/* ── EEAT y autor boxes ── */
.breadcrumb { font-size:.85rem; color:var(--text2,#888); padding:.5rem 0 1rem; }
.breadcrumb a { color:var(--text2,#888); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.author-link { font-size:.875rem; color:var(--accent,#0ea5e9); text-decoration:none; margin-left:.5rem; }
.eeat-box { background:#f0f9ff; border-left:4px solid #0ea5e9; padding:1.25rem 1.5rem; margin:2rem 0; border-radius:0 8px 8px 0; }
.eeat-box h3 { font-size:1rem; font-weight:700; margin-bottom:.5rem; color:#0369a1; }
.eeat-box p { font-size:.9rem; color:#555; margin:.25rem 0; }
.author-box { display:flex; gap:1.25rem; align-items:flex-start; background:#fff; border:1px solid #e5e7eb; padding:1.5rem; border-radius:12px; margin:2rem 0; }
.author-avatar { width:56px; height:56px; border-radius:50%; background:#0ea5e9; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem; flex-shrink:0; }
.author-info h4 { margin:0 0 .5rem; font-size:1rem; }
.author-info h4 a { color:inherit; text-decoration:none; }
.author-info h4 a:hover { text-decoration:underline; }
.author-info p { font-size:.875rem; color:#555; margin:0 0 .75rem; }
.author-links a { font-size:.875rem; color:#0ea5e9; text-decoration:none; }

/* ── UI/UX PRO MAX — LAPTOP ESTUDIANTE UPGRADE ── */
:root {
  --card: #ffffff;
  --text-secondary: var(--text2);
  --spec-bg: #f0f7ff;
  --spec-border: #bfdbfe;
  --pros-bg: #f0fdf4;
  --cons-bg: #fff1f2;
}
.specs-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin: 24px 0; font-size: .9rem; }
.specs-table th { background: var(--accent); color: #fff; padding: 10px 16px; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.specs-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: var(--surface2); }
.specs-table .spec-label { color: var(--text2); font-weight: 600; width: 38%; }
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.compare-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); transition: all .2s; position: relative; }
.compare-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(37,99,235,.1); transform: translateY(-3px); }
.compare-card.winner { border-color: var(--accent); }
.compare-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.compare-price { font-size: 1.4rem; font-weight: 900; color: var(--accent); margin: 10px 0; }
.compare-specs { font-size: .8rem; color: var(--text2); display: flex; flex-direction: column; gap: 5px; list-style: none; }
.compare-specs li::before { content: '▸'; color: var(--accent); margin-right: 6px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros { background: var(--pros-bg); border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 18px 20px; }
.cons { background: var(--cons-bg); border: 1px solid #fecdd3; border-radius: var(--radius); padding: 18px 20px; }
.pros-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #16a34a; margin-bottom: 12px; }
.cons-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #dc2626; margin-bottom: 12px; }
.pros ul,.cons ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pros li,.cons li { font-size: .875rem; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.pros li::before { content: '✓'; color: #16a34a; font-weight: 900; flex-shrink: 0; }
.cons li::before { content: '✕'; color: #dc2626; font-weight: 900; flex-shrink: 0; }
.rating-bar { margin: 6px 0; }
.rating-label { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 4px; }
.rating-track { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 4px; }
.price-badge { display: inline-flex; align-items: baseline; gap: 4px; background: var(--spec-bg); border: 1px solid var(--spec-border); border-radius: 8px; padding: 8px 14px; }
.price-badge strong { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.price-badge span { font-size: .8rem; color: var(--text2); }
.btn-affiliate { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: .95rem; padding: 14px 28px; border-radius: 10px; transition: all .2s; box-shadow: 0 4px 14px rgba(37,99,235,.3); text-decoration: none; border: none; cursor: pointer; }
.btn-affiliate:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.spec-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--spec-bg); border: 1px solid var(--spec-border); border-radius: 6px; padding: 5px 10px; font-size: .8rem; font-weight: 600; color: var(--accent2); white-space: nowrap; }
.spec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.verdict-box { border: 1px solid var(--spec-border); background: linear-gradient(135deg, #eff6ff, #f0f9ff); border-radius: 14px; padding: 24px 28px; margin: 32px 0; }
.verdict-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
