/* ==========================================================================
   Contenedor Principal de Invitados
   ========================================================================== */
.abc-invitados-wrapper {
    padding: 1px;
}

.abc-seccion-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 20px;
}

.abc-seccion-titulo {
    font-size: 28px;
    color: #005f73; /* Azul oscuro cian */
    margin: 0;
    font-weight: 600;
}

.abc-seccion-subtitulo {
    font-size: 16px;
    color: #777;
    margin-top: 8px;
}

/* ==========================================================================
   Grid de Tarjetas (Adaptable)
   ========================================================================== */
.abc-grid-invitados {
    display: grid;
    /* Se adapta automáticamente: 4 columnas en escritorio, 1 en móvil */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px; /* Espaciado generoso */
    margin-bottom: 40px;
}

/* ==========================================================================
   Estilo de la Tarjeta Individual (El efecto de Flotado 3D)
   ========================================================================== */
.abc-card-invitado {
    height: 250px; /* Altura fija solicitada */
    background: #ffffff;
    border-radius: 20px; /* Bordes redondeados modernos */
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    
    /* --- EL EFECTO 3D BASE --- */
    /* 1. Borde Cian Suave */
    border: 1px solid rgba(59, 184, 219, 0.3); /* #3bb8db con opacidad */
    
    /* 2. Sombra 3D Compleja */
    /* Sombra profunda y suave + sombra difusa para realismo */
    box-shadow: 
        0 10px 20px rgba(0, 95, 115, 0.08), /* Sombra cian oscuro suave */
        0 6px 6px rgba(0, 0, 0, 0.05);      /* Sombra negra muy difusa */
    
    /* 3. Transición para el hover */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transición suave */
}

/* --- EFECTO HOVER (CUANDO EL PUNTERO ESTÁ ENCIMA) --- */
.abc-card-invitado:hover {
    /* 1. Flotado hacia arriba */
    transform: translateY(-8px);
    
    /* 2. Borde Cian Intenso */
    border-color: #3bb8db; /* #3bb8db al 100% */
    
    /* 3. Sombra 3D Intensificada */
    box-shadow: 
        0 20px 35px rgba(0, 95, 115, 0.15), /* Sombra más profunda y difusa */
        0 10px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Elementos Internos de la Tarjeta
   ========================================================================== */
/* Contenedor del Avatar */
.abc-avatar-container {
    margin-top: 1px;
    position: relative;
    display: inline-block;
}

/* Imagen del Avatar */
.abc-invitado-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%; /* Circular */
    object-fit: cover;
}

/* Nombre de Usuario */
.abc-card-invitado .user-name {
    margin-top: 1px;
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap; /* Evita que el nombre se corte */
    overflow: hidden;
    text-overflow: ellipsis; /* Añade ... si el nombre es muy largo */
    transition: color 0.3s ease;
}

.abc-card-invitado .user-name:hover {
    color: #3bb8db; /* Cambia a cian al hover */
}

/* Fecha de Registro */
.abc-card-invitado .user-registered {
    margin-top: 1px; /* Distancia solicitada */
    font-size: 14px;
    color: #888;
    display: block;
}

/* Estado de Conexión (Time Ago) */
.abc-card-invitado .user-status {
    margin-top: 1px; /* Distancia solicitada */
    font-size: 13px;
    display: block;
    font-weight: 500;
    color: #999;
}

/* Colores específicos para el estado En Línea */
.status-online {
    color: #46b450; /* Verde WordPress para online */
    background-color: rgba(70, 180, 80, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* ==========================================================================
   Banner de Invitación
   ========================================================================== */
.abc-invitacion-banner {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(59, 184, 219, 0.2);
    box-shadow: 0 10px 30px rgba(0, 95, 115, 0.05);
    margin-bottom: 40px;
    text-align: center;
}

.abc-invitacion-info {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.abc-codigo-display {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #005f73;
    letter-spacing: 3px; /* Espacio mayor */
    margin-bottom: 20px;
    text-indent: 3px;
}

/* Caja del Link */
.abc-invitacion-link-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
    background: #f4f8f9;
    padding: 8px;
    border-radius: 50px;
    border: 1px solid #e0eef1;
}

.abc-invitacion-link-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    color: #555;
    outline: none !important;
}

.abc-btn-cian {
    background: #3bb8db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abc-btn-cian:hover {
    background: #005f73;
    transform: scale(1.05);
}

.abc-invitacion-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   Paginación y Cargando
   ========================================================================== */
/* Eliminamos los estilos del botón .abc-load-more-btn y añadimos: */

.abc-loading-infinite {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #3bb8db;
    font-weight: 600;
    width: 100%;
    grid-column: 1 / -1;
    animation: fadePulse 1.5s infinite;
}

@keyframes fadePulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* El centinela debe ser invisible */
#abc-infinite-sentinel {
    grid-column: 1 / -1;
    pointer-events: none;
}

/* Estado de carga */
.abc-loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1; /* Ocupa todo el ancho del grid */
}

/* ==========================================================================
   Responsive (Móvil)
   ========================================================================== */
@media (max-width: 600px) {
    .abc-grid-invitados {
        grid-template-columns: 1fr; /* Una sola columna en móvil vertical */
        gap: 20px;
    }
    
    .abc-seccion-titulo {
        font-size: 24px;
    }
}