/* ============================================
   BLOG.CSS — Estilos exclusivos del blog DogNavi
   ============================================ */

.blog-article {
  max-width: 1200px;
  margin: 3rem auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  color: #333;
}

.article-meta {
  display: flex;
  gap: 2rem;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #F4EDE4;
  flex-wrap: wrap;
}

.blog-article h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #667e6d;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.blog-article h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: #667e6d;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}

.blog-article h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: #667e6d;
  margin: 2rem 0 1rem;
}

.blog-article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.blog-article ul,
.blog-article ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.blog-article li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.toc {
  background: #F4EDE4;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.toc h3 {
  margin-bottom: 1rem;
  color: #667e6d;
}

.toc a {
  color: #667e6d;
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  color: #FFB347;
}

/* Boxes */
.highlight-box {
  background: linear-gradient(135deg, #FFB347 0%, #FFC974 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  color: #333;
  font-weight: 600;
}

.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.tip-box {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.success-box {
  background: #d4edda;
  border-left: 4px solid #28a745;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

/* Tabla */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: white;
}

thead {
  background: linear-gradient(135deg, #667e6d 0%, #5a8a78 100%);
  color: white;
}

th {
  padding: 1.2rem;
  text-align: left;
  font-weight: 700;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
  background: #f9f9f9;
}

.weight-range {
  font-weight: 700;
  color: #667e6d;
}

.grams {
  color: #FFB347;
  font-weight: 800;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #667e6d 0%, #5a8a78 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  margin: 3rem 0;
}

.cta-box .btn {
  background: #FFB347;
  color: #333;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
}

.cta-box .btn:hover {
  background: #FFC974;
}

/* Productos */
/* Productos – DISEÑO NUEVO */
.related-products {
  background: #F4EDE4;
  padding: 2rem;
  border-radius: 15px;
  margin: 3rem 0;
}

.related-products h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #667e6d;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}

.product-card h4 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.45;
}

.btn-product {
  margin-top: auto;
  display: block;
  background: #F3AF4B;
  color: #000000;
  padding: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.btn-product:hover {
  background: #F3AF4B;
  transform: translateY(-3px);
}


/* FAQ */
.faq-section {
  background: #F4EDE4;
  padding: 2rem;
  border-radius: 15px;
  margin: 3rem 0;
}

.faq-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-article {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }

  .blog-article h1 {
    font-size: 2rem;
  }

  .blog-article h2 {
    font-size: 1.5rem;
  }
}
/* FIX: Forzar colores correctos dentro de cta-box */
.cta-box h3,
.cta-box p,
.cta-box a {
  color: white !important;
}

.cta-box .btn {
  background: #FFB347 !important;
  color: #333 !important;
  border: none;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin: 2rem 0 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

/* Imágenes contextuales entre secciones */
.section-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 16px;
  margin: 2.5rem auto;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Contenedor de imagen con caption */
.image-wrapper {
  margin: 2.5rem 0;
  text-align: center;
}

.image-caption {
  font-size: 0.9rem;
  color: #999;
  font-style: italic;
  margin-top: 0.8rem;
  display: block;
}

/* Imagen pequeña inline (al lado del texto) */
.inline-image {
  float: right;
  width: 280px;
  height: auto;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Grid de imágenes comparativas */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-image {
    height: 250px;
    border-radius: 12px;
  }
  
  .inline-image {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
  
  .section-image {
    border-radius: 12px;
  }
}