@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/static/Inter_28pt-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/*--------------------------HEADER-------------------------------*/
/* Banner superior */

.promo-text {
  padding-right: 20px;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
}

/* Header principal */
.header {
  background: white;
  position: relative;
  z-index: 1000;
  border-top: 6px solid #82dc18 !important;
}

.header-content {
  max-width: 100%;
  padding: 15px 20px;
  /* 20px a la izquierda y derecha */
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* extremos auto, centro flexible */
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  color: #8BC34A;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  min-width: 200px;
}

.logo-wrapper>img {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #8BC34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buscador */
.search-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.search-contain {
  border-radius: 0;
  border: 0;
  width: 35vw;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #ffffff;
  border-bottom: 1px solid;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}


.search-btn {
  position: absolute;
  right: 16%;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}



/* Elementos del lado derecho */
.header-right {
  justify-self: end;
  /* empuja al borde derecho de su celda */
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.header-text {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-text:hover {
  text-decoration: underline;
}

.header-text img {
  width: 18px;
  height: 50px;
  width: 50px;
}


.header-item {
  gap: 5px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding-right: 20px;
  border-left: 1px solid #878787;
  padding-left: 20px;
  height: 33px;
  display: flex;
  align-items: center;
}

.container-hover {
  display: flex;
}

.header-item>span {
  font-size: 10px;
  display: flex;
  justify-content: center;
  text-align: start;
  font-weight: 400;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  gap: 10px;
  max-width: 300px;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.item-login>span {
  transition: .3s ease-in
}

.header-item.login:hover .item-login>span {
  margin-left: 5px;
  font-size: 12px;
  font-family: roboto-Medium;
  width: 50px;
}

.container-hover:hover .location-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.delivery-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 10px;
  gap: 2px;
}

.delivery-label {
  font-weight: 400;
  font-size: 10px;
}


.location-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.item-login {
  gap: 5px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding-right: 20px;
  padding-left: 20px;
  height: 33px;
  display: flex;
  align-items: center;
}

.item-login>span {
  font-size: 0;
}

.item-constructor {
  gap: 5px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding-right: 20px;
  padding-left: 20px;
  height: 33px;
  display: flex;
  align-items: center;
}

.item-constructor>span {
  transition: .3s ease-in;
}

.header-item.constructor:hover .item-constructor>span {
  margin-left: 5px;
  font-size: 12px;
  font-family: roboto-Medium;
  width: 50px;
}

.item-constructor>span {
  font-size: 0;
}


.header-item svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  background: #8BC34A;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  position: absolute;
  top: 5px;
  right: 0px;
}

.cart-container {
  position: relative;
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navegación principal */
.main-nav {
  background: white;
  border-top: 1px solid #cecece;
  position: relative;
  margin-bottom: -40px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 17%);
}

.nav-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
  /*padding: 15px 0;*/
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* AMBIENTES */

.ambientes-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.ambientes-text {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* INSPÍRATE */

.inspirate-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 10px;
}

.inspirate-text {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.6;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0px;
  color: #000000;
  text-align: left;
  opacity: 1;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;

}

.deparmentItem:hover a {
  background-color: #000;
  color: #82dc18;

}

.deparmentItem>a {
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .1s ease-in-out;
  min-height: 50px;
  cursor: pointer;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  border-bottom: 1px solid #cecece;
  padding: 0 25px;
  text-decoration: none;
}

/*.nav-item:first-child:hover .nav-link,
.nav-item:nth-child(4):hover .nav-link {
  font-weight: bold;
  color: #000;
}*/

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  columns: 3;
  column-gap: 40px;
  column-fill: balance;
}

.menu-section {
  break-inside: avoid;
  margin-bottom: 30px;
  display: inline-block;
  align-items: center;
  width: 100%;
}

/*.nav-link:hover {
    color: #8BC34A;
}

.nav-link.active {
    color: #8BC34A;
}*/

/* Ocultar menú inicialmente */
.nav-item.ambientes {
  position: relative;
}

.nav-item.ambientes .ambientes-menu {
  display: none;
}

.nav-item.ambientes:hover .ambientes-menu {
  display: flex;
}

/* Submenú que se expande en toda la pantalla */
.ambientes-menu {
  position: fixed;
  /* clave para ocupar toda la pantalla */
  top: 170px;
  /* ajusta según el alto de tu barra de navegación */
  left: 0;
  right: 0;
  width: 100vw;
  background-color: white;
  margin-top: -25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  justify-content: space-between;
  padding: 20px 40px;
  box-sizing: border-box;
}

/* Cada bloque ocupa 25% */
.ambiente-item {
  width: 25%;
  text-align: center;
  border-right: 1px solid #eee;
  padding: 0 20px;
  box-sizing: border-box;
}

.ambiente-item:last-child {
  border-right: none;
}

.ambiente-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
}

