.producto-encabezado {
  width: 100%;
}

.site-inner {
  margin-top: 0px !important;
}

.producto-encabezado__overlay {
  display: flex ;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 60vh;
  background: #0a3d91;
  color: #fff;
  padding: 12% 8%;
}

.producto-titulo {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: 'Mulish';
  font-weight: 800;
  letter-spacing: 5px;
  color : #62c9d9;
}

.producto-subtitulo {
  font-size: 1.5rem;
}

.producto-funcion {
  font-size: 1.2rem;
  line-height: 1.5;
  font-family: 'Mulish';
  margin: 0 0 0px !important;
}

.producto-descripcion__texto p {
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.wp-block-gutenkit-pro-hotspot {
    max-width: 936px;
    margin-left: auto;
    margin-right: auto;
}

.producto-galeria img {
  height: auto; 
  width: 100%;
  object-fit: cover;
  display: block;
}

.producto-galeria .swiper {
  width: 100%;
  height: 50vh;
}

.producto-galeria .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 350px;
}

.producto-galeria .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.producto-galeria .swiper-slide a {
    display: block; /* Hace que el enlace ocupe todo el espacio */
    width: 100%;
    height: 100%;
    cursor: zoom-in; /* Muestra un cursor de lupa al pasar el ratón */
}

/* Esto asegura que la imagen dentro del enlace se comporte como antes */
.producto-galeria .swiper-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important; 
}

.swiper-pagination-bullet {
  background: #fffefe00 !important;
}

.grid-repeater {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* Caso: Si solo hay UN cuadro (.item) */
.grid-repeater .item:only-child {
    /* Forzar que el único elemento ocupe 2 columnas (todo el ancho) */
    grid-column: 1 / -1; /* Cubre desde la línea 1 hasta el final */
}

.grid-repeater:has(.item:nth-child(3):nth-last-child(1)) {
    grid-template-columns: repeat(3, 1fr);
}

/* 4. Anular la expansión del ítem cuando está en el layout de 3 columnas (esto es importante) */
.grid-repeater:has(.item:nth-child(3):nth-last-child(1)) .item {
    grid-column: auto;
}

.item {
  background: #fff;
  padding: 8% 8%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;               
  flex-direction: column;      
  align-items: center;        
  text-align: center; 
}

.item:nth-child(4n+1),
.item:nth-child(4n+4) {
  background-color: #edeeed;
}

/* Fila 2 → azul rojo */
.item:nth-child(4n+2),
.item:nth-child(4n+3) {
  background-color: #dedfdf;
}

.grid-repeater:has(.item:nth-child(3):nth-last-child(1)) {
}

.grid-repeater:has(.item:nth-child(3):nth-last-child(1)) .item:nth-child(odd) {
    background-color: #edeeed; 
}

.grid-repeater:has(.item:nth-child(3):nth-last-child(1)) .item:nth-child(even) {
    background-color: #dedfdf; 
}

.cuadros-info .icono svg {
  width: 80px;   
  height: 80px;  
  display: block;
  margin: 0 auto 10px; 
  fill: #728bda; 
}

.item .icono {
  font-size: 40px;
  margin-bottom: 10px;
  color: #3f6ecf;
}

.item h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #21438a;
  font-family: 'Mulish', sans-serif;
  font-weight: 500;
}

.item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;   
}

.item ul li {
  margin: 0;
  padding: 12px 20px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px solid #0f5ab6; /* línea separadora */
  cursor: pointer;
  transition: all 0.3s ease;
}

.item ul li:hover {
  transform: translateX(5px); /* se mueve un poco a la derecha */
}

.item ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #3f6ecf;
  font-weight: bold;
}

.hotspot-container {
  position: relative;
  width: 100%;
  height: 50vh; /* fija la altura */
  overflow: hidden; /* evita desbordes */
}

.hotspot-container img {
  width: 100%;
  height: 100%; /* ocupa el alto del contenedor */
  object-fit: cover; /* recorta la imagen manteniendo proporción */
  display: block;
}

  .prefooter-form .gkit-block__inner {
    display: block !important;
  }

.producto-descripcion {
    display: flex;
    gap: 30px; 
    width: 100%;
}

.layout-texto-solo .producto-descripcion__texto {
    margin: 0 auto; 
}

.layout-texto-solo .producto-descripcion__videos-wrapper {
    width: 100%;
    flex: 1; 
}

.layout-texto-video {
    flex-direction: row;
    align-items: center; 
}

.layout-texto-video > div {
    flex: 1;
    min-width: 0; 
}


.layout-texto-dos-videos {
    flex-direction: column;
}

.layout-texto-dos-videos .producto-descripcion__videos-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.producto-descripcion__video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
}

.fancybox__container {
    z-index: 99999 !important;
    --fancybox-color: #e67a04 !important;
    --fancybox-hover-color: #e67a04 !important;
    --fancybox-bg: #6666668a !important;
    --f-spinner-color-1: #e67a04 !important;
    --f-spinner-color-2: #e67a04 !important;
}

@media (max-width: 768px) {

  .producto-encabezado__overlay {
    margin: 0 auto;
  }

  .producto-titulo {
    font-size: 1.5rem;
  }

  .producto-subtitulo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .producto-funcion {
    font-size: 1rem;
  }

  .producto-descripcion {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: auto;
  }

  .producto-descripcion__video {
    margin-top: 20px;
  }

  .producto-descripcion__video iframe {
    height: auto; 
    aspect-ratio: 16 / 9; 
  }

  .layout-texto-video {
    flex-direction: column;
  }

  .layout-texto-video > div {
    flex-basis: 100%;
    flex: none;
  }

  .cuadros-info {
  background: #f9f9f9;
  }

  .gkit-hotspot_position_outer{
    width: 200px !important;
    padding: 5% !important;
  }

  .gkit-hotspot_container .gkit-hotspot_position_inner {
    width: 200px !important;
    padding: 20px !important;
  }

  .grid-repeater {
    grid-template-columns: 1fr;
  }

  .gkit-map-image.text-center img {
  width: 100%;
  object-fit: contain; 
  object-position: center; 
  display: block; 
  }

}

