/* ====================================================
   Organizaciones / Asociaciones — Estilos
   SiembraApp | siembraapp-web
   ==================================================== */

/* ── Buscador ── */
.search-container {
    margin-bottom: 24px;
}

.search-field {
    background-color: white;
    border-radius: 28px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid rgba(44, 158, 69, 0.1);
}

.search-field:focus-within {
    box-shadow: 0 4px 12px rgba(44, 158, 69, 0.15);
    transform: translateY(-1px);
    border-color: #2c9e45;
}

.search-field input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 8px;
    font-size: 16px;
    color: #1a1a2e;
    background: transparent;
}

.search-field .material-icons {
    color: #64748b;
    margin-right: 8px;
}

.search-btn {
    background-color: #2c9e45;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 158, 69, 0.3);
    transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
    background-color: #146215;
    transform: scale(1.02);
}

#search-summary {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 600;
}

/* ── Grid de Asociaciones ── */
.associations-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .associations-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Tarjeta de Asociación ── */
.assoc-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.assoc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(44, 158, 69, 0.12);
    border-color: rgba(44, 158, 69, 0.3);
}

.assoc-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #146215;
    letter-spacing: -0.3px;
}

.assoc-card .description {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Imagen / Fallback Icono */
.assoc-logo-container {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.assoc-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.fallback-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}

.fallback-icon i {
    font-size: 48px;
    color: #cbd5e1;
}

.fallback-icon span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Secciones de la tarjeta */
.assoc-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.assoc-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    margin-left: 12px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    color: #1a1a2e;
    line-height: 1.4;
}

.product-list li i {
    font-size: 16px;
    color: #2c9e45;
    margin-right: 10px;
    margin-top: 2px;
}

.contact-info {
    font-size: 0.9rem;
    color: #1a1a2e;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.contact-info strong {
    font-weight: 600;
    color: #64748b;
    min-width: 50px;
}

/* Botones de acción */
.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f1f8f3;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #146215;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(44, 158, 69, 0.2);
    transition: all 0.2s;
    flex: 1;
    min-width: 120px;
}

.btn-action:hover {
    background-color: #2c9e45;
    color: white;
    border-color: #2c9e45;
}

.btn-action i {
    font-size: 15px;
}

/* Nota */
.note-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.note-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}

/* ── Funcionalidad Volver Arriba ── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #2c9e45;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(44, 158, 69, 0.4);
    border: none;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.back-to-top:hover {
    transform: scale(1.1);
    background-color: #146215;
}