.ambiente-item h4 {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  position: relative;
  display: inline-block;
}

.ambiente-item h4::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background-color: #ddd;
  margin: 6px auto 0;
}

.ambiente-item ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.ambiente-item ul li {
  margin: 5px 0;
}

.ambiente-item ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.ambiente-item ul li a:hover {
  color: #8BC34A;
}

/* Inspirate Section */
/* Contenedor principal */
.nav-item.inspirate {
  position: relative;
}

/* Mostrar el menú al hacer hover */
.nav-item.inspirate .inspirate-menu {
  display: none;
}

.nav-item.inspirate:hover .inspirate-menu {
  display: block;
}

/* Menú desplegable */
.inspirate-menu {
  position: fixed;
  top: 170px;
  left: 0;
  right: 0;
  width: 100vw;
  background-color: white;
  z-index: 1000;
  margin-top: -25px;
  padding: 40px 0 30px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contenedor de las imágenes */
.inspirate-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 40px;
}

/* Cada imagen */
.inspirate-item {
  width: 22%;
}

.image-container {
  position: relative;
}

.image-container img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;

}

/* Texto dentro de la imagen, en la parte inferior */
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  color: white;
  text-align: center;
  padding: 12px 8px 24px;
  /* ↑ ajustado para subir el texto y mejorar espacio */
  font-size: 17px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;

  /* Eliminado: margin-bottom (innecesario con position absolute) */
}

