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

:root {
  --orange: #FF4D00;
  --orange-light: #FF6A2A;
  --black: #0F0F0F;
  --dark: #1A1A1A;
  --gray: #6B6B6B;
  --light-gray: #F5F5F5;
  --border: #E8E8E8;
  --white: #FFFFFF;
  --score-gold: #FFB800;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}

a { -webkit-tap-highlight-color: rgba(255,77,0,0.18); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255,77,0,0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover { color: var(--orange); }

/* ── CATEGORY PAGE HEADER (páginas de categoría, versión reducida del hero) ── */
.category-hero {
  background: var(--black);
  color: var(--white);
  padding: 1.75rem 2rem 2.75rem;
  text-align: center;
}

/* ── BREADCRUMB (vive dentro del category-hero, sobre fondo oscuro) ── */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  font-size: 0.8rem;
}

.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb .crumb-sep { margin: 0 0.4rem; color: rgba(255,255,255,0.3); }
.breadcrumb .crumb-current { color: rgba(255,255,255,0.9); font-weight: 600; }

.category-hero .hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.25rem;
}

.category-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.category-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
}

/* ── HERO (home) ── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.08;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.06;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

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

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* ── CATEGORIES ── */
.categories {
  background: var(--light-gray);
  padding: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 0.5rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--black);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── SECTION ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ── "VER RANKING COMPLETO" ── */
.section-more {
  text-align: center;
  margin-top: 1.75rem;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-more:hover { background: var(--black); color: var(--white); }

/* ── PRODUCT CARD (signature: banda lateral de puntuación) ── */
.product-grid {
  display: grid;
  gap: 1.25rem;
}

.product-card {
  display: grid;
  grid-template-columns: 6px minmax(170px, 22%) 1fr auto;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.card-score-bar {
  background: var(--orange);
  flex-shrink: 0;
}

.card-score-bar.score-9 { background: #E63900; }
.card-score-bar.score-8 { background: var(--orange); }
.card-score-bar.score-7 { background: #FF8C42; }

.card-img {
  min-height: 170px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.product-photo {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-body {
  padding: 1.25rem 1.5rem;
}

.card-rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--light-gray);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-left: 1px solid var(--border);
  min-width: 150px;
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--black);
}

.score-label {
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stars {
  color: var(--score-gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--black);
}

.btn-amazon {
  display: block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  width: 100%;
  min-height: 44px;
}

.btn-amazon:hover { background: var(--orange-light); }

.affiliate-note {
  font-size: 0.65rem;
  color: rgba(0,0,0,0.3);
  text-align: center;
  margin-top: 0.2rem;
}

.price-updated {
  font-size: 0.65rem;
  color: rgba(0,0,0,0.3);
  text-align: center;
}

/* ── GUIDE SECTION ── */
.guide-section {
  background: var(--light-gray);
  padding: 4rem 2rem;
}

.guide-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.guide-inner h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--white);
  padding: 1.5rem;
  border-top: 3px solid var(--orange);
}

.guide-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.trust-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.trust-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.trust-box h2,
.faq-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.trust-box p,
.faq-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.faq-item h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--orange-light); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}

footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
footer a:hover { color: var(--orange); }

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  max-width: 700px;
  margin: 1rem auto 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    height: auto;
    padding: 0.65rem 1rem 0.25rem;
  }

  .logo { font-size: 1.35rem; }

  .nav-links {
    width: 100%;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    font-size: 0.72rem;
    min-height: 38px;
    padding: 0 0.35rem;
    white-space: nowrap;
  }

  .hero {
    padding: 3.2rem 1.2rem 2.7rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 17vw, 4.2rem);
  }

  .hero p { font-size: 1rem; }

  .category-hero {
    padding: 1.5rem 1.2rem 2.25rem;
  }

  .breadcrumb {
    margin-bottom: 1.15rem;
  }

  .categories {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: none;
  }

  .categories::-webkit-scrollbar { display: none; }

  .section {
    padding: 3rem 1rem;
  }

  .section-header {
    display: block;
    margin-bottom: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.55rem;
    line-height: 1.08;
    margin-bottom: 0.35rem;
  }

  .product-card {
    grid-template-columns: 6px minmax(96px, 34%) 1fr;
    grid-template-rows: auto auto auto;
  }

  .card-img {
    grid-column: 2;
    min-height: 132px;
    padding: 0.65rem 0.45rem;
  }

  .product-photo {
    max-width: 150px;
    height: 112px;
  }

  .card-body { grid-column: 3; }

  .card-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid var(--border);
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }

  .score-num { font-size: 2rem; }

  .price { font-size: 1.15rem; }

  .btn-amazon {
    max-width: 180px;
    padding: 0.65rem 0.8rem;
  }

  .guide-section,
  .newsletter {
    padding: 3rem 1rem;
  }

  .trust-section,
  .faq-section {
    padding: 0 1rem 3rem;
  }

  .guide-grid { gap: 1rem; }

  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 6px 1fr;
  }

  .card-img {
    grid-column: 2;
    min-height: 190px;
    padding: 0.75rem 1rem 0;
  }

  .product-photo {
    max-width: 320px;
    height: 178px;
  }

  .card-body { grid-column: 2; }

  .card-cta {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .score-badge {
    align-items: flex-start;
    min-width: 74px;
  }

  .btn-amazon {
    flex: 1 1 140px;
    max-width: none;
  }

  .affiliate-note,
  .price-updated {
    flex-basis: 100%;
    text-align: left;
  }

  .price-updated { margin-top: -0.4rem; }

  .hero-stats {
    gap: 1rem;
    justify-content: space-between;
  }

  .stat-num { font-size: 1.75rem; }

  .stat-label { font-size: 0.66rem; }

  .newsletter-form {
    display: grid;
    gap: 0.75rem;
  }

  .newsletter-form button { min-height: 44px; }
}
