/* ==========================================================================
   MÓDULO: Enlaces Rápidos y Tarjetas de Acción (Home)
   ========================================================================== */

.module-actions-hub {
    width: 100%;
    background-color: var(--color-white);
}

/* Forzamos un diseño de grilla exacto de 3 columnas iguales */
.actions-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 520px;
}

/* Propiedades comunes de columna */
.action-col {
    position: relative;
    box-sizing: border-box;
}

/* =====================================================
   COLUMNA 1: QUICK LINKS (Estilo Institucional)
   ===================================================== */
.col-quick-links {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
}

/* Tinte rojo corporativo profundo */
.col-links-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: color-mix(in srgb, var(--color-primary), 5% transparent); /* Rojo Kingster */
    z-index: 1;
}

.col-links-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.links-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-2xl);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 35px 0;
    color: var(--color-white);
}

.links-title svg {
    width: 22px;
    height: 22px;
}

h3.links-title{
    color: var(--color-secondary);
}

/* Menú de Enlaces */
.quick-links-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-menu li {
    border-bottom: 1px solid var(--color-text-muted);
}

.quick-links-menu li a {
    display: block;
    padding: 16px 0;
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 700;
    transition: padding-left 0.3s ease, opacity 0.3s ease;
}

.quick-links-menu li a:hover {
    padding-left: 10px;
    opacity: 0.85;
}

/* =====================================================
   COLUMNA 2: NEWSLETTER
   ===================================================== */
.col-newsletter {
    background-color: var(--color-white);
    padding: 60px 45px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--color-bg-light);
}

.col-newsletter-inner {
    width: 100%;
    max-width: 380px;
}

.newsletter-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.newsletter-icon svg {
    width: 100px;
    height: auto;
}

.action-col-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-main); /* Azul Marino */
    margin: 0 0 10px 0;
}

.newsletter-subtitle {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.action-col-desc {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Estilos de Contact Form 7 para el buscador */
.newsletter-form-container {
    width: 100%;
}

.newsletter-cf7-wrap .news-input-group {
    margin-bottom: 15px;
}

.newsletter-cf7-wrap input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-bg-light);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    outline: none;
    text-align: center;
    border-radius: 2px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.newsletter-cf7-wrap input[type="email"]:focus {
    border-color: var(--color-primary);
}

.newsletter-cf7-wrap input[type="submit"] {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 700;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.newsletter-cf7-wrap input[type="submit"]:hover {
    background-color: color-mix(in srgb, var(--color-primary), 10% transparent);
}

/* =====================================================
   COLUMNA 3: DONACIONES
   ===================================================== */
.col-donations {
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    padding: 60px;
}

.donation-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.donation-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donation-content-wrap {
    padding: 40px 0 50px 0;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-donations .action-col-desc {
    margin-bottom: 25px;
}

.btn-action-donation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.btn-action-donation svg {
    width: 14px;
    height: 14px;
}

.btn-action-donation:hover {
    background-color: color-mix(in srgb, var(--color-primary), 10% transparent);
    color: var(--color-white);
}

/* =====================================================
   RESPONSIVE (Tablets y Dispositivos Móviles)
   ===================================================== */
@media (max-width: 1024px) {
    /* .actions-grid-wrap { */
        /* grid-template-columns: 1fr; Pasa a formato apilado vertical */
    /* } */
    
    .col-newsletter, .donation-content-wrap {
        padding: 15px 10px;
    }

    .col-donations{
        padding: 15px 20px 15px 10px;
    }

    .btn-action-donation{
        padding: 12px;
    }
    
    .col-newsletter-inner {
        max-width: 100%; /* Permite expandirse en móviles */
    }
}

@media (max-width: 768px) {
    .actions-grid-wrap {
        grid-template-columns: 1fr; /*Pasa a formato apilado vertical*/
    }
}