/* Texto general debajo de las imágenes */
.inspirate-footer {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.footer-text {
  font-size: 20px;
  color: black;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Botón */
.blog-button {
  display: inline-block;
  background-color: black;
  color: #00ff00;
  padding: 10px 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.blog-button:hover {
  background-color: #222;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  left: 0;
}

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-menu-section {
  margin-bottom: 0;
}

.menu-title-mobile {
  color: #000;
  font-weight: 400;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  margin-top: 0;
}

.mobile-menu-content .main-category-label:nth-of-type(-n+5) {
  padding-left: 20px !important;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.mobile-menu-content .main-category-label:nth-of-type(6),
.mobile-menu-content .main-category-label:nth-of-type(8) {
  font-size: 18px !important;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

/* Título de la sección ("Por producto") */
.mobile-menu-section h3 {
  color: #555;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-top: 1px solid #ddd;
}

/* Lista general */
.mobile-menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Elemento de lista */
.mobile-menu-section li {
  margin: 0;
}

/* Enlaces */
.mobile-menu-section a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 12px 0;
  border-top: 1px solid #eee;
  transition: background 0.3s ease, color 0.3s ease;
}

.mobile-menu-section a:hover {
  background-color: #f9f9f9;
  color: #000;
}

/* Ocultar checkbox */
.menu-toggle {
  display: none;
}

/* Categorías principales */
.menu-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px !important;
  color: #555;
  cursor: pointer;
  padding: 14px 0;
  border-top: 1px solid #ddd;
}

.menu-label .arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.menu-label .arrow-large {
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* Sublistas (subcategorías) */
.menu-sublist {
  display: none;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.menu-sublist li a {
  padding: 12px 0;
  border-top: 1px solid #eee;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: #555;
  display: block;
  text-decoration: none;
  margin-left: 30px;
}

.menu-sublist li a:hover {
  background-color: #f9f9f9;
  color: #000;
}

/* Mostrar sublista cuando toggle está activo */
.menu-toggle:checked+.menu-label+.menu-sublist {
  display: block;
}

.menu-toggle:checked+.menu-label .arrow {
  transform: rotate(180deg);
}

/* "Ver todo" */
.see-all {
  color: #555 !important;
  font-weight: 500;
}

/* Etiquetas principales (como Pisos, Paredes...) */
.main-category-label {
  font-size: 16px !important;
  margin: 0;
}

/* Agrupador del submenú */
.submenu-group {
  display: none;
  margin: 0;
  padding-left: 20px;
}

/* Cuando cualquier checkbox de menú esté activado, abre su submenú */
.menu-toggle:checked+.main-category-label+.submenu-group {
  display: block;
}

.menu-toggle:checked+.main-category-label .arrow {
  transform: rotate(180deg);
}


/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* Responsive */
/* 1. Ubica esto al final de tu CSS, después de todo lo demás */
@media (max-width: 768px) {


  .top-banner {
    background: #82dc18;
    color: rgb(0, 0, 0);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    height: 50px;
    display: flex;
    justify-content: center;
  }

  /* A) Saca el delivery-wrapper de la fila y ponlo en columna */
  .delivery-wrapper {
    display: flex !important;
    /* fuerza flex */
    flex-direction: column;
    /* una encima de otra */
    align-items: center;
    /* centra horizontal */
    justify-content: center;
    margin: 8px 0 0;
    /* separa un poco del header */
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #333;
  }

  .header-text img {
    width: 18px;
    height: 50px;
    width: 50px;
    margin-left: 60px;
  }

  /* B) Asegúrate de que el contenedor .header-content sea flex horizontal */
  .header-content {
    max-width: 100%;
    padding: 15px 0;
    /* 20px a izquierda y derecha */
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* izquierda, centro, derecha */
    align-items: center;
  }


  /* C) Muestra únicamente el icono de búsqueda */

  .search-input {
    display: none !important;
  }

  .search-btn {
    display: block !important;
    position: relative;
    margin: 0;
    gap: 0;
    margin-left: 30px
  }

  /* D) Orden de los elementos */
  .hamburger {
    order: 1;
    display: flex;
  }

  .logo {
    order: 2;
    margin: 0 auto;
  }

  .logo img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
  }

  .search-container {
    order: 3;
    margin: 0 4px;
  }

  .header-right {
    order: 3;
    display: flex;
    justify-self: end;
    align-items: center;
    margin-right: 0;
  }

  .header-text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding-right: 20px;
  }

  /* E) Oculta la nav de escritorio */
  .nav-menu {
    display: none !important;
  }

  .header-item {
    padding: 4px 6px;
    /* reduce el padding izquierdo/derecho */
  }

  /* F) Asegura que no haya overflow horizontal */
  html,
  body {
    overflow-x: hidden;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: 9px;
    right: 1px;
  }

  .header-item.constructor {
    display: none;
  }

  .container-location {
    display: none;
  }

  .header-item svg,
  .header-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}





/* Mostrar cuando pasas el mouse sobre el link "active" */
.nav-link.active:hover+#deskMenu,
#deskMenu:hover {
  display: block;
}

.nav-item-wrapper {
  position: relative;
}



/* menu todas las categorias*/
#deskMenu {
  display: none;
  position: fixed;
  top: 162px;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: -21px;
  width: 100%;
  height: calc(100vh - 60px);
  background: white;
  z-index: 9999;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Mostrar al hacer hover */
/* Mostrar al hacer hover */
.nav-item:hover #deskMenu {
  display: flex;
}


/* Layout principal del mega menú */
.mega-menu-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  width: 100%;
  border-top: 1px solid #acaeb4;
}

.menu-label.main-category-label {
  font-size: 18px !important;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: black;
  transition: background-color 0.2s ease;
}

.menu-label.text {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: #555;
  line-height: 1.5;
  color: black;
  margin-left: 15px;
}

.menu-label.text:active {
  background-color: #8BC34A;
  color: white;
  /* opcional para contraste */
}

.menu-label.main-category-label:active {
  background-color: #8BC34A;
  color: white;
  /* opcional para contraste */
}

/* Columna izquierda */
.column-left {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #ddd;
  /*padding-right: 20px;*/
}

.column-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-left>ul {
  max-height: 60vh;
  overflow-y: auto;

}

.column-left li {
  margin-bottom: 15px;
}

/* Columnas derechas (categorías) */
.column-content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-left: 20px;
  min-width: 0;
  overflow-x: hidden;
  position: relative;
  /* Para posicionar las líneas */
}

/* Dos líneas verticales */
.column-content::before,
.column-content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #d0d0d0;
  z-index: 1;
}

.column-content::before {
  left: 28%;
  transform: translateX(-1px);
}

.column-content::after {
  left: 58%;
  transform: translateX(-1px);
}

