/*
 * ============================================================
 * VALDIZARBE - HOME CSS UNIFICADO
 * ============================================================
 * Consolidado y depurado:
 * - eliminado bloque duplicado de "Últimos recambios publicados"
 * - corregidas redundancias seguras
 * - mantenida la cascada responsive original
 * - preparado para sustituir los CSS parciales de la home
 * ============================================================
 */

/* =========================================
   HERO / BANNER PRINCIPAL VALDIZARBE
========================================= */

.vdz-hero,
.vdz-hero * {
  box-sizing: border-box;
}

.vdz-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(circle at 88% 28%, rgba(0, 159, 227, .22), transparent 28%),
    linear-gradient(115deg, #0b225c 0%, #0d336e 46%, #009fcb 100%);
}

.vdz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 24, 71, .18), rgba(255, 255, 255, .03));
  pointer-events: none;
}

.vdz-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(0, 159, 227, .28);
  filter: blur(10px);
  pointer-events: none;
}

.vdz-hero .vdz-container {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}
.vdz-hero__inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.vdz-hero__content {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
}

.vdz-hero__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(2.05rem, 3vw, 4rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -.035em;
}

.vdz-hero__text {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .96);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

/* =========================
   CONTENEDOR DEL HOOK BUSCADOR
   El diseño interno lo controla el módulo
========================= */

.vdz-hero__search-wrap {
  width: 100%;
  max-width: none;
  margin-top: 14px;
}

.vdz-hero__search-box {
  width: 100%;
  max-width: none;
}

/* =========================
   DESKTOP GRANDE
========================= */

