/* ===========================
   1. CONTENEDOR GENERAL
=========================== */
body {
  background: rgba(255, 255, 255, 0.85);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header .container .brand >h2 {
  font-size: 1.1rem;
  color: #000101;
  margin: 0;
  font-weight: 600;
} 

/* ===========================
   2. BANNER DEL BLOG
=========================== */
.blog-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  box-shadow: 0 6px 200px rgba(0,0,0,0.6);
  text-align: center;
}

.blog-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(90%);
}

.blog-banner .banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.blog-banner .banner-text h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  width: 100%;
}

.blog-banner .banner-text p {
  font-size: 2rem;
  font-weight: 600;
  width: 90%;
  text-align: center;
}

/* ===========================
   MIGAS DE PAN DE TODO EL SITIO WEB
=========================== */

.breadcrumb-blog, .breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0;
  margin: 1rem 0;
 
}
.breadcrumb {
  position: relative;
  top: -50px;
  margin-top: 30px;
}
.breadcrumb li {
  margin-right: 8px;
  font-size: 10px;
}

.breadcrumb li a {
  color: #ff6600; /* color pasos previos */
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: #ff6600;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li:last-child {
  font-weight: 500;
  color: #ffffff; /* página actual */
}

.breadcrumb .migas-pan-negro:last-child {
  color: #000000; /* página actual */
}

/* ======= Breadcrumb específico blog ======= */
.breadcrumb-blog {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* alineado izquierda por defecto */
  margin: 1rem 0;
  position: relative;
  left: 0; /* eliminamos offsets fijos */
}

/* ===========================
   3. MAIN / BLOG / SINGLE POST
=========================== */
.blog-main, .single-post {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  align-items: start;
}

.blog-main {
  grid-template-columns: 1fr 300px;
}

.single-post {
  grid-template-columns: 3fr 1fr;
}

/* ===========================
   4. LISTA DE ARTÍCULOS
=========================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 100px;
}

.blog-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.blog-item img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

.blog-item h2 {
  font-size: 1.3rem;
  margin: 1rem;
  color: #222;
}

.blog-item p {
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-link {
  text-decoration: none;   /* quita el subrayado */
  color: inherit;          /* mantiene el color del texto */
  display: block;          /* hace que el enlace ocupe todo el espacio del card */
}

.card-link:hover {
  text-decoration: none;   /* asegura que no vuelva */
  color: #ff6600;         /* cambia el color al pasar el mouse */
}

/* ===========================
   5. SIDEBAR
=========================== */
.sidebar {
  background: #f9f9ff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 2rem; /* ajustable según header */
  height: fit-content;
  align-self: start;
}

.sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #222;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.sidebar ul li {
  margin: 0.8rem 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  display: block;
  transition: background 0.3s, color 0.3s, padding-left 0.3s;
}

.sidebar ul li a:hover {
  background: #ff6600;
  color: #fff;
  padding-left: 6px;
}

/* Botón WhatsApp en sidebar */
.contacto-whatsapp {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f1f9f1;
  border-left: 4px solid #25d366;
  border-radius: 8px;
  text-align: center;
}

.btn-whatsapp {
  display: inline-block;
  padding: 0.7rem 1rem;
  background: #25d366;
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp i {
  margin-right: 6px;
}

.btn-whatsapp:hover {
  background-color: #1ebd58;
  transform: scale(1.05);
}

/* ===========================
   6. SINGLE POST ARTICLE
=========================== */
.single-post article {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.single-post article img#post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  margin-top: -50px;
}

.single-post article h1#post-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0056d2;
}

.single-post article #post-content p {
  margin: 1rem 0;
  line-height: 1.8;
  color: #333;
  font-size: 1.1rem;
}

/* ===========================
   7. MEDIA QUERIES
=========================== */

/* ===== MÓVILES PEQUEÑOS 320–480px ===== */
@media (max-width: 480px) {
  .blog-main, .single-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .blog-list {
    width: 100%;
    gap: 1rem;
  }

  .sidebar {
    position: relative;
    width: 90%;
    top: auto;
    margin: 1rem auto;
  }

  .blog-banner .banner-text h1 {
    font-size: 1.5rem;
  }

  .blog-banner .banner-text p {
    font-size: 1rem;
  }

  .single-post article img#post-image {
    height: auto;
    margin-top: 0;
  }

  .breadcrumb-blog {
    font-size: 0.8rem;
    justify-content: center;
    text-align: center;
    margin: 1rem auto;
  }

  .breadcrumb-blog li {
    margin-right: 0.3rem;
  }

}

/* ===== MÓVILES GRANDES / TABLETS 481–768px ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .blog-main, .single-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .blog-list {
    width: 100%;
    gap: 1.5rem;
  }

  .sidebar {
    width: 80%;
    position: relative;
    top: auto;
    margin: 1rem auto;
  }

  .blog-banner .banner-text h1 {
    font-size: 1.8rem;
  }

  .blog-banner .banner-text p {
    font-size: 1.4rem;
  }

  .breadcrumb-blog {
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
    margin: 1rem auto;
  }

}

/* ===== TABLETS 769–1024px ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-main {
    grid-template-columns: 2fr 1fr;
    padding: 0 2rem;
  }

  .blog-banner .banner-text h1 {
    font-size: 2.3rem;
    width: 90%;
  }

  .blog-banner .banner-text p {
    font-size: 1.5rem;
  }
  
  .single-post {
    grid-template-columns: 3fr 1fr;
    width: 90%;
    padding: 0 1rem;
  }

  .sidebar {
    position: sticky;
    top: 2rem;
    width: 100%;
  }

  .breadcrumb-blog {
    font-size: 0.9rem;
    justify-content: flex-start;
    margin: 1rem 0;
  }
}

/* ===== LAPTOPS PEQUEÑAS 1025–1279px ===== */
@media (min-width: 1025px) and (max-width: 1279px) {
  .blog-main {
    grid-template-columns: 1.5fr 1fr;
  }
.blog-banner .banner-text h1 {
  font-size: 2.5rem;
  width: 90%;
}

.blog-banner .banner-text p {
  font-size: 1.5rem;
}
  .single-post {
    grid-template-columns: 2.5fr 1fr;
  }

  .sidebar {
    top: 2rem;
  }

  .breadcrumb-blog {
    font-size: 0.95rem;
    justify-content: flex-start;
    margin: 1rem 0;
  }
}

/* ===== LAPTOPS GRANDES Y DESKTOP >=1280px ===== */
@media (min-width: 1280px) {
  .blog-main {
    grid-template-columns: 1fr 300px;
  }

  .single-post {
    grid-template-columns: 3fr 1fr;
  }

  .sidebar {
    top: 2rem;
  }

  .breadcrumb-blog {
    font-size: 1rem;
    justify-content: flex-start;
    margin: 1rem 0;
  }
}
