.has-transparent-header .site-header {
  background: transparent !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    flex: 1 1 calc(50% - 40px); /* 2 por fila */
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Contenedor fijo para la imagen */
.card-image {
    width: 100%;
    height: 350px;           
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;       
    display: block;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none;
    color: #111;
}

.card-title a:hover {
    color: #0073aa;
}

.card-excerpt {
    font-size: 0.95em;
    color: #555;
    flex: 1;
    margin-bottom: 15px;
}

.card-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.card-link:hover {
    text-decoration: underline;
}

/* Responsive: en móviles, 1 card por fila */
@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
