/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */
.directorio-socios {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ========================================
   FILTROS
======================================== */
.ds-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Barra de búsqueda */
.ds-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.ds-search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ds-search-bar input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#ds-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

#ds-clear-search:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

/* Fila de filtros */
.ds-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.ds-filter-row select {
    width: 100%;
    max-width: 100%;
    padding: 12px 35px 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    height: auto;
    min-height: 45px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    border: 2px solid #ddd;
    border-radius: 38px;
    background-color: white;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.ds-filter-row select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ds-filter-row select option {
    padding: 10px;
    font-size: 15px;
}

.ds-filter-row button {
    padding: 12px 25px;
    height: 45px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ds-filter-row button:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Opciones de vista - OCULTAS */
.ds-view-options {
    display: none;
}

/* Información de resultados */
.ds-results-info {
    text-align: center;
    font-size: 15px;
    color: #6c757d;
    font-weight: 500;
}

.ds-results-info span {
    color: #0073aa;
    font-weight: 700;
    font-size: 18px;
}

/* ========================================
   GRID DE TARJETAS
======================================== */
.ds-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.ds-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ds-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ds-cols-5 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ========================================
   TARJETAS DE SOCIOS
======================================== */
.ds-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
}

.ds-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Logo más grande */
.ds-logo {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.ds-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ds-logo:empty {
    display: none;
}

/* Título del socio */
.ds-nombre-socio {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 3px 0;
    line-height: 1.3;
    text-align: center;
}

/* Empresa destacada */
.ds-empresa {
    font-size: 16px;
    color: #555;
    font-weight: 600;
    margin: 8px 0 10px 0;
    padding: 0;
    text-align: center;
}

.ds-empresa:empty {
    display: none;
}

/* Actividad con fondo gris */
.ds-actividad {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
    text-align: center;
    margin: 10px 0;
    font-weight: 500;
}

.ds-actividad:empty {
    display: none;
}

/* Email con icono */
.ds-email {
    font-size: 14px;
    margin: 8px 0;
    word-break: break-all;
    text-align: left;
}

.ds-email a {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ds-email a:hover {
    text-decoration: underline;
    color: #005a87;
}

.ds-email:empty {
    display: none;
}

/* Ciudad y teléfono */
.ds-ciudad {
    font-size: 14px;
    color: #666;
    margin: 6px 0 8px 0;
    text-align: left;
}

.ds-telefono {
    font-size: 14px;
    color: #666;
    margin: 6px 0 22px 0;
    text-align: left;
}

.ds-ciudad:empty,
.ds-telefono:empty {
    display: none;
}

/* Teléfono clickable */
.ds-telefono a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ds-telefono a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Descuento destacado */
.ds-descuento {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 15px 0;
    font-weight: 600;
    color: #856404;
    border-radius: 4px;
    text-align: left;
}

.ds-descuento:empty {
    display: none;
}

/* Botón más grande */
.ds-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.ds-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

/* ========================================
   SIN RESULTADOS
======================================== */
.ds-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
}

.ds-no-results p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

.ds-no-results button {
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ds-no-results button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .ds-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ds-filter-row select {
        min-height: 50px;
        font-size: 16px;
    }
    
    .ds-filter-row button {
        width: 100%;
        height: 50px;
    }
    
    .ds-cols-3,
    .ds-cols-4,
    .ds-cols-5 {
        grid-template-columns: 1fr;
    }
    
    .ds-logo {
        height: 180px;
    }
    
    .ds-nombre-socio {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .directorio-socios {
        padding: 15px;
    }
    
    .ds-filters {
        padding: 20px 15px;
    }
    
    .ds-card {
        padding: 20px;
    }
    
    .ds-logo {
        height: 150px;
    }
    
    .ds-nombre-socio {
        font-size: 18px;
    }
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UTILIDADES
======================================== */
.ds-card p {
    margin: 5px 0;
}

.ds-card p:empty {
    display: none;
}

/* Ocultar emojis de imagen */
img.emoji {
    display: none;
}