/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.1
*/

.marq-listado-publicaciones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.marq-publicacion-item {
    flex: 0 0 calc(25% - 10px); /* 4 columns with some spacing */
    margin: 5px; /* Spacing between items */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.marq-publicacion-description {
    flex: 0 0 100%; /* Full width for single column */
    margin: 5px 0; /* Spacing above and below */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.marq-img-fluid {
    width: 100%; /* Make image responsive */
    height: 200px !important; /* Set a fixed height for all images */
    /*height: auto;*/ /* Maintain aspect ratio */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
}

.marq-img-banner {
	height: 400px !important;
}
/* INICIO DRD SHORTCODE para documentos en Woocommerce */
/* Cada "tarjeta" */
.documento-item {
  display: inline-block;      /* Permite que se alineen horizontalmente */
  vertical-align: top;        /* Alinea al inicio de la fila */
  width: 100%;                /* Por defecto, ocupa 100% en móviles */
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #eee;
  background-color: #fff;
}

/* A partir de 768px: 2 columnas */
@media (min-width: 768px) {
  .documento-item {
    width: 48%;     /* 2 items por fila (48% + 2% de margen) */
    margin-right: 2%;
  }
  .documento-item:nth-of-type(2n) {
    margin-right: 0;
  }
}

/* A partir de 1024px: 3 columnas */
@media (min-width: 1024px) {
  .documento-item {
    width: 31.333%; /* ~31.333% * 3 = ~94% + ~6% margen */
    margin-right: 2%;
  }
  .documento-item:nth-of-type(3n) {
    margin-right: 0;
  }
}

/* Título en negrita (lo refuerzas también con <strong>) */
.documento-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  font-weight: bold; /* Reafirmamos en CSS */
}

/* Subtítulo (autor) */
.documento-subtitle {
  margin: 0 0 20px 0;
  color: #555;
}

/* Botón con icono Font Awesome */
.documento-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000;   /* Ajusta al color deseado */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8em 1.2em;
  border-radius: 4px;
}

.documento-btn i {
  color: #d32b2b;    /* Rojo PDF */
  margin-right: 0.5em;
  font-size: 1.2em;
}

/* Hover del botón */
.documento-btn:hover {
  background-color: #333;
}
/* FIN DRD SHORTCODE para documentos en Woocommerce */

/* Media query for medium screens (tablets) */
@media (max-width: 1024px) {
    .marq-publicacion-item {
        flex: 0 0 calc(50% - 10px); /* 2 columns */
    }
}

/* Media query for small screens (mobile devices) */
@media (max-width: 600px) {
    .marq-publicacion-item {
        flex: 0 0 100%; /* 1 column */
    }
}


/* BUSCADOR DE PRODUCTOS POR CATEGORÍA */

.category-search-form {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-search-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
}

.category-search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 0;
}

.category-search-form button {
    padding: 12px 15px;
    background: #000;
    border: 0;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.category-search-form button:hover {
    background: #ac8d37;
}

/* Responsive */
@media (max-width: 768px) {
    .category-search-form form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-search-form button {
        margin-top: 10px;
    }
}