/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

@import url("../astra/style.css");




.post-link {
    display: block;
    text-decoration: none;
    color: white;
    height: 100%;
}

.post-link:hover h3 {
    text-decoration: underline;
}



.post-title {
    text-align: center;
    padding: 10px 5px;
    color: #fff;
    background-color: rgba(0,0,0,0.6);
    border-radius: 0 0 10px 10px;
}

.post-title h3 {
    margin: 0;
    font-size: 16px;
}



////////////////botones compartir

.botones-compartir {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.botones-compartir a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
  filter: grayscale(100%);
}

.botones-compartir a:hover img {
  transform: scale(1.2);
  filter: none;
}

.boton-nativo {
  display: inline-block;
  background-color: #1d4ed8;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.3s;
}

.boton-nativo:hover {
  background-color: #2563eb;
}



add_filter( 'woocommerce_checkout_fields', 'ocultar_titulo_detalles_facturacion' );
function ocultar_titulo_detalles_facturacion( $fields ) {
    // Ocultar el título con un hook de traducción
    add_filter( 'gettext', 'cambiar_texto_detalles_facturacion', 20, 3 );
    return $fields;
}

function cambiar_texto_detalles_facturacion( $translated_text, $text, $domain ) {
    if ( $text === 'Detalles de facturación' || $text === 'Billing details' ) {
        return ''; // Deja el texto vacío
    }
    return $translated_text;
}