/* Sección individual */
.menu-section {
  position: relative;
  padding-right: 20px;
  z-index: 2;
  /* Por encima de las líneas */
}

/* Eliminar líneas antiguas */
.menu-section:not(:last-child) .menu-inner::after {
  content: none;
}

/* Contenedor del contenido interno */
.menu-inner {
  position: relative;
  padding-right: 20px;
}

/* Estilos del contenido */
.menu-section h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.menu-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-section li {
  margin-bottom: 6px;
}

.menu-section a {
  color: #777;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.menu-section a:hover {
  text-decoration: underline;
}


/* Blog Header Section */
.blog-header {
  padding: 40px 20px;
  text-align: center;
}

.blog-header__content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header__subtitle {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
  color: #000000;
  opacity: 1;
  margin-bottom: 25px;
}

.blog-header__title {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 60px;
  line-height: 30px;
  letter-spacing: 0px;
  text-align: center;
  color: #000000;
  opacity: 1;
  margin: 0;
}

.blog-header__divider {
  display: block;
  width: 100%;
  margin: 45px auto 20px;
  border: none;
  border-top: 1px solid #ccc;
}

.blog-header__description {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  font-style: normal;
  color: #5A5A5A;
  letter-spacing: 0;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  opacity: 1;
}

/* Blog Search Bar Section */
.blog-search {
  background-color: #000;
  color: #fff;
  padding: 15px 0px 15px 40px;
}

.blog-search__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1700px;
  margin: 0 auto;
}

.blog-search__input {
  width: 451px;
  height: 24px;
  padding: 0 10px;
  border: none;
  font-size: 1rem;
  background-color: transparent;
  border-bottom: 1px solid #fff;
  color: #fff;
  outline: none;
}

.blog-search__input::placeholder {
  color: #ccc;
}

.blog-search__icon {
  width: 30px;
  height: 28px;
  opacity: 1;
  display: inline-block;
  object-fit: contain;
  display: flex;
  position: absolute;
  right: -3px;
  margin-top: -5px;
  pointer-events: none;
}

.blog-search__filter {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-right: 40px;
  opacity: 1;
}

.blog-search__filter-icon {
  width: 15px;
  height: 29px;
  color: #ffffff;
  opacity: 1;
  font-size: 19px;
  margin-bottom: -10px;
}

.blog-search__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search__filter-wrapper {
  display: flex;
  align-items: center;
}

/* Overlay */
.overlay-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-filter.active {
  opacity: 1;
  visibility: visible;
}

.filter-sidebar {
  position: absolute;
  top: auto;
  right: 0;
  width: 400px;
  max-height: 80vh;
  background-color: white;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.filter-sidebar.active {
  transform: translateY(0);
  /* Cambiar de right: 0 a transform */
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 9px;
  /* top, left-right, bottom reducido */
  border-bottom: 1px solid #e0e0e0;
  margin-left: 20px;
}

.sidebar-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #000;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px;
}

.close-btn:hover {
  color: #333;
}

.sidebar-content {
  padding: 24px;
  padding-top: 16px;
  margin-left: 20px;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 16px;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-section-title::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  background-image: url('/wp-content/themes/sanicenter/assets/img/flecha_arriba_filter.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-title::after {
  transform: rotate(-180deg);
}

.filter-options {
  display: block;
  margin-top: -10px;
}

.filter-section.collapsed .filter-options {
  display: none;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
}

.filter-option:hover {
  background-color: #f8f8f8;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 4px;
}

.filter-options .filter-option:last-child {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 24px;
  /* ajusta la distancia */
  margin-bottom: 0px;
  /* espacio antes del siguiente bloque */
}

.filter-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-color: black;
  border-width: 1px;
}

.filter-checkbox.checked::after {
  content: '✓';
  color: #333;
  font-size: 12px;
  font-weight: bold;
}

.filter-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
}

.filter-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
}


/* Blog Collection */

.blog-collection {
  padding: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 10px;
}

.blog-grid__item {
  position: relative;
  overflow: hidden;
}

.blog-grid__item:nth-child(6n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.blog-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-grid__item:hover img {
  transform: scale(1.05);
}

.blog-grid__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px 20px;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  box-sizing: border-box;
  z-index: 1;
}

.blog-grid__title {
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  font-weight: 300;
  line-height: 20px;
  color: #FFFFFF;
  margin: 0;
  text-align: left;
  z-index: 2;
}

