/* =========================
   BLOG (Los Antonios)
   ========================= */

.blog-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 350px 18px 100px;
  background: url("img/experiencia2v2.jpg") center/cover no-repeat;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.blog-hero-content {
  position: relative;
  max-width: 980px;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.blog-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: .4px;
}

.blog-hero-content p {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  opacity: .95;
  margin: 0 auto;
  max-width: 780px;
}

.blog-hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost,
.btn-solid {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.btn-solid {
  background: #ffffff;
  color: #111;
  border: 1px solid rgba(255,255,255,.9);
}

.btn-ghost:hover,
.btn-solid:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 18px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.blog-card-media {
  display: block;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.blog-card:hover img {
  transform: scale(1.07);
}

.blog-card-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: .4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #111;
}

.blog-card-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
  color: #111;
}

.blog-card-content p {
  font-family: "Open Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(0,0,0,.75);
  margin: 0;
}

.blog-read {
  margin-top: auto;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.blog-read::after {
  content: "→";
  transition: transform .15s ease;
}

.blog-read:hover::after {
  transform: translateX(2px);
}

/* CTA final */
.blog-cta {
  padding: 54px 18px 70px;
  text-align: center;
  background: #0b0b0b;
  color: #fff;
}

.blog-cta h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.blog-cta p {
  font-family: "Open Sans", sans-serif;
  opacity: .92;
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

.btn-cta2 {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}

.btn-cta2:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* Responsive */
@media (max-width: 980px) {
  .blog-section { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-section { grid-template-columns: 1fr; }
  .blog-card img { height: 200px; }
  .blog-hero { padding-top: 110px; }
}



/* =========================
   POST PAGES (estilo editorial)
   Pega esto al FINAL de blog.css
   ========================= */

.post-page {
  background: #0b0b0b;
}

/* HERO del post */
.post-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 18px 56px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.50) 45%, rgba(0,0,0,.25) 100%);
  z-index: 0;
}

.post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
}

.post-hero-content .blog-tag {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.post-hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  margin: 12px 0 10px;
  letter-spacing: .3px;
  text-wrap: balance;
}

.post-hero-content p {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  margin: 0;
  opacity: .92;
  max-width: 820px;
}

/* Contenido del post */
.post-content {
  background: #ffffff;
  max-width: 920px;
  margin: -36px auto 0;
  padding: 34px 26px 22px;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  
}

.post-content p {
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.8) !important;
  margin: 0 0 18px;
}

.post-content p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.9;
}

.post-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 26px 0 12px;
  color: #111;
  letter-spacing: .2px;
}

.post-content h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: rgba(0,0,0,.12);
  border-radius: 999px;
  margin-top: 10px;
}

/* Separador sutil entre bloques (opcional por si metes hr) */
.post-content hr {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 26px 0;
}

/* CTA dentro del post */
.post-cta {
  margin-top: 26px;
  padding: 22px 18px;
  border-radius: 16px;
  background: #0b0b0b;
  color: #fff;
  text-align: center;
}

.post-cta h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin: 0 0 12px;
}

.post-cta .btn-cta2 {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111 !important;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}

.post-cta .btn-cta2:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.post-cta .blog-read {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.post-cta .blog-read::after {
  content: "";
}

/* Links dentro del post */
.post-content a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .post-hero { min-height: 52vh; padding: 130px 16px 52px; }
  .post-content { margin-top: -26px; }
}

@media (max-width: 640px) {
  .post-hero { min-height: 50vh; padding: 120px 14px 44px; }
  .post-content { padding: 26px 16px 18px; border-radius: 16px; }
  .post-content p { font-size: 1.02rem; line-height: 1.78; }
}
