/* Reset bÃ¡sico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 77px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #4CA0FF;
  font-weight: 700;
  font-size: 25px;
}

.nav-links a.active {
  color: #F78D74;
}

.nav-links .btn-contact {
  background-color: #0380FF;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

.burger {
  font-size: 28px;
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  display: none;
}

.navbar .container {
  max-width: 100%;
  padding: 0 120px;
}

/* ----------  Breadcrumb  ---------- */
.breadcrumb {
  /* deja el fondo transparente para que solo la pÃ­ldora sea azul claro */
  padding: 40px 0 20px;        /* espacio arriba/abajo como en Figma */
  text-align: center;          /* centra la pÃ­ldora horizontalmente */
}

.breadcrumb .container {
  justify-content: center;
}

.breadcrumb-pill {
  display: inline-block;       /* ancho se adapta al texto */
  background: #e8f2ff;         /* azul muy claro del diseÃ±o */
  padding: 15px 150px;
  border-radius: 12px;         /* esquinas redondeadas */
  font-size: 16px;
  font-weight: 600;
  color: #0071e3;              /* azul de los enlaces */
}

.breadcrumb-pill a {
  text-decoration: none;
  color: #4CA0FF;
  font-size: 23px;
  font-weight: 700;
}

.breadcrumb-pill .sep {
  color: #4CA0FF;              /* separador â€œ>â€ en gris oscuro */
  font-size: 23px;
  font-weight: 700;
}

.breadcrumb-pill .current {
  color: #4CA0FF;              /* â€œBlogâ€ en gris oscuro para diferenciar */
  font-size: 23px;
  font-weight: 700;
}

/* ---------- CategorÃ­as como barra azul ---------- */
.category-bar {
  padding: 20px 0;
}

.category-bar .container {
  max-width: 100%;
  padding: 0 120px;
}

.category-tabs {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4CA0FF; /* azul intenso */
  border-radius: 22px;
  gap: 150px;
  padding: 20px 40px;
  width: 100%;
  flex-wrap: wrap;
}

.category-tabs li {
  margin: 0;
}

.tab {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 17px;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tab.active {
  background-color: #ffffff;
  color: #4CA0FF;
  font-size: 17px;
}

/* ---------- ArtÃ­culo principal ---------- */
.main-featured {
  padding: 40px 0;
}

.main-featured .container {
  max-width: 100%;
  padding: 0 120px;
}

.featured-grid {
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
}

.featured-left {
  display: flex;
  background-color: #4da5ff;
  border-radius: 50px;
  overflow: hidden;
  flex: 1 1 65%;
  min-width: 300px;
}

.featured-left .icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}

.featured-left .featured-img {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
}

.featured-left .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-text {
  padding: 40px;
  color: white;
  flex: 1;
}

.featured-text .featured-date {
  font-size: 14px;
  color: #EBEBEB;
  margin-bottom: 20px;
  font-weight: 700;
}

.featured-text h2 {
  font-size: 29px;
  font-weight: bold;
  margin: 0 0 20px;
  line-height: 1.4;
}

.featured-text .featured-desc {
  font-size: 14px;
  line-height: 1.6;
}

.featured-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 4rem 3rem;
}

.featured-date {
  margin-bottom: 1rem;
}

.featured-title,
.featured-description {
  margin-bottom: 1rem;
}

.btn-read {
  background: white;
  color: #4CA0FF;
  font-weight: 600;
  border-radius: 14px;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: 0.3s;
  width: fit-content;
}

.btn-read:hover {
  opacity: 0.9;
}

.featured-img img {
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-right {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 280px;
}

.mini-article {
  display: flex;
  gap: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 12px;
  align-items: flex-start;
}

.mini-article img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
  margin-right: 15px;
}

.mini-article .right-div {
  display: flex;
  text-decoration: none;
}

.mini-text {
  flex: 1;
}

.tag {
  display: inline-block;
  background: #F78D74;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.mini-text h4 {
  font-size: 14px;
  margin: 4px 0;
  font-weight: 600;
  color: #222;
}

.mini-text p {
  font-size: 10px;
  color: #555;
}

/* ---------- Layout secciÃ³n contenido + sidebar ---------- */
.content-wrapper {
  padding: 40px 0;
}

.content-wrapper .container {
  max-width: 100%;
  padding: 0 120px;
}

.grid-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Main content */
.main-content {
  flex: 1 1 65%;
  min-width: 300px;
}

.main-content h3 {
  font-size: 30px;
  margin-bottom: 30px;
}

.highlighted-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
}

.latest-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  margin-bottom: 50px;
}

.highlighted-posts .texto {
  font-size: 12px;
  margin-bottom: 20px;
}

.highlighted-posts .icon {
  width: 30px;
  height: 30px;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 0;
}