.blog-grid__meta {
  font-family: 'Inter', sans-serif;
  font-size: 20px !important;
  font-weight: 300;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 8px 0 0 0;
  text-align: left;
  z-index: 2;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 2px;
}

/* Blog Buttom */

.blog-load-more {
  text-align: center;
  margin: 25px 0;
}

.blog-load-more__button {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  line-height: 17px;
  text-align: center;
  letter-spacing: 0px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 1;
}

.blog-load-more__button:hover {
  color: #8bc34a;
}

.green-stripe {
  background: #82DC18;
  height: 20px;
  width: 100%;
  margin-top: 40px;
  opacity: 1;
}

/* Footer */

.footer {
  background-color: #f5f5f5;
  padding: 40px 20px 0;
  margin-top: 0;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer__brand {
  flex: 1;
  padding-right: 54px;
  margin-right: 24px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer__logo {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #333;
  margin: 0 0 16px 0;
  padding: 5px;
  display: inline-block;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  color: #333;
  margin: 0 0 16px 0;
  padding: 5px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 16px;
  margin-bottom: -5px;
}

.footer__social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__contact {
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.footer__contact p {
  margin-bottom: -10px;
}

.footer__claims {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  flex: 3;
}

.footer__column {
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.footer__column h4 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 16px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__column ul li {
  margin-bottom: 13px;
}

.footer__column ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer__column ul li a:hover {
  color: #333;
}

.footer__bottom {
  background-color: #000;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: center;
  padding: 15px 0;
  margin-left: -20px;
  margin-right: -20px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {

  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Search responsive */

  .blog-search {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
  }

  .blog-search__container {
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
  }

  .blog-search__input-wrapper {
    align-self: center;
  }

  .blog-search__input {
    width: 100%;
    text-align: left;
  }

  .blog-search__filter-wrapper {
    align-self: center;
  }

  .blog-search__filter {
    margin-left: 0;
    margin-right: 0;
  }

  .filter-sidebar {
    position: absolute;
    top: auto;
    right: 0;
    width: 300px;
    max-height: 80vh;
    background-color: white;
    z-index: 999;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow-y: auto;
  }


  /*Grid Responsive*/

  .blog-collection {
    padding: 15px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .blog-grid__item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .blog-grid__item:first-child {
    height: 400px;
  }

  .blog-grid__item:not(:first-child) {
    height: 260px;
  }

  .blog-grid__meta {
    font-size: 18px;
    margin-top: 3px;
  }

  .blog-grid__title {
    font-size: 14px;
  }

  .blog-grid__overlay {
    padding: 20px 15px;
  }

  .footer {
    width: 100%;
    padding: 20px 15px 0 15px;
    background-color: #f9f9f9;
  }

  .footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand {
    text-align: center;
    padding-bottom: 20px;
    border-right: none !important;
    margin-bottom: -50px;
    border-bottom: none !important;
    margin-left: 17%;
  }

  .footer__logo {
    margin-bottom: 15px;
  }

  .footer__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
  }

  .footer__social-link img {
    width: 35px;
    height: 35px;
  }

  .footer__contact p {
    margin: 4px 0;
    font-size: 14px;
  }

  .footer__claims {
    margin-top: -20px;
    font-size: 14px;
  }

  .footer__claims img {
    vertical-align: middle;
    margin-right: 5px;
    width: 60px;
  }

  .footer__links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: -8px;
  }

  .footer__column {
    padding: 0 30px;
    margin-bottom: -50px !important;
  }

  .footer__column h4 {
    font-weight: bold;
    font-size: 15px;
    padding: 15px 0;
    margin-bottom: 13px;
    cursor: pointer;
    position: relative;
    margin-top: 6.5px;
  }

  .footer__column h4::after {
    content: "";
    position: absolute;
    right: 0;
    width: 13px;
    height: 13px;
    background-image: url('/wp-content/themes/sanicenter/assets/img/flecha_abajo_filter.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
  }

  .footer__column h4.active::after {
    transform: rotate(180deg);
  }

  .footer__column ul {
    display: none;
    padding-bottom: 0px;
    list-style: none;
    padding-left: 13px;
  }

  .footer__column ul.active {
    display: block;
  }

  .footer__column ul li {
    margin-bottom: 13px;
    font-size: 14px;
  }

  /*.footer__column ul li:last-child {
    border-bottom: 1px solid #ccc;
    padding-bottom: 13px;
  }*/

  .footer__column h4:first-child {
    border-top: 1px solid #ccc;
    padding-top: 15px;
  }

  .footer__column ul li:last-child {
    position: relative;
    /* para posicionar el pseudo-elemento */
    padding-bottom: 13px;
  }

  .footer__column ul li:last-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10px;
    height: 1px;
    width: 100%;
    background-color: #ccc;
  }

  .footer__bottom {
    text-align: center;
    background: #000;
    color: #fff;
    font-size: 12px;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -1px;
    margin-top: 80px;
    padding: 12px 0;
  }
}

/* Page ideas */

/* Article Detail Section */
.article-detail {
  padding: 40px 20px;
  /* mantiene el padding interno si lo necesitas */
  margin: 0 265px;
  /* margen izquierdo y derecho de 133px */
  max-width: none;
  /* sin límite de ancho fijo */
}

.article-detail__container {
  width: 100%;
}

.article-detail__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 20px;
  position: relative;
}

.article-detail__meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0px;
  color: #000000;
  text-align: center;
  opacity: 1;
}

.article-detail__date {
  color: #333;
}

.article-detail__separator {
  margin: 0 10px;
  color: #999;
}

.article-detail__category {
  color: #333;
}

.article-detail__back {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
  width: 74px;
  height: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0px;
  color: #000000;
  text-align: left;
  text-transform: uppercase;
  opacity: 1;
  margin-right: -120px;
}

.article-detail__back:hover {
  color: #8bc34a;
}

.article-detail__back-icon {
  width: 30px;
  height: 28px;
  opacity: 1;
  display: inline-block;
  object-fit: contain;
}

.article-detail__title {
  width: auto;
  height: auto;
  margin: 0 auto 40px auto;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: 0px;
  color: #000000;
  text-align: center;
  opacity: 1;
  margin-bottom: -80px;
}

/* Contenedor “full‑bleed” de la imagen */
.article-detail__image-container {
  width: calc(100% + 314px);
  /* 213px extra a cada lado → 2 × 213 = 426 */
  margin-left: -157px;
  /* desplaza 213px hacia la izquierda */
  overflow: hidden;
  /* evita scroll horizontal */
}

/* La imagen rellena TODO el ancho del contenedor */
.article-detail__image {
  width: 100%;
  /* ocupa el 100% del contenedor */
  height: 700px;
  /* tu altura fija */
  object-fit: cover;
  /* cubre sin deformar */
  object-position: center;
  display: block;
  margin-top: 55px;
}

/* Article Text Section */

.article-text {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto 40px auto; /* margen inferior positivo */
}

.article-text__content {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 25px;
  color: #5A5A5A;
  text-align: left;
  opacity: 1;
}

.article-text__content p {
  margin-bottom: 0px;
}

/* Article Images Section */
.article-images {
  margin: 0 133px 40px;
}

.article-images__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-images__item {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
}

.article-images__item img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
}

/* Recommended Products Section */
.recommended-products {
  padding: 0;
  max-width: none;
  margin: 0 133px;
  /* Forma abreviada: top/bottom 0, left/right 133px */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recommended-products__title {
  width: 488px;
  height: 25px;
  margin: 0 auto 25px auto;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 0px;
  color: #000000;
  text-align: center;
  margin-top: 25px;
  padding-bottom: 50px;
  opacity: 1;
}

.recommended-products__card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 35px;
  text-align: center;
}

.recommended-products__card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.recommended-products__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommended-products__image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.recommended-products__grid {
  display: flex;
  gap: 50px;
  box-sizing: border-box;
}

.recommended-products__item {
  flex: 0 0 auto;
  width: 329px;
}

.recommended-products__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0px;
  color: #000000;
  text-align: left;
  margin-left: 10px;
  opacity: 1;
}

