/* Hero Blog: mismas proporciones que el Hero principal (PC, tablet, mobile) */
.wp-block-excelrepuestos-blog-hero.blog-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-color: #2d2d2d;
  overflow: hidden;
}

/* Mismo ancho y padding que .site-header__inner para alinear con el logo */
.wp-block-excelrepuestos-blog-hero.blog-hero .blog-hero__inner {
  box-sizing: border-box;
}

.wp-block-excelrepuestos-blog-hero.blog-hero.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Tablet vertical (misma proporción que hero principal) */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .wp-block-excelrepuestos-blog-hero.blog-hero {
    min-height: 80vh;
  }
}

/* Desktop (misma proporción que hero principal) */
@media (min-width: 1024px) {
  .wp-block-excelrepuestos-blog-hero.blog-hero {
    min-height: 65vh;
  }
}

.blog-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-hero__picture {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-hero__picture,
.blog-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-wide, 1200px);
  margin: 0 auto;
  padding: var(--spacing-xl, 3rem) var(--spacing-md);
  text-align: left;
}

.blog-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.blog-hero__subtitle {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.blog-hero__search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0;
  margin-right: auto;
  background: #6C6C6C99;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.blog-hero__search-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 0 0 1.25rem;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
}

.blog-hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.blog-hero__search-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-hero__search-submit:hover {
  color: #fff;
}

.blog-hero__search-submit:focus {
  outline: none;
  color: #fff;
}

.blog-hero__search-submit svg {
  width: 20px;
  height: 20px;
}
