/*
 * Nova Grupos v1.0.0
 * Directorio de canales de WhatsApp.
 * Todos los selectores prefijados con .nova-grupos para no chocar con Blocksy / Elementor.
 */

.nova-grupos {
    --nova-dark: #0f0f30;
    --nova-dark-2: #161640;
    --nova-blue-accent: #5ca8ff;
    --nova-wa: #25d366;
    --nova-wa-hover: #1ebe5d;
    --nova-border-light: rgba(0, 0, 0, 0.08);
    --nova-text-muted: #5f5e5a;
    --nova-text-faint: #888780;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c2c2a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    display: block;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
    position: relative;
}

.nova-grupos *,
.nova-grupos *::before,
.nova-grupos *::after {
    box-sizing: border-box;
}

.nova-grupos a { text-decoration: none; }
.nova-grupos h1 { margin: 0; font-weight: 600; }
.nova-grupos p  { margin: 0; }
.nova-grupos svg { display: block; }

.entry-content > .nova-grupos:first-child,
.wp-block-post-content > .nova-grupos:first-child,
.site-main .nova-grupos:first-child {
    margin-top: 0 !important;
}

.nova-grupos .nova-grupos-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding-left: clamp(16px, 2.2vw, 40px);
    padding-right: clamp(16px, 2.2vw, 40px);
}

.nova-grupos .nova-grupos-hero {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 211, 102, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, var(--nova-dark) 0%, var(--nova-dark-2) 100%);
    padding: 34px 0 30px;
    color: #ffffff;
    text-align: center;
}

.nova-grupos .nova-grupos-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.16);
    color: #7CE0A6;
    border: 0.5px solid rgba(37, 211, 102, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.nova-grupos .nova-grupos-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
    animation: nova-grupos-pulse 2s ease-in-out infinite;
}

@keyframes nova-grupos-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .nova-grupos .nova-grupos-dot { animation: none; }
}

.nova-grupos .nova-grupos-hero h1 {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.nova-grupos .nova-grupos-hero p {
    font-size: clamp(14px, 1.1vw, 17px);
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

.nova-grupos .nova-grupos-list-wrap {
    background: #fafafb;
    padding: 28px 0 36px;
}

.nova-grupos .nova-grupos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nova-grupos .nova-grupos-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 0.5px solid #e5e5e9;
    border-radius: 12px;
    color: #2c2c2a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    min-height: 68px;
}

.nova-grupos .nova-grupos-card:hover,
.nova-grupos .nova-grupos-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 15, 48, 0.08), 0 2px 4px rgba(15, 15, 48, 0.04);
    border-color: rgba(37, 211, 102, 0.45);
    color: #2c2c2a;
}

.nova-grupos .nova-grupos-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f1efe8 0%, #e7e4db 100%);
    color: #0f0f30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 0 3px;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.nova-grupos .nova-grupos-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nova-grupos .nova-grupos-acronym {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f30;
    line-height: 1.2;
    letter-spacing: -0.1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nova-grupos .nova-grupos-name {
    font-size: 11.5px;
    color: var(--nova-text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nova-grupos .nova-grupos-wa {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--nova-wa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(37, 211, 102, 0.35);
}

.nova-grupos .nova-grupos-card:hover .nova-grupos-wa,
.nova-grupos .nova-grupos-card:focus .nova-grupos-wa {
    background: var(--nova-wa-hover);
    transform: scale(1.06);
}

.nova-grupos .nova-grupos-footnote {
    text-align: center;
    font-size: 12px;
    color: var(--nova-text-faint);
    margin-top: 22px;
    padding-top: 18px;
    border-top: 0.5px dashed #d3d1c7;
}

@media (max-width: 900px) {
    .nova-grupos .nova-grupos-hero {
        padding: 28px 0 26px;
    }
    .nova-grupos .nova-grupos-list-wrap {
        padding: 22px 0 28px;
    }
    .nova-grupos .nova-grupos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
}

@media (max-width: 560px) {
    .nova-grupos .nova-grupos-hero {
        padding: 24px 0 22px;
    }
    .nova-grupos .nova-grupos-hero h1 {
        letter-spacing: -0.2px;
    }
    .nova-grupos .nova-grupos-pill {
        font-size: 11px;
        padding: 5px 12px;
    }
    .nova-grupos .nova-grupos-list-wrap {
        padding: 18px 0 24px;
    }
    .nova-grupos .nova-grupos-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .nova-grupos .nova-grupos-card {
        padding: 11px 12px;
        min-height: 64px;
        border-radius: 10px;
    }
    .nova-grupos .nova-grupos-badge {
        width: 40px;
        height: 40px;
        font-size: 9.5px;
    }
    .nova-grupos .nova-grupos-acronym {
        font-size: 13.5px;
    }
    .nova-grupos .nova-grupos-name {
        font-size: 11px;
    }
    .nova-grupos .nova-grupos-wa {
        width: 30px;
        height: 30px;
    }
}





.nova-grupos .nova-grupos-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