.recommended-products__name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0px;
  color: #000000;
  text-align: left;
  opacity: 1;
  margin-left: 10px;
  margin-top: -10px;
}

/* Share Section */
.article-share {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80%;
  margin: 0 auto;
}

.article-share__left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-share__text {
  width: 155px;
  height: 19px;
  font: normal normal normal 15px/20px Inter 28pt;
  letter-spacing: 0px;
  color: #000000;
  text-align: right;
  opacity: 1;
  margin: 0;
}

.article-share__buttons {
  display: flex;
  gap: 10px;
}

.article-share__button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s ease;
}

.article-share__button:hover {
  background: #f5f5f5;
  border-color: #999;
}

.article-share__back {
  background: none;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.article-share__back:hover {
  color: #8bc34a;
}

/* Related Articles Section */
.related-articles {
  padding: 40px 0;
  background: #fff;
}

.related-articles__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 30px;
  letter-spacing: 0px;
  color: #000000;
  text-align: center;
  opacity: 1;
  margin-bottom: 20px;
  padding: 0 20px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px;
}

.related-articles__item {
  position: relative;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.related-articles__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.related-articles__item:hover .related-articles__image {
  transform: scale(1.05);
}

.related-articles__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  z-index: 1;
}

.related-articles__meta {
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  font-weight: 300;
  line-height: 20px;
  color: #FFFFFF;
  margin: 0;
  text-align: left;
  z-index: 2;
}

