/* =========================================
   1. VARIABLES DE COLOR Y ESTILOS BASE
   ========================================= */
:root {
  --bg-page: #f8fafc; /* O prueba con #fbf9f5 para un tono más cálido y orgánico */
  --bg-card: #ffffff;
  --ink-main: #0f172a;
  --ink-soft: #475569;
  --accent-orange: #f97316;
  --accent-purple: #7c3aed;
  --accent-gold: #f59e0b;
  --footer-bg: #0f172a;
  --border-soft: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-main);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

/* =========================================
3. PORTADA (HERO) Y TÍTULOS DE SECCIÓN
   ========================================= */
.hero {
  background: linear-gradient(120deg, #ff7a18 0%, #c04875 55%, #7c3aed 100%);
  color: #ffffff;
  padding: 44px 28px;
  border-radius: 20px;
  margin: 24px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-media {
  flex: 0 0 250px;
}

.hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 22px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botones flotantes (Pills) del Hero */
.pill-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-main);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 32px 20px;
    text-align: left;
  }

  .hero-media {
    width: 100%;
    flex: none;
  }

  .hero-img {
    height: 240px;
  }
}
/* =========================================
   4. PRODUCTO DESTACADO Y TABLA COMPARATIVA
   ========================================= */
.featured-box {
  background: var(--bg-card);
  border: 2px solid #fed7aa;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.badge-featured {
  display: inline-block;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #c2410c;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #fdba74;
}

.score-tag {
  display: inline-block;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid #fcd34d;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  margin-bottom: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}

th {
  background: #f1f5f9;
  font-weight: 700;
}

/* =========================================
   5. TARJETAS DE PRODUCTOS Y RESEÑAS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #f97316;
  box-shadow: 0 16px 32px -8px rgba(249, 115, 22, 0.15);
}

.product-img {
  width: 95%;
  height: 330px;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
}

.carousel-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.img-placeholder {
  width: 100%;
  height: 170px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
}

.score-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.pros-box {
  background: #ecfdf5;
  color: #065f46;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.cons-box {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.fit-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent-gold);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
}

.review-note {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Botones de Amazon / Llamada a la acción con brillo */
.btn-amazon {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

/* =========================================
   6. SUSCRIPCIÓN Y FOOTER
   ========================================= */
.subscribe-box {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 40px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.subscribe-form input {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-purple);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  background: var(--footer-bg);
  color: #e2e8f0;
  border-radius: 24px 24px 0 0;
  padding: 44px 0 20px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: #facc15;
  margin-bottom: 10px;
}

.footer-grid a {
  color: #e2e8f0;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.subtags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 6px;
}

.subtag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.subtag:hover {
  border-color: #f97316;
  color: #c2410c;
  background: #fff7ed;
}

.hero {
  position: relative; /* Asegura que la patita camine por el hero */
  overflow: hidden;
}

.walking-paw {
  position: absolute;
  bottom: 12px;
  left: -40px;
  font-size: 1.6rem;
  opacity: 0.7;
  animation: walkAcross 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes walkAcross {
  0% {
    left: -40px;
    transform: scale(0.9) rotate(-10deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1) rotate(15deg);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    left: 105%;
    transform: scale(0.9) rotate(-10deg);
    opacity: 0;
  }
}