/* === MandoUniversal.es — Shared Styles === */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --amazon: #ff9900;
  --amazon-hover: #e68a00;
  --green: #16a34a;
  --border: #e2e8f0;
  --section-bg: #f1f5f9;
  --sale-bg: #1e293b;
  --sale-text: #f1f5f9;
  --radius: 12px;
  --max-w: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* === Header / Nav === */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* === Sale Banner === */
.sale-banner {
  background: var(--sale-bg);
  color: var(--sale-text);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
}
.sale-banner a { color: var(--amazon); font-weight: 600; }

/* === Hero === */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-amazon {
  background: var(--amazon);
  color: #fff;
}
.btn-amazon:hover { background: var(--amazon-hover); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* === Section === */
.section {
  padding: 50px 0;
}
.section-alt {
  background: var(--section-bg);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* === Product Cards === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.product-card .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  width: fit-content;
}
.badge-top { background: #dbeafe; color: #1d4ed8; }
.badge-value { background: #dcfce7; color: #166534; }
.badge-premium { background: #fef3c7; color: #92400e; }
.badge-ac { background: #e0e7ff; color: #3730a3; }

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.product-card .brand {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.product-card .features {
  list-style: none;
  margin-bottom: 16px;
  flex-grow: 1;
}
.product-card .features li {
  padding: 4px 0;
  font-size: 14px;
  color: #475569;
}
.product-card .features li::before {
  content: "\2713 ";
  color: var(--green);
  font-weight: 700;
}
.product-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.product-card .price small {
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
}
.product-card .btn-amazon {
  width: 100%;
  justify-content: center;
}

/* === Comparison Table === */
.table-wrap {
  overflow-x: auto;
  margin: 30px 0;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comp-table th {
  background: var(--sale-bg);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:nth-child(even) { background: var(--section-bg); }
.comp-table .check { color: var(--green); font-weight: 700; }
.comp-table .cross { color: #dc2626; }

/* === Brand Cards === */
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* === Related Links === */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.related-links a {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: background .2s, border-color .2s;
}
.related-links a:hover {
  background: #eff6ff;
  border-color: var(--accent);
  text-decoration: none;
}

/* === Guide / Content === */
.content {
  max-width: 800px;
  margin: 0 auto;
}
.content h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}
.content h3 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
}
.content p {
  margin-bottom: 16px;
  color: #334155;
}
.content ul, .content ol {
  margin: 0 0 20px 24px;
  color: #334155;
}
.content li { margin-bottom: 8px; }

/* === Steps === */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 16px 16px 16px 60px;
  position: relative;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* === FAQ === */
.faq { max-width: 800px; margin: 0 auto; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
details summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--accent); font-weight: 800; }
details[open] summary::before { content: "- "; }
details p, details ul {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #475569;
}

/* === Footer === */
.site-footer {
  background: var(--sale-bg);
  color: var(--sale-text);
  padding: 40px 0;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { margin-bottom: 12px; font-size: 15px; }
.footer-col a { color: #94a3b8; display: block; margin-bottom: 6px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 12px;
}
.footer-bottom a { color: #94a3b8; }

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* === CTA Box === */
.cta-box {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-box p { color: #dbeafe; margin-bottom: 20px; }
.cta-box .btn-amazon { font-size: 17px; padding: 14px 36px; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
  .product-grid { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  .cta-box { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  nav a { font-size: 13px; }
  .comp-table { font-size: 12px; }
  .comp-table th, .comp-table td { padding: 8px 10px; }
}
