﻿/* ===================================================================
   EXPOSITORES - BARRA DE HERRAMIENTAS Y FILTROS VIP
   =================================================================== */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 24px;
}

.search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 999px; /* Forma de píldora moderna */
    border: 1px solid rgba(36,75,92,.08);
    box-shadow: 0 4px 12px rgba(16,24,40,.03);
    transition: all 0.3s ease;
}

    .search:focus-within {
        border-color: var(--brandDark);
        box-shadow: 0 8px 24px rgba(47,93,115,.08);
    }

    .search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-size: 15px;
        font-weight: 500;
    }

        .search input::placeholder {
            color: var(--muted2);
        }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(36,75,92,.08);
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-btn:hover {
        background: rgba(47,93,115,.04);
        transform: translateY(-1px);
    }

    .filter-btn.active {
        background: var(--brandDark);
        color: #fff;
        border-color: var(--brandDark);
        box-shadow: 0 8px 16px rgba(47,93,115,.2);
    }

/* ===================================================================
   GRILLA DE EXPOSITORES (Estilo SaaS Minimalista)
   =================================================================== */
.expo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px; /* Para que la sombra no se corte al scrollear */
    align-content: start;
    margin-left: -8px; /* Compensa el padding interno */
}

    /* Scrollbar VIP */
    .expo-grid::-webkit-scrollbar {
        width: 6px;
    }

    .expo-grid::-webkit-scrollbar-track {
        background: rgba(36,75,92,.03);
        border-radius: 10px;
    }

    .expo-grid::-webkit-scrollbar-thumb {
        background: rgba(36,75,92,.2);
        border-radius: 10px;
    }

        .expo-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(36,75,92,.4);
        }

/* ===================================================================
   TARJETA HORIZONTAL DE EXPOSITOR VIP
   =================================================================== */
/* ===================================================================
   TARJETA HORIZONTAL DE EXPOSITOR VIP (Estilo Flotante Premium)
   =================================================================== */
.expo-card-h {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px; /* Un poco más de aire interior para que respiren los textos */
    border-radius: 20px; /* Bordes suaves acordes al resto de la web */
    background: #ffffff;
    /* Chau borde duro. Hola sombra 3D suave y difusa */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

    /* Efecto Levitar: Sube sutilmente y aumenta la profundidad de la sombra */
    .expo-card-h:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
    }

    /* El toque maestro: Línea de color iluminada en la BASE al hacer hover */
    .expo-card-h::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px; /* Línea muy fina y elegante */
        background: var(--card-color); /* Toma el color del rubro dinámicamente */
        opacity: 0;
        transform: scaleX(0); /* Arranca escondida desde el centro */
        transform-origin: center;
        transition: all 0.4s ease;
    }

    .expo-card-h:hover::after {
        opacity: 1;
        transform: scaleX(1); /* Se expande hacia los bordes */
    }


/* --- Contenedor del ícono (Squircle semitransparente) --- */
.expo-logo-h {
    flex-shrink: 0;
    width: 64px; /* Un pelín más grande para presencia */
    height: 64px;
    /* Usamos el color de la tarjeta con 10% de opacidad para el fondo (más sutil) */
    background: color-mix(in srgb, var(--card-color) 10%, transparent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color);
}

    .expo-logo-h svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

/* --- Contenedor de la información --- */
.expo-info-h {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .expo-info-h h3 {
        font-size: 17px; /* Apenas más grande */
        font-weight: 800; /* Inter Black/ExtraBold */
        margin: 0 0 4px 0;
        color: var(--brandDark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.01em;
    }

    .expo-info-h p {
        font-size: 13px;
        font-weight: 500;
        color: var(--muted);
        margin: 0 0 12px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* --- Contenedor de íconos de redes sociales --- */
.expo-social-h {
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted2); /* Gris por defecto */
    text-decoration: none;
    background: transparent;
    padding: 6px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .social-icon svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
    }

    /* Al pasar el mouse toman su color de marca */
    .social-icon:hover {
        background: var(--icon-bg);
        color: var(--icon-color);
        transform: translateY(-2px);
    }

/* Colores específicos de redes monolineales */
.soc-wp {
    --icon-color: #25D366;
    --icon-bg: rgba(37, 211, 102, 0.12);
}

.soc-fb {
    --icon-color: #1877F2;
    --icon-bg: rgba(24, 119, 242, 0.12);
}

.soc-ig {
    --icon-color: #E1306C;
    --icon-bg: rgba(225, 48, 108, 0.12);
}

.soc-web {
    --icon-color: var(--brandDark);
    --icon-bg: rgba(36,75,92,.08);
}

/* --- Botón Ver Más limpio y sutil --- */
.btn-ver-mas {
    margin-left: auto;
    background: transparent;
    color: var(--brandDark);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(16, 24, 40, 0.05); /* Pequeño bordecito para que parezca un botón real */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-ver-mas:hover {
        background: rgba(36,75,92,.06);
        border-color: transparent;
    }
/* ===================================================================
   BANNER INFERIOR CTA (Invitación VIP)
   =================================================================== */
.cta-banner-premium {
    margin-top: 32px;
    background: linear-gradient(135deg, rgba(47,93,115,.05) 0%, rgba(58,152,154,.05) 100%);
    border: 1px solid rgba(36,75,92,.08);
    border-radius: 24px;
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cta-banner-text strong {
    font-size: 18px;
    color: var(--brandDark);
    font-weight: 850;
    display: block;
    margin-bottom: 4px;
}

.cta-banner-text p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .expo-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 480px;
    }
}

@media (max-width: 650px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search {
        width: 100%;
        flex: none;
    }

    .expo-grid {
        grid-template-columns: 1fr;
        max-height: 540px;
    }

    .cta-banner-premium {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

        .cta-banner-premium a {
            width: 100%;
            text-align: center;
        }
}
