/* ==========================
   RESET & BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #0b1220;
  color: #1f2937;
}

/* ==========================
   CONTENEDOR GENERAL
========================== */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ==========================
   HEADER
========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}



h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
}

/* ==========================
   SEARCH
========================== */
.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
}

.search-box input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
}

.search-box button {
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover {
  background: #4338ca;
}

/* ==========================
   GRID POSTS
========================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ==========================
   POST CARD
========================== */
.post {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

/* Imagen */
.post-img-box {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.post-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Título */
.post h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.post h2 a {
  text-decoration: none;
  color: #111827;
}

.post h2 a:hover {
  color: #4f46e5;
}

/* Extracto */
.post p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 1rem;
}

/* Fecha */
.post small {
  color: #6b7280;
  font-size: .85rem;
}

/* Footer card */
.post-footer {
  margin-top: auto;
  text-align: right;
}

/* Botón leer */
.btn-read {
  display: inline-block;
  padding: 10px 20px;
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: .2s;
}

.btn-read:hover {
  background: #4338ca;
}

.btn-read::after {
  content: " →";
}

/* ==========================
   PAGINACIÓN
========================== */
.pagination {
  margin-top: 45px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 10px 16px;
  margin: 4px;
  border-radius: 10px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 600;
}

.pagination a:hover {
  background: #f3f4f6;
}

.pagination a.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* ==========================
   FOOTER
========================== */
footer {
  margin: 60px 0 30px;
  text-align: center;
  color: #ffffff;
  font-size: .9rem;
}

/* ==========================
   RESPONSIVE
========================== */

/* Tablet */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  header h1 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .search-box {
    flex-direction: column;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-img {
    height: 180px;
  }

  header h1 {
    font-size: 1.6rem;
  }
}


.volver-container {
    text-align: right;
    width: 100%;
}
.btn-volver {
    align-content: right;
    display: inline-block;
    padding: 10px 20px;
    color: #f8f9fb;
    font-weight: 600;
    text-decoration: none;       
    transition: 0.25s ease;    
}

.btn-volver:hover {    
    color: #00e5ff;
    transform: translateY(-2px);    
}



/* Logo section Starts */
.btn-logo {
  position: absolute;
  width: 77px;
  height: 77px;
  top: 7px;
  /*bottom:20px;*/
  left: 9px;
  background: transparent;
  z-index: 5000;
}

.img-responsive3 {
  width: 100px;
  top: 45px;
  left: 5px;
}

@media only screen and (min-width: 320px) and (max-width: 768px) {
  .btn-logo {
    width: 55px;
  }
}
/* Logo section Ends */




/* ==========================
   BLOG HERO / BANNER
========================== */
.blog-hero {
  width: 100%;
  height: 620px;
  /*max-height: 260px;*/       
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 35px;
}

.blog-hero img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Tablet */
@media (max-width: 992px) {
  .blog-hero,
  .blog-hero img {
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-hero,
  .blog-hero img {
    height: 200px;
    border-radius: 14px;
  }
}





