/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Tema hijo de Astra
 Author:       Tu Nombre
 Author URI:   https://tusitio.com
 Template:     astra
 Version:      1.0.0
*/

/*Ocultar boton de finalizar compra*/
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: none !important;
}
.woocommerce-js ul.cart_list li dl dt, .woocommerce-js ul.product_list_widget li dl dt {
	font-weight:600;
}


a.checkout-button.button.alt.wc-forward {
    display: none !important;
}

/*Linea del tab de productos de arriba hacia abajo*/
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
    top: auto;
    bottom: 0;
    height: 4px;
    background: #929292; /* o el color que uses */
}
.woocommerce-js div.product .woocommerce-tabs ul.tabs:before{
	bottom:0 ;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    content: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    content: "";
    position: absolute;
    bottom: 0;
	top:auto;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd; /* gris claro */
    z-index: 0;
}


/*css para el slider*/
.destacados-swiper img { width:100%; height:auto; display:block; border-radius:12px; }



/* Contenedor del embed */
.ykk-embed{
  position: relative;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
}

/* Botón flotante arriba a la derecha */
.ykk-embed .ykk-download{
  position: absolute;
  top: 10px;
  right: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #0f172a;     /* azul oscuro */
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.ykk-embed .ykk-download:hover{
  filter: brightness(1.08);
}

/* Visor: ocupa alto cómodo y sin bordes */
.ykk-embed .ykk-iframe,
.ykk-embed .ykk-object{
  width: 100%;
  height: 75vh;
  border: 0;
  display: block;
}

/* Imagen (si suben JPG/PNG en vez de PDF) */
.ykk-embed .ykk-img{
  width: 100%;
  height: auto;
  display: block;
}



/*Agrandar contenedor del cart-2 */
@media (min-width: 1024px) {
  .woocommerce-cart .site-main {
    max-width: 100% !important;
    width: 100% !important;
  }

  .woocommerce-cart .ast-container {
    max-width: 1440px !important;
    padding-left: 40px;
    padding-right: 40px;
  }
}