.related-articles__title-item {
  font-family: 'Inter', sans-serif;
  font-size: 20px !important;
  font-weight: 300;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 8px 0 0 0;
  text-align: left;
  z-index: 2;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 1px;
}

/* Responsive */
@media (max-width: 768px) {

  .article-detail {
    margin: 0 80px;
    padding: 35px 20px;
  }

  .article-detail__header {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
  }

  .article-detail__meta {
    position: static;
    transform: none;
    margin-bottom: 0px;
    justify-content: center;
  }

  .article-detail__back {
    font-size: 12px;
    gap: 6px;
    height: auto;
    margin-top: 4px;
    margin-right: 25px;
    margin-bottom: 5px;
  }

  .article-detail__back-icon {
    width: 20px;
    height: 20px;
  }

  .article-detail__title {
    width: 100%;
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: auto;
    text-align: center;
  }

  .article-detail__image {
    /* Base: móvil first - NO width fijo */
    max-width: 100%;
    width: 73%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .article-text {
    padding: 20px 35px;
    margin: 0 auto;
    max-width: 100%;
    margin-top: -30px;
  }

  .article-text__content {
    width: 100%;
    max-width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .article-images {
    margin: 0 15px 20px;
    margin-top: 25px;
  }

  .article-images__grid {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-content: center;
    /* Centrar las imágenes */
  }

  .article-images__item {
    width: 410px;
    height: 380px;
    max-width: 100%;
    /* Para que no se desborde en pantallas más pequeñas */
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    /* Centrar imagen si sobra espacio */
    display: block;
  }

  .recommended-products {
    margin: 0 15px;
  }

  .recommended-products__item {
    flex: 0 0 auto;
    width: 250px;
  }

  .recommended-products__title {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 25px;
    line-height: 31px;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 30px;
  }

  .recommended-products__grid {
    display: grid;
    grid-auto-flow: column;
    /* pone los ítems en fila */
    grid-auto-columns: 280px;
    /* ancho fijo de cada tarjeta */
    gap: 0;

    overflow-x: auto;
    /* activa scroll horizontal */
    padding-bottom: 10px;
    min-width: 100%;
    width: 100%;
    min-height: 100px;
    /* opcional, evita colapsos */
    scroll-snap-type: x mandatory;
    /* snap suave */
    -webkit-overflow-scrolling: touch;
    /* suave en móviles */
  }

  .recommended-products__card {
    padding: 20px;
  }

  .recommended-products__image {
    height: 200px;
    max-height: 200px;
  }

  .recommended-products__name {
    width: 100%;
    font-size: 13px;
    line-height: 18px;
  }

  .article-share {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
    max-width: 100%;
    text-align: center;
  }

  .article-share__left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .article-share__buttons {
    order: 1;
    /* Asegura que esté después del texto */
  }

  .article-share__text {
    order: 0;
    width: auto;
    text-align: center;
  }

  .article-share__back {
    order: 2;
    /* Asegura que esté al final */
  }

  .related-articles {
    padding: 20px 0;
    margin-bottom: -20px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .related-articles__item {
    height: 260px;
  }

  .related-articles__overlay {
    padding: 15px;
  }

  .related-articles__meta {
    font-size: 12px;
  }

  .related-articles__title {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 25px;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: center;
    margin-top: -15px;
    margin-bottom: 15px;
  }

  .related-articles__title-item {
    font-size: 16px;
    line-height: 1.2;
    margin-top: 3px;
    margin-bottom: 8px;
  }
}