.post-card {
  background:#f8f8f8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.post-card img {
  width: 100%;
  height: 300px; /* o 180px, segÃºn tu diseÃ±o */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.post-body {
  padding: 16px;
  background: #f8f8f8;
}

.post-body .tag {
  background: #F78D74;
  color: #ffffff;
  font-size: 10px;
  padding: 6px 18px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 15px;
}

.post-body h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.btn-read-light {
  font-size: 14px;
  color: #4CA0FF;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid #4CA0FF;
  border-radius: 20px;
  padding: 5px;
  font-weight: 600;
}

.latest-posts .texto {
  font-size: 12px;
  margin-bottom: 20px;
}

.latest-posts .icon {
  width: 30px;
  height: 30px;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  flex: 1 1 30%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar .texto {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 30px;
}

.sidebar .prox-inicios {
  font-size: 24px;
  font-weight: 700;
}

.newsletter-box {
  background: #FBF6EA;
  padding: 50px 60px;
  border-radius: 12px;
  margin-bottom: 50px;
}

.newsletter-box h4 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 700;
}

.newsletter-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  font-family: 'Montserrat';
}

.newsletter-box input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #C8C8C8;
  font-size: 14px;
  font-family: 'Montserrat';
  width: 100%;
}

.newsletter-box input::placeholder {
  color: #C8C8C8;
  font-family: 'Montserrat';
}

.newsletter-box button {
  background: #F78D74;
  color: white;
  padding: 15px 0;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 60px;
  font-family: 'Montserrat';
  margin: 0 auto;
  width: max-content;
  padding: 15px 40px;
}

.ads img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* ---------- PÃ¡gina de artÃ­culo ---------- */
.article-wrapper {
  padding: 40px 0;
}

.article-hero {
  padding: 40px 0 20px;
}

.article-hero .container {
  margin: 0 auto;
  padding: 0 20px;
  display: block;
}

.article-content {
  flex: 1 1 65%;
  min-width: 300px;
}

.article-title {
  font-size: 59px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #4CA0FF;
  text-align: center;
}

.article-summary {
  font-size: 23px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

.article-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

.article-body h2,
.article-body h3 {
  color: #1a1a1a;
  margin-bottom: 16px;
  font-size: 25px;
}

.article-body p {
  font-size: 21px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.article-body ul {
  margin-left: 20px;
  margin-bottom: 30px;
}

.article-body ul li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Vista de categorÃ­a ---------- */
.category-header {
  padding: 40px 0;
}

.category-header .icon {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.category-header .container {
  max-width: 100%;
  padding: 0 120px;
}

.category-featured {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.category-info {
  flex: 1 1 60%;
  min-width: 300px;
}

.category-info .category-path {
  font-weight: bold;
  color: #FF8800;
  margin-bottom: 30px;
  font-size: 30px;
}

.category-info h1 {
  font-size: 48px;
  color: #4CA0FF;
  font-weight: 700;
  margin-bottom: 30px;
}

.category-info .summary {
  font-size: 23px;
  line-height: 1.6;
  margin-bottom: 60px;
}

.category-img {
  flex: 1 1 40%;
  min-width: 260px;
}

.category-img img {
  width: 100%;
  border-radius: 12px;
}

.category-header .btn-read-light {
  display: inline-flex;
  padding: 5px 40px;
  font-size: 17px;
}

#pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.pagination-btn {
  background-color: #fff;
  border: 1px solid #4CA0FF;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
  color: #4CA0FF;
}

.pagination-btn.active {
  background-color: #4CA0FF;
  color: #fff;
  border-color: #4CA0FF;
}

/* Mobile first: ocultar nav-links */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .navbar .container {
    padding: 0 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: block;
  }

  .container {
    position: relative;
  }

  .category-bar .container {
    padding: 0 10px;
  }

  .main-featured .container,
  .content-wrapper .container {
    padding: 0 10px;
  }

  .content-wrapper {
    padding: 0;
  }

  .featured-grid {
    flex-direction: column;
  }

  .featured-left {
    flex-direction: column;
  }

  .featured-img img {
    width: 100%;
    height: auto;
  }

  .grid-layout {
    flex-direction: column;
  }

  .latest-posts {
    gap: 35px;
  }

  .newsletter-box {
    margin-bottom: 0;
  }

  .sidebar {
    order: 2;
  }

  .latest-posts {
    grid-template-columns: 1fr;
  }

  .article-wrapper {
    padding: 0;
  }

  .article-wrapper .article-content {
    width: 100%;
  }

  .article-title {
    font-size: 40px;
  }

  .article-summary {
    font-size: 20px;
  }

  .article-body h2, .article-body h3 {
    font-size: 21px;
  }

  .category-header .container {
    display: block;
    padding:0 20px;
  }

  .category-header .category-info {
    margin-bottom: 20px;
  }

  .category-info .summary {
    margin-bottom: 20px;
  }
}

/* â€” Mobile tweak opcional (â‰¤480 px) â€” */
@media (max-width: 480px) {
  .breadcrumb-pill {
    font-size: 14px;
    padding: 10px 32px;
  }

  .category-tabs {
    gap: 20px;
    padding: 15px;
  }

  .tab {
    font-size: 14px;
    padding: 8px 16px;
  }
}
