/* ===== Blog Grisstravel — complementa style.css sin modificarlo ===== */

/* Estilos de cabecera/menú/WhatsApp que el sitio define en línea en index.html */
html { font-size: 16px !important; }
body { cursor: url(/favicon3.png), url(/cursor.cur), pointer; }

@media (min-width: 992px) {
  .header .navbar-list { display: flex !important; justify-content: center !important; align-items: center !important; }
  .header .navbar-list li { width: auto !important; }
  .header .navbar-list .navbar-link {
    display: block !important; font-size: 14.4px !important; line-height: 1.5 !important;
    padding: 10px 15px !important; font-weight: 500 !important; text-transform: capitalize !important; color: #fff !important;
  }
  .header.active .navbar-list .navbar-link { color: #333 !important; }
}
@media (min-width: 1300px) { .header .navbar-list .navbar-link { padding: 10px 17px !important; } }
@media (min-width: 1600px) { .header .navbar-list .navbar-link { font-size: 17.6px !important; } }

.header-top .logo { margin-left: 5%; margin-right: auto; display: block; max-width: 25%; }
.header-top .logo img { width: clamp(110px, 18vw, 230px) !important; height: auto !important; max-width: 100%; object-fit: contain; }
@media (max-width: 580px) {
  .header-top .logo { margin-left: 0; }
  .header-top .logo img { width: clamp(90px, 28vw, 130px) !important; }
}

.whatsapp-float {
  position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #fff;
  border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,.2); z-index: 100;
  display: flex; align-items: center; justify-content: center; text-decoration: none; animation: jump 2s infinite;
}
@keyframes jump { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }
.whatsapp-float:hover { animation: none; background-color: #128C7E; box-shadow: 0 0 20px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 35px; height: 35px; fill: #fff; }

/* ===== Blog ===== */
.hero.blog-hero { min-height: 380px; }
.blog-post-hero-title { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 900px; margin-inline: auto; line-height: 1.2; }

.blog-main { background: #f5f5f5; padding: 60px 0 90px; }
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.blog-wrap--narrow { max-width: 820px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.blog-cats a {
  display: inline-block; padding: 8px 18px; border-radius: 100px; background: #fff; color: #616160;
  border: 1px solid #ddd; font-size: .9rem; transition: .25s;
}
.blog-cats a:hover, .blog-cats a.is-active { background: #004A95; border-color: #004A95; color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.blog-card-img { display: block; aspect-ratio: 16 / 10; background: #e0e0e0; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-noimg { display: block; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, #004A95, #4c148b); }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h3 { font-size: 1.15rem; line-height: 1.3; }
.blog-card-body h3 a { color: #004A95; }
.blog-card-body h3 a:hover { color: #E56FA6; }
.blog-card-body p { color: #616160; font-size: .92rem; line-height: 1.6; }
.blog-more { margin-top: auto; color: #E56FA6; font-weight: 600; font-size: .9rem; }

.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: #888; }
.blog-tag { display: inline-block; background: #E56FA6; color: #fff; padding: 3px 12px; border-radius: 100px; font-size: .75rem; }
.blog-tag:hover { background: #c2185b; }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 44px; color: #616160; font-size: .95rem; }
.blog-pagination a { color: #004A95; font-weight: 600; }
.blog-pagination a:hover { color: #E56FA6; }

.blog-empty { text-align: center; padding: 80px 20px; color: #616160; }
.blog-empty h2 { color: #004A95; margin-bottom: 12px; }
.blog-btn { display: inline-block; margin-top: 20px; background: #e91e63; color: #fff; padding: 12px 30px; border-radius: 25px; }
.blog-btn:hover { background: #c2185b; }

/* Entrada */
.blog-post { background: #fff; border-radius: 16px; padding: 36px 40px 30px; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.blog-post-head { margin-bottom: 20px; }
.blog-post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin-bottom: 28px; }
.blog-post-content { color: #444; font-size: 1.05rem; line-height: 1.8; word-wrap: break-word; }
.blog-post-content > * + * { margin-top: 1.1em; }
.blog-post-content h2, .blog-post-content h3, .blog-post-content h4 { color: #004A95; line-height: 1.3; margin-top: 1.6em; }
.blog-post-content h2 { font-size: 1.6rem; }
.blog-post-content h3 { font-size: 1.3rem; }
.blog-post-content h4 { font-size: 1.1rem; }
.blog-post-content a, .blog-post-content span, .blog-post-content code { display: inline; }
.blog-post-content a { color: #E56FA6; text-decoration: underline; }
.blog-post-content img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 1.4em auto; }
.blog-post-content ul { list-style: disc; padding-left: 1.5em; }
.blog-post-content ol { list-style: decimal; padding-left: 1.5em; }
.blog-post-content li { list-style: inherit; margin-bottom: .4em; }
.blog-post-content blockquote { border-left: 4px solid #E56FA6; padding: 4px 0 4px 18px; color: #616160; font-style: italic; }
.blog-post-content pre { background: #272727; color: #eee; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: .9rem; }
.blog-post-content hr { border: 0; border-top: 1px solid #ddd; }
.blog-post-content .ql-align-center { text-align: center; }
.blog-post-content .ql-align-right { text-align: right; }
.blog-post-content .ql-align-justify { text-align: justify; }
.blog-post-content .ql-indent-1 { padding-left: 3em; }
.blog-post-content .ql-indent-2 { padding-left: 6em; }
.blog-post-content .ql-indent-3 { padding-left: 9em; }

.blog-share { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #eee; font-size: .9rem; color: #616160; }
.blog-share a { color: #004A95; font-weight: 600; }
.blog-share a:hover { color: #E56FA6; }

.blog-comments { background: #fff; border-radius: 16px; padding: 28px 30px; margin-top: 30px; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.blog-comments h3, .blog-related h3 { color: #004A95; margin-bottom: 18px; font-size: 1.3rem; }
.blog-related { margin-top: 40px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.blog-related-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.07); display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; color: #333; }
.blog-related-item img, .blog-related-item .blog-card-noimg { width: 100%; height: 120px; object-fit: cover; }
.blog-related-item strong, .blog-related-item small { padding: 0 14px; }
.blog-related-item strong { color: #004A95; font-size: .95rem; line-height: 1.3; }
.blog-related-item small { color: #888; }
.blog-back { margin-top: 34px; text-align: center; }
.blog-back a { color: #004A95; font-weight: 600; }

@media (max-width: 640px) {
  .blog-main { padding: 36px 0 70px; }
  .blog-post { padding: 24px 20px; }
  .blog-comments { padding: 22px 16px; }
  .whatsapp-float { right: 20px; bottom: 70px; }
}

/* ===== Blog estático: buscador y extras ===== */
.blog-search { max-width: 520px; margin: 0 auto 26px; }
.blog-search input { width: 100%; padding: 12px 20px; border: 1px solid #ddd; border-radius: 100px; background: #fff; font-size: .95rem; outline: none; }
.blog-search input:focus { border-color: #004A95; }
.blog-results { display: none; }
.blog-results.on { display: block; }
.blog-results .blog-card-body { padding: 16px 20px; }
.blog-readtime { color: #888; }
.blog-post-content table { width: 100%; border-collapse: collapse; }

/* style.css aplica position:absolute a todo <header>; se neutraliza aquí por seguridad */
.blog-post header, .blog-post-head { position: static; width: auto; padding: 0; }