@media (min-width: 1200px) {
  .vdz-hero {
    min-height: 355px;
    display: flex;
    align-items: center;
  }

  .vdz-hero__inner {
    margin-left: 0;
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .vdz-hero {
    padding: 42px 0 48px;
  }

  .vdz-hero .vdz-container {
    padding-inline: 32px;
  }

  .vdz-hero__inner {
    max-width: none;
  }

  .vdz-hero__content {
    max-width: none;
    margin-bottom: 14px;
  }

  .vdz-hero__title {
    font-size: 2.15rem;
  }

  .vdz-hero__text {
    max-width: 100%;
    font-size: .95rem;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .vdz-hero .vdz-container {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
  }

  .vdz-hero {
    padding: 32px 0 36px;
  }

  .vdz-hero__title {
    font-size: 1.72rem;
    line-height: 1.08;
    margin-bottom: 8px;
  }

  .vdz-hero__text {
    font-size: .88rem;
    line-height: 1.35;
    font-weight: 600;
  }

  .vdz-hero__search-wrap {
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 480px) {
  .vdz-hero {
    padding: 28px 0 32px;
  }

  .vdz-hero__title {
    font-size: 1.48rem;
  }

  .vdz-hero__text {
    font-size: .84rem;
  }
}

/* =========================================
   BENEFICIOS / VENTAJAS VALDIZARBE
   OPTIMIZADO CLS / PAGESPEED
========================================= */

.vdz-benefits,
.vdz-benefits * {
  box-sizing: border-box;
}

.vdz-benefits {
  position: relative;
  width: 100%;
  /* Evita cambios de geometría durante el render inicial */
  contain: layout style;
}

.vdz-benefits .vdz-container {
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}

/* =========================
   DESKTOP
========================= */

.vdz-benefits__inner {
  width: 100%;

  /* Reserva la altura completa desde el primer render */
  min-height: 104px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;

  gap: 38px;

  padding: 20px 0;
}

.vdz-benefits__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;

  gap: 18px;

  min-width: 0;
  min-height: 64px;
}

/* =========================
   ICONOS
========================= */

.vdz-benefits__icon {
  width: 56px;
  height: 56px;

  min-width: 56px;
  min-height: 56px;

  display: grid;
  place-items: center;

  color: #009fe3;

  overflow: hidden;
}

/*
 * MUY IMPORTANTE PARA CLS
 *
 * El navegador conoce siempre el espacio que ocupa
 * el SVG antes de terminar el render.
 */
.vdz-benefits__icon svg {
  display: block;

  width: 48px;
  height: 48px;

  min-width: 48px;
  min-height: 48px;

  aspect-ratio: 1 / 1;

  flex: none;
}

/* =========================
   TEXTO
========================= */

.vdz-benefits__content {
  min-width: 0;
}

.vdz-benefits__title {
  margin: 0 0 5px;

  color: #071b47;

  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.vdz-benefits__text {
  margin: 0;

  color: #667085;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

  .vdz-benefits__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px 32px;

    padding: 24px 0;

    /*
     * 2 filas:
     * 64 + 64 + 24 gap + 48 padding
     */
    min-height: 200px;
  }

  .vdz-benefits__item {
    min-height: 64px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

  .vdz-benefits .vdz-container {
    width: min(100% - 24px, 1500px);
  }

  .vdz-benefits__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;

    /*
     * CLS MOBILE:
     * Reserva desde el primer render el espacio mínimo
     * del bloque completo de beneficios.
     */
    min-height: 400px;
  }

  .vdz-benefits__item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 78px;
    padding: 14px 16px;
    background: #f7fbfe;
    border: 1px solid rgba(0, 159, 227, .12);
    border-radius: 14px;
    contain: layout style;
  }

  .vdz-benefits__icon {
    width: 48px;
    height: 48px;

    min-width: 48px;
    min-height: 48px;
  }

  .vdz-benefits__icon svg {
    width: 40px;
    height: 40px;

    min-width: 40px;
    min-height: 40px;
  }

  .vdz-benefits__title {
    font-size: 18px;
  }

  .vdz-benefits__text {
    font-size: 12px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 420px) {

  .vdz-benefits__inner {
    min-height: 420px;
  }

  .vdz-benefits__item {
    align-items: flex-start;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .vdz-benefits__icon {
    width: 46px;
    height: 46px;

    min-width: 46px;
    min-height: 46px;
  }

  .vdz-benefits__icon svg {
    width: 38px;
    height: 38px;

    min-width: 38px;
    min-height: 38px;
  }

  .vdz-benefits__title {
    font-size: 17px;
  }
}

/* =========================================
   ÚLTIMOS RECAMBIOS PUBLICADOS
========================================= */

.vdz-latest-products,
.vdz-latest-products * {
  box-sizing: border-box;
}

.vdz-latest-products {
  position: relative;
  overflow: hidden;
  padding: 58px 0 64px;
  background: #ffffff;
}

.vdz-latest-products .vdz-container {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}

.vdz-latest-products__head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.vdz-latest-products__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  color: #006aa6;
  background: rgba(0, 159, 227, .1);
  border: 1px solid rgba(0, 159, 227, .16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.vdz-latest-products__title {
  margin: 0;
  color: #071b47;
  font-size: clamp(1.9rem, 2vw, 2.5rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.vdz-latest-products__text {
  max-width: 720px;
  margin: 14px auto 0;
  color: #667085;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.vdz-latest-products__carousel {
  width: 100%;
  margin-top: 0;
}

/* El hook ocupa todo el ancho disponible */
.vdz-latest-products__carousel > * {
  width: 100%;
  max-width: 100%;
}

/* Botón centrado debajo del carrusel */
.vdz-latest-products__footer {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.vdz-latest-products__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  color: #ffffff;
  background: #006aa6;
  border: 1px solid #006aa6;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 106, 166, .18);
  transition:
    transform .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.vdz-latest-products__link:hover {
  color: #ffffff;
  background: #031847;
  border-color: #031847;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(3, 24, 71, .22);
}

.vdz-latest-products__link svg {
  flex: 0 0 auto;
}

/* Ajustes suaves para imágenes sin tocar fuerte el módulo */
.vdz-latest-products__carousel img {
  max-width: 100%;
  height: auto;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .vdz-latest-products {
    padding: 48px 0 54px;
  }

  .vdz-latest-products__head {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .vdz-latest-products__text {
    max-width: 100%;
  }

  .vdz-latest-products__footer {
    margin-top: 28px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .vdz-latest-products {
    padding: 40px 0 46px;
  }

  .vdz-latest-products .vdz-container {
    width: min(100% - 24px, 1500px);
  }

  .vdz-latest-products__head {
    margin-bottom: 24px;
  }

  .vdz-latest-products__eyebrow {
    min-height: 26px;
    font-size: 10px;
  }

  .vdz-latest-products__title {
    font-size: 1.75rem;
  }

  .vdz-latest-products__text {
    font-size: .92rem;
    line-height: 1.45;
  }

  .vdz-latest-products__link {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 420px) {
  .vdz-latest-products__title {
    font-size: 1.55rem;
  }
}


/* =========================================
   DESTACADOS / PROMOCIONES VALDIZARBE
========================================= */

.vdz-featured-cats,
.vdz-featured-cats * {
  box-sizing: border-box;
}

.vdz-featured-cats {
  position: relative;
  padding: 34px 0 58px;
  background: #ffffff;
}

.vdz-featured-cats .vdz-container {
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}

.vdz-featured-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.vdz-featured-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 376px;
  background: #ffffff;
  border: 1px solid rgba(3, 24, 71, .12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(3, 24, 71, .06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.vdz-featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 159, 227, .34);
  box-shadow: 0 18px 42px rgba(3, 24, 71, .12);
}

.vdz-featured-card__image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f4f7fb;
  text-decoration: none;
}

.vdz-featured-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.vdz-featured-card:hover .vdz-featured-card__image {
  transform: scale(1.045);
}

.vdz-featured-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #ffffff;
  background: #e60000;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(230, 0, 0, .24);
}

.vdz-featured-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 10px;
}

.vdz-featured-card__title {
  margin: 0 0 18px;
  color: #071b47;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.vdz-featured-card__text {
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.52;
}

.vdz-featured-card__btn {
  width: fit-content;
  min-height: 46px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #ffffff;
  background: #09245c;
  border: 1px solid #09245c;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(9, 36, 92, .16);
  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.vdz-featured-card__btn:hover {
  color: #ffffff;
  background: #006aa6;
  border-color: #006aa6;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 106, 166, .24);
}

/* =========================
   DESKTOP MEDIO
========================= */

@media (max-width: 1300px) {
  .vdz-featured-cats__grid {
    gap: 20px;
  }

  .vdz-featured-card__title {
    font-size: 22px;
  }

  .vdz-featured-card__text {
    font-size: 13px;
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .vdz-featured-cats {
    padding: 30px 0 48px;
  }

  .vdz-featured-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vdz-featured-card {
    min-height: 360px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .vdz-featured-cats .vdz-container {
    width: min(100% - 24px, 1500px);
  }

  .vdz-featured-cats {
    padding: 26px 0 42px;
  }

  .vdz-featured-cats__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vdz-featured-card {
    min-height: auto;
  }

  .vdz-featured-card__image-link {
    height: 170px;
  }

  .vdz-featured-card__body {
    padding: 18px 18px 10px;
  }

  .vdz-featured-card__title {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .vdz-featured-card__text {
    font-size: 14px;
  }

  .vdz-featured-card__btn {
    width: 100%;
    margin-top: 26px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 420px) {
  .vdz-featured-card__image-link {
    height: 150px;
  }

  .vdz-featured-card__title {
    font-size: 21px;
  }

  .vdz-featured-card__badge {
    top: 14px;
    left: 14px;
  }
}

/* =========================================
   BUSCADOR POR MARCA VALDIZARBE
========================================= */

.vdz-brand-search,
.vdz-brand-search * {
  box-sizing: border-box;
}

.vdz-brand-search {
  padding: 48px 0;
  background: rgba(0, 63, 132, 0.04);
}

.vdz-brand-search .vdz-container {
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}

.vdz-brand-search__head {
  margin-bottom: 26px;
  text-align: center;
}

.vdz-brand-search__title {
  margin: 0;
  color: #071b47;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.vdz-brand-search__content {
  width: 100%;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .vdz-brand-search {
    padding: 38px 0;
  }

  .vdz-brand-search .vdz-container {
    width: min(100% - 24px, 1500px);
  }

  .vdz-brand-search__head {
    margin-bottom: 20px;
  }

  .vdz-brand-search__title {
    font-size: 1.65rem;
  }
}


/* =========================================
   CERTIFICACIONES Y AUTORIZACIONES
========================================= */

.vdz-certifications,
.vdz-certifications * {
  box-sizing: border-box;
}

.vdz-certifications {
  position: relative;
  overflow: hidden;
  padding: 58px 0 64px;
  background:
    rgba(0,63,132,0.04);
}

.vdz-certifications .vdz-container {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
}

.vdz-certifications__head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.vdz-certifications__title {
  margin: 0;
  color: #071b47;
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.vdz-certifications__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.vdz-cert-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(3, 24, 71, .1);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(3, 24, 71, .06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.vdz-cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 159, 227, .3);
  box-shadow: 0 18px 42px rgba(3, 24, 71, .12);
}

.vdz-cert-card__image-wrap {
  width: 100%;
  height: 145px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 63, 132, .04);
  border-bottom: 1px solid rgba(3, 24, 71, .08);
}

.vdz-cert-card__image {
  display: block;
  max-width: 100%;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vdz-cert-card__body {
  flex: 1 1 auto;
  padding: 22px 24px 24px;
}

.vdz-cert-card__title {
  margin: 0 0 12px;
  color: #071b47;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.vdz-cert-card__text {
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.58;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
  .vdz-certifications {
    padding: 48px 0 54px;
  }

  .vdz-certifications__head {
    margin-bottom: 28px;
  }

  .vdz-certifications__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vdz-cert-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
  }

  .vdz-cert-card__image-wrap {
    height: 100%;
    min-height: 170px;
    border-bottom: 0;
    border-right: 1px solid rgba(3, 24, 71, .08);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .vdz-certifications {
    padding: 40px 0 46px;
  }

  .vdz-certifications .vdz-container {
    width: min(100% - 24px, 1500px);
  }

  .vdz-certifications__title {
    font-size: 1.75rem;
  }

  .vdz-cert-card {
    display: flex;
  }

  .vdz-cert-card__image-wrap {
    height: 132px;
    min-height: initial;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(3, 24, 71, .08);
  }

  .vdz-cert-card__image {
    max-height: 82px;
  }

  .vdz-cert-card__body {
    padding: 20px 18px 22px;
  }

  .vdz-cert-card__title {
    font-size: 20px;
  }

  .vdz-cert-card__text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 420px) {
  .vdz-certifications__title {
    font-size: 1.55rem;
  }

  .vdz-cert-card__title {
    font-size: 19px;
  }